Move the number of cpus logic to somewhere more logical.
[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 build
645 build_cpu
646 build_vendor
647 build_os
648 host
649 host_cpu
650 host_vendor
651 host_os
652 target
653 target_cpu
654 target_vendor
655 target_os
656 OS
657 HOST_OS
658 TARGET_OS
659 LINKALL
660 NOLINKALL
661 LLVM_ON_UNIX
662 LLVM_ON_WIN32
663 ARCH
664 ENDIAN
665 CC
666 CFLAGS
667 LDFLAGS
668 CPPFLAGS
669 ac_ct_CC
670 EXEEXT
671 OBJEXT
672 CPP
673 GREP
674 EGREP
675 LLVM_CROSS_COMPILING
676 BUILD_CC
677 BUILD_EXEEXT
678 BUILD_CXX
679 CVSBUILD
680 ENABLE_OPTIMIZED
681 ENABLE_PROFILING
682 DISABLE_ASSERTIONS
683 ENABLE_EXPENSIVE_CHECKS
684 EXPENSIVE_CHECKS
685 DEBUG_RUNTIME
686 DEBUG_SYMBOLS
687 JIT
688 TARGET_HAS_JIT
689 ENABLE_DOXYGEN
690 ENABLE_THREADS
691 ENABLE_PIC
692 ENABLE_SHARED
693 ENABLE_TIMESTAMPS
694 TARGETS_TO_BUILD
695 LLVM_ENUM_TARGETS
696 LLVM_ENUM_ASM_PRINTERS
697 LLVM_ENUM_ASM_PARSERS
698 LLVM_ENUM_DISASSEMBLERS
699 ENABLE_CBE_PRINTF_A
700 CLANGPATH
701 CLANGXXPATH
702 ENABLE_BUILT_CLANG
703 OPTIMIZE_OPTION
704 EXTRA_OPTIONS
705 BINUTILS_INCDIR
706 CXX
707 CXXFLAGS
708 ac_ct_CXX
709 NM
710 ifGNUmake
711 LN_S
712 CMP
713 CP
714 DATE
715 FIND
716 MKDIR
717 MV
718 RANLIB
719 AR
720 RM
721 SED
722 TAR
723 BINPWD
724 GRAPHVIZ
725 DOT
726 FDP
727 NEATO
728 TWOPI
729 CIRCO
730 GV
731 DOTTY
732 PERL
733 HAVE_PERL
734 INSTALL_PROGRAM
735 INSTALL_SCRIPT
736 INSTALL_DATA
737 BZIP2
738 CAT
739 DOXYGEN
740 GROFF
741 GZIP
742 POD2HTML
743 POD2MAN
744 PDFROFF
745 RUNTEST
746 TCLSH
747 ZIP
748 OCAMLC
749 OCAMLOPT
750 OCAMLDEP
751 OCAMLDOC
752 GAS
753 HAVE_LINK_VERSION_SCRIPT
754 INSTALL_LTDL_TRUE
755 INSTALL_LTDL_FALSE
756 CONVENIENCE_LTDL_TRUE
757 CONVENIENCE_LTDL_FALSE
758 LIBADD_DL
759 LLVMGCCCOMMAND
760 LLVMGXXCOMMAND
761 LLVMGCC
762 LLVMGXX
763 LLVMCC_OPTION
764 NO_VARIADIC_MACROS
765 NO_MISSING_FIELD_INITIALIZERS
766 USE_UDIS86
767 USE_OPROFILE
768 HAVE_PTHREAD
769 HUGE_VAL_SANITY
770 MMAP_FILE
771 LLVMCC1
772 LLVMCC1PLUS
773 LLVMGCCDIR
774 LLVMGCC_LANGS
775 SHLIBEXT
776 SHLIBPATH_VAR
777 LLVM_PREFIX
778 LLVM_BINDIR
779 LLVM_LIBDIR
780 LLVM_DATADIR
781 LLVM_DOCSDIR
782 LLVM_ETCDIR
783 LLVM_INCLUDEDIR
784 LLVM_INFODIR
785 LLVM_MANDIR
786 LLVM_CONFIGTIME
787 BINDINGS_TO_BUILD
788 ALL_BINDINGS
789 OCAML_LIBDIR
790 ENABLE_VISIBILITY_INLINES_HIDDEN
791 RPATH
792 RDYNAMIC
793 LIBOBJS
794 LTLIBOBJS'
795 ac_subst_files=''
796       ac_precious_vars='build_alias
797 host_alias
798 target_alias
799 CC
800 CFLAGS
801 LDFLAGS
802 CPPFLAGS
803 CPP
804 CXX
805 CXXFLAGS
806 CCC'
807 ac_subdirs_all='projects/llvm-gcc
808 projects/test-suite
809 projects/llvm-test
810 projects/poolalloc
811 projects/llvm-poolalloc
812 projects/sample
813 projects/privbracket
814 projects/llvm-stacker
815 projects/llvm-reopt
816 projects/llvm-java
817 projects/llvm-tv
818 projects/safecode
819 projects/llvm-kernel'
820
821 # Initialize some variables set by options.
822 ac_init_help=
823 ac_init_version=false
824 # The variables have the same names as the options, with
825 # dashes changed to underlines.
826 cache_file=/dev/null
827 exec_prefix=NONE
828 no_create=
829 no_recursion=
830 prefix=NONE
831 program_prefix=NONE
832 program_suffix=NONE
833 program_transform_name=s,x,x,
834 silent=
835 site=
836 srcdir=
837 verbose=
838 x_includes=NONE
839 x_libraries=NONE
840
841 # Installation directory options.
842 # These are left unexpanded so users can "make install exec_prefix=/foo"
843 # and all the variables that are supposed to be based on exec_prefix
844 # by default will actually change.
845 # Use braces instead of parens because sh, perl, etc. also accept them.
846 # (The list follows the same order as the GNU Coding Standards.)
847 bindir='${exec_prefix}/bin'
848 sbindir='${exec_prefix}/sbin'
849 libexecdir='${exec_prefix}/libexec'
850 datarootdir='${prefix}/share'
851 datadir='${datarootdir}'
852 sysconfdir='${prefix}/etc'
853 sharedstatedir='${prefix}/com'
854 localstatedir='${prefix}/var'
855 includedir='${prefix}/include'
856 oldincludedir='/usr/include'
857 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
858 infodir='${datarootdir}/info'
859 htmldir='${docdir}'
860 dvidir='${docdir}'
861 pdfdir='${docdir}'
862 psdir='${docdir}'
863 libdir='${exec_prefix}/lib'
864 localedir='${datarootdir}/locale'
865 mandir='${datarootdir}/man'
866
867 ac_prev=
868 ac_dashdash=
869 for ac_option
870 do
871   # If the previous option needs an argument, assign it.
872   if test -n "$ac_prev"; then
873     eval $ac_prev=\$ac_option
874     ac_prev=
875     continue
876   fi
877
878   case $ac_option in
879   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
880   *)    ac_optarg=yes ;;
881   esac
882
883   # Accept the important Cygnus configure options, so we can diagnose typos.
884
885   case $ac_dashdash$ac_option in
886   --)
887     ac_dashdash=yes ;;
888
889   -bindir | --bindir | --bindi | --bind | --bin | --bi)
890     ac_prev=bindir ;;
891   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
892     bindir=$ac_optarg ;;
893
894   -build | --build | --buil | --bui | --bu)
895     ac_prev=build_alias ;;
896   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
897     build_alias=$ac_optarg ;;
898
899   -cache-file | --cache-file | --cache-fil | --cache-fi \
900   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
901     ac_prev=cache_file ;;
902   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
903   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
904     cache_file=$ac_optarg ;;
905
906   --config-cache | -C)
907     cache_file=config.cache ;;
908
909   -datadir | --datadir | --datadi | --datad)
910     ac_prev=datadir ;;
911   -datadir=* | --datadir=* | --datadi=* | --datad=*)
912     datadir=$ac_optarg ;;
913
914   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
915   | --dataroo | --dataro | --datar)
916     ac_prev=datarootdir ;;
917   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
918   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
919     datarootdir=$ac_optarg ;;
920
921   -disable-* | --disable-*)
922     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
923     # Reject names that are not valid shell variable names.
924     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
925       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
926    { (exit 1); exit 1; }; }
927     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
928     eval enable_$ac_feature=no ;;
929
930   -docdir | --docdir | --docdi | --doc | --do)
931     ac_prev=docdir ;;
932   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
933     docdir=$ac_optarg ;;
934
935   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
936     ac_prev=dvidir ;;
937   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
938     dvidir=$ac_optarg ;;
939
940   -enable-* | --enable-*)
941     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
942     # Reject names that are not valid shell variable names.
943     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
944       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
945    { (exit 1); exit 1; }; }
946     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
947     eval enable_$ac_feature=\$ac_optarg ;;
948
949   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
950   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
951   | --exec | --exe | --ex)
952     ac_prev=exec_prefix ;;
953   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
954   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
955   | --exec=* | --exe=* | --ex=*)
956     exec_prefix=$ac_optarg ;;
957
958   -gas | --gas | --ga | --g)
959     # Obsolete; use --with-gas.
960     with_gas=yes ;;
961
962   -help | --help | --hel | --he | -h)
963     ac_init_help=long ;;
964   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
965     ac_init_help=recursive ;;
966   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
967     ac_init_help=short ;;
968
969   -host | --host | --hos | --ho)
970     ac_prev=host_alias ;;
971   -host=* | --host=* | --hos=* | --ho=*)
972     host_alias=$ac_optarg ;;
973
974   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
975     ac_prev=htmldir ;;
976   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
977   | --ht=*)
978     htmldir=$ac_optarg ;;
979
980   -includedir | --includedir | --includedi | --included | --include \
981   | --includ | --inclu | --incl | --inc)
982     ac_prev=includedir ;;
983   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
984   | --includ=* | --inclu=* | --incl=* | --inc=*)
985     includedir=$ac_optarg ;;
986
987   -infodir | --infodir | --infodi | --infod | --info | --inf)
988     ac_prev=infodir ;;
989   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
990     infodir=$ac_optarg ;;
991
992   -libdir | --libdir | --libdi | --libd)
993     ac_prev=libdir ;;
994   -libdir=* | --libdir=* | --libdi=* | --libd=*)
995     libdir=$ac_optarg ;;
996
997   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
998   | --libexe | --libex | --libe)
999     ac_prev=libexecdir ;;
1000   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1001   | --libexe=* | --libex=* | --libe=*)
1002     libexecdir=$ac_optarg ;;
1003
1004   -localedir | --localedir | --localedi | --localed | --locale)
1005     ac_prev=localedir ;;
1006   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1007     localedir=$ac_optarg ;;
1008
1009   -localstatedir | --localstatedir | --localstatedi | --localstated \
1010   | --localstate | --localstat | --localsta | --localst | --locals)
1011     ac_prev=localstatedir ;;
1012   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1013   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1014     localstatedir=$ac_optarg ;;
1015
1016   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1017     ac_prev=mandir ;;
1018   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1019     mandir=$ac_optarg ;;
1020
1021   -nfp | --nfp | --nf)
1022     # Obsolete; use --without-fp.
1023     with_fp=no ;;
1024
1025   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1026   | --no-cr | --no-c | -n)
1027     no_create=yes ;;
1028
1029   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1030   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1031     no_recursion=yes ;;
1032
1033   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1034   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1035   | --oldin | --oldi | --old | --ol | --o)
1036     ac_prev=oldincludedir ;;
1037   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1038   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1039   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1040     oldincludedir=$ac_optarg ;;
1041
1042   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1043     ac_prev=prefix ;;
1044   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1045     prefix=$ac_optarg ;;
1046
1047   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1048   | --program-pre | --program-pr | --program-p)
1049     ac_prev=program_prefix ;;
1050   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1051   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1052     program_prefix=$ac_optarg ;;
1053
1054   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1055   | --program-suf | --program-su | --program-s)
1056     ac_prev=program_suffix ;;
1057   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1058   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1059     program_suffix=$ac_optarg ;;
1060
1061   -program-transform-name | --program-transform-name \
1062   | --program-transform-nam | --program-transform-na \
1063   | --program-transform-n | --program-transform- \
1064   | --program-transform | --program-transfor \
1065   | --program-transfo | --program-transf \
1066   | --program-trans | --program-tran \
1067   | --progr-tra | --program-tr | --program-t)
1068     ac_prev=program_transform_name ;;
1069   -program-transform-name=* | --program-transform-name=* \
1070   | --program-transform-nam=* | --program-transform-na=* \
1071   | --program-transform-n=* | --program-transform-=* \
1072   | --program-transform=* | --program-transfor=* \
1073   | --program-transfo=* | --program-transf=* \
1074   | --program-trans=* | --program-tran=* \
1075   | --progr-tra=* | --program-tr=* | --program-t=*)
1076     program_transform_name=$ac_optarg ;;
1077
1078   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1079     ac_prev=pdfdir ;;
1080   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1081     pdfdir=$ac_optarg ;;
1082
1083   -psdir | --psdir | --psdi | --psd | --ps)
1084     ac_prev=psdir ;;
1085   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1086     psdir=$ac_optarg ;;
1087
1088   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1089   | -silent | --silent | --silen | --sile | --sil)
1090     silent=yes ;;
1091
1092   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1093     ac_prev=sbindir ;;
1094   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1095   | --sbi=* | --sb=*)
1096     sbindir=$ac_optarg ;;
1097
1098   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1099   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1100   | --sharedst | --shareds | --shared | --share | --shar \
1101   | --sha | --sh)
1102     ac_prev=sharedstatedir ;;
1103   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1104   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1105   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1106   | --sha=* | --sh=*)
1107     sharedstatedir=$ac_optarg ;;
1108
1109   -site | --site | --sit)
1110     ac_prev=site ;;
1111   -site=* | --site=* | --sit=*)
1112     site=$ac_optarg ;;
1113
1114   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1115     ac_prev=srcdir ;;
1116   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1117     srcdir=$ac_optarg ;;
1118
1119   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1120   | --syscon | --sysco | --sysc | --sys | --sy)
1121     ac_prev=sysconfdir ;;
1122   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1123   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1124     sysconfdir=$ac_optarg ;;
1125
1126   -target | --target | --targe | --targ | --tar | --ta | --t)
1127     ac_prev=target_alias ;;
1128   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1129     target_alias=$ac_optarg ;;
1130
1131   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1132     verbose=yes ;;
1133
1134   -version | --version | --versio | --versi | --vers | -V)
1135     ac_init_version=: ;;
1136
1137   -with-* | --with-*)
1138     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1139     # Reject names that are not valid shell variable names.
1140     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1141       { echo "$as_me: error: invalid package name: $ac_package" >&2
1142    { (exit 1); exit 1; }; }
1143     ac_package=`echo $ac_package| sed 's/-/_/g'`
1144     eval with_$ac_package=\$ac_optarg ;;
1145
1146   -without-* | --without-*)
1147     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1148     # Reject names that are not valid shell variable names.
1149     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1150       { echo "$as_me: error: invalid package name: $ac_package" >&2
1151    { (exit 1); exit 1; }; }
1152     ac_package=`echo $ac_package | sed 's/-/_/g'`
1153     eval with_$ac_package=no ;;
1154
1155   --x)
1156     # Obsolete; use --with-x.
1157     with_x=yes ;;
1158
1159   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1160   | --x-incl | --x-inc | --x-in | --x-i)
1161     ac_prev=x_includes ;;
1162   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1163   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1164     x_includes=$ac_optarg ;;
1165
1166   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1167   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1168     ac_prev=x_libraries ;;
1169   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1170   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1171     x_libraries=$ac_optarg ;;
1172
1173   -*) { echo "$as_me: error: unrecognized option: $ac_option
1174 Try \`$0 --help' for more information." >&2
1175    { (exit 1); exit 1; }; }
1176     ;;
1177
1178   *=*)
1179     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1180     # Reject names that are not valid shell variable names.
1181     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1182       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1183    { (exit 1); exit 1; }; }
1184     eval $ac_envvar=\$ac_optarg
1185     export $ac_envvar ;;
1186
1187   *)
1188     # FIXME: should be removed in autoconf 3.0.
1189     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1190     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1191       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1192     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1193     ;;
1194
1195   esac
1196 done
1197
1198 if test -n "$ac_prev"; then
1199   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1200   { echo "$as_me: error: missing argument to $ac_option" >&2
1201    { (exit 1); exit 1; }; }
1202 fi
1203
1204 # Be sure to have absolute directory names.
1205 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1206                 datadir sysconfdir sharedstatedir localstatedir includedir \
1207                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1208                 libdir localedir mandir
1209 do
1210   eval ac_val=\$$ac_var
1211   case $ac_val in
1212     [\\/$]* | ?:[\\/]* )  continue;;
1213     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1214   esac
1215   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1216    { (exit 1); exit 1; }; }
1217 done
1218
1219 # There might be people who depend on the old broken behavior: `$host'
1220 # used to hold the argument of --host etc.
1221 # FIXME: To remove some day.
1222 build=$build_alias
1223 host=$host_alias
1224 target=$target_alias
1225
1226 # FIXME: To remove some day.
1227 if test "x$host_alias" != x; then
1228   if test "x$build_alias" = x; then
1229     cross_compiling=maybe
1230     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1231     If a cross compiler is detected then cross compile mode will be used." >&2
1232   elif test "x$build_alias" != "x$host_alias"; then
1233     cross_compiling=yes
1234   fi
1235 fi
1236
1237 ac_tool_prefix=
1238 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1239
1240 test "$silent" = yes && exec 6>/dev/null
1241
1242
1243 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1244 ac_ls_di=`ls -di .` &&
1245 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1246   { echo "$as_me: error: Working directory cannot be determined" >&2
1247    { (exit 1); exit 1; }; }
1248 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1249   { echo "$as_me: error: pwd does not report name of working directory" >&2
1250    { (exit 1); exit 1; }; }
1251
1252
1253 # Find the source files, if location was not specified.
1254 if test -z "$srcdir"; then
1255   ac_srcdir_defaulted=yes
1256   # Try the directory containing this script, then the parent directory.
1257   ac_confdir=`$as_dirname -- "$0" ||
1258 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1259          X"$0" : 'X\(//\)[^/]' \| \
1260          X"$0" : 'X\(//\)$' \| \
1261          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1262 echo X"$0" |
1263     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1264             s//\1/
1265             q
1266           }
1267           /^X\(\/\/\)[^/].*/{
1268             s//\1/
1269             q
1270           }
1271           /^X\(\/\/\)$/{
1272             s//\1/
1273             q
1274           }
1275           /^X\(\/\).*/{
1276             s//\1/
1277             q
1278           }
1279           s/.*/./; q'`
1280   srcdir=$ac_confdir
1281   if test ! -r "$srcdir/$ac_unique_file"; then
1282     srcdir=..
1283   fi
1284 else
1285   ac_srcdir_defaulted=no
1286 fi
1287 if test ! -r "$srcdir/$ac_unique_file"; then
1288   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1289   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1290    { (exit 1); exit 1; }; }
1291 fi
1292 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1293 ac_abs_confdir=`(
1294         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1295    { (exit 1); exit 1; }; }
1296         pwd)`
1297 # When building in place, set srcdir=.
1298 if test "$ac_abs_confdir" = "$ac_pwd"; then
1299   srcdir=.
1300 fi
1301 # Remove unnecessary trailing slashes from srcdir.
1302 # Double slashes in file names in object file debugging info
1303 # mess up M-x gdb in Emacs.
1304 case $srcdir in
1305 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1306 esac
1307 for ac_var in $ac_precious_vars; do
1308   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1309   eval ac_env_${ac_var}_value=\$${ac_var}
1310   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1311   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1312 done
1313
1314 #
1315 # Report the --help message.
1316 #
1317 if test "$ac_init_help" = "long"; then
1318   # Omit some internal or obsolete options to make the list less imposing.
1319   # This message is too long to be a string in the A/UX 3.1 sh.
1320   cat <<_ACEOF
1321 \`configure' configures llvm 2.9svn to adapt to many kinds of systems.
1322
1323 Usage: $0 [OPTION]... [VAR=VALUE]...
1324
1325 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1326 VAR=VALUE.  See below for descriptions of some of the useful variables.
1327
1328 Defaults for the options are specified in brackets.
1329
1330 Configuration:
1331   -h, --help              display this help and exit
1332       --help=short        display options specific to this package
1333       --help=recursive    display the short help of all the included packages
1334   -V, --version           display version information and exit
1335   -q, --quiet, --silent   do not print \`checking...' messages
1336       --cache-file=FILE   cache test results in FILE [disabled]
1337   -C, --config-cache      alias for \`--cache-file=config.cache'
1338   -n, --no-create         do not create output files
1339       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1340
1341 Installation directories:
1342   --prefix=PREFIX         install architecture-independent files in PREFIX
1343                           [$ac_default_prefix]
1344   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1345                           [PREFIX]
1346
1347 By default, \`make install' will install all the files in
1348 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1349 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1350 for instance \`--prefix=\$HOME'.
1351
1352 For better control, use the options below.
1353
1354 Fine tuning of the installation directories:
1355   --bindir=DIR           user executables [EPREFIX/bin]
1356   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1357   --libexecdir=DIR       program executables [EPREFIX/libexec]
1358   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1359   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1360   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1361   --libdir=DIR           object code libraries [EPREFIX/lib]
1362   --includedir=DIR       C header files [PREFIX/include]
1363   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1364   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1365   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1366   --infodir=DIR          info documentation [DATAROOTDIR/info]
1367   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1368   --mandir=DIR           man documentation [DATAROOTDIR/man]
1369   --docdir=DIR           documentation root [DATAROOTDIR/doc/-llvm-]
1370   --htmldir=DIR          html documentation [DOCDIR]
1371   --dvidir=DIR           dvi documentation [DOCDIR]
1372   --pdfdir=DIR           pdf documentation [DOCDIR]
1373   --psdir=DIR            ps documentation [DOCDIR]
1374 _ACEOF
1375
1376   cat <<\_ACEOF
1377
1378 System types:
1379   --build=BUILD     configure for building on BUILD [guessed]
1380   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1381   --target=TARGET   configure for building compilers for TARGET [HOST]
1382 _ACEOF
1383 fi
1384
1385 if test -n "$ac_init_help"; then
1386   case $ac_init_help in
1387      short | recursive ) echo "Configuration of llvm 2.9svn:";;
1388    esac
1389   cat <<\_ACEOF
1390
1391 Optional Features:
1392   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1393   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1394   --enable-optimized      Compile with optimizations enabled (default is NO)
1395   --enable-profiling      Compile with profiling enabled (default is NO)
1396   --enable-assertions     Compile with assertion checks enabled (default is
1397                           YES)
1398   --enable-expensive-checks
1399                           Compile with expensive debug checks enabled (default
1400                           is NO)
1401   --enable-debug-runtime  Build runtime libs with debug symbols (default is
1402                           NO)
1403   --enable-debug-symbols  Build compiler with debug symbols (default is NO if
1404                           optimization is on and YES if it's off)
1405   --enable-jit            Enable Just In Time Compiling (default is YES)
1406   --enable-doxygen        Build doxygen documentation (default is NO)
1407   --enable-threads        Use threads if available (default is YES)
1408   --enable-pic            Build LLVM with Position Independent Code (default
1409                           is YES)
1410   --enable-shared         Build a shared library and link tools against it
1411                           (default is NO)
1412   --enable-timestamps     Enable embedding timestamp information in build
1413                           (default is YES)
1414   --enable-targets        Build specific host targets: all or
1415                           target1,target2,... Valid targets are: host, x86,
1416                           x86_64, sparc, powerpc, alpha, arm, mips, spu,
1417                           pic16, xcore, msp430, systemz, blackfin, ptx, cbe,
1418                           and cpp (default=all)
1419   --enable-cbe-printf-a   Enable C Backend output with hex floating point via
1420                           %a (default is YES)
1421   --enable-bindings       Build specific language bindings:
1422                           all,auto,none,{binding-name} (default=auto)
1423   --enable-libffi         Check for the presence of libffi (default is NO)
1424   --enable-ltdl-install   install libltdl
1425
1426 Optional Packages:
1427   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1428   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1429   --with-llvmgccdir       Specify location of llvm-gcc install dir (default
1430                           searches PATH)
1431   --with-llvmgcc          Specify location of llvm-gcc driver (default
1432                           searches PATH)
1433   --with-llvmgxx          Specify location of llvm-g++ driver (default
1434                           searches PATH)
1435   --with-clang            Specify location of clang compiler (default is
1436                           --with-built-clang)
1437   --with-built-clang      Use the compiled Clang as the LLVM compiler
1438                           (default=check)
1439   --with-optimize-option  Select the compiler options to use for optimized
1440                           builds
1441   --with-extra-options    Specify additional options to compile LLVM with
1442   --with-ocaml-libdir     Specify install location for ocaml bindings (default
1443                           is stdlib)
1444   --with-c-include-dirs   Colon separated list of directories clang will
1445                           search for headers
1446   --with-cxx-include-root Directory with the libstdc++ headers.
1447   --with-cxx-include-arch Architecture of the libstdc++ headers.
1448   --with-cxx-include-32bit-dir
1449                           32 bit multilib dir.
1450   --with-cxx-include-64bit-dir
1451                           64 bit multilib directory.
1452   --with-binutils-include Specify path to binutils/include/ containing
1453                           plugin-api.h file for gold plugin.
1454   --with-tclinclude       directory where tcl headers are
1455   --with-llvmcc=<name>    Choose the LLVM capable compiler to use (llvm-gcc,
1456                           clang, or none; default=check)
1457   --with-udis86=<path>    Use udis86 external x86 disassembler library
1458   --with-oprofile=<prefix>
1459                           Tell OProfile >= 0.9.4 how to symbolize JIT output
1460
1461 Some influential environment variables:
1462   CC          C compiler command
1463   CFLAGS      C compiler flags
1464   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1465               nonstandard directory <lib dir>
1466   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1467               you have headers in a nonstandard directory <include dir>
1468   CPP         C preprocessor
1469   CXX         C++ compiler command
1470   CXXFLAGS    C++ compiler flags
1471
1472 Use these variables to override the choices made by `configure' or to help
1473 it to find libraries and programs with nonstandard names/locations.
1474
1475 Report bugs to <llvmbugs@cs.uiuc.edu>.
1476 _ACEOF
1477 ac_status=$?
1478 fi
1479
1480 if test "$ac_init_help" = "recursive"; then
1481   # If there are subdirs, report their specific --help.
1482   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1483     test -d "$ac_dir" || continue
1484     ac_builddir=.
1485
1486 case "$ac_dir" in
1487 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1488 *)
1489   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1490   # A ".." for each directory in $ac_dir_suffix.
1491   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1492   case $ac_top_builddir_sub in
1493   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1494   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1495   esac ;;
1496 esac
1497 ac_abs_top_builddir=$ac_pwd
1498 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1499 # for backward compatibility:
1500 ac_top_builddir=$ac_top_build_prefix
1501
1502 case $srcdir in
1503   .)  # We are building in place.
1504     ac_srcdir=.
1505     ac_top_srcdir=$ac_top_builddir_sub
1506     ac_abs_top_srcdir=$ac_pwd ;;
1507   [\\/]* | ?:[\\/]* )  # Absolute name.
1508     ac_srcdir=$srcdir$ac_dir_suffix;
1509     ac_top_srcdir=$srcdir
1510     ac_abs_top_srcdir=$srcdir ;;
1511   *) # Relative name.
1512     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1513     ac_top_srcdir=$ac_top_build_prefix$srcdir
1514     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1515 esac
1516 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1517
1518     cd "$ac_dir" || { ac_status=$?; continue; }
1519     # Check for guested configure.
1520     if test -f "$ac_srcdir/configure.gnu"; then
1521       echo &&
1522       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1523     elif test -f "$ac_srcdir/configure"; then
1524       echo &&
1525       $SHELL "$ac_srcdir/configure" --help=recursive
1526     else
1527       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1528     fi || ac_status=$?
1529     cd "$ac_pwd" || { ac_status=$?; break; }
1530   done
1531 fi
1532
1533 test -n "$ac_init_help" && exit $ac_status
1534 if $ac_init_version; then
1535   cat <<\_ACEOF
1536 llvm configure 2.9svn
1537 generated by GNU Autoconf 2.60
1538
1539 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1540 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1541 This configure script is free software; the Free Software Foundation
1542 gives unlimited permission to copy, distribute and modify it.
1543
1544 Copyright (c) 2003-2010 University of Illinois at Urbana-Champaign.
1545 _ACEOF
1546   exit
1547 fi
1548 cat >config.log <<_ACEOF
1549 This file contains any messages produced by compilers while
1550 running configure, to aid debugging if configure makes a mistake.
1551
1552 It was created by llvm $as_me 2.9svn, which was
1553 generated by GNU Autoconf 2.60.  Invocation command line was
1554
1555   $ $0 $@
1556
1557 _ACEOF
1558 exec 5>>config.log
1559 {
1560 cat <<_ASUNAME
1561 ## --------- ##
1562 ## Platform. ##
1563 ## --------- ##
1564
1565 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1566 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1567 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1568 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1569 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1570
1571 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1572 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1573
1574 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1575 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1576 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1577 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1578 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1579 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1580 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1581
1582 _ASUNAME
1583
1584 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1585 for as_dir in $PATH
1586 do
1587   IFS=$as_save_IFS
1588   test -z "$as_dir" && as_dir=.
1589   echo "PATH: $as_dir"
1590 done
1591 IFS=$as_save_IFS
1592
1593 } >&5
1594
1595 cat >&5 <<_ACEOF
1596
1597
1598 ## ----------- ##
1599 ## Core tests. ##
1600 ## ----------- ##
1601
1602 _ACEOF
1603
1604
1605 # Keep a trace of the command line.
1606 # Strip out --no-create and --no-recursion so they do not pile up.
1607 # Strip out --silent because we don't want to record it for future runs.
1608 # Also quote any args containing shell meta-characters.
1609 # Make two passes to allow for proper duplicate-argument suppression.
1610 ac_configure_args=
1611 ac_configure_args0=
1612 ac_configure_args1=
1613 ac_must_keep_next=false
1614 for ac_pass in 1 2
1615 do
1616   for ac_arg
1617   do
1618     case $ac_arg in
1619     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1620     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1621     | -silent | --silent | --silen | --sile | --sil)
1622       continue ;;
1623     *\'*)
1624       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1625     esac
1626     case $ac_pass in
1627     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1628     2)
1629       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1630       if test $ac_must_keep_next = true; then
1631         ac_must_keep_next=false # Got value, back to normal.
1632       else
1633         case $ac_arg in
1634           *=* | --config-cache | -C | -disable-* | --disable-* \
1635           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1636           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1637           | -with-* | --with-* | -without-* | --without-* | --x)
1638             case "$ac_configure_args0 " in
1639               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1640             esac
1641             ;;
1642           -* ) ac_must_keep_next=true ;;
1643         esac
1644       fi
1645       ac_configure_args="$ac_configure_args '$ac_arg'"
1646       ;;
1647     esac
1648   done
1649 done
1650 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1651 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1652
1653 # When interrupted or exit'd, cleanup temporary files, and complete
1654 # config.log.  We remove comments because anyway the quotes in there
1655 # would cause problems or look ugly.
1656 # WARNING: Use '\'' to represent an apostrophe within the trap.
1657 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1658 trap 'exit_status=$?
1659   # Save into config.log some information that might help in debugging.
1660   {
1661     echo
1662
1663     cat <<\_ASBOX
1664 ## ---------------- ##
1665 ## Cache variables. ##
1666 ## ---------------- ##
1667 _ASBOX
1668     echo
1669     # The following way of writing the cache mishandles newlines in values,
1670 (
1671   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1672     eval ac_val=\$$ac_var
1673     case $ac_val in #(
1674     *${as_nl}*)
1675       case $ac_var in #(
1676       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1677 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1678       esac
1679       case $ac_var in #(
1680       _ | IFS | as_nl) ;; #(
1681       *) $as_unset $ac_var ;;
1682       esac ;;
1683     esac
1684   done
1685   (set) 2>&1 |
1686     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1687     *${as_nl}ac_space=\ *)
1688       sed -n \
1689         "s/'\''/'\''\\\\'\'''\''/g;
1690           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1691       ;; #(
1692     *)
1693       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1694       ;;
1695     esac |
1696     sort
1697 )
1698     echo
1699
1700     cat <<\_ASBOX
1701 ## ----------------- ##
1702 ## Output variables. ##
1703 ## ----------------- ##
1704 _ASBOX
1705     echo
1706     for ac_var in $ac_subst_vars
1707     do
1708       eval ac_val=\$$ac_var
1709       case $ac_val in
1710       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1711       esac
1712       echo "$ac_var='\''$ac_val'\''"
1713     done | sort
1714     echo
1715
1716     if test -n "$ac_subst_files"; then
1717       cat <<\_ASBOX
1718 ## ------------------- ##
1719 ## File substitutions. ##
1720 ## ------------------- ##
1721 _ASBOX
1722       echo
1723       for ac_var in $ac_subst_files
1724       do
1725         eval ac_val=\$$ac_var
1726         case $ac_val in
1727         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1728         esac
1729         echo "$ac_var='\''$ac_val'\''"
1730       done | sort
1731       echo
1732     fi
1733
1734     if test -s confdefs.h; then
1735       cat <<\_ASBOX
1736 ## ----------- ##
1737 ## confdefs.h. ##
1738 ## ----------- ##
1739 _ASBOX
1740       echo
1741       cat confdefs.h
1742       echo
1743     fi
1744     test "$ac_signal" != 0 &&
1745       echo "$as_me: caught signal $ac_signal"
1746     echo "$as_me: exit $exit_status"
1747   } >&5
1748   rm -f core *.core core.conftest.* &&
1749     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1750     exit $exit_status
1751 ' 0
1752 for ac_signal in 1 2 13 15; do
1753   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1754 done
1755 ac_signal=0
1756
1757 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1758 rm -f -r conftest* confdefs.h
1759
1760 # Predefined preprocessor variables.
1761
1762 cat >>confdefs.h <<_ACEOF
1763 #define PACKAGE_NAME "$PACKAGE_NAME"
1764 _ACEOF
1765
1766
1767 cat >>confdefs.h <<_ACEOF
1768 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1769 _ACEOF
1770
1771
1772 cat >>confdefs.h <<_ACEOF
1773 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1774 _ACEOF
1775
1776
1777 cat >>confdefs.h <<_ACEOF
1778 #define PACKAGE_STRING "$PACKAGE_STRING"
1779 _ACEOF
1780
1781
1782 cat >>confdefs.h <<_ACEOF
1783 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1784 _ACEOF
1785
1786
1787 # Let the site file select an alternate cache file if it wants to.
1788 # Prefer explicitly selected file to automatically selected ones.
1789 if test -n "$CONFIG_SITE"; then
1790   set x "$CONFIG_SITE"
1791 elif test "x$prefix" != xNONE; then
1792   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1793 else
1794   set x "$ac_default_prefix/share/config.site" \
1795         "$ac_default_prefix/etc/config.site"
1796 fi
1797 shift
1798 for ac_site_file
1799 do
1800   if test -r "$ac_site_file"; then
1801     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1802 echo "$as_me: loading site script $ac_site_file" >&6;}
1803     sed 's/^/| /' "$ac_site_file" >&5
1804     . "$ac_site_file"
1805   fi
1806 done
1807
1808 if test -r "$cache_file"; then
1809   # Some versions of bash will fail to source /dev/null (special
1810   # files actually), so we avoid doing that.
1811   if test -f "$cache_file"; then
1812     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1813 echo "$as_me: loading cache $cache_file" >&6;}
1814     case $cache_file in
1815       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1816       *)                      . "./$cache_file";;
1817     esac
1818   fi
1819 else
1820   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1821 echo "$as_me: creating cache $cache_file" >&6;}
1822   >$cache_file
1823 fi
1824
1825 # Check that the precious variables saved in the cache have kept the same
1826 # value.
1827 ac_cache_corrupted=false
1828 for ac_var in $ac_precious_vars; do
1829   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1830   eval ac_new_set=\$ac_env_${ac_var}_set
1831   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1832   eval ac_new_val=\$ac_env_${ac_var}_value
1833   case $ac_old_set,$ac_new_set in
1834     set,)
1835       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1836 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1837       ac_cache_corrupted=: ;;
1838     ,set)
1839       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1840 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1841       ac_cache_corrupted=: ;;
1842     ,);;
1843     *)
1844       if test "x$ac_old_val" != "x$ac_new_val"; then
1845         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1846 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1847         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1848 echo "$as_me:   former value:  $ac_old_val" >&2;}
1849         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1850 echo "$as_me:   current value: $ac_new_val" >&2;}
1851         ac_cache_corrupted=:
1852       fi;;
1853   esac
1854   # Pass precious variables to config.status.
1855   if test "$ac_new_set" = set; then
1856     case $ac_new_val in
1857     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1858     *) ac_arg=$ac_var=$ac_new_val ;;
1859     esac
1860     case " $ac_configure_args " in
1861       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1862       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1863     esac
1864   fi
1865 done
1866 if $ac_cache_corrupted; then
1867   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1868 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1869   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1870 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1871    { (exit 1); exit 1; }; }
1872 fi
1873
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898 ac_ext=c
1899 ac_cpp='$CPP $CPPFLAGS'
1900 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1901 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1902 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1903
1904
1905
1906 LLVM_COPYRIGHT="Copyright (c) 2003-2010 University of Illinois at Urbana-Champaign."
1907
1908
1909
1910
1911
1912
1913
1914 ac_aux_dir=
1915 for ac_dir in autoconf "$srcdir"/autoconf; do
1916   if test -f "$ac_dir/install-sh"; then
1917     ac_aux_dir=$ac_dir
1918     ac_install_sh="$ac_aux_dir/install-sh -c"
1919     break
1920   elif test -f "$ac_dir/install.sh"; then
1921     ac_aux_dir=$ac_dir
1922     ac_install_sh="$ac_aux_dir/install.sh -c"
1923     break
1924   elif test -f "$ac_dir/shtool"; then
1925     ac_aux_dir=$ac_dir
1926     ac_install_sh="$ac_aux_dir/shtool install -c"
1927     break
1928   fi
1929 done
1930 if test -z "$ac_aux_dir"; then
1931   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
1932 echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
1933    { (exit 1); exit 1; }; }
1934 fi
1935
1936 # These three variables are undocumented and unsupported,
1937 # and are intended to be withdrawn in a future Autoconf release.
1938 # They can cause serious problems if a builder's source tree is in a directory
1939 # whose full name contains unusual characters.
1940 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
1941 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
1942 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
1943
1944
1945
1946 if test ${srcdir} != "." ; then
1947   if test -f ${srcdir}/include/llvm/Config/config.h ; then
1948     { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
1949 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1950    { (exit 1); exit 1; }; }
1951   fi
1952 fi
1953
1954
1955
1956 if test -d ${srcdir}/projects/llvm-gcc ; then
1957   subdirs="$subdirs projects/llvm-gcc"
1958
1959 fi
1960
1961 if test -d ${srcdir}/projects/test-suite ; then
1962   subdirs="$subdirs projects/test-suite"
1963
1964 fi
1965
1966 if test -d ${srcdir}/projects/llvm-test ; then
1967   subdirs="$subdirs projects/llvm-test"
1968
1969 fi
1970
1971 if test -d ${srcdir}/projects/poolalloc ; then
1972   subdirs="$subdirs projects/poolalloc"
1973
1974 fi
1975
1976 if test -d ${srcdir}/projects/llvm-poolalloc ; then
1977   subdirs="$subdirs projects/llvm-poolalloc"
1978
1979 fi
1980
1981 for i in `ls ${srcdir}/projects`
1982 do
1983   if test -d ${srcdir}/projects/${i} ; then
1984     case ${i} in
1985       sample)       subdirs="$subdirs projects/sample"
1986     ;;
1987       privbracket)  subdirs="$subdirs projects/privbracket"
1988  ;;
1989       llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
1990  ;;
1991       llvm-reopt)   subdirs="$subdirs projects/llvm-reopt"
1992 ;;
1993       llvm-java)    subdirs="$subdirs projects/llvm-java"
1994  ;;
1995       llvm-tv)      subdirs="$subdirs projects/llvm-tv"
1996    ;;
1997       safecode)     subdirs="$subdirs projects/safecode"
1998  ;;
1999       llvm-kernel)  subdirs="$subdirs projects/llvm-kernel"
2000  ;;
2001       llvm-gcc)       ;;
2002       test-suite)     ;;
2003       llvm-test)      ;;
2004       poolalloc)      ;;
2005       llvm-poolalloc) ;;
2006       *)
2007         { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
2008 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
2009         ;;
2010     esac
2011   fi
2012 done
2013
2014
2015 # Make sure we can run config.sub.
2016 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2017   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2018 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2019    { (exit 1); exit 1; }; }
2020
2021 { echo "$as_me:$LINENO: checking build system type" >&5
2022 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2023 if test "${ac_cv_build+set}" = set; then
2024   echo $ECHO_N "(cached) $ECHO_C" >&6
2025 else
2026   ac_build_alias=$build_alias
2027 test "x$ac_build_alias" = x &&
2028   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2029 test "x$ac_build_alias" = x &&
2030   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2031 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2032    { (exit 1); exit 1; }; }
2033 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2034   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2035 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2036    { (exit 1); exit 1; }; }
2037
2038 fi
2039 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2040 echo "${ECHO_T}$ac_cv_build" >&6; }
2041 case $ac_cv_build in
2042 *-*-*) ;;
2043 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2044 echo "$as_me: error: invalid value of canonical build" >&2;}
2045    { (exit 1); exit 1; }; };;
2046 esac
2047 build=$ac_cv_build
2048 ac_save_IFS=$IFS; IFS='-'
2049 set x $ac_cv_build
2050 shift
2051 build_cpu=$1
2052 build_vendor=$2
2053 shift; shift
2054 # Remember, the first character of IFS is used to create $*,
2055 # except with old shells:
2056 build_os=$*
2057 IFS=$ac_save_IFS
2058 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2059
2060
2061 { echo "$as_me:$LINENO: checking host system type" >&5
2062 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2063 if test "${ac_cv_host+set}" = set; then
2064   echo $ECHO_N "(cached) $ECHO_C" >&6
2065 else
2066   if test "x$host_alias" = x; then
2067   ac_cv_host=$ac_cv_build
2068 else
2069   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2070     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2071 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2072    { (exit 1); exit 1; }; }
2073 fi
2074
2075 fi
2076 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2077 echo "${ECHO_T}$ac_cv_host" >&6; }
2078 case $ac_cv_host in
2079 *-*-*) ;;
2080 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2081 echo "$as_me: error: invalid value of canonical host" >&2;}
2082    { (exit 1); exit 1; }; };;
2083 esac
2084 host=$ac_cv_host
2085 ac_save_IFS=$IFS; IFS='-'
2086 set x $ac_cv_host
2087 shift
2088 host_cpu=$1
2089 host_vendor=$2
2090 shift; shift
2091 # Remember, the first character of IFS is used to create $*,
2092 # except with old shells:
2093 host_os=$*
2094 IFS=$ac_save_IFS
2095 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2096
2097
2098 { echo "$as_me:$LINENO: checking target system type" >&5
2099 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2100 if test "${ac_cv_target+set}" = set; then
2101   echo $ECHO_N "(cached) $ECHO_C" >&6
2102 else
2103   if test "x$target_alias" = x; then
2104   ac_cv_target=$ac_cv_host
2105 else
2106   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2107     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2108 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2109    { (exit 1); exit 1; }; }
2110 fi
2111
2112 fi
2113 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2114 echo "${ECHO_T}$ac_cv_target" >&6; }
2115 case $ac_cv_target in
2116 *-*-*) ;;
2117 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2118 echo "$as_me: error: invalid value of canonical target" >&2;}
2119    { (exit 1); exit 1; }; };;
2120 esac
2121 target=$ac_cv_target
2122 ac_save_IFS=$IFS; IFS='-'
2123 set x $ac_cv_target
2124 shift
2125 target_cpu=$1
2126 target_vendor=$2
2127 shift; shift
2128 # Remember, the first character of IFS is used to create $*,
2129 # except with old shells:
2130 target_os=$*
2131 IFS=$ac_save_IFS
2132 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2133
2134
2135 # The aliases save the names the user supplied, while $host etc.
2136 # will get canonicalized.
2137 test -n "$target_alias" &&
2138   test "$program_prefix$program_suffix$program_transform_name" = \
2139     NONENONEs,x,x, &&
2140   program_prefix=${target_alias}-
2141
2142 { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
2143 echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
2144 if test "${llvm_cv_os_type+set}" = set; then
2145   echo $ECHO_N "(cached) $ECHO_C" >&6
2146 else
2147   case $host in
2148   *-*-aix*)
2149     llvm_cv_link_all_option="-Wl,--whole-archive"
2150     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2151     llvm_cv_os_type="AIX"
2152     llvm_cv_platform_type="Unix" ;;
2153   *-*-irix*)
2154     llvm_cv_link_all_option="-Wl,--whole-archive"
2155     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2156     llvm_cv_os_type="IRIX"
2157     llvm_cv_platform_type="Unix" ;;
2158   *-*-cygwin*)
2159     llvm_cv_link_all_option="-Wl,--whole-archive"
2160     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2161     llvm_cv_os_type="Cygwin"
2162     llvm_cv_platform_type="Unix" ;;
2163   *-*-darwin*)
2164     llvm_cv_link_all_option="-Wl,-all_load"
2165     llvm_cv_no_link_all_option="-Wl,-noall_load"
2166     llvm_cv_os_type="Darwin"
2167     llvm_cv_platform_type="Unix" ;;
2168   *-*-minix*)
2169     llvm_cv_link_all_option="-Wl,-all_load"
2170     llvm_cv_no_link_all_option="-Wl,-noall_load"
2171     llvm_cv_os_type="Minix"
2172     llvm_cv_platform_type="Unix" ;;
2173   *-*-freebsd*)
2174     llvm_cv_link_all_option="-Wl,--whole-archive"
2175     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2176     llvm_cv_os_type="FreeBSD"
2177     llvm_cv_platform_type="Unix" ;;
2178   *-*-openbsd*)
2179     llvm_cv_link_all_option="-Wl,--whole-archive"
2180     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2181     llvm_cv_os_type="OpenBSD"
2182     llvm_cv_platform_type="Unix" ;;
2183   *-*-netbsd*)
2184     llvm_cv_link_all_option="-Wl,--whole-archive"
2185     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2186     llvm_cv_os_type="NetBSD"
2187     llvm_cv_platform_type="Unix" ;;
2188   *-*-dragonfly*)
2189     llvm_cv_link_all_option="-Wl,--whole-archive"
2190     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2191     llvm_cv_os_type="DragonFly"
2192     llvm_cv_platform_type="Unix" ;;
2193   *-*-hpux*)
2194     llvm_cv_link_all_option="-Wl,--whole-archive"
2195     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2196     llvm_cv_os_type="HP-UX"
2197     llvm_cv_platform_type="Unix" ;;
2198   *-*-interix*)
2199     llvm_cv_link_all_option="-Wl,--whole-archive"
2200     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2201     llvm_cv_os_type="Interix"
2202     llvm_cv_platform_type="Unix" ;;
2203   *-*-linux*)
2204     llvm_cv_link_all_option="-Wl,--whole-archive"
2205     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2206     llvm_cv_os_type="Linux"
2207     llvm_cv_platform_type="Unix" ;;
2208   *-*-solaris*)
2209     llvm_cv_link_all_option="-Wl,-z,allextract"
2210     llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
2211     llvm_cv_os_type="SunOS"
2212     llvm_cv_platform_type="Unix" ;;
2213   *-*-auroraux*)
2214     llvm_cv_link_all_option="-Wl,-z,allextract"
2215     llvm_cv_link_all_option="-Wl,-z,defaultextract"
2216     llvm_cv_os_type="AuroraUX"
2217     llvm_cv_platform_type="Unix" ;;
2218   *-*-win32*)
2219     llvm_cv_link_all_option="-Wl,--whole-archive"
2220     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2221     llvm_cv_os_type="Win32"
2222     llvm_cv_platform_type="Win32" ;;
2223   *-*-mingw*)
2224     llvm_cv_link_all_option="-Wl,--whole-archive"
2225     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2226     llvm_cv_os_type="MingW"
2227     llvm_cv_platform_type="Win32" ;;
2228   *-*-haiku*)
2229     llvm_cv_link_all_option="-Wl,--whole-archive"
2230     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2231     llvm_cv_os_type="Haiku"
2232     llvm_cv_platform_type="Unix" ;;
2233   *-unknown-eabi*)
2234     llvm_cv_link_all_option="-Wl,--whole-archive"
2235     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2236     llvm_cv_os_type="Freestanding"
2237     llvm_cv_platform_type="Unix" ;;
2238   *-unknown-elf*)
2239     llvm_cv_link_all_option="-Wl,--whole-archive"
2240     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2241     llvm_cv_os_type="Freestanding"
2242     llvm_cv_platform_type="Unix" ;;
2243   *)
2244     llvm_cv_link_all_option=""
2245     llvm_cv_no_link_all_option=""
2246     llvm_cv_os_type="Unknown"
2247     llvm_cv_platform_type="Unknown" ;;
2248 esac
2249 fi
2250 { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
2251 echo "${ECHO_T}$llvm_cv_os_type" >&6; }
2252
2253 { echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
2254 echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
2255 if test "${llvm_cv_target_os_type+set}" = set; then
2256   echo $ECHO_N "(cached) $ECHO_C" >&6
2257 else
2258   case $target in
2259   *-*-aix*)
2260     llvm_cv_target_os_type="AIX" ;;
2261   *-*-irix*)
2262     llvm_cv_target_os_type="IRIX" ;;
2263   *-*-cygwin*)
2264     llvm_cv_target_os_type="Cygwin" ;;
2265   *-*-darwin*)
2266     llvm_cv_target_os_type="Darwin" ;;
2267   *-*-minix*)
2268     llvm_cv_target_os_type="Minix" ;;
2269   *-*-freebsd*)
2270     llvm_cv_target_os_type="FreeBSD" ;;
2271   *-*-openbsd*)
2272     llvm_cv_target_os_type="OpenBSD" ;;
2273   *-*-netbsd*)
2274     llvm_cv_target_os_type="NetBSD" ;;
2275   *-*-dragonfly*)
2276     llvm_cv_target_os_type="DragonFly" ;;
2277   *-*-hpux*)
2278     llvm_cv_target_os_type="HP-UX" ;;
2279   *-*-interix*)
2280     llvm_cv_target_os_type="Interix" ;;
2281   *-*-linux*)
2282     llvm_cv_target_os_type="Linux" ;;
2283   *-*-solaris*)
2284     llvm_cv_target_os_type="SunOS" ;;
2285   *-*-auroraux*)
2286     llvm_cv_target_os_type="AuroraUX" ;;
2287   *-*-win32*)
2288     llvm_cv_target_os_type="Win32" ;;
2289   *-*-mingw*)
2290     llvm_cv_target_os_type="MingW" ;;
2291   *-*-haiku*)
2292     llvm_cv_target_os_type="Haiku" ;;
2293   *-unknown-eabi*)
2294     llvm_cv_target_os_type="Freestanding" ;;
2295   *)
2296     llvm_cv_target_os_type="Unknown" ;;
2297 esac
2298 fi
2299 { echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
2300 echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
2301
2302 if test "$llvm_cv_os_type" = "Unknown" ; then
2303   { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
2304 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
2305    { (exit 1); exit 1; }; }
2306 fi
2307
2308 OS=$llvm_cv_os_type
2309
2310 HOST_OS=$llvm_cv_os_type
2311
2312 TARGET_OS=$llvm_cv_target_os_type
2313
2314
2315 LINKALL=$llvm_cv_link_all_option
2316
2317 NOLINKALL=$llvm_cv_no_link_all_option
2318
2319
2320 case $llvm_cv_platform_type in
2321   Unix)
2322
2323 cat >>confdefs.h <<\_ACEOF
2324 #define LLVM_ON_UNIX 1
2325 _ACEOF
2326
2327     LLVM_ON_UNIX=1
2328
2329     LLVM_ON_WIN32=0
2330
2331     ;;
2332   Win32)
2333
2334 cat >>confdefs.h <<\_ACEOF
2335 #define LLVM_ON_WIN32 1
2336 _ACEOF
2337
2338     LLVM_ON_UNIX=0
2339
2340     LLVM_ON_WIN32=1
2341
2342     ;;
2343 esac
2344
2345 { echo "$as_me:$LINENO: checking target architecture" >&5
2346 echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
2347 if test "${llvm_cv_target_arch+set}" = set; then
2348   echo $ECHO_N "(cached) $ECHO_C" >&6
2349 else
2350   case $target in
2351   i?86-*)                 llvm_cv_target_arch="x86" ;;
2352   amd64-* | x86_64-*)     llvm_cv_target_arch="x86_64" ;;
2353   sparc*-*)               llvm_cv_target_arch="Sparc" ;;
2354   powerpc*-*)             llvm_cv_target_arch="PowerPC" ;;
2355   alpha*-*)               llvm_cv_target_arch="Alpha" ;;
2356   arm*-*)                 llvm_cv_target_arch="ARM" ;;
2357   mips-*)                 llvm_cv_target_arch="Mips" ;;
2358   pic16-*)                llvm_cv_target_arch="PIC16" ;;
2359   xcore-*)                llvm_cv_target_arch="XCore" ;;
2360   msp430-*)               llvm_cv_target_arch="MSP430" ;;
2361   s390x-*)                llvm_cv_target_arch="SystemZ" ;;
2362   bfin-*)                 llvm_cv_target_arch="Blackfin" ;;
2363   mblaze-*)               llvm_cv_target_arch="MBlaze" ;;
2364   ptx-*)                  llvm_cv_target_arch="PTX" ;;
2365   *)                      llvm_cv_target_arch="Unknown" ;;
2366 esac
2367 fi
2368 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
2369 echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
2370
2371 if test "$llvm_cv_target_arch" = "Unknown" ; then
2372   { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
2373 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
2374 fi
2375
2376 # Determine the LLVM native architecture for the target
2377 case "$llvm_cv_target_arch" in
2378     x86)     LLVM_NATIVE_ARCH="X86" ;;
2379     x86_64)  LLVM_NATIVE_ARCH="X86" ;;
2380     *)       LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
2381 esac
2382
2383 ARCH=$llvm_cv_target_arch
2384
2385
2386 ac_ext=c
2387 ac_cpp='$CPP $CPPFLAGS'
2388 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2389 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2390 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2391 if test -n "$ac_tool_prefix"; then
2392   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2393 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2394 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2395 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2396 if test "${ac_cv_prog_CC+set}" = set; then
2397   echo $ECHO_N "(cached) $ECHO_C" >&6
2398 else
2399   if test -n "$CC"; then
2400   ac_cv_prog_CC="$CC" # Let the user override the test.
2401 else
2402 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2403 for as_dir in $PATH
2404 do
2405   IFS=$as_save_IFS
2406   test -z "$as_dir" && as_dir=.
2407   for ac_exec_ext in '' $ac_executable_extensions; do
2408   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2409     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2410     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2411     break 2
2412   fi
2413 done
2414 done
2415 IFS=$as_save_IFS
2416
2417 fi
2418 fi
2419 CC=$ac_cv_prog_CC
2420 if test -n "$CC"; then
2421   { echo "$as_me:$LINENO: result: $CC" >&5
2422 echo "${ECHO_T}$CC" >&6; }
2423 else
2424   { echo "$as_me:$LINENO: result: no" >&5
2425 echo "${ECHO_T}no" >&6; }
2426 fi
2427
2428
2429 fi
2430 if test -z "$ac_cv_prog_CC"; then
2431   ac_ct_CC=$CC
2432   # Extract the first word of "gcc", so it can be a program name with args.
2433 set dummy gcc; ac_word=$2
2434 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2435 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2436 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2437   echo $ECHO_N "(cached) $ECHO_C" >&6
2438 else
2439   if test -n "$ac_ct_CC"; then
2440   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2441 else
2442 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2443 for as_dir in $PATH
2444 do
2445   IFS=$as_save_IFS
2446   test -z "$as_dir" && as_dir=.
2447   for ac_exec_ext in '' $ac_executable_extensions; do
2448   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2449     ac_cv_prog_ac_ct_CC="gcc"
2450     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2451     break 2
2452   fi
2453 done
2454 done
2455 IFS=$as_save_IFS
2456
2457 fi
2458 fi
2459 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2460 if test -n "$ac_ct_CC"; then
2461   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2462 echo "${ECHO_T}$ac_ct_CC" >&6; }
2463 else
2464   { echo "$as_me:$LINENO: result: no" >&5
2465 echo "${ECHO_T}no" >&6; }
2466 fi
2467
2468   if test "x$ac_ct_CC" = x; then
2469     CC=""
2470   else
2471     case $cross_compiling:$ac_tool_warned in
2472 yes:)
2473 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2474 whose name does not start with the host triplet.  If you think this
2475 configuration is useful to you, please write to autoconf@gnu.org." >&5
2476 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2477 whose name does not start with the host triplet.  If you think this
2478 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2479 ac_tool_warned=yes ;;
2480 esac
2481     CC=$ac_ct_CC
2482   fi
2483 else
2484   CC="$ac_cv_prog_CC"
2485 fi
2486
2487 if test -z "$CC"; then
2488           if test -n "$ac_tool_prefix"; then
2489     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2490 set dummy ${ac_tool_prefix}cc; ac_word=$2
2491 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2492 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2493 if test "${ac_cv_prog_CC+set}" = set; then
2494   echo $ECHO_N "(cached) $ECHO_C" >&6
2495 else
2496   if test -n "$CC"; then
2497   ac_cv_prog_CC="$CC" # Let the user override the test.
2498 else
2499 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2500 for as_dir in $PATH
2501 do
2502   IFS=$as_save_IFS
2503   test -z "$as_dir" && as_dir=.
2504   for ac_exec_ext in '' $ac_executable_extensions; do
2505   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2506     ac_cv_prog_CC="${ac_tool_prefix}cc"
2507     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2508     break 2
2509   fi
2510 done
2511 done
2512 IFS=$as_save_IFS
2513
2514 fi
2515 fi
2516 CC=$ac_cv_prog_CC
2517 if test -n "$CC"; then
2518   { echo "$as_me:$LINENO: result: $CC" >&5
2519 echo "${ECHO_T}$CC" >&6; }
2520 else
2521   { echo "$as_me:$LINENO: result: no" >&5
2522 echo "${ECHO_T}no" >&6; }
2523 fi
2524
2525
2526   fi
2527 fi
2528 if test -z "$CC"; then
2529   # Extract the first word of "cc", so it can be a program name with args.
2530 set dummy cc; ac_word=$2
2531 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2532 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2533 if test "${ac_cv_prog_CC+set}" = set; then
2534   echo $ECHO_N "(cached) $ECHO_C" >&6
2535 else
2536   if test -n "$CC"; then
2537   ac_cv_prog_CC="$CC" # Let the user override the test.
2538 else
2539   ac_prog_rejected=no
2540 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2541 for as_dir in $PATH
2542 do
2543   IFS=$as_save_IFS
2544   test -z "$as_dir" && as_dir=.
2545   for ac_exec_ext in '' $ac_executable_extensions; do
2546   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2547     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2548        ac_prog_rejected=yes
2549        continue
2550      fi
2551     ac_cv_prog_CC="cc"
2552     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2553     break 2
2554   fi
2555 done
2556 done
2557 IFS=$as_save_IFS
2558
2559 if test $ac_prog_rejected = yes; then
2560   # We found a bogon in the path, so make sure we never use it.
2561   set dummy $ac_cv_prog_CC
2562   shift
2563   if test $# != 0; then
2564     # We chose a different compiler from the bogus one.
2565     # However, it has the same basename, so the bogon will be chosen
2566     # first if we set CC to just the basename; use the full file name.
2567     shift
2568     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2569   fi
2570 fi
2571 fi
2572 fi
2573 CC=$ac_cv_prog_CC
2574 if test -n "$CC"; then
2575   { echo "$as_me:$LINENO: result: $CC" >&5
2576 echo "${ECHO_T}$CC" >&6; }
2577 else
2578   { echo "$as_me:$LINENO: result: no" >&5
2579 echo "${ECHO_T}no" >&6; }
2580 fi
2581
2582
2583 fi
2584 if test -z "$CC"; then
2585   if test -n "$ac_tool_prefix"; then
2586   for ac_prog in cl.exe
2587   do
2588     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2589 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2590 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2591 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2592 if test "${ac_cv_prog_CC+set}" = set; then
2593   echo $ECHO_N "(cached) $ECHO_C" >&6
2594 else
2595   if test -n "$CC"; then
2596   ac_cv_prog_CC="$CC" # Let the user override the test.
2597 else
2598 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2599 for as_dir in $PATH
2600 do
2601   IFS=$as_save_IFS
2602   test -z "$as_dir" && as_dir=.
2603   for ac_exec_ext in '' $ac_executable_extensions; do
2604   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2605     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2606     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2607     break 2
2608   fi
2609 done
2610 done
2611 IFS=$as_save_IFS
2612
2613 fi
2614 fi
2615 CC=$ac_cv_prog_CC
2616 if test -n "$CC"; then
2617   { echo "$as_me:$LINENO: result: $CC" >&5
2618 echo "${ECHO_T}$CC" >&6; }
2619 else
2620   { echo "$as_me:$LINENO: result: no" >&5
2621 echo "${ECHO_T}no" >&6; }
2622 fi
2623
2624
2625     test -n "$CC" && break
2626   done
2627 fi
2628 if test -z "$CC"; then
2629   ac_ct_CC=$CC
2630   for ac_prog in cl.exe
2631 do
2632   # Extract the first word of "$ac_prog", so it can be a program name with args.
2633 set dummy $ac_prog; ac_word=$2
2634 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2635 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2636 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2637   echo $ECHO_N "(cached) $ECHO_C" >&6
2638 else
2639   if test -n "$ac_ct_CC"; then
2640   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2641 else
2642 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2643 for as_dir in $PATH
2644 do
2645   IFS=$as_save_IFS
2646   test -z "$as_dir" && as_dir=.
2647   for ac_exec_ext in '' $ac_executable_extensions; do
2648   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2649     ac_cv_prog_ac_ct_CC="$ac_prog"
2650     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2651     break 2
2652   fi
2653 done
2654 done
2655 IFS=$as_save_IFS
2656
2657 fi
2658 fi
2659 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2660 if test -n "$ac_ct_CC"; then
2661   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2662 echo "${ECHO_T}$ac_ct_CC" >&6; }
2663 else
2664   { echo "$as_me:$LINENO: result: no" >&5
2665 echo "${ECHO_T}no" >&6; }
2666 fi
2667
2668
2669   test -n "$ac_ct_CC" && break
2670 done
2671
2672   if test "x$ac_ct_CC" = x; then
2673     CC=""
2674   else
2675     case $cross_compiling:$ac_tool_warned in
2676 yes:)
2677 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2678 whose name does not start with the host triplet.  If you think this
2679 configuration is useful to you, please write to autoconf@gnu.org." >&5
2680 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2681 whose name does not start with the host triplet.  If you think this
2682 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2683 ac_tool_warned=yes ;;
2684 esac
2685     CC=$ac_ct_CC
2686   fi
2687 fi
2688
2689 fi
2690
2691
2692 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2693 See \`config.log' for more details." >&5
2694 echo "$as_me: error: no acceptable C compiler found in \$PATH
2695 See \`config.log' for more details." >&2;}
2696    { (exit 1); exit 1; }; }
2697
2698 # Provide some information about the compiler.
2699 echo "$as_me:$LINENO: checking for C compiler version" >&5
2700 ac_compiler=`set X $ac_compile; echo $2`
2701 { (ac_try="$ac_compiler --version >&5"
2702 case "(($ac_try" in
2703   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2704   *) ac_try_echo=$ac_try;;
2705 esac
2706 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2707   (eval "$ac_compiler --version >&5") 2>&5
2708   ac_status=$?
2709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2710   (exit $ac_status); }
2711 { (ac_try="$ac_compiler -v >&5"
2712 case "(($ac_try" in
2713   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2714   *) ac_try_echo=$ac_try;;
2715 esac
2716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2717   (eval "$ac_compiler -v >&5") 2>&5
2718   ac_status=$?
2719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2720   (exit $ac_status); }
2721 { (ac_try="$ac_compiler -V >&5"
2722 case "(($ac_try" in
2723   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2724   *) ac_try_echo=$ac_try;;
2725 esac
2726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2727   (eval "$ac_compiler -V >&5") 2>&5
2728   ac_status=$?
2729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2730   (exit $ac_status); }
2731
2732 cat >conftest.$ac_ext <<_ACEOF
2733 /* confdefs.h.  */
2734 _ACEOF
2735 cat confdefs.h >>conftest.$ac_ext
2736 cat >>conftest.$ac_ext <<_ACEOF
2737 /* end confdefs.h.  */
2738
2739 int
2740 main ()
2741 {
2742
2743   ;
2744   return 0;
2745 }
2746 _ACEOF
2747 ac_clean_files_save=$ac_clean_files
2748 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2749 # Try to create an executable without -o first, disregard a.out.
2750 # It will help us diagnose broken compilers, and finding out an intuition
2751 # of exeext.
2752 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2753 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2754 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2755 #
2756 # List of possible output files, starting from the most likely.
2757 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2758 # only as a last resort.  b.out is created by i960 compilers.
2759 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2760 #
2761 # The IRIX 6 linker writes into existing files which may not be
2762 # executable, retaining their permissions.  Remove them first so a
2763 # subsequent execution test works.
2764 ac_rmfiles=
2765 for ac_file in $ac_files
2766 do
2767   case $ac_file in
2768     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2769     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2770   esac
2771 done
2772 rm -f $ac_rmfiles
2773
2774 if { (ac_try="$ac_link_default"
2775 case "(($ac_try" in
2776   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2777   *) ac_try_echo=$ac_try;;
2778 esac
2779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2780   (eval "$ac_link_default") 2>&5
2781   ac_status=$?
2782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2783   (exit $ac_status); }; then
2784   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2785 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2786 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2787 # so that the user can short-circuit this test for compilers unknown to
2788 # Autoconf.
2789 for ac_file in $ac_files
2790 do
2791   test -f "$ac_file" || continue
2792   case $ac_file in
2793     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2794         ;;
2795     [ab].out )
2796         # We found the default executable, but exeext='' is most
2797         # certainly right.
2798         break;;
2799     *.* )
2800         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2801         then :; else
2802            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2803         fi
2804         # We set ac_cv_exeext here because the later test for it is not
2805         # safe: cross compilers may not add the suffix if given an `-o'
2806         # argument, so we may need to know it at that point already.
2807         # Even if this section looks crufty: it has the advantage of
2808         # actually working.
2809         break;;
2810     * )
2811         break;;
2812   esac
2813 done
2814 test "$ac_cv_exeext" = no && ac_cv_exeext=
2815
2816 else
2817   echo "$as_me: failed program was:" >&5
2818 sed 's/^/| /' conftest.$ac_ext >&5
2819
2820 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2821 See \`config.log' for more details." >&5
2822 echo "$as_me: error: C compiler cannot create executables
2823 See \`config.log' for more details." >&2;}
2824    { (exit 77); exit 77; }; }
2825 fi
2826
2827 ac_exeext=$ac_cv_exeext
2828 { echo "$as_me:$LINENO: result: $ac_file" >&5
2829 echo "${ECHO_T}$ac_file" >&6; }
2830
2831 # Check that the compiler produces executables we can run.  If not, either
2832 # the compiler is broken, or we cross compile.
2833 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2834 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2835 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2836 # If not cross compiling, check that we can run a simple program.
2837 if test "$cross_compiling" != yes; then
2838   if { ac_try='./$ac_file'
2839   { (case "(($ac_try" in
2840   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2841   *) ac_try_echo=$ac_try;;
2842 esac
2843 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2844   (eval "$ac_try") 2>&5
2845   ac_status=$?
2846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2847   (exit $ac_status); }; }; then
2848     cross_compiling=no
2849   else
2850     if test "$cross_compiling" = maybe; then
2851         cross_compiling=yes
2852     else
2853         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2854 If you meant to cross compile, use \`--host'.
2855 See \`config.log' for more details." >&5
2856 echo "$as_me: error: cannot run C compiled programs.
2857 If you meant to cross compile, use \`--host'.
2858 See \`config.log' for more details." >&2;}
2859    { (exit 1); exit 1; }; }
2860     fi
2861   fi
2862 fi
2863 { echo "$as_me:$LINENO: result: yes" >&5
2864 echo "${ECHO_T}yes" >&6; }
2865
2866 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2867 ac_clean_files=$ac_clean_files_save
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 we are cross compiling" >&5
2871 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2872 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2873 echo "${ECHO_T}$cross_compiling" >&6; }
2874
2875 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2876 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2877 if { (ac_try="$ac_link"
2878 case "(($ac_try" in
2879   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2880   *) ac_try_echo=$ac_try;;
2881 esac
2882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2883   (eval "$ac_link") 2>&5
2884   ac_status=$?
2885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2886   (exit $ac_status); }; then
2887   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2888 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2889 # work properly (i.e., refer to `conftest.exe'), while it won't with
2890 # `rm'.
2891 for ac_file in conftest.exe conftest conftest.*; do
2892   test -f "$ac_file" || continue
2893   case $ac_file in
2894     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2895     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2896           break;;
2897     * ) break;;
2898   esac
2899 done
2900 else
2901   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2902 See \`config.log' for more details." >&5
2903 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2904 See \`config.log' for more details." >&2;}
2905    { (exit 1); exit 1; }; }
2906 fi
2907
2908 rm -f conftest$ac_cv_exeext
2909 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2910 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2911
2912 rm -f conftest.$ac_ext
2913 EXEEXT=$ac_cv_exeext
2914 ac_exeext=$EXEEXT
2915 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2916 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2917 if test "${ac_cv_objext+set}" = set; then
2918   echo $ECHO_N "(cached) $ECHO_C" >&6
2919 else
2920   cat >conftest.$ac_ext <<_ACEOF
2921 /* confdefs.h.  */
2922 _ACEOF
2923 cat confdefs.h >>conftest.$ac_ext
2924 cat >>conftest.$ac_ext <<_ACEOF
2925 /* end confdefs.h.  */
2926
2927 int
2928 main ()
2929 {
2930
2931   ;
2932   return 0;
2933 }
2934 _ACEOF
2935 rm -f conftest.o conftest.obj
2936 if { (ac_try="$ac_compile"
2937 case "(($ac_try" in
2938   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2939   *) ac_try_echo=$ac_try;;
2940 esac
2941 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2942   (eval "$ac_compile") 2>&5
2943   ac_status=$?
2944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2945   (exit $ac_status); }; then
2946   for ac_file in conftest.o conftest.obj conftest.*; do
2947   test -f "$ac_file" || continue;
2948   case $ac_file in
2949     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2950     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2951        break;;
2952   esac
2953 done
2954 else
2955   echo "$as_me: failed program was:" >&5
2956 sed 's/^/| /' conftest.$ac_ext >&5
2957
2958 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2959 See \`config.log' for more details." >&5
2960 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2961 See \`config.log' for more details." >&2;}
2962    { (exit 1); exit 1; }; }
2963 fi
2964
2965 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2966 fi
2967 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2968 echo "${ECHO_T}$ac_cv_objext" >&6; }
2969 OBJEXT=$ac_cv_objext
2970 ac_objext=$OBJEXT
2971 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2972 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2973 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2974   echo $ECHO_N "(cached) $ECHO_C" >&6
2975 else
2976   cat >conftest.$ac_ext <<_ACEOF
2977 /* confdefs.h.  */
2978 _ACEOF
2979 cat confdefs.h >>conftest.$ac_ext
2980 cat >>conftest.$ac_ext <<_ACEOF
2981 /* end confdefs.h.  */
2982
2983 int
2984 main ()
2985 {
2986 #ifndef __GNUC__
2987        choke me
2988 #endif
2989
2990   ;
2991   return 0;
2992 }
2993 _ACEOF
2994 rm -f conftest.$ac_objext
2995 if { (ac_try="$ac_compile"
2996 case "(($ac_try" in
2997   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2998   *) ac_try_echo=$ac_try;;
2999 esac
3000 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3001   (eval "$ac_compile") 2>conftest.er1
3002   ac_status=$?
3003   grep -v '^ *+' conftest.er1 >conftest.err
3004   rm -f conftest.er1
3005   cat conftest.err >&5
3006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3007   (exit $ac_status); } &&
3008          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3009   { (case "(($ac_try" in
3010   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3011   *) ac_try_echo=$ac_try;;
3012 esac
3013 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3014   (eval "$ac_try") 2>&5
3015   ac_status=$?
3016   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3017   (exit $ac_status); }; } &&
3018          { ac_try='test -s conftest.$ac_objext'
3019   { (case "(($ac_try" in
3020   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3021   *) ac_try_echo=$ac_try;;
3022 esac
3023 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3024   (eval "$ac_try") 2>&5
3025   ac_status=$?
3026   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3027   (exit $ac_status); }; }; then
3028   ac_compiler_gnu=yes
3029 else
3030   echo "$as_me: failed program was:" >&5
3031 sed 's/^/| /' conftest.$ac_ext >&5
3032
3033         ac_compiler_gnu=no
3034 fi
3035
3036 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3037 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3038
3039 fi
3040 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3041 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3042 GCC=`test $ac_compiler_gnu = yes && echo yes`
3043 ac_test_CFLAGS=${CFLAGS+set}
3044 ac_save_CFLAGS=$CFLAGS
3045 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3046 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3047 if test "${ac_cv_prog_cc_g+set}" = set; then
3048   echo $ECHO_N "(cached) $ECHO_C" >&6
3049 else
3050   ac_save_c_werror_flag=$ac_c_werror_flag
3051    ac_c_werror_flag=yes
3052    ac_cv_prog_cc_g=no
3053    CFLAGS="-g"
3054    cat >conftest.$ac_ext <<_ACEOF
3055 /* confdefs.h.  */
3056 _ACEOF
3057 cat confdefs.h >>conftest.$ac_ext
3058 cat >>conftest.$ac_ext <<_ACEOF
3059 /* end confdefs.h.  */
3060
3061 int
3062 main ()
3063 {
3064
3065   ;
3066   return 0;
3067 }
3068 _ACEOF
3069 rm -f conftest.$ac_objext
3070 if { (ac_try="$ac_compile"
3071 case "(($ac_try" in
3072   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3073   *) ac_try_echo=$ac_try;;
3074 esac
3075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3076   (eval "$ac_compile") 2>conftest.er1
3077   ac_status=$?
3078   grep -v '^ *+' conftest.er1 >conftest.err
3079   rm -f conftest.er1
3080   cat conftest.err >&5
3081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3082   (exit $ac_status); } &&
3083          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3084   { (case "(($ac_try" in
3085   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3086   *) ac_try_echo=$ac_try;;
3087 esac
3088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3089   (eval "$ac_try") 2>&5
3090   ac_status=$?
3091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3092   (exit $ac_status); }; } &&
3093          { ac_try='test -s conftest.$ac_objext'
3094   { (case "(($ac_try" in
3095   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3096   *) ac_try_echo=$ac_try;;
3097 esac
3098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3099   (eval "$ac_try") 2>&5
3100   ac_status=$?
3101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3102   (exit $ac_status); }; }; then
3103   ac_cv_prog_cc_g=yes
3104 else
3105   echo "$as_me: failed program was:" >&5
3106 sed 's/^/| /' conftest.$ac_ext >&5
3107
3108         CFLAGS=""
3109       cat >conftest.$ac_ext <<_ACEOF
3110 /* confdefs.h.  */
3111 _ACEOF
3112 cat confdefs.h >>conftest.$ac_ext
3113 cat >>conftest.$ac_ext <<_ACEOF
3114 /* end confdefs.h.  */
3115
3116 int
3117 main ()
3118 {
3119
3120   ;
3121   return 0;
3122 }
3123 _ACEOF
3124 rm -f conftest.$ac_objext
3125 if { (ac_try="$ac_compile"
3126 case "(($ac_try" in
3127   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3128   *) ac_try_echo=$ac_try;;
3129 esac
3130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3131   (eval "$ac_compile") 2>conftest.er1
3132   ac_status=$?
3133   grep -v '^ *+' conftest.er1 >conftest.err
3134   rm -f conftest.er1
3135   cat conftest.err >&5
3136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3137   (exit $ac_status); } &&
3138          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3139   { (case "(($ac_try" in
3140   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3141   *) ac_try_echo=$ac_try;;
3142 esac
3143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3144   (eval "$ac_try") 2>&5
3145   ac_status=$?
3146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3147   (exit $ac_status); }; } &&
3148          { ac_try='test -s conftest.$ac_objext'
3149   { (case "(($ac_try" in
3150   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3151   *) ac_try_echo=$ac_try;;
3152 esac
3153 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3154   (eval "$ac_try") 2>&5
3155   ac_status=$?
3156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3157   (exit $ac_status); }; }; then
3158   :
3159 else
3160   echo "$as_me: failed program was:" >&5
3161 sed 's/^/| /' conftest.$ac_ext >&5
3162
3163         ac_c_werror_flag=$ac_save_c_werror_flag
3164          CFLAGS="-g"
3165          cat >conftest.$ac_ext <<_ACEOF
3166 /* confdefs.h.  */
3167 _ACEOF
3168 cat confdefs.h >>conftest.$ac_ext
3169 cat >>conftest.$ac_ext <<_ACEOF
3170 /* end confdefs.h.  */
3171
3172 int
3173 main ()
3174 {
3175
3176   ;
3177   return 0;
3178 }
3179 _ACEOF
3180 rm -f conftest.$ac_objext
3181 if { (ac_try="$ac_compile"
3182 case "(($ac_try" in
3183   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3184   *) ac_try_echo=$ac_try;;
3185 esac
3186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3187   (eval "$ac_compile") 2>conftest.er1
3188   ac_status=$?
3189   grep -v '^ *+' conftest.er1 >conftest.err
3190   rm -f conftest.er1
3191   cat conftest.err >&5
3192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3193   (exit $ac_status); } &&
3194          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3195   { (case "(($ac_try" in
3196   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3197   *) ac_try_echo=$ac_try;;
3198 esac
3199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3200   (eval "$ac_try") 2>&5
3201   ac_status=$?
3202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3203   (exit $ac_status); }; } &&
3204          { ac_try='test -s conftest.$ac_objext'
3205   { (case "(($ac_try" in
3206   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3207   *) ac_try_echo=$ac_try;;
3208 esac
3209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3210   (eval "$ac_try") 2>&5
3211   ac_status=$?
3212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3213   (exit $ac_status); }; }; then
3214   ac_cv_prog_cc_g=yes
3215 else
3216   echo "$as_me: failed program was:" >&5
3217 sed 's/^/| /' conftest.$ac_ext >&5
3218
3219
3220 fi
3221
3222 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3223 fi
3224
3225 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3226 fi
3227
3228 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3229    ac_c_werror_flag=$ac_save_c_werror_flag
3230 fi
3231 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3232 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3233 if test "$ac_test_CFLAGS" = set; then
3234   CFLAGS=$ac_save_CFLAGS
3235 elif test $ac_cv_prog_cc_g = yes; then
3236   if test "$GCC" = yes; then
3237     CFLAGS="-g -O2"
3238   else
3239     CFLAGS="-g"
3240   fi
3241 else
3242   if test "$GCC" = yes; then
3243     CFLAGS="-O2"
3244   else
3245     CFLAGS=
3246   fi
3247 fi
3248 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3249 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3250 if test "${ac_cv_prog_cc_c89+set}" = set; then
3251   echo $ECHO_N "(cached) $ECHO_C" >&6
3252 else
3253   ac_cv_prog_cc_c89=no
3254 ac_save_CC=$CC
3255 cat >conftest.$ac_ext <<_ACEOF
3256 /* confdefs.h.  */
3257 _ACEOF
3258 cat confdefs.h >>conftest.$ac_ext
3259 cat >>conftest.$ac_ext <<_ACEOF
3260 /* end confdefs.h.  */
3261 #include <stdarg.h>
3262 #include <stdio.h>
3263 #include <sys/types.h>
3264 #include <sys/stat.h>
3265 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3266 struct buf { int x; };
3267 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3268 static char *e (p, i)
3269      char **p;
3270      int i;
3271 {
3272   return p[i];
3273 }
3274 static char *f (char * (*g) (char **, int), char **p, ...)
3275 {
3276   char *s;
3277   va_list v;
3278   va_start (v,p);
3279   s = g (p, va_arg (v,int));
3280   va_end (v);
3281   return s;
3282 }
3283
3284 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3285    function prototypes and stuff, but not '\xHH' hex character constants.
3286    These don't provoke an error unfortunately, instead are silently treated
3287    as 'x'.  The following induces an error, until -std is added to get
3288    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3289    array size at least.  It's necessary to write '\x00'==0 to get something
3290    that's true only with -std.  */
3291 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3292
3293 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3294    inside strings and character constants.  */
3295 #define FOO(x) 'x'
3296 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3297
3298 int test (int i, double x);
3299 struct s1 {int (*f) (int a);};
3300 struct s2 {int (*f) (double a);};
3301 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3302 int argc;
3303 char **argv;
3304 int
3305 main ()
3306 {
3307 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3308   ;
3309   return 0;
3310 }
3311 _ACEOF
3312 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3313         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3314 do
3315   CC="$ac_save_CC $ac_arg"
3316   rm -f conftest.$ac_objext
3317 if { (ac_try="$ac_compile"
3318 case "(($ac_try" in
3319   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3320   *) ac_try_echo=$ac_try;;
3321 esac
3322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3323   (eval "$ac_compile") 2>conftest.er1
3324   ac_status=$?
3325   grep -v '^ *+' conftest.er1 >conftest.err
3326   rm -f conftest.er1
3327   cat conftest.err >&5
3328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3329   (exit $ac_status); } &&
3330          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3331   { (case "(($ac_try" in
3332   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3333   *) ac_try_echo=$ac_try;;
3334 esac
3335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3336   (eval "$ac_try") 2>&5
3337   ac_status=$?
3338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3339   (exit $ac_status); }; } &&
3340          { ac_try='test -s conftest.$ac_objext'
3341   { (case "(($ac_try" in
3342   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3343   *) ac_try_echo=$ac_try;;
3344 esac
3345 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3346   (eval "$ac_try") 2>&5
3347   ac_status=$?
3348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3349   (exit $ac_status); }; }; then
3350   ac_cv_prog_cc_c89=$ac_arg
3351 else
3352   echo "$as_me: failed program was:" >&5
3353 sed 's/^/| /' conftest.$ac_ext >&5
3354
3355
3356 fi
3357
3358 rm -f core conftest.err conftest.$ac_objext
3359   test "x$ac_cv_prog_cc_c89" != "xno" && break
3360 done
3361 rm -f conftest.$ac_ext
3362 CC=$ac_save_CC
3363
3364 fi
3365 # AC_CACHE_VAL
3366 case "x$ac_cv_prog_cc_c89" in
3367   x)
3368     { echo "$as_me:$LINENO: result: none needed" >&5
3369 echo "${ECHO_T}none needed" >&6; } ;;
3370   xno)
3371     { echo "$as_me:$LINENO: result: unsupported" >&5
3372 echo "${ECHO_T}unsupported" >&6; } ;;
3373   *)
3374     CC="$CC $ac_cv_prog_cc_c89"
3375     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3376 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3377 esac
3378
3379
3380 ac_ext=c
3381 ac_cpp='$CPP $CPPFLAGS'
3382 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3383 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3384 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3385
3386
3387 ac_ext=c
3388 ac_cpp='$CPP $CPPFLAGS'
3389 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3390 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3391 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3392 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3393 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3394 # On Suns, sometimes $CPP names a directory.
3395 if test -n "$CPP" && test -d "$CPP"; then
3396   CPP=
3397 fi
3398 if test -z "$CPP"; then
3399   if test "${ac_cv_prog_CPP+set}" = set; then
3400   echo $ECHO_N "(cached) $ECHO_C" >&6
3401 else
3402       # Double quotes because CPP needs to be expanded
3403     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3404     do
3405       ac_preproc_ok=false
3406 for ac_c_preproc_warn_flag in '' yes
3407 do
3408   # Use a header file that comes with gcc, so configuring glibc
3409   # with a fresh cross-compiler works.
3410   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3411   # <limits.h> exists even on freestanding compilers.
3412   # On the NeXT, cc -E runs the code through the compiler's parser,
3413   # not just through cpp. "Syntax error" is here to catch this case.
3414   cat >conftest.$ac_ext <<_ACEOF
3415 /* confdefs.h.  */
3416 _ACEOF
3417 cat confdefs.h >>conftest.$ac_ext
3418 cat >>conftest.$ac_ext <<_ACEOF
3419 /* end confdefs.h.  */
3420 #ifdef __STDC__
3421 # include <limits.h>
3422 #else
3423 # include <assert.h>
3424 #endif
3425                      Syntax error
3426 _ACEOF
3427 if { (ac_try="$ac_cpp conftest.$ac_ext"
3428 case "(($ac_try" in
3429   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3430   *) ac_try_echo=$ac_try;;
3431 esac
3432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3433   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3434   ac_status=$?
3435   grep -v '^ *+' conftest.er1 >conftest.err
3436   rm -f conftest.er1
3437   cat conftest.err >&5
3438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3439   (exit $ac_status); } >/dev/null; then
3440   if test -s conftest.err; then
3441     ac_cpp_err=$ac_c_preproc_warn_flag
3442     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3443   else
3444     ac_cpp_err=
3445   fi
3446 else
3447   ac_cpp_err=yes
3448 fi
3449 if test -z "$ac_cpp_err"; then
3450   :
3451 else
3452   echo "$as_me: failed program was:" >&5
3453 sed 's/^/| /' conftest.$ac_ext >&5
3454
3455   # Broken: fails on valid input.
3456 continue
3457 fi
3458
3459 rm -f conftest.err conftest.$ac_ext
3460
3461   # OK, works on sane cases.  Now check whether nonexistent headers
3462   # can be detected and how.
3463   cat >conftest.$ac_ext <<_ACEOF
3464 /* confdefs.h.  */
3465 _ACEOF
3466 cat confdefs.h >>conftest.$ac_ext
3467 cat >>conftest.$ac_ext <<_ACEOF
3468 /* end confdefs.h.  */
3469 #include <ac_nonexistent.h>
3470 _ACEOF
3471 if { (ac_try="$ac_cpp conftest.$ac_ext"
3472 case "(($ac_try" in
3473   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3474   *) ac_try_echo=$ac_try;;
3475 esac
3476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3477   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3478   ac_status=$?
3479   grep -v '^ *+' conftest.er1 >conftest.err
3480   rm -f conftest.er1
3481   cat conftest.err >&5
3482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3483   (exit $ac_status); } >/dev/null; then
3484   if test -s conftest.err; then
3485     ac_cpp_err=$ac_c_preproc_warn_flag
3486     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3487   else
3488     ac_cpp_err=
3489   fi
3490 else
3491   ac_cpp_err=yes
3492 fi
3493 if test -z "$ac_cpp_err"; then
3494   # Broken: success on invalid input.
3495 continue
3496 else
3497   echo "$as_me: failed program was:" >&5
3498 sed 's/^/| /' conftest.$ac_ext >&5
3499
3500   # Passes both tests.
3501 ac_preproc_ok=:
3502 break
3503 fi
3504
3505 rm -f conftest.err conftest.$ac_ext
3506
3507 done
3508 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3509 rm -f conftest.err conftest.$ac_ext
3510 if $ac_preproc_ok; then
3511   break
3512 fi
3513
3514     done
3515     ac_cv_prog_CPP=$CPP
3516
3517 fi
3518   CPP=$ac_cv_prog_CPP
3519 else
3520   ac_cv_prog_CPP=$CPP
3521 fi
3522 { echo "$as_me:$LINENO: result: $CPP" >&5
3523 echo "${ECHO_T}$CPP" >&6; }
3524 ac_preproc_ok=false
3525 for ac_c_preproc_warn_flag in '' yes
3526 do
3527   # Use a header file that comes with gcc, so configuring glibc
3528   # with a fresh cross-compiler works.
3529   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3530   # <limits.h> exists even on freestanding compilers.
3531   # On the NeXT, cc -E runs the code through the compiler's parser,
3532   # not just through cpp. "Syntax error" is here to catch this case.
3533   cat >conftest.$ac_ext <<_ACEOF
3534 /* confdefs.h.  */
3535 _ACEOF
3536 cat confdefs.h >>conftest.$ac_ext
3537 cat >>conftest.$ac_ext <<_ACEOF
3538 /* end confdefs.h.  */
3539 #ifdef __STDC__
3540 # include <limits.h>
3541 #else
3542 # include <assert.h>
3543 #endif
3544                      Syntax error
3545 _ACEOF
3546 if { (ac_try="$ac_cpp conftest.$ac_ext"
3547 case "(($ac_try" in
3548   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3549   *) ac_try_echo=$ac_try;;
3550 esac
3551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3552   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3553   ac_status=$?
3554   grep -v '^ *+' conftest.er1 >conftest.err
3555   rm -f conftest.er1
3556   cat conftest.err >&5
3557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3558   (exit $ac_status); } >/dev/null; then
3559   if test -s conftest.err; then
3560     ac_cpp_err=$ac_c_preproc_warn_flag
3561     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3562   else
3563     ac_cpp_err=
3564   fi
3565 else
3566   ac_cpp_err=yes
3567 fi
3568 if test -z "$ac_cpp_err"; then
3569   :
3570 else
3571   echo "$as_me: failed program was:" >&5
3572 sed 's/^/| /' conftest.$ac_ext >&5
3573
3574   # Broken: fails on valid input.
3575 continue
3576 fi
3577
3578 rm -f conftest.err conftest.$ac_ext
3579
3580   # OK, works on sane cases.  Now check whether nonexistent headers
3581   # can be detected and how.
3582   cat >conftest.$ac_ext <<_ACEOF
3583 /* confdefs.h.  */
3584 _ACEOF
3585 cat confdefs.h >>conftest.$ac_ext
3586 cat >>conftest.$ac_ext <<_ACEOF
3587 /* end confdefs.h.  */
3588 #include <ac_nonexistent.h>
3589 _ACEOF
3590 if { (ac_try="$ac_cpp conftest.$ac_ext"
3591 case "(($ac_try" in
3592   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3593   *) ac_try_echo=$ac_try;;
3594 esac
3595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3596   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3597   ac_status=$?
3598   grep -v '^ *+' conftest.er1 >conftest.err
3599   rm -f conftest.er1
3600   cat conftest.err >&5
3601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3602   (exit $ac_status); } >/dev/null; then
3603   if test -s conftest.err; then
3604     ac_cpp_err=$ac_c_preproc_warn_flag
3605     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3606   else
3607     ac_cpp_err=
3608   fi
3609 else
3610   ac_cpp_err=yes
3611 fi
3612 if test -z "$ac_cpp_err"; then
3613   # Broken: success on invalid input.
3614 continue
3615 else
3616   echo "$as_me: failed program was:" >&5
3617 sed 's/^/| /' conftest.$ac_ext >&5
3618
3619   # Passes both tests.
3620 ac_preproc_ok=:
3621 break
3622 fi
3623
3624 rm -f conftest.err conftest.$ac_ext
3625
3626 done
3627 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3628 rm -f conftest.err conftest.$ac_ext
3629 if $ac_preproc_ok; then
3630   :
3631 else
3632   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3633 See \`config.log' for more details." >&5
3634 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3635 See \`config.log' for more details." >&2;}
3636    { (exit 1); exit 1; }; }
3637 fi
3638
3639 ac_ext=c
3640 ac_cpp='$CPP $CPPFLAGS'
3641 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3642 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3643 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3644
3645
3646 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3647 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3648 if test "${ac_cv_path_GREP+set}" = set; then
3649   echo $ECHO_N "(cached) $ECHO_C" >&6
3650 else
3651   # Extract the first word of "grep ggrep" to use in msg output
3652 if test -z "$GREP"; then
3653 set dummy grep ggrep; ac_prog_name=$2
3654 if test "${ac_cv_path_GREP+set}" = set; then
3655   echo $ECHO_N "(cached) $ECHO_C" >&6
3656 else
3657   ac_path_GREP_found=false
3658 # Loop through the user's path and test for each of PROGNAME-LIST
3659 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3660 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3661 do
3662   IFS=$as_save_IFS
3663   test -z "$as_dir" && as_dir=.
3664   for ac_prog in grep ggrep; do
3665   for ac_exec_ext in '' $ac_executable_extensions; do
3666     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3667     { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3668     # Check for GNU ac_path_GREP and select it if it is found.
3669   # Check for GNU $ac_path_GREP
3670 case `"$ac_path_GREP" --version 2>&1` in
3671 *GNU*)
3672   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3673 *)
3674   ac_count=0
3675   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3676   while :
3677   do
3678     cat "conftest.in" "conftest.in" >"conftest.tmp"
3679     mv "conftest.tmp" "conftest.in"
3680     cp "conftest.in" "conftest.nl"
3681     echo 'GREP' >> "conftest.nl"
3682     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3683     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3684     ac_count=`expr $ac_count + 1`
3685     if test $ac_count -gt ${ac_path_GREP_max-0}; then
3686       # Best one so far, save it but keep looking for a better one
3687       ac_cv_path_GREP="$ac_path_GREP"
3688       ac_path_GREP_max=$ac_count
3689     fi
3690     # 10*(2^10) chars as input seems more than enough
3691     test $ac_count -gt 10 && break
3692   done
3693   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3694 esac
3695
3696
3697     $ac_path_GREP_found && break 3
3698   done
3699 done
3700
3701 done
3702 IFS=$as_save_IFS
3703
3704
3705 fi
3706
3707 GREP="$ac_cv_path_GREP"
3708 if test -z "$GREP"; then
3709   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3710 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3711    { (exit 1); exit 1; }; }
3712 fi
3713
3714 else
3715   ac_cv_path_GREP=$GREP
3716 fi
3717
3718
3719 fi
3720 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3721 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3722  GREP="$ac_cv_path_GREP"
3723
3724
3725 { echo "$as_me:$LINENO: checking for egrep" >&5
3726 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3727 if test "${ac_cv_path_EGREP+set}" = set; then
3728   echo $ECHO_N "(cached) $ECHO_C" >&6
3729 else
3730   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3731    then ac_cv_path_EGREP="$GREP -E"
3732    else
3733      # Extract the first word of "egrep" to use in msg output
3734 if test -z "$EGREP"; then
3735 set dummy egrep; ac_prog_name=$2
3736 if test "${ac_cv_path_EGREP+set}" = set; then
3737   echo $ECHO_N "(cached) $ECHO_C" >&6
3738 else
3739   ac_path_EGREP_found=false
3740 # Loop through the user's path and test for each of PROGNAME-LIST
3741 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3742 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3743 do
3744   IFS=$as_save_IFS
3745   test -z "$as_dir" && as_dir=.
3746   for ac_prog in egrep; do
3747   for ac_exec_ext in '' $ac_executable_extensions; do
3748     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3749     { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
3750     # Check for GNU ac_path_EGREP and select it if it is found.
3751   # Check for GNU $ac_path_EGREP
3752 case `"$ac_path_EGREP" --version 2>&1` in
3753 *GNU*)
3754   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3755 *)
3756   ac_count=0
3757   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3758   while :
3759   do
3760     cat "conftest.in" "conftest.in" >"conftest.tmp"
3761     mv "conftest.tmp" "conftest.in"
3762     cp "conftest.in" "conftest.nl"
3763     echo 'EGREP' >> "conftest.nl"
3764     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3765     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3766     ac_count=`expr $ac_count + 1`
3767     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3768       # Best one so far, save it but keep looking for a better one
3769       ac_cv_path_EGREP="$ac_path_EGREP"
3770       ac_path_EGREP_max=$ac_count
3771     fi
3772     # 10*(2^10) chars as input seems more than enough
3773     test $ac_count -gt 10 && break
3774   done
3775   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3776 esac
3777
3778
3779     $ac_path_EGREP_found && break 3
3780   done
3781 done
3782
3783 done
3784 IFS=$as_save_IFS
3785
3786
3787 fi
3788
3789 EGREP="$ac_cv_path_EGREP"
3790 if test -z "$EGREP"; then
3791   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3792 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3793    { (exit 1); exit 1; }; }
3794 fi
3795
3796 else
3797   ac_cv_path_EGREP=$EGREP
3798 fi
3799
3800
3801    fi
3802 fi
3803 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3804 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3805  EGREP="$ac_cv_path_EGREP"
3806
3807
3808 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3809 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3810 if test "${ac_cv_header_stdc+set}" = set; then
3811   echo $ECHO_N "(cached) $ECHO_C" >&6
3812 else
3813   cat >conftest.$ac_ext <<_ACEOF
3814 /* confdefs.h.  */
3815 _ACEOF
3816 cat confdefs.h >>conftest.$ac_ext
3817 cat >>conftest.$ac_ext <<_ACEOF
3818 /* end confdefs.h.  */
3819 #include <stdlib.h>
3820 #include <stdarg.h>
3821 #include <string.h>
3822 #include <float.h>
3823
3824 int
3825 main ()
3826 {
3827
3828   ;
3829   return 0;
3830 }
3831 _ACEOF
3832 rm -f conftest.$ac_objext
3833 if { (ac_try="$ac_compile"
3834 case "(($ac_try" in
3835   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3836   *) ac_try_echo=$ac_try;;
3837 esac
3838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3839   (eval "$ac_compile") 2>conftest.er1
3840   ac_status=$?
3841   grep -v '^ *+' conftest.er1 >conftest.err
3842   rm -f conftest.er1
3843   cat conftest.err >&5
3844   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3845   (exit $ac_status); } &&
3846          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3847   { (case "(($ac_try" in
3848   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3849   *) ac_try_echo=$ac_try;;
3850 esac
3851 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3852   (eval "$ac_try") 2>&5
3853   ac_status=$?
3854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3855   (exit $ac_status); }; } &&
3856          { ac_try='test -s conftest.$ac_objext'
3857   { (case "(($ac_try" in
3858   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3859   *) ac_try_echo=$ac_try;;
3860 esac
3861 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3862   (eval "$ac_try") 2>&5
3863   ac_status=$?
3864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3865   (exit $ac_status); }; }; then
3866   ac_cv_header_stdc=yes
3867 else
3868   echo "$as_me: failed program was:" >&5
3869 sed 's/^/| /' conftest.$ac_ext >&5
3870
3871         ac_cv_header_stdc=no
3872 fi
3873
3874 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3875
3876 if test $ac_cv_header_stdc = yes; then
3877   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3878   cat >conftest.$ac_ext <<_ACEOF
3879 /* confdefs.h.  */
3880 _ACEOF
3881 cat confdefs.h >>conftest.$ac_ext
3882 cat >>conftest.$ac_ext <<_ACEOF
3883 /* end confdefs.h.  */
3884 #include <string.h>
3885
3886 _ACEOF
3887 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3888   $EGREP "memchr" >/dev/null 2>&1; then
3889   :
3890 else
3891   ac_cv_header_stdc=no
3892 fi
3893 rm -f conftest*
3894
3895 fi
3896
3897 if test $ac_cv_header_stdc = yes; then
3898   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3899   cat >conftest.$ac_ext <<_ACEOF
3900 /* confdefs.h.  */
3901 _ACEOF
3902 cat confdefs.h >>conftest.$ac_ext
3903 cat >>conftest.$ac_ext <<_ACEOF
3904 /* end confdefs.h.  */
3905 #include <stdlib.h>
3906
3907 _ACEOF
3908 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3909   $EGREP "free" >/dev/null 2>&1; then
3910   :
3911 else
3912   ac_cv_header_stdc=no
3913 fi
3914 rm -f conftest*
3915
3916 fi
3917
3918 if test $ac_cv_header_stdc = yes; then
3919   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3920   if test "$cross_compiling" = yes; then
3921   :
3922 else
3923   cat >conftest.$ac_ext <<_ACEOF
3924 /* confdefs.h.  */
3925 _ACEOF
3926 cat confdefs.h >>conftest.$ac_ext
3927 cat >>conftest.$ac_ext <<_ACEOF
3928 /* end confdefs.h.  */
3929 #include <ctype.h>
3930 #include <stdlib.h>
3931 #if ((' ' & 0x0FF) == 0x020)
3932 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3933 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3934 #else
3935 # define ISLOWER(c) \
3936                    (('a' <= (c) && (c) <= 'i') \
3937                      || ('j' <= (c) && (c) <= 'r') \
3938                      || ('s' <= (c) && (c) <= 'z'))
3939 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3940 #endif
3941
3942 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3943 int
3944 main ()
3945 {
3946   int i;
3947   for (i = 0; i < 256; i++)
3948     if (XOR (islower (i), ISLOWER (i))
3949         || toupper (i) != TOUPPER (i))
3950       return 2;
3951   return 0;
3952 }
3953 _ACEOF
3954 rm -f conftest$ac_exeext
3955 if { (ac_try="$ac_link"
3956 case "(($ac_try" in
3957   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3958   *) ac_try_echo=$ac_try;;
3959 esac
3960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3961   (eval "$ac_link") 2>&5
3962   ac_status=$?
3963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3964   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3965   { (case "(($ac_try" in
3966   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3967   *) ac_try_echo=$ac_try;;
3968 esac
3969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3970   (eval "$ac_try") 2>&5
3971   ac_status=$?
3972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3973   (exit $ac_status); }; }; then
3974   :
3975 else
3976   echo "$as_me: program exited with status $ac_status" >&5
3977 echo "$as_me: failed program was:" >&5
3978 sed 's/^/| /' conftest.$ac_ext >&5
3979
3980 ( exit $ac_status )
3981 ac_cv_header_stdc=no
3982 fi
3983 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3984 fi
3985
3986
3987 fi
3988 fi
3989 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3990 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
3991 if test $ac_cv_header_stdc = yes; then
3992
3993 cat >>confdefs.h <<\_ACEOF
3994 #define STDC_HEADERS 1
3995 _ACEOF
3996
3997 fi
3998
3999 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4000
4001
4002
4003
4004
4005
4006
4007
4008
4009 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4010                   inttypes.h stdint.h unistd.h
4011 do
4012 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4013 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4014 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4015 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4016   echo $ECHO_N "(cached) $ECHO_C" >&6
4017 else
4018   cat >conftest.$ac_ext <<_ACEOF
4019 /* confdefs.h.  */
4020 _ACEOF
4021 cat confdefs.h >>conftest.$ac_ext
4022 cat >>conftest.$ac_ext <<_ACEOF
4023 /* end confdefs.h.  */
4024 $ac_includes_default
4025
4026 #include <$ac_header>
4027 _ACEOF
4028 rm -f conftest.$ac_objext
4029 if { (ac_try="$ac_compile"
4030 case "(($ac_try" in
4031   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4032   *) ac_try_echo=$ac_try;;
4033 esac
4034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4035   (eval "$ac_compile") 2>conftest.er1
4036   ac_status=$?
4037   grep -v '^ *+' conftest.er1 >conftest.err
4038   rm -f conftest.er1
4039   cat conftest.err >&5
4040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4041   (exit $ac_status); } &&
4042          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4043   { (case "(($ac_try" in
4044   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4045   *) ac_try_echo=$ac_try;;
4046 esac
4047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4048   (eval "$ac_try") 2>&5
4049   ac_status=$?
4050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4051   (exit $ac_status); }; } &&
4052          { ac_try='test -s conftest.$ac_objext'
4053   { (case "(($ac_try" in
4054   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4055   *) ac_try_echo=$ac_try;;
4056 esac
4057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4058   (eval "$ac_try") 2>&5
4059   ac_status=$?
4060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4061   (exit $ac_status); }; }; then
4062   eval "$as_ac_Header=yes"
4063 else
4064   echo "$as_me: failed program was:" >&5
4065 sed 's/^/| /' conftest.$ac_ext >&5
4066
4067         eval "$as_ac_Header=no"
4068 fi
4069
4070 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4071 fi
4072 ac_res=`eval echo '${'$as_ac_Header'}'`
4073                { echo "$as_me:$LINENO: result: $ac_res" >&5
4074 echo "${ECHO_T}$ac_res" >&6; }
4075 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4076   cat >>confdefs.h <<_ACEOF
4077 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4078 _ACEOF
4079
4080 fi
4081
4082 done
4083
4084
4085 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4086 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4087 if test "${ac_cv_c_bigendian+set}" = set; then
4088   echo $ECHO_N "(cached) $ECHO_C" >&6
4089 else
4090   # See if sys/param.h defines the BYTE_ORDER macro.
4091 cat >conftest.$ac_ext <<_ACEOF
4092 /* confdefs.h.  */
4093 _ACEOF
4094 cat confdefs.h >>conftest.$ac_ext
4095 cat >>conftest.$ac_ext <<_ACEOF
4096 /* end confdefs.h.  */
4097 #include <sys/types.h>
4098 #include <sys/param.h>
4099
4100 int
4101 main ()
4102 {
4103 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4104  bogus endian macros
4105 #endif
4106
4107   ;
4108   return 0;
4109 }
4110 _ACEOF
4111 rm -f conftest.$ac_objext
4112 if { (ac_try="$ac_compile"
4113 case "(($ac_try" in
4114   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4115   *) ac_try_echo=$ac_try;;
4116 esac
4117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4118   (eval "$ac_compile") 2>conftest.er1
4119   ac_status=$?
4120   grep -v '^ *+' conftest.er1 >conftest.err
4121   rm -f conftest.er1
4122   cat conftest.err >&5
4123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4124   (exit $ac_status); } &&
4125          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4126   { (case "(($ac_try" in
4127   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4128   *) ac_try_echo=$ac_try;;
4129 esac
4130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4131   (eval "$ac_try") 2>&5
4132   ac_status=$?
4133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4134   (exit $ac_status); }; } &&
4135          { ac_try='test -s conftest.$ac_objext'
4136   { (case "(($ac_try" in
4137   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4138   *) ac_try_echo=$ac_try;;
4139 esac
4140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4141   (eval "$ac_try") 2>&5
4142   ac_status=$?
4143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4144   (exit $ac_status); }; }; then
4145   # It does; now see whether it defined to BIG_ENDIAN or not.
4146 cat >conftest.$ac_ext <<_ACEOF
4147 /* confdefs.h.  */
4148 _ACEOF
4149 cat confdefs.h >>conftest.$ac_ext
4150 cat >>conftest.$ac_ext <<_ACEOF
4151 /* end confdefs.h.  */
4152 #include <sys/types.h>
4153 #include <sys/param.h>
4154
4155 int
4156 main ()
4157 {
4158 #if BYTE_ORDER != BIG_ENDIAN
4159  not big endian
4160 #endif
4161
4162   ;
4163   return 0;
4164 }
4165 _ACEOF
4166 rm -f conftest.$ac_objext
4167 if { (ac_try="$ac_compile"
4168 case "(($ac_try" in
4169   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4170   *) ac_try_echo=$ac_try;;
4171 esac
4172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4173   (eval "$ac_compile") 2>conftest.er1
4174   ac_status=$?
4175   grep -v '^ *+' conftest.er1 >conftest.err
4176   rm -f conftest.er1
4177   cat conftest.err >&5
4178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4179   (exit $ac_status); } &&
4180          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4181   { (case "(($ac_try" in
4182   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4183   *) ac_try_echo=$ac_try;;
4184 esac
4185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4186   (eval "$ac_try") 2>&5
4187   ac_status=$?
4188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4189   (exit $ac_status); }; } &&
4190          { ac_try='test -s conftest.$ac_objext'
4191   { (case "(($ac_try" in
4192   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4193   *) ac_try_echo=$ac_try;;
4194 esac
4195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4196   (eval "$ac_try") 2>&5
4197   ac_status=$?
4198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4199   (exit $ac_status); }; }; then
4200   ac_cv_c_bigendian=yes
4201 else
4202   echo "$as_me: failed program was:" >&5
4203 sed 's/^/| /' conftest.$ac_ext >&5
4204
4205         ac_cv_c_bigendian=no
4206 fi
4207
4208 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4209 else
4210   echo "$as_me: failed program was:" >&5
4211 sed 's/^/| /' conftest.$ac_ext >&5
4212
4213         # It does not; compile a test program.
4214 if test "$cross_compiling" = yes; then
4215   # try to guess the endianness by grepping values into an object file
4216   ac_cv_c_bigendian=unknown
4217   cat >conftest.$ac_ext <<_ACEOF
4218 /* confdefs.h.  */
4219 _ACEOF
4220 cat confdefs.h >>conftest.$ac_ext
4221 cat >>conftest.$ac_ext <<_ACEOF
4222 /* end confdefs.h.  */
4223 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4224 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4225 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4226 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4227 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4228 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4229 int
4230 main ()
4231 {
4232  _ascii (); _ebcdic ();
4233   ;
4234   return 0;
4235 }
4236 _ACEOF
4237 rm -f conftest.$ac_objext
4238 if { (ac_try="$ac_compile"
4239 case "(($ac_try" in
4240   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4241   *) ac_try_echo=$ac_try;;
4242 esac
4243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4244   (eval "$ac_compile") 2>conftest.er1
4245   ac_status=$?
4246   grep -v '^ *+' conftest.er1 >conftest.err
4247   rm -f conftest.er1
4248   cat conftest.err >&5
4249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4250   (exit $ac_status); } &&
4251          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4252   { (case "(($ac_try" in
4253   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4254   *) ac_try_echo=$ac_try;;
4255 esac
4256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4257   (eval "$ac_try") 2>&5
4258   ac_status=$?
4259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4260   (exit $ac_status); }; } &&
4261          { ac_try='test -s conftest.$ac_objext'
4262   { (case "(($ac_try" in
4263   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4264   *) ac_try_echo=$ac_try;;
4265 esac
4266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4267   (eval "$ac_try") 2>&5
4268   ac_status=$?
4269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4270   (exit $ac_status); }; }; then
4271   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4272   ac_cv_c_bigendian=yes
4273 fi
4274 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4275   if test "$ac_cv_c_bigendian" = unknown; then
4276     ac_cv_c_bigendian=no
4277   else
4278     # finding both strings is unlikely to happen, but who knows?
4279     ac_cv_c_bigendian=unknown
4280   fi
4281 fi
4282 else
4283   echo "$as_me: failed program was:" >&5
4284 sed 's/^/| /' conftest.$ac_ext >&5
4285
4286
4287 fi
4288
4289 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4290 else
4291   cat >conftest.$ac_ext <<_ACEOF
4292 /* confdefs.h.  */
4293 _ACEOF
4294 cat confdefs.h >>conftest.$ac_ext
4295 cat >>conftest.$ac_ext <<_ACEOF
4296 /* end confdefs.h.  */
4297 $ac_includes_default
4298 int
4299 main ()
4300 {
4301
4302   /* Are we little or big endian?  From Harbison&Steele.  */
4303   union
4304   {
4305     long int l;
4306     char c[sizeof (long int)];
4307   } u;
4308   u.l = 1;
4309   return u.c[sizeof (long int) - 1] == 1;
4310
4311   ;
4312   return 0;
4313 }
4314 _ACEOF
4315 rm -f conftest$ac_exeext
4316 if { (ac_try="$ac_link"
4317 case "(($ac_try" in
4318   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4319   *) ac_try_echo=$ac_try;;
4320 esac
4321 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4322   (eval "$ac_link") 2>&5
4323   ac_status=$?
4324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4325   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4326   { (case "(($ac_try" in
4327   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4328   *) ac_try_echo=$ac_try;;
4329 esac
4330 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4331   (eval "$ac_try") 2>&5
4332   ac_status=$?
4333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4334   (exit $ac_status); }; }; then
4335   ac_cv_c_bigendian=no
4336 else
4337   echo "$as_me: program exited with status $ac_status" >&5
4338 echo "$as_me: failed program was:" >&5
4339 sed 's/^/| /' conftest.$ac_ext >&5
4340
4341 ( exit $ac_status )
4342 ac_cv_c_bigendian=yes
4343 fi
4344 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4345 fi
4346
4347
4348 fi
4349
4350 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4351 fi
4352 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4353 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4354 case $ac_cv_c_bigendian in
4355   yes)
4356     ENDIAN=big
4357  ;;
4358   no)
4359     ENDIAN=little
4360  ;;
4361   *)
4362     { { echo "$as_me:$LINENO: error: unknown endianness
4363 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4364 echo "$as_me: error: unknown endianness
4365 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4366    { (exit 1); exit 1; }; } ;;
4367 esac
4368
4369
4370 if test "$cross_compiling" = yes; then
4371   LLVM_CROSS_COMPILING=1
4372
4373
4374 { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4375 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4376 if test "${ac_cv_build_exeext+set}" = set; then
4377   echo $ECHO_N "(cached) $ECHO_C" >&6
4378 else
4379   if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4380   ac_cv_build_exeext=.exe
4381 else
4382   ac_build_prefix=${build_alias}-
4383
4384   # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4385 set dummy ${ac_build_prefix}gcc; ac_word=$2
4386 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4387 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4388 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4389   echo $ECHO_N "(cached) $ECHO_C" >&6
4390 else
4391   if test -n "$BUILD_CC"; then
4392   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4393 else
4394 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4395 for as_dir in $PATH
4396 do
4397   IFS=$as_save_IFS
4398   test -z "$as_dir" && as_dir=.
4399   for ac_exec_ext in '' $ac_executable_extensions; do
4400   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4401     ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4402     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4403     break 2
4404   fi
4405 done
4406 done
4407 IFS=$as_save_IFS
4408
4409 fi
4410 fi
4411 BUILD_CC=$ac_cv_prog_BUILD_CC
4412 if test -n "$BUILD_CC"; then
4413   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4414 echo "${ECHO_T}$BUILD_CC" >&6; }
4415 else
4416   { echo "$as_me:$LINENO: result: no" >&5
4417 echo "${ECHO_T}no" >&6; }
4418 fi
4419
4420
4421   if test -z "$BUILD_CC"; then
4422      # Extract the first word of "gcc", so it can be a program name with args.
4423 set dummy gcc; ac_word=$2
4424 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4425 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4426 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4427   echo $ECHO_N "(cached) $ECHO_C" >&6
4428 else
4429   if test -n "$BUILD_CC"; then
4430   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4431 else
4432 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4433 for as_dir in $PATH
4434 do
4435   IFS=$as_save_IFS
4436   test -z "$as_dir" && as_dir=.
4437   for ac_exec_ext in '' $ac_executable_extensions; do
4438   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4439     ac_cv_prog_BUILD_CC="gcc"
4440     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4441     break 2
4442   fi
4443 done
4444 done
4445 IFS=$as_save_IFS
4446
4447 fi
4448 fi
4449 BUILD_CC=$ac_cv_prog_BUILD_CC
4450 if test -n "$BUILD_CC"; then
4451   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4452 echo "${ECHO_T}$BUILD_CC" >&6; }
4453 else
4454   { echo "$as_me:$LINENO: result: no" >&5
4455 echo "${ECHO_T}no" >&6; }
4456 fi
4457
4458
4459      if test -z "$BUILD_CC"; then
4460        # Extract the first word of "cc", so it can be a program name with args.
4461 set dummy cc; ac_word=$2
4462 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4463 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4464 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4465   echo $ECHO_N "(cached) $ECHO_C" >&6
4466 else
4467   if test -n "$BUILD_CC"; then
4468   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4469 else
4470   ac_prog_rejected=no
4471 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4472 for as_dir in $PATH
4473 do
4474   IFS=$as_save_IFS
4475   test -z "$as_dir" && as_dir=.
4476   for ac_exec_ext in '' $ac_executable_extensions; do
4477   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4478     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4479        ac_prog_rejected=yes
4480        continue
4481      fi
4482     ac_cv_prog_BUILD_CC="cc"
4483     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4484     break 2
4485   fi
4486 done
4487 done
4488 IFS=$as_save_IFS
4489
4490 if test $ac_prog_rejected = yes; then
4491   # We found a bogon in the path, so make sure we never use it.
4492   set dummy $ac_cv_prog_BUILD_CC
4493   shift
4494   if test $# != 0; then
4495     # We chose a different compiler from the bogus one.
4496     # However, it has the same basename, so the bogon will be chosen
4497     # first if we set BUILD_CC to just the basename; use the full file name.
4498     shift
4499     ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4500   fi
4501 fi
4502 fi
4503 fi
4504 BUILD_CC=$ac_cv_prog_BUILD_CC
4505 if test -n "$BUILD_CC"; then
4506   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4507 echo "${ECHO_T}$BUILD_CC" >&6; }
4508 else
4509   { echo "$as_me:$LINENO: result: no" >&5
4510 echo "${ECHO_T}no" >&6; }
4511 fi
4512
4513
4514      fi
4515   fi
4516   test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4517 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4518    { (exit 1); exit 1; }; }
4519   ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4520   rm -f conftest*
4521   echo 'int main () { return 0; }' > conftest.$ac_ext
4522   ac_cv_build_exeext=
4523   if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4524   (eval $ac_build_link) 2>&5
4525   ac_status=$?
4526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4527   (exit $ac_status); }; then
4528     for file in conftest.*; do
4529       case $file in
4530       *.c | *.o | *.obj | *.dSYM) ;;
4531       *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4532       esac
4533     done
4534   else
4535     { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4536 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4537    { (exit 1); exit 1; }; }
4538   fi
4539   rm -f conftest*
4540   test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4541 fi
4542 fi
4543
4544 BUILD_EXEEXT=""
4545 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4546 { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4547 echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4548 ac_build_exeext=$BUILD_EXEEXT
4549
4550   ac_build_prefix=${build_alias}-
4551   # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4552 set dummy ${ac_build_prefix}g++; ac_word=$2
4553 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4554 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4555 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4556   echo $ECHO_N "(cached) $ECHO_C" >&6
4557 else
4558   if test -n "$BUILD_CXX"; then
4559   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4560 else
4561 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4562 for as_dir in $PATH
4563 do
4564   IFS=$as_save_IFS
4565   test -z "$as_dir" && as_dir=.
4566   for ac_exec_ext in '' $ac_executable_extensions; do
4567   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4568     ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
4569     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4570     break 2
4571   fi
4572 done
4573 done
4574 IFS=$as_save_IFS
4575
4576 fi
4577 fi
4578 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4579 if test -n "$BUILD_CXX"; then
4580   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4581 echo "${ECHO_T}$BUILD_CXX" >&6; }
4582 else
4583   { echo "$as_me:$LINENO: result: no" >&5
4584 echo "${ECHO_T}no" >&6; }
4585 fi
4586
4587
4588   if test -z "$BUILD_CXX"; then
4589      # Extract the first word of "g++", so it can be a program name with args.
4590 set dummy g++; ac_word=$2
4591 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4592 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4593 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4594   echo $ECHO_N "(cached) $ECHO_C" >&6
4595 else
4596   if test -n "$BUILD_CXX"; then
4597   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4598 else
4599 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4600 for as_dir in $PATH
4601 do
4602   IFS=$as_save_IFS
4603   test -z "$as_dir" && as_dir=.
4604   for ac_exec_ext in '' $ac_executable_extensions; do
4605   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4606     ac_cv_prog_BUILD_CXX="g++"
4607     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4608     break 2
4609   fi
4610 done
4611 done
4612 IFS=$as_save_IFS
4613
4614 fi
4615 fi
4616 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4617 if test -n "$BUILD_CXX"; then
4618   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4619 echo "${ECHO_T}$BUILD_CXX" >&6; }
4620 else
4621   { echo "$as_me:$LINENO: result: no" >&5
4622 echo "${ECHO_T}no" >&6; }
4623 fi
4624
4625
4626      if test -z "$BUILD_CXX"; then
4627        # Extract the first word of "c++", so it can be a program name with args.
4628 set dummy c++; ac_word=$2
4629 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4630 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4631 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4632   echo $ECHO_N "(cached) $ECHO_C" >&6
4633 else
4634   if test -n "$BUILD_CXX"; then
4635   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4636 else
4637   ac_prog_rejected=no
4638 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4639 for as_dir in $PATH
4640 do
4641   IFS=$as_save_IFS
4642   test -z "$as_dir" && as_dir=.
4643   for ac_exec_ext in '' $ac_executable_extensions; do
4644   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4645     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4646        ac_prog_rejected=yes
4647        continue
4648      fi
4649     ac_cv_prog_BUILD_CXX="c++"
4650     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4651     break 2
4652   fi
4653 done
4654 done
4655 IFS=$as_save_IFS
4656
4657 if test $ac_prog_rejected = yes; then
4658   # We found a bogon in the path, so make sure we never use it.
4659   set dummy $ac_cv_prog_BUILD_CXX
4660   shift
4661   if test $# != 0; then
4662     # We chose a different compiler from the bogus one.
4663     # However, it has the same basename, so the bogon will be chosen
4664     # first if we set BUILD_CXX to just the basename; use the full file name.
4665     shift
4666     ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4667   fi
4668 fi
4669 fi
4670 fi
4671 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4672 if test -n "$BUILD_CXX"; then
4673   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4674 echo "${ECHO_T}$BUILD_CXX" >&6; }
4675 else
4676   { echo "$as_me:$LINENO: result: no" >&5
4677 echo "${ECHO_T}no" >&6; }
4678 fi
4679
4680
4681      fi
4682   fi
4683 else
4684   LLVM_CROSS_COMPILING=0
4685
4686 fi
4687
4688 if test -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
4689   cvsbuild="yes"
4690   optimize="no"
4691   CVSBUILD=CVSBUILD=1
4692
4693 else
4694   cvsbuild="no"
4695   optimize="yes"
4696 fi
4697
4698
4699 # Check whether --enable-optimized was given.
4700 if test "${enable_optimized+set}" = set; then
4701   enableval=$enable_optimized;
4702 else
4703   enableval=$optimize
4704 fi
4705
4706 if test ${enableval} = "no" ; then
4707   ENABLE_OPTIMIZED=
4708
4709 else
4710   ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4711
4712 fi
4713
4714 # Check whether --enable-profiling was given.
4715 if test "${enable_profiling+set}" = set; then
4716   enableval=$enable_profiling;
4717 else
4718   enableval="no"
4719 fi
4720
4721 if test ${enableval} = "no" ; then
4722   ENABLE_PROFILING=
4723
4724 else
4725   ENABLE_PROFILING=ENABLE_PROFILING=1
4726
4727 fi
4728
4729 # Check whether --enable-assertions was given.
4730 if test "${enable_assertions+set}" = set; then
4731   enableval=$enable_assertions;
4732 else
4733   enableval="yes"
4734 fi
4735
4736 if test ${enableval} = "yes" ; then
4737   DISABLE_ASSERTIONS=
4738
4739 else
4740   DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
4741
4742 fi
4743
4744 # Check whether --enable-expensive-checks was given.
4745 if test "${enable_expensive_checks+set}" = set; then
4746   enableval=$enable_expensive_checks;
4747 else
4748   enableval="no"
4749 fi
4750
4751 if test ${enableval} = "yes" ; then
4752   ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
4753
4754   EXPENSIVE_CHECKS=yes
4755
4756 else
4757   ENABLE_EXPENSIVE_CHECKS=
4758
4759   EXPENSIVE_CHECKS=no
4760
4761 fi
4762
4763 # Check whether --enable-debug-runtime was given.
4764 if test "${enable_debug_runtime+set}" = set; then
4765   enableval=$enable_debug_runtime;
4766 else
4767   enableval=no
4768 fi
4769
4770 if test ${enableval} = "no" ; then
4771   DEBUG_RUNTIME=
4772
4773 else
4774   DEBUG_RUNTIME=DEBUG_RUNTIME=1
4775
4776 fi
4777
4778 # Check whether --enable-debug-symbols was given.
4779 if test "${enable_debug_symbols+set}" = set; then
4780   enableval=$enable_debug_symbols;
4781 else
4782   enableval=no
4783 fi
4784
4785 if test ${enableval} = "no" ; then
4786   DEBUG_SYMBOLS=
4787
4788 else
4789   DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
4790
4791 fi
4792
4793 # Check whether --enable-jit was given.
4794 if test "${enable_jit+set}" = set; then
4795   enableval=$enable_jit;
4796 else
4797   enableval=default
4798 fi
4799
4800 if test ${enableval} = "no"
4801 then
4802   JIT=
4803
4804 else
4805   case "$llvm_cv_target_arch" in
4806     x86)         TARGET_HAS_JIT=1
4807  ;;
4808     Sparc)       TARGET_HAS_JIT=0
4809  ;;
4810     PowerPC)     TARGET_HAS_JIT=1
4811  ;;
4812     x86_64)      TARGET_HAS_JIT=1
4813  ;;
4814     Alpha)       TARGET_HAS_JIT=1
4815  ;;
4816     ARM)         TARGET_HAS_JIT=1
4817  ;;
4818     Mips)        TARGET_HAS_JIT=0
4819  ;;
4820     PIC16)       TARGET_HAS_JIT=0
4821  ;;
4822     XCore)       TARGET_HAS_JIT=0
4823  ;;
4824     MSP430)      TARGET_HAS_JIT=0
4825  ;;
4826     SystemZ)     TARGET_HAS_JIT=0
4827  ;;
4828     Blackfin)    TARGET_HAS_JIT=0
4829  ;;
4830     MBlaze)      TARGET_HAS_JIT=0
4831  ;;
4832     PTX)         TARGET_HAS_JIT=0
4833  ;;
4834     *)           TARGET_HAS_JIT=0
4835  ;;
4836   esac
4837 fi
4838
4839 # Check whether --enable-doxygen was given.
4840 if test "${enable_doxygen+set}" = set; then
4841   enableval=$enable_doxygen;
4842 else
4843   enableval=default
4844 fi
4845
4846 case "$enableval" in
4847   yes) ENABLE_DOXYGEN=1
4848  ;;
4849   no)  ENABLE_DOXYGEN=0
4850  ;;
4851   default) ENABLE_DOXYGEN=0
4852  ;;
4853   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
4854 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
4855    { (exit 1); exit 1; }; } ;;
4856 esac
4857
4858 # Check whether --enable-threads was given.
4859 if test "${enable_threads+set}" = set; then
4860   enableval=$enable_threads;
4861 else
4862   enableval=default
4863 fi
4864
4865 case "$enableval" in
4866   yes) ENABLE_THREADS=1
4867  ;;
4868   no)  ENABLE_THREADS=0
4869  ;;
4870   default) ENABLE_THREADS=1
4871  ;;
4872   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
4873 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
4874    { (exit 1); exit 1; }; } ;;
4875 esac
4876
4877 cat >>confdefs.h <<_ACEOF
4878 #define ENABLE_THREADS $ENABLE_THREADS
4879 _ACEOF
4880
4881
4882 # Check whether --enable-pic was given.
4883 if test "${enable_pic+set}" = set; then
4884   enableval=$enable_pic;
4885 else
4886   enableval=default
4887 fi
4888
4889 case "$enableval" in
4890   yes) ENABLE_PIC=1
4891  ;;
4892   no)  ENABLE_PIC=0
4893  ;;
4894   default) ENABLE_PIC=1
4895  ;;
4896   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
4897 echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
4898    { (exit 1); exit 1; }; } ;;
4899 esac
4900
4901 cat >>confdefs.h <<_ACEOF
4902 #define ENABLE_PIC $ENABLE_PIC
4903 _ACEOF
4904
4905
4906 # Check whether --enable-shared was given.
4907 if test "${enable_shared+set}" = set; then
4908   enableval=$enable_shared;
4909 else
4910   enableval=default
4911 fi
4912
4913 case "$enableval" in
4914   yes) ENABLE_SHARED=1
4915  ;;
4916   no)  ENABLE_SHARED=0
4917  ;;
4918   default) ENABLE_SHARED=0
4919  ;;
4920   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5
4921 echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;}
4922    { (exit 1); exit 1; }; } ;;
4923 esac
4924
4925 # Check whether --enable-timestamps was given.
4926 if test "${enable_timestamps+set}" = set; then
4927   enableval=$enable_timestamps;
4928 else
4929   enableval=default
4930 fi
4931
4932 case "$enableval" in
4933   yes) ENABLE_TIMESTAMPS=1
4934  ;;
4935   no)  ENABLE_TIMESTAMPS=0
4936  ;;
4937   default) ENABLE_TIMESTAMPS=1
4938  ;;
4939   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&5
4940 echo "$as_me: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&2;}
4941    { (exit 1); exit 1; }; } ;;
4942 esac
4943
4944 cat >>confdefs.h <<_ACEOF
4945 #define ENABLE_TIMESTAMPS $ENABLE_TIMESTAMPS
4946 _ACEOF
4947
4948
4949 TARGETS_TO_BUILD=""
4950 # Check whether --enable-targets was given.
4951 if test "${enable_targets+set}" = set; then
4952   enableval=$enable_targets;
4953 else
4954   enableval=all
4955 fi
4956
4957 if test "$enableval" = host-only ; then
4958   enableval=host
4959 fi
4960 case "$enableval" in
4961   all) TARGETS_TO_BUILD="X86 Sparc PowerPC Alpha ARM Mips CellSPU PIC16 XCore MSP430 SystemZ Blackfin CBackend CppBackend MBlaze PTX" ;;
4962   *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
4963       case "$a_target" in
4964         x86)      TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4965         x86_64)   TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4966         sparc)    TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
4967         powerpc)  TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
4968         alpha)    TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
4969         arm)      TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
4970         mips)     TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
4971         spu)      TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
4972         pic16)    TARGETS_TO_BUILD="PIC16 $TARGETS_TO_BUILD" ;;
4973         xcore)    TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
4974         msp430)   TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
4975         systemz)  TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
4976         blackfin) TARGETS_TO_BUILD="Blackfin $TARGETS_TO_BUILD" ;;
4977         cbe)      TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD" ;;
4978         cpp)      TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
4979         mblaze)   TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
4980         ptx)      TARGETS_TO_BUILD="PTX $TARGETS_TO_BUILD" ;;
4981         host) case "$llvm_cv_target_arch" in
4982             x86)         TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4983             x86_64)      TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4984             Sparc)       TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
4985             PowerPC)     TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
4986             Alpha)       TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
4987             ARM)         TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
4988             Mips)        TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
4989             MBlaze)      TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
4990             CellSPU|SPU) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
4991             PIC16)       TARGETS_TO_BUILD="PIC16 $TARGETS_TO_BUILD" ;;
4992             XCore)       TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
4993             MSP430)      TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
4994             s390x)       TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
4995             Blackfin)    TARGETS_TO_BUILD="Blackfin $TARGETS_TO_BUILD" ;;
4996             PTX)         TARGETS_TO_BUILD="PTX $TARGETS_TO_BUILD" ;;
4997             *)       { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
4998 echo "$as_me: error: Can not set target to build" >&2;}
4999    { (exit 1); exit 1; }; } ;;
5000           esac ;;
5001         *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
5002 echo "$as_me: error: Unrecognized target $a_target" >&2;}
5003    { (exit 1); exit 1; }; } ;;
5004       esac
5005   done
5006   ;;
5007 esac
5008 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
5009
5010
5011 # Determine whether we are building LLVM support for the native architecture.
5012 # If so, define LLVM_NATIVE_ARCH to that LLVM target.
5013 for a_target in $TARGETS_TO_BUILD; do
5014   if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
5015
5016 cat >>confdefs.h <<_ACEOF
5017 #define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCH
5018 _ACEOF
5019
5020     LLVM_NATIVE_TARGET="LLVMInitialize${LLVM_NATIVE_ARCH}Target"
5021     LLVM_NATIVE_TARGETINFO="LLVMInitialize${LLVM_NATIVE_ARCH}TargetInfo"
5022     LLVM_NATIVE_ASMPRINTER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmPrinter"
5023
5024 cat >>confdefs.h <<_ACEOF
5025 #define LLVM_NATIVE_TARGET $LLVM_NATIVE_TARGET
5026 _ACEOF
5027
5028
5029 cat >>confdefs.h <<_ACEOF
5030 #define LLVM_NATIVE_TARGETINFO $LLVM_NATIVE_TARGETINFO
5031 _ACEOF
5032
5033
5034 cat >>confdefs.h <<_ACEOF
5035 #define LLVM_NATIVE_ASMPRINTER $LLVM_NATIVE_ASMPRINTER
5036 _ACEOF
5037
5038   fi
5039 done
5040
5041 # Build the LLVM_TARGET and LLVM_... macros for Targets.def and the individual
5042 # target feature def files.
5043 LLVM_ENUM_TARGETS=""
5044 LLVM_ENUM_ASM_PRINTERS=""
5045 LLVM_ENUM_ASM_PARSERS=""
5046 LLVM_ENUM_DISASSEMBLERS=""
5047 for target_to_build in $TARGETS_TO_BUILD; do
5048   LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
5049   if test -f ${srcdir}/lib/Target/${target_to_build}/AsmPrinter/Makefile ; then
5050     LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5051   fi
5052   if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5053     LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5054   fi
5055   if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
5056     LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
5057   fi
5058 done
5059
5060
5061
5062
5063
5064 # Check whether --enable-cbe-printf-a was given.
5065 if test "${enable_cbe_printf_a+set}" = set; then
5066   enableval=$enable_cbe_printf_a;
5067 else
5068   enableval=default
5069 fi
5070
5071 case "$enableval" in
5072   yes) ENABLE_CBE_PRINTF_A=1
5073  ;;
5074   no)  ENABLE_CBE_PRINTF_A=0
5075  ;;
5076   default)  ENABLE_CBE_PRINTF_A=1
5077  ;;
5078   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5
5079 echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;}
5080    { (exit 1); exit 1; }; } ;;
5081 esac
5082
5083 cat >>confdefs.h <<_ACEOF
5084 #define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A
5085 _ACEOF
5086
5087
5088
5089 # Check whether --with-llvmgccdir was given.
5090 if test "${with_llvmgccdir+set}" = set; then
5091   withval=$with_llvmgccdir;
5092 else
5093   withval=default
5094 fi
5095
5096 case "$withval" in
5097   default) WITH_LLVMGCCDIR=default ;;
5098   /* | [A-Za-z]:[\\/]*)      WITH_LLVMGCCDIR=$withval ;;
5099   *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5
5100 echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;}
5101    { (exit 1); exit 1; }; } ;;
5102 esac
5103
5104
5105 # Check whether --with-llvmgcc was given.
5106 if test "${with_llvmgcc+set}" = set; then
5107   withval=$with_llvmgcc; LLVMGCC=$with_llvmgcc
5108       WITH_LLVMGCCDIR=""
5109 fi
5110
5111
5112
5113 # Check whether --with-llvmgxx was given.
5114 if test "${with_llvmgxx+set}" = set; then
5115   withval=$with_llvmgxx; LLVMGXX=$with_llvmgxx
5116     WITH_LLVMGCCDIR=""
5117 fi
5118
5119
5120 if test -n "$LLVMGCC"; then
5121    LLVMGCCCOMMAND="$LLVMGCC"
5122 fi
5123
5124 if test -n "$LLVMGXX"; then
5125    LLVMGXXCOMMAND="$LLVMGXX"
5126 fi
5127
5128 if test -n "$LLVMGCC" && test -z "$LLVMGXX"; then
5129    { { echo "$as_me:$LINENO: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&5
5130 echo "$as_me: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&2;}
5131    { (exit 1); exit 1; }; };
5132 fi
5133
5134 if test -n "$LLVMGXX" && test -z "$LLVMGCC"; then
5135    { { echo "$as_me:$LINENO: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&5
5136 echo "$as_me: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&2;}
5137    { (exit 1); exit 1; }; };
5138 fi
5139
5140
5141 # Check whether --with-clang was given.
5142 if test "${with_clang+set}" = set; then
5143   withval=$with_clang;
5144 else
5145   with_clang=default
5146 fi
5147
5148
5149
5150 # Check whether --with-built-clang was given.
5151 if test "${with_built_clang+set}" = set; then
5152   withval=$with_built_clang;
5153 else
5154   with_built_clang=check
5155 fi
5156
5157
5158 { echo "$as_me:$LINENO: checking clang compiler" >&5
5159 echo $ECHO_N "checking clang compiler... $ECHO_C" >&6; }
5160 WITH_CLANGPATH=""
5161 WITH_BUILT_CLANG=0
5162 if test "$with_clang" != "default"; then
5163    WITH_CLANGPATH="$with_clang"
5164    if ! test -x "$WITH_CLANGPATH"; then
5165      { { echo "$as_me:$LINENO: error: invalid --with-clang, path does not specify an executable" >&5
5166 echo "$as_me: error: invalid --with-clang, path does not specify an executable" >&2;}
5167    { (exit 1); exit 1; }; }
5168    fi
5169 elif test "$with_built_clang" = "yes"; then
5170    WITH_BUILT_CLANG=1
5171 elif test "$with_built_clang" = "no"; then
5172    WITH_BUILT_CLANG=0
5173 else
5174    if test "$with_built_clang" != "check"; then
5175       { { echo "$as_me:$LINENO: error: invalid value for --with-built-clang." >&5
5176 echo "$as_me: error: invalid value for --with-built-clang." >&2;}
5177    { (exit 1); exit 1; }; }
5178    fi
5179
5180    if test -f ${srcdir}/tools/clang/README.txt; then
5181      WITH_BUILT_CLANG=1
5182    fi
5183 fi
5184
5185 if ! test -z "$WITH_CLANGPATH"; then
5186    { echo "$as_me:$LINENO: result: $WITH_CLANGPATH" >&5
5187 echo "${ECHO_T}$WITH_CLANGPATH" >&6; }
5188    WITH_CLANGXXPATH=`"$WITH_CLANGPATH" --print-prog-name=clang++`
5189 elif test "$WITH_BUILT_CLANG" = "1"; then
5190    { echo "$as_me:$LINENO: result: built" >&5
5191 echo "${ECHO_T}built" >&6; }
5192 else
5193    { echo "$as_me:$LINENO: result: none" >&5
5194 echo "${ECHO_T}none" >&6; }
5195 fi
5196 CLANGPATH=$WITH_CLANGPATH
5197
5198 CLANGXXPATH=$WITH_CLANGXXPATH
5199
5200 ENABLE_BUILT_CLANG=$WITH_BUILT_CLANG
5201
5202
5203
5204 # Check whether --with-optimize-option was given.
5205 if test "${with_optimize_option+set}" = set; then
5206   withval=$with_optimize_option;
5207 else
5208   withval=default
5209 fi
5210
5211 { echo "$as_me:$LINENO: checking optimization flags" >&5
5212 echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
5213 case "$withval" in
5214   default)
5215     case "$llvm_cv_os_type" in
5216     FreeBSD) optimize_option=-O2 ;;
5217     MingW) optimize_option=-O2 ;;
5218     *)     optimize_option=-O3 ;;
5219     esac ;;
5220   *) optimize_option="$withval" ;;
5221 esac
5222 OPTIMIZE_OPTION=$optimize_option
5223
5224 { echo "$as_me:$LINENO: result: $optimize_option" >&5
5225 echo "${ECHO_T}$optimize_option" >&6; }
5226
5227
5228 # Check whether --with-extra-options was given.
5229 if test "${with_extra_options+set}" = set; then
5230   withval=$with_extra_options;
5231 else
5232   withval=default
5233 fi
5234
5235 case "$withval" in
5236   default) EXTRA_OPTIONS= ;;
5237   *) EXTRA_OPTIONS=$withval ;;
5238 esac
5239 EXTRA_OPTIONS=$EXTRA_OPTIONS
5240
5241
5242 # Check whether --enable-bindings was given.
5243 if test "${enable_bindings+set}" = set; then
5244   enableval=$enable_bindings;
5245 else
5246   enableval=default
5247 fi
5248
5249 BINDINGS_TO_BUILD=""
5250 case "$enableval" in
5251   yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
5252   all ) BINDINGS_TO_BUILD="ocaml" ;;
5253   none | no) BINDINGS_TO_BUILD="" ;;
5254   *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5255       case "$a_binding" in
5256         ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5257         *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5258 echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5259    { (exit 1); exit 1; }; } ;;
5260       esac
5261   done
5262   ;;
5263 esac
5264
5265
5266 # Check whether --with-ocaml-libdir was given.
5267 if test "${with_ocaml_libdir+set}" = set; then
5268   withval=$with_ocaml_libdir;
5269 else
5270   withval=auto
5271 fi
5272
5273 case "$withval" in
5274   auto) with_ocaml_libdir="$withval" ;;
5275   /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5276   *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5277 echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5278    { (exit 1); exit 1; }; } ;;
5279 esac
5280
5281
5282 # Check whether --with-c-include-dirs was given.
5283 if test "${with_c_include_dirs+set}" = set; then
5284   withval=$with_c_include_dirs;
5285 else
5286   withval=""
5287 fi
5288
5289
5290 cat >>confdefs.h <<_ACEOF
5291 #define C_INCLUDE_DIRS "$withval"
5292 _ACEOF
5293
5294
5295
5296 # Check whether --with-cxx-include-root was given.
5297 if test "${with_cxx_include_root+set}" = set; then
5298   withval=$with_cxx_include_root;
5299 else
5300   withval=""
5301 fi
5302
5303
5304 cat >>confdefs.h <<_ACEOF
5305 #define CXX_INCLUDE_ROOT "$withval"
5306 _ACEOF
5307
5308
5309
5310 # Check whether --with-cxx-include-arch was given.
5311 if test "${with_cxx_include_arch+set}" = set; then
5312   withval=$with_cxx_include_arch;
5313 else
5314   withval=""
5315 fi
5316
5317
5318 cat >>confdefs.h <<_ACEOF
5319 #define CXX_INCLUDE_ARCH "$withval"
5320 _ACEOF
5321
5322
5323
5324 # Check whether --with-cxx-include-32bit-dir was given.
5325 if test "${with_cxx_include_32bit_dir+set}" = set; then
5326   withval=$with_cxx_include_32bit_dir;
5327 else
5328   withval=""
5329 fi
5330
5331
5332 cat >>confdefs.h <<_ACEOF
5333 #define CXX_INCLUDE_32BIT_DIR "$withval"
5334 _ACEOF
5335
5336
5337
5338 # Check whether --with-cxx-include-64bit-dir was given.
5339 if test "${with_cxx_include_64bit_dir+set}" = set; then
5340   withval=$with_cxx_include_64bit_dir;
5341 else
5342   withval=""
5343 fi
5344
5345
5346 cat >>confdefs.h <<_ACEOF
5347 #define CXX_INCLUDE_64BIT_DIR "$withval"
5348 _ACEOF
5349
5350
5351
5352 # Check whether --with-binutils-include was given.
5353 if test "${with_binutils_include+set}" = set; then
5354   withval=$with_binutils_include;
5355 else
5356   withval=default
5357 fi
5358
5359 case "$withval" in
5360   default) WITH_BINUTILS_INCDIR=default ;;
5361   /* | [A-Za-z]:[\\/]*)      WITH_BINUTILS_INCDIR=$withval ;;
5362   *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5363 echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5364    { (exit 1); exit 1; }; } ;;
5365 esac
5366 if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5367   BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5368
5369   if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5370      echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5371      { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5372 echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5373    { (exit 1); exit 1; }; };
5374   fi
5375 fi
5376
5377 # Check whether --enable-libffi was given.
5378 if test "${enable_libffi+set}" = set; then
5379   enableval=$enable_libffi; case "$enableval" in
5380     yes) llvm_cv_enable_libffi="yes" ;;
5381     no)  llvm_cv_enable_libffi="no"  ;;
5382     *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
5383 echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5384    { (exit 1); exit 1; }; } ;;
5385   esac
5386 else
5387   llvm_cv_enable_libffi=no
5388 fi
5389
5390
5391
5392 ac_ext=c
5393 ac_cpp='$CPP $CPPFLAGS'
5394 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5395 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5396 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5397 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5398 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
5399 # On Suns, sometimes $CPP names a directory.
5400 if test -n "$CPP" && test -d "$CPP"; then
5401   CPP=
5402 fi
5403 if test -z "$CPP"; then
5404   if test "${ac_cv_prog_CPP+set}" = set; then
5405   echo $ECHO_N "(cached) $ECHO_C" >&6
5406 else
5407       # Double quotes because CPP needs to be expanded
5408     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5409     do
5410       ac_preproc_ok=false
5411 for ac_c_preproc_warn_flag in '' yes
5412 do
5413   # Use a header file that comes with gcc, so configuring glibc
5414   # with a fresh cross-compiler works.
5415   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5416   # <limits.h> exists even on freestanding compilers.
5417   # On the NeXT, cc -E runs the code through the compiler's parser,
5418   # not just through cpp. "Syntax error" is here to catch this case.
5419   cat >conftest.$ac_ext <<_ACEOF
5420 /* confdefs.h.  */
5421 _ACEOF
5422 cat confdefs.h >>conftest.$ac_ext
5423 cat >>conftest.$ac_ext <<_ACEOF
5424 /* end confdefs.h.  */
5425 #ifdef __STDC__
5426 # include <limits.h>
5427 #else
5428 # include <assert.h>
5429 #endif
5430                      Syntax error
5431 _ACEOF
5432 if { (ac_try="$ac_cpp conftest.$ac_ext"
5433 case "(($ac_try" in
5434   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5435   *) ac_try_echo=$ac_try;;
5436 esac
5437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5438   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5439   ac_status=$?
5440   grep -v '^ *+' conftest.er1 >conftest.err
5441   rm -f conftest.er1
5442   cat conftest.err >&5
5443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5444   (exit $ac_status); } >/dev/null; then
5445   if test -s conftest.err; then
5446     ac_cpp_err=$ac_c_preproc_warn_flag
5447     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5448   else
5449     ac_cpp_err=
5450   fi
5451 else
5452   ac_cpp_err=yes
5453 fi
5454 if test -z "$ac_cpp_err"; then
5455   :
5456 else
5457   echo "$as_me: failed program was:" >&5
5458 sed 's/^/| /' conftest.$ac_ext >&5
5459
5460   # Broken: fails on valid input.
5461 continue
5462 fi
5463
5464 rm -f conftest.err conftest.$ac_ext
5465
5466   # OK, works on sane cases.  Now check whether nonexistent headers
5467   # can be detected and how.
5468   cat >conftest.$ac_ext <<_ACEOF
5469 /* confdefs.h.  */
5470 _ACEOF
5471 cat confdefs.h >>conftest.$ac_ext
5472 cat >>conftest.$ac_ext <<_ACEOF
5473 /* end confdefs.h.  */
5474 #include <ac_nonexistent.h>
5475 _ACEOF
5476 if { (ac_try="$ac_cpp conftest.$ac_ext"
5477 case "(($ac_try" in
5478   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5479   *) ac_try_echo=$ac_try;;
5480 esac
5481 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5482   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5483   ac_status=$?
5484   grep -v '^ *+' conftest.er1 >conftest.err
5485   rm -f conftest.er1
5486   cat conftest.err >&5
5487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5488   (exit $ac_status); } >/dev/null; then
5489   if test -s conftest.err; then
5490     ac_cpp_err=$ac_c_preproc_warn_flag
5491     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5492   else
5493     ac_cpp_err=
5494   fi
5495 else
5496   ac_cpp_err=yes
5497 fi
5498 if test -z "$ac_cpp_err"; then
5499   # Broken: success on invalid input.
5500 continue
5501 else
5502   echo "$as_me: failed program was:" >&5
5503 sed 's/^/| /' conftest.$ac_ext >&5
5504
5505   # Passes both tests.
5506 ac_preproc_ok=:
5507 break
5508 fi
5509
5510 rm -f conftest.err conftest.$ac_ext
5511
5512 done
5513 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5514 rm -f conftest.err conftest.$ac_ext
5515 if $ac_preproc_ok; then
5516   break
5517 fi
5518
5519     done
5520     ac_cv_prog_CPP=$CPP
5521
5522 fi
5523   CPP=$ac_cv_prog_CPP
5524 else
5525   ac_cv_prog_CPP=$CPP
5526 fi
5527 { echo "$as_me:$LINENO: result: $CPP" >&5
5528 echo "${ECHO_T}$CPP" >&6; }
5529 ac_preproc_ok=false
5530 for ac_c_preproc_warn_flag in '' yes
5531 do
5532   # Use a header file that comes with gcc, so configuring glibc
5533   # with a fresh cross-compiler works.
5534   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5535   # <limits.h> exists even on freestanding compilers.
5536   # On the NeXT, cc -E runs the code through the compiler's parser,
5537   # not just through cpp. "Syntax error" is here to catch this case.
5538   cat >conftest.$ac_ext <<_ACEOF
5539 /* confdefs.h.  */
5540 _ACEOF
5541 cat confdefs.h >>conftest.$ac_ext
5542 cat >>conftest.$ac_ext <<_ACEOF
5543 /* end confdefs.h.  */
5544 #ifdef __STDC__
5545 # include <limits.h>
5546 #else
5547 # include <assert.h>
5548 #endif
5549                      Syntax error
5550 _ACEOF
5551 if { (ac_try="$ac_cpp conftest.$ac_ext"
5552 case "(($ac_try" in
5553   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5554   *) ac_try_echo=$ac_try;;
5555 esac
5556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5557   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5558   ac_status=$?
5559   grep -v '^ *+' conftest.er1 >conftest.err
5560   rm -f conftest.er1
5561   cat conftest.err >&5
5562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5563   (exit $ac_status); } >/dev/null; then
5564   if test -s conftest.err; then
5565     ac_cpp_err=$ac_c_preproc_warn_flag
5566     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5567   else
5568     ac_cpp_err=
5569   fi
5570 else
5571   ac_cpp_err=yes
5572 fi
5573 if test -z "$ac_cpp_err"; then
5574   :
5575 else
5576   echo "$as_me: failed program was:" >&5
5577 sed 's/^/| /' conftest.$ac_ext >&5
5578
5579   # Broken: fails on valid input.
5580 continue
5581 fi
5582
5583 rm -f conftest.err conftest.$ac_ext
5584
5585   # OK, works on sane cases.  Now check whether nonexistent headers
5586   # can be detected and how.
5587   cat >conftest.$ac_ext <<_ACEOF
5588 /* confdefs.h.  */
5589 _ACEOF
5590 cat confdefs.h >>conftest.$ac_ext
5591 cat >>conftest.$ac_ext <<_ACEOF
5592 /* end confdefs.h.  */
5593 #include <ac_nonexistent.h>
5594 _ACEOF
5595 if { (ac_try="$ac_cpp conftest.$ac_ext"
5596 case "(($ac_try" in
5597   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5598   *) ac_try_echo=$ac_try;;
5599 esac
5600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5601   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5602   ac_status=$?
5603   grep -v '^ *+' conftest.er1 >conftest.err
5604   rm -f conftest.er1
5605   cat conftest.err >&5
5606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5607   (exit $ac_status); } >/dev/null; then
5608   if test -s conftest.err; then
5609     ac_cpp_err=$ac_c_preproc_warn_flag
5610     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5611   else
5612     ac_cpp_err=
5613   fi
5614 else
5615   ac_cpp_err=yes
5616 fi
5617 if test -z "$ac_cpp_err"; then
5618   # Broken: success on invalid input.
5619 continue
5620 else
5621   echo "$as_me: failed program was:" >&5
5622 sed 's/^/| /' conftest.$ac_ext >&5
5623
5624   # Passes both tests.
5625 ac_preproc_ok=:
5626 break
5627 fi
5628
5629 rm -f conftest.err conftest.$ac_ext
5630
5631 done
5632 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5633 rm -f conftest.err conftest.$ac_ext
5634 if $ac_preproc_ok; then
5635   :
5636 else
5637   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5638 See \`config.log' for more details." >&5
5639 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5640 See \`config.log' for more details." >&2;}
5641    { (exit 1); exit 1; }; }
5642 fi
5643
5644 ac_ext=c
5645 ac_cpp='$CPP $CPPFLAGS'
5646 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5647 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5648 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5649
5650 ac_ext=c
5651 ac_cpp='$CPP $CPPFLAGS'
5652 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5653 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5654 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5655 if test -n "$ac_tool_prefix"; then
5656   for ac_prog in gcc
5657   do
5658     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5659 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5660 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5661 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5662 if test "${ac_cv_prog_CC+set}" = set; then
5663   echo $ECHO_N "(cached) $ECHO_C" >&6
5664 else
5665   if test -n "$CC"; then
5666   ac_cv_prog_CC="$CC" # Let the user override the test.
5667 else
5668 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5669 for as_dir in $PATH
5670 do
5671   IFS=$as_save_IFS
5672   test -z "$as_dir" && as_dir=.
5673   for ac_exec_ext in '' $ac_executable_extensions; do
5674   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5675     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5676     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5677     break 2
5678   fi
5679 done
5680 done
5681 IFS=$as_save_IFS
5682
5683 fi
5684 fi
5685 CC=$ac_cv_prog_CC
5686 if test -n "$CC"; then
5687   { echo "$as_me:$LINENO: result: $CC" >&5
5688 echo "${ECHO_T}$CC" >&6; }
5689 else
5690   { echo "$as_me:$LINENO: result: no" >&5
5691 echo "${ECHO_T}no" >&6; }
5692 fi
5693
5694
5695     test -n "$CC" && break
5696   done
5697 fi
5698 if test -z "$CC"; then
5699   ac_ct_CC=$CC
5700   for ac_prog in gcc
5701 do
5702   # Extract the first word of "$ac_prog", so it can be a program name with args.
5703 set dummy $ac_prog; ac_word=$2
5704 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5705 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5706 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5707   echo $ECHO_N "(cached) $ECHO_C" >&6
5708 else
5709   if test -n "$ac_ct_CC"; then
5710   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5711 else
5712 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5713 for as_dir in $PATH
5714 do
5715   IFS=$as_save_IFS
5716   test -z "$as_dir" && as_dir=.
5717   for ac_exec_ext in '' $ac_executable_extensions; do
5718   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5719     ac_cv_prog_ac_ct_CC="$ac_prog"
5720     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5721     break 2
5722   fi
5723 done
5724 done
5725 IFS=$as_save_IFS
5726
5727 fi
5728 fi
5729 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5730 if test -n "$ac_ct_CC"; then
5731   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5732 echo "${ECHO_T}$ac_ct_CC" >&6; }
5733 else
5734   { echo "$as_me:$LINENO: result: no" >&5
5735 echo "${ECHO_T}no" >&6; }
5736 fi
5737
5738
5739   test -n "$ac_ct_CC" && break
5740 done
5741
5742   if test "x$ac_ct_CC" = x; then
5743     CC=""
5744   else
5745     case $cross_compiling:$ac_tool_warned in
5746 yes:)
5747 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5748 whose name does not start with the host triplet.  If you think this
5749 configuration is useful to you, please write to autoconf@gnu.org." >&5
5750 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5751 whose name does not start with the host triplet.  If you think this
5752 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5753 ac_tool_warned=yes ;;
5754 esac
5755     CC=$ac_ct_CC
5756   fi
5757 fi
5758
5759
5760 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5761 See \`config.log' for more details." >&5
5762 echo "$as_me: error: no acceptable C compiler found in \$PATH
5763 See \`config.log' for more details." >&2;}
5764    { (exit 1); exit 1; }; }
5765
5766 # Provide some information about the compiler.
5767 echo "$as_me:$LINENO: checking for C compiler version" >&5
5768 ac_compiler=`set X $ac_compile; echo $2`
5769 { (ac_try="$ac_compiler --version >&5"
5770 case "(($ac_try" in
5771   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5772   *) ac_try_echo=$ac_try;;
5773 esac
5774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5775   (eval "$ac_compiler --version >&5") 2>&5
5776   ac_status=$?
5777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5778   (exit $ac_status); }
5779 { (ac_try="$ac_compiler -v >&5"
5780 case "(($ac_try" in
5781   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5782   *) ac_try_echo=$ac_try;;
5783 esac
5784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5785   (eval "$ac_compiler -v >&5") 2>&5
5786   ac_status=$?
5787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5788   (exit $ac_status); }
5789 { (ac_try="$ac_compiler -V >&5"
5790 case "(($ac_try" in
5791   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5792   *) ac_try_echo=$ac_try;;
5793 esac
5794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5795   (eval "$ac_compiler -V >&5") 2>&5
5796   ac_status=$?
5797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5798   (exit $ac_status); }
5799
5800 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5801 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
5802 if test "${ac_cv_c_compiler_gnu+set}" = set; then
5803   echo $ECHO_N "(cached) $ECHO_C" >&6
5804 else
5805   cat >conftest.$ac_ext <<_ACEOF
5806 /* confdefs.h.  */
5807 _ACEOF
5808 cat confdefs.h >>conftest.$ac_ext
5809 cat >>conftest.$ac_ext <<_ACEOF
5810 /* end confdefs.h.  */
5811
5812 int
5813 main ()
5814 {
5815 #ifndef __GNUC__
5816        choke me
5817 #endif
5818
5819   ;
5820   return 0;
5821 }
5822 _ACEOF
5823 rm -f conftest.$ac_objext
5824 if { (ac_try="$ac_compile"
5825 case "(($ac_try" in
5826   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5827   *) ac_try_echo=$ac_try;;
5828 esac
5829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5830   (eval "$ac_compile") 2>conftest.er1
5831   ac_status=$?
5832   grep -v '^ *+' conftest.er1 >conftest.err
5833   rm -f conftest.er1
5834   cat conftest.err >&5
5835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5836   (exit $ac_status); } &&
5837          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5838   { (case "(($ac_try" in
5839   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5840   *) ac_try_echo=$ac_try;;
5841 esac
5842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5843   (eval "$ac_try") 2>&5
5844   ac_status=$?
5845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5846   (exit $ac_status); }; } &&
5847          { ac_try='test -s conftest.$ac_objext'
5848   { (case "(($ac_try" in
5849   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5850   *) ac_try_echo=$ac_try;;
5851 esac
5852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5853   (eval "$ac_try") 2>&5
5854   ac_status=$?
5855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5856   (exit $ac_status); }; }; then
5857   ac_compiler_gnu=yes
5858 else
5859   echo "$as_me: failed program was:" >&5
5860 sed 's/^/| /' conftest.$ac_ext >&5
5861
5862         ac_compiler_gnu=no
5863 fi
5864
5865 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5866 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5867
5868 fi
5869 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5870 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
5871 GCC=`test $ac_compiler_gnu = yes && echo yes`
5872 ac_test_CFLAGS=${CFLAGS+set}
5873 ac_save_CFLAGS=$CFLAGS
5874 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5875 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
5876 if test "${ac_cv_prog_cc_g+set}" = set; then
5877   echo $ECHO_N "(cached) $ECHO_C" >&6
5878 else
5879   ac_save_c_werror_flag=$ac_c_werror_flag
5880    ac_c_werror_flag=yes
5881    ac_cv_prog_cc_g=no
5882    CFLAGS="-g"
5883    cat >conftest.$ac_ext <<_ACEOF
5884 /* confdefs.h.  */
5885 _ACEOF
5886 cat confdefs.h >>conftest.$ac_ext
5887 cat >>conftest.$ac_ext <<_ACEOF
5888 /* end confdefs.h.  */
5889
5890 int
5891 main ()
5892 {
5893
5894   ;
5895   return 0;
5896 }
5897 _ACEOF
5898 rm -f conftest.$ac_objext
5899 if { (ac_try="$ac_compile"
5900 case "(($ac_try" in
5901   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5902   *) ac_try_echo=$ac_try;;
5903 esac
5904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5905   (eval "$ac_compile") 2>conftest.er1
5906   ac_status=$?
5907   grep -v '^ *+' conftest.er1 >conftest.err
5908   rm -f conftest.er1
5909   cat conftest.err >&5
5910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5911   (exit $ac_status); } &&
5912          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5913   { (case "(($ac_try" in
5914   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5915   *) ac_try_echo=$ac_try;;
5916 esac
5917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5918   (eval "$ac_try") 2>&5
5919   ac_status=$?
5920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5921   (exit $ac_status); }; } &&
5922          { ac_try='test -s conftest.$ac_objext'
5923   { (case "(($ac_try" in
5924   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5925   *) ac_try_echo=$ac_try;;
5926 esac
5927 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5928   (eval "$ac_try") 2>&5
5929   ac_status=$?
5930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5931   (exit $ac_status); }; }; then
5932   ac_cv_prog_cc_g=yes
5933 else
5934   echo "$as_me: failed program was:" >&5
5935 sed 's/^/| /' conftest.$ac_ext >&5
5936
5937         CFLAGS=""
5938       cat >conftest.$ac_ext <<_ACEOF
5939 /* confdefs.h.  */
5940 _ACEOF
5941 cat confdefs.h >>conftest.$ac_ext
5942 cat >>conftest.$ac_ext <<_ACEOF
5943 /* end confdefs.h.  */
5944
5945 int
5946 main ()
5947 {
5948
5949   ;
5950   return 0;
5951 }
5952 _ACEOF
5953 rm -f conftest.$ac_objext
5954 if { (ac_try="$ac_compile"
5955 case "(($ac_try" in
5956   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5957   *) ac_try_echo=$ac_try;;
5958 esac
5959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5960   (eval "$ac_compile") 2>conftest.er1
5961   ac_status=$?
5962   grep -v '^ *+' conftest.er1 >conftest.err
5963   rm -f conftest.er1
5964   cat conftest.err >&5
5965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5966   (exit $ac_status); } &&
5967          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5968   { (case "(($ac_try" in
5969   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5970   *) ac_try_echo=$ac_try;;
5971 esac
5972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5973   (eval "$ac_try") 2>&5
5974   ac_status=$?
5975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5976   (exit $ac_status); }; } &&
5977          { ac_try='test -s conftest.$ac_objext'
5978   { (case "(($ac_try" in
5979   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5980   *) ac_try_echo=$ac_try;;
5981 esac
5982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5983   (eval "$ac_try") 2>&5
5984   ac_status=$?
5985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5986   (exit $ac_status); }; }; then
5987   :
5988 else
5989   echo "$as_me: failed program was:" >&5
5990 sed 's/^/| /' conftest.$ac_ext >&5
5991
5992         ac_c_werror_flag=$ac_save_c_werror_flag
5993          CFLAGS="-g"
5994          cat >conftest.$ac_ext <<_ACEOF
5995 /* confdefs.h.  */
5996 _ACEOF
5997 cat confdefs.h >>conftest.$ac_ext
5998 cat >>conftest.$ac_ext <<_ACEOF
5999 /* end confdefs.h.  */
6000
6001 int
6002 main ()
6003 {
6004
6005   ;
6006   return 0;
6007 }
6008 _ACEOF
6009 rm -f conftest.$ac_objext
6010 if { (ac_try="$ac_compile"
6011 case "(($ac_try" in
6012   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6013   *) ac_try_echo=$ac_try;;
6014 esac
6015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6016   (eval "$ac_compile") 2>conftest.er1
6017   ac_status=$?
6018   grep -v '^ *+' conftest.er1 >conftest.err
6019   rm -f conftest.er1
6020   cat conftest.err >&5
6021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6022   (exit $ac_status); } &&
6023          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6024   { (case "(($ac_try" in
6025   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6026   *) ac_try_echo=$ac_try;;
6027 esac
6028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6029   (eval "$ac_try") 2>&5
6030   ac_status=$?
6031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6032   (exit $ac_status); }; } &&
6033          { ac_try='test -s conftest.$ac_objext'
6034   { (case "(($ac_try" in
6035   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6036   *) ac_try_echo=$ac_try;;
6037 esac
6038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6039   (eval "$ac_try") 2>&5
6040   ac_status=$?
6041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6042   (exit $ac_status); }; }; then
6043   ac_cv_prog_cc_g=yes
6044 else
6045   echo "$as_me: failed program was:" >&5
6046 sed 's/^/| /' conftest.$ac_ext >&5
6047
6048
6049 fi
6050
6051 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6052 fi
6053
6054 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6055 fi
6056
6057 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6058    ac_c_werror_flag=$ac_save_c_werror_flag
6059 fi
6060 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
6061 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
6062 if test "$ac_test_CFLAGS" = set; then
6063   CFLAGS=$ac_save_CFLAGS
6064 elif test $ac_cv_prog_cc_g = yes; then
6065   if test "$GCC" = yes; then
6066     CFLAGS="-g -O2"
6067   else
6068     CFLAGS="-g"
6069   fi
6070 else
6071   if test "$GCC" = yes; then
6072     CFLAGS="-O2"
6073   else
6074     CFLAGS=
6075   fi
6076 fi
6077 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
6078 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
6079 if test "${ac_cv_prog_cc_c89+set}" = set; then
6080   echo $ECHO_N "(cached) $ECHO_C" >&6
6081 else
6082   ac_cv_prog_cc_c89=no
6083 ac_save_CC=$CC
6084 cat >conftest.$ac_ext <<_ACEOF
6085 /* confdefs.h.  */
6086 _ACEOF
6087 cat confdefs.h >>conftest.$ac_ext
6088 cat >>conftest.$ac_ext <<_ACEOF
6089 /* end confdefs.h.  */
6090 #include <stdarg.h>
6091 #include <stdio.h>
6092 #include <sys/types.h>
6093 #include <sys/stat.h>
6094 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
6095 struct buf { int x; };
6096 FILE * (*rcsopen) (struct buf *, struct stat *, int);
6097 static char *e (p, i)
6098      char **p;
6099      int i;
6100 {
6101   return p[i];
6102 }
6103 static char *f (char * (*g) (char **, int), char **p, ...)
6104 {
6105   char *s;
6106   va_list v;
6107   va_start (v,p);
6108   s = g (p, va_arg (v,int));
6109   va_end (v);
6110   return s;
6111 }
6112
6113 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
6114    function prototypes and stuff, but not '\xHH' hex character constants.
6115    These don't provoke an error unfortunately, instead are silently treated
6116    as 'x'.  The following induces an error, until -std is added to get
6117    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
6118    array size at least.  It's necessary to write '\x00'==0 to get something
6119    that's true only with -std.  */
6120 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6121
6122 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6123    inside strings and character constants.  */
6124 #define FOO(x) 'x'
6125 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6126
6127 int test (int i, double x);
6128 struct s1 {int (*f) (int a);};
6129 struct s2 {int (*f) (double a);};
6130 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6131 int argc;
6132 char **argv;
6133 int
6134 main ()
6135 {
6136 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
6137   ;
6138   return 0;
6139 }
6140 _ACEOF
6141 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6142         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6143 do
6144   CC="$ac_save_CC $ac_arg"
6145   rm -f conftest.$ac_objext
6146 if { (ac_try="$ac_compile"
6147 case "(($ac_try" in
6148   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6149   *) ac_try_echo=$ac_try;;
6150 esac
6151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6152   (eval "$ac_compile") 2>conftest.er1
6153   ac_status=$?
6154   grep -v '^ *+' conftest.er1 >conftest.err
6155   rm -f conftest.er1
6156   cat conftest.err >&5
6157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6158   (exit $ac_status); } &&
6159          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6160   { (case "(($ac_try" in
6161   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6162   *) ac_try_echo=$ac_try;;
6163 esac
6164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6165   (eval "$ac_try") 2>&5
6166   ac_status=$?
6167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6168   (exit $ac_status); }; } &&
6169          { ac_try='test -s conftest.$ac_objext'
6170   { (case "(($ac_try" in
6171   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6172   *) ac_try_echo=$ac_try;;
6173 esac
6174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6175   (eval "$ac_try") 2>&5
6176   ac_status=$?
6177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6178   (exit $ac_status); }; }; then
6179   ac_cv_prog_cc_c89=$ac_arg
6180 else
6181   echo "$as_me: failed program was:" >&5
6182 sed 's/^/| /' conftest.$ac_ext >&5
6183
6184
6185 fi
6186
6187 rm -f core conftest.err conftest.$ac_objext
6188   test "x$ac_cv_prog_cc_c89" != "xno" && break
6189 done
6190 rm -f conftest.$ac_ext
6191 CC=$ac_save_CC
6192
6193 fi
6194 # AC_CACHE_VAL
6195 case "x$ac_cv_prog_cc_c89" in
6196   x)
6197     { echo "$as_me:$LINENO: result: none needed" >&5
6198 echo "${ECHO_T}none needed" >&6; } ;;
6199   xno)
6200     { echo "$as_me:$LINENO: result: unsupported" >&5
6201 echo "${ECHO_T}unsupported" >&6; } ;;
6202   *)
6203     CC="$CC $ac_cv_prog_cc_c89"
6204     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
6205 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
6206 esac
6207
6208
6209 ac_ext=c
6210 ac_cpp='$CPP $CPPFLAGS'
6211 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6212 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6213 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6214
6215 ac_ext=cpp
6216 ac_cpp='$CXXCPP $CPPFLAGS'
6217 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6218 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6219 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6220 if test -z "$CXX"; then
6221   if test -n "$CCC"; then
6222     CXX=$CCC
6223   else
6224     if test -n "$ac_tool_prefix"; then
6225   for ac_prog in g++
6226   do
6227     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6228 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6229 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6230 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6231 if test "${ac_cv_prog_CXX+set}" = set; then
6232   echo $ECHO_N "(cached) $ECHO_C" >&6
6233 else
6234   if test -n "$CXX"; then
6235   ac_cv_prog_CXX="$CXX" # Let the user override the test.
6236 else
6237 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6238 for as_dir in $PATH
6239 do
6240   IFS=$as_save_IFS
6241   test -z "$as_dir" && as_dir=.
6242   for ac_exec_ext in '' $ac_executable_extensions; do
6243   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6244     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6245     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6246     break 2
6247   fi
6248 done
6249 done
6250 IFS=$as_save_IFS
6251
6252 fi
6253 fi
6254 CXX=$ac_cv_prog_CXX
6255 if test -n "$CXX"; then
6256   { echo "$as_me:$LINENO: result: $CXX" >&5
6257 echo "${ECHO_T}$CXX" >&6; }
6258 else
6259   { echo "$as_me:$LINENO: result: no" >&5
6260 echo "${ECHO_T}no" >&6; }
6261 fi
6262
6263
6264     test -n "$CXX" && break
6265   done
6266 fi
6267 if test -z "$CXX"; then
6268   ac_ct_CXX=$CXX
6269   for ac_prog in g++
6270 do
6271   # Extract the first word of "$ac_prog", so it can be a program name with args.
6272 set dummy $ac_prog; ac_word=$2
6273 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6274 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6275 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
6276   echo $ECHO_N "(cached) $ECHO_C" >&6
6277 else
6278   if test -n "$ac_ct_CXX"; then
6279   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6280 else
6281 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6282 for as_dir in $PATH
6283 do
6284   IFS=$as_save_IFS
6285   test -z "$as_dir" && as_dir=.
6286   for ac_exec_ext in '' $ac_executable_extensions; do
6287   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6288     ac_cv_prog_ac_ct_CXX="$ac_prog"
6289     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6290     break 2
6291   fi
6292 done
6293 done
6294 IFS=$as_save_IFS
6295
6296 fi
6297 fi
6298 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6299 if test -n "$ac_ct_CXX"; then
6300   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
6301 echo "${ECHO_T}$ac_ct_CXX" >&6; }
6302 else
6303   { echo "$as_me:$LINENO: result: no" >&5
6304 echo "${ECHO_T}no" >&6; }
6305 fi
6306
6307
6308   test -n "$ac_ct_CXX" && break
6309 done
6310
6311   if test "x$ac_ct_CXX" = x; then
6312     CXX="g++"
6313   else
6314     case $cross_compiling:$ac_tool_warned in
6315 yes:)
6316 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6317 whose name does not start with the host triplet.  If you think this
6318 configuration is useful to you, please write to autoconf@gnu.org." >&5
6319 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6320 whose name does not start with the host triplet.  If you think this
6321 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6322 ac_tool_warned=yes ;;
6323 esac
6324     CXX=$ac_ct_CXX
6325   fi
6326 fi
6327
6328   fi
6329 fi
6330 # Provide some information about the compiler.
6331 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
6332 ac_compiler=`set X $ac_compile; echo $2`
6333 { (ac_try="$ac_compiler --version >&5"
6334 case "(($ac_try" in
6335   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6336   *) ac_try_echo=$ac_try;;
6337 esac
6338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6339   (eval "$ac_compiler --version >&5") 2>&5
6340   ac_status=$?
6341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6342   (exit $ac_status); }
6343 { (ac_try="$ac_compiler -v >&5"
6344 case "(($ac_try" in
6345   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6346   *) ac_try_echo=$ac_try;;
6347 esac
6348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6349   (eval "$ac_compiler -v >&5") 2>&5
6350   ac_status=$?
6351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6352   (exit $ac_status); }
6353 { (ac_try="$ac_compiler -V >&5"
6354 case "(($ac_try" in
6355   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6356   *) ac_try_echo=$ac_try;;
6357 esac
6358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6359   (eval "$ac_compiler -V >&5") 2>&5
6360   ac_status=$?
6361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6362   (exit $ac_status); }
6363
6364 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
6365 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
6366 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
6367   echo $ECHO_N "(cached) $ECHO_C" >&6
6368 else
6369   cat >conftest.$ac_ext <<_ACEOF
6370 /* confdefs.h.  */
6371 _ACEOF
6372 cat confdefs.h >>conftest.$ac_ext
6373 cat >>conftest.$ac_ext <<_ACEOF
6374 /* end confdefs.h.  */
6375
6376 int
6377 main ()
6378 {
6379 #ifndef __GNUC__
6380        choke me
6381 #endif
6382
6383   ;
6384   return 0;
6385 }
6386 _ACEOF
6387 rm -f conftest.$ac_objext
6388 if { (ac_try="$ac_compile"
6389 case "(($ac_try" in
6390   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6391   *) ac_try_echo=$ac_try;;
6392 esac
6393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6394   (eval "$ac_compile") 2>conftest.er1
6395   ac_status=$?
6396   grep -v '^ *+' conftest.er1 >conftest.err
6397   rm -f conftest.er1
6398   cat conftest.err >&5
6399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6400   (exit $ac_status); } &&
6401          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6402   { (case "(($ac_try" in
6403   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6404   *) ac_try_echo=$ac_try;;
6405 esac
6406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6407   (eval "$ac_try") 2>&5
6408   ac_status=$?
6409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6410   (exit $ac_status); }; } &&
6411          { ac_try='test -s conftest.$ac_objext'
6412   { (case "(($ac_try" in
6413   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6414   *) ac_try_echo=$ac_try;;
6415 esac
6416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6417   (eval "$ac_try") 2>&5
6418   ac_status=$?
6419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6420   (exit $ac_status); }; }; then
6421   ac_compiler_gnu=yes
6422 else
6423   echo "$as_me: failed program was:" >&5
6424 sed 's/^/| /' conftest.$ac_ext >&5
6425
6426         ac_compiler_gnu=no
6427 fi
6428
6429 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6430 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6431
6432 fi
6433 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
6434 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
6435 GXX=`test $ac_compiler_gnu = yes && echo yes`
6436 ac_test_CXXFLAGS=${CXXFLAGS+set}
6437 ac_save_CXXFLAGS=$CXXFLAGS
6438 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
6439 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
6440 if test "${ac_cv_prog_cxx_g+set}" = set; then
6441   echo $ECHO_N "(cached) $ECHO_C" >&6
6442 else
6443   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6444    ac_cxx_werror_flag=yes
6445    ac_cv_prog_cxx_g=no
6446    CXXFLAGS="-g"
6447    cat >conftest.$ac_ext <<_ACEOF
6448 /* confdefs.h.  */
6449 _ACEOF
6450 cat confdefs.h >>conftest.$ac_ext
6451 cat >>conftest.$ac_ext <<_ACEOF
6452 /* end confdefs.h.  */
6453
6454 int
6455 main ()
6456 {
6457
6458   ;
6459   return 0;
6460 }
6461 _ACEOF
6462 rm -f conftest.$ac_objext
6463 if { (ac_try="$ac_compile"
6464 case "(($ac_try" in
6465   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6466   *) ac_try_echo=$ac_try;;
6467 esac
6468 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6469   (eval "$ac_compile") 2>conftest.er1
6470   ac_status=$?
6471   grep -v '^ *+' conftest.er1 >conftest.err
6472   rm -f conftest.er1
6473   cat conftest.err >&5
6474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6475   (exit $ac_status); } &&
6476          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6477   { (case "(($ac_try" in
6478   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6479   *) ac_try_echo=$ac_try;;
6480 esac
6481 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6482   (eval "$ac_try") 2>&5
6483   ac_status=$?
6484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6485   (exit $ac_status); }; } &&
6486          { ac_try='test -s conftest.$ac_objext'
6487   { (case "(($ac_try" in
6488   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6489   *) ac_try_echo=$ac_try;;
6490 esac
6491 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6492   (eval "$ac_try") 2>&5
6493   ac_status=$?
6494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6495   (exit $ac_status); }; }; then
6496   ac_cv_prog_cxx_g=yes
6497 else
6498   echo "$as_me: failed program was:" >&5
6499 sed 's/^/| /' conftest.$ac_ext >&5
6500
6501         CXXFLAGS=""
6502       cat >conftest.$ac_ext <<_ACEOF
6503 /* confdefs.h.  */
6504 _ACEOF
6505 cat confdefs.h >>conftest.$ac_ext
6506 cat >>conftest.$ac_ext <<_ACEOF
6507 /* end confdefs.h.  */
6508
6509 int
6510 main ()
6511 {
6512
6513   ;
6514   return 0;
6515 }
6516 _ACEOF
6517 rm -f conftest.$ac_objext
6518 if { (ac_try="$ac_compile"
6519 case "(($ac_try" in
6520   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6521   *) ac_try_echo=$ac_try;;
6522 esac
6523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6524   (eval "$ac_compile") 2>conftest.er1
6525   ac_status=$?
6526   grep -v '^ *+' conftest.er1 >conftest.err
6527   rm -f conftest.er1
6528   cat conftest.err >&5
6529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6530   (exit $ac_status); } &&
6531          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6532   { (case "(($ac_try" in
6533   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6534   *) ac_try_echo=$ac_try;;
6535 esac
6536 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6537   (eval "$ac_try") 2>&5
6538   ac_status=$?
6539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6540   (exit $ac_status); }; } &&
6541          { ac_try='test -s conftest.$ac_objext'
6542   { (case "(($ac_try" in
6543   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6544   *) ac_try_echo=$ac_try;;
6545 esac
6546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6547   (eval "$ac_try") 2>&5
6548   ac_status=$?
6549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6550   (exit $ac_status); }; }; then
6551   :
6552 else
6553   echo "$as_me: failed program was:" >&5
6554 sed 's/^/| /' conftest.$ac_ext >&5
6555
6556         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6557          CXXFLAGS="-g"
6558          cat >conftest.$ac_ext <<_ACEOF
6559 /* confdefs.h.  */
6560 _ACEOF
6561 cat confdefs.h >>conftest.$ac_ext
6562 cat >>conftest.$ac_ext <<_ACEOF
6563 /* end confdefs.h.  */
6564
6565 int
6566 main ()
6567 {
6568
6569   ;
6570   return 0;
6571 }
6572 _ACEOF
6573 rm -f conftest.$ac_objext
6574 if { (ac_try="$ac_compile"
6575 case "(($ac_try" in
6576   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6577   *) ac_try_echo=$ac_try;;
6578 esac
6579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6580   (eval "$ac_compile") 2>conftest.er1
6581   ac_status=$?
6582   grep -v '^ *+' conftest.er1 >conftest.err
6583   rm -f conftest.er1
6584   cat conftest.err >&5
6585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6586   (exit $ac_status); } &&
6587          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6588   { (case "(($ac_try" in
6589   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6590   *) ac_try_echo=$ac_try;;
6591 esac
6592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6593   (eval "$ac_try") 2>&5
6594   ac_status=$?
6595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6596   (exit $ac_status); }; } &&
6597          { ac_try='test -s conftest.$ac_objext'
6598   { (case "(($ac_try" in
6599   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6600   *) ac_try_echo=$ac_try;;
6601 esac
6602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6603   (eval "$ac_try") 2>&5
6604   ac_status=$?
6605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6606   (exit $ac_status); }; }; then
6607   ac_cv_prog_cxx_g=yes
6608 else
6609   echo "$as_me: failed program was:" >&5
6610 sed 's/^/| /' conftest.$ac_ext >&5
6611
6612
6613 fi
6614
6615 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6616 fi
6617
6618 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6619 fi
6620
6621 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6622    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6623 fi
6624 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6625 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
6626 if test "$ac_test_CXXFLAGS" = set; then
6627   CXXFLAGS=$ac_save_CXXFLAGS
6628 elif test $ac_cv_prog_cxx_g = yes; then
6629   if test "$GXX" = yes; then
6630     CXXFLAGS="-g -O2"
6631   else
6632     CXXFLAGS="-g"
6633   fi
6634 else
6635   if test "$GXX" = yes; then
6636     CXXFLAGS="-O2"
6637   else
6638     CXXFLAGS=
6639   fi
6640 fi
6641 ac_ext=c
6642 ac_cpp='$CPP $CPPFLAGS'
6643 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6644 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6645 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6646
6647
6648 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6649 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6650 if test "${lt_cv_path_NM+set}" = set; then
6651   echo $ECHO_N "(cached) $ECHO_C" >&6
6652 else
6653   if test -n "$NM"; then
6654   # Let the user override the test.
6655   lt_cv_path_NM="$NM"
6656 else
6657   lt_nm_to_check="${ac_tool_prefix}nm"
6658   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6659     lt_nm_to_check="$lt_nm_to_check nm"
6660   fi
6661   for lt_tmp_nm in $lt_nm_to_check; do
6662     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6663     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6664       IFS="$lt_save_ifs"
6665       test -z "$ac_dir" && ac_dir=.
6666       tmp_nm="$ac_dir/$lt_tmp_nm"
6667       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6668         # Check to see if the nm accepts a BSD-compat flag.
6669         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6670         #   nm: unknown option "B" ignored
6671         # Tru64's nm complains that /dev/null is an invalid object file
6672         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6673         */dev/null* | *'Invalid file or object type'*)
6674           lt_cv_path_NM="$tmp_nm -B"
6675           break
6676           ;;
6677         *)
6678           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6679           */dev/null*)
6680             lt_cv_path_NM="$tmp_nm -p"
6681             break
6682             ;;
6683           *)
6684             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6685             continue # so that we can try to find one that supports BSD flags
6686             ;;
6687           esac
6688           ;;
6689         esac
6690       fi
6691     done
6692     IFS="$lt_save_ifs"
6693   done
6694   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6695 fi
6696 fi
6697 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6698 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
6699 NM="$lt_cv_path_NM"
6700
6701
6702
6703 { echo "$as_me:$LINENO: checking for GNU make" >&5
6704 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6705 if test "${llvm_cv_gnu_make_command+set}" = set; then
6706   echo $ECHO_N "(cached) $ECHO_C" >&6
6707 else
6708   llvm_cv_gnu_make_command=''
6709  for a in "$MAKE" make gmake gnumake ; do
6710   if test -z "$a" ; then continue ; fi ;
6711   if  ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
6712   then
6713    llvm_cv_gnu_make_command=$a ;
6714    break;
6715   fi
6716  done
6717 fi
6718 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
6719 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
6720  if test "x$llvm_cv_gnu_make_command" != "x"  ; then
6721    ifGNUmake='' ;
6722  else
6723    ifGNUmake='#' ;
6724    { echo "$as_me:$LINENO: result: \"Not found\"" >&5
6725 echo "${ECHO_T}\"Not found\"" >&6; };
6726  fi
6727
6728
6729 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
6730 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6731 LN_S=$as_ln_s
6732 if test "$LN_S" = "ln -s"; then
6733   { echo "$as_me:$LINENO: result: yes" >&5
6734 echo "${ECHO_T}yes" >&6; }
6735 else
6736   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6737 echo "${ECHO_T}no, using $LN_S" >&6; }
6738 fi
6739
6740 # Extract the first word of "cmp", so it can be a program name with args.
6741 set dummy cmp; ac_word=$2
6742 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6743 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6744 if test "${ac_cv_path_CMP+set}" = set; then
6745   echo $ECHO_N "(cached) $ECHO_C" >&6
6746 else
6747   case $CMP in
6748   [\\/]* | ?:[\\/]*)
6749   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
6750   ;;
6751   *)
6752   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6753 for as_dir in $PATH
6754 do
6755   IFS=$as_save_IFS
6756   test -z "$as_dir" && as_dir=.
6757   for ac_exec_ext in '' $ac_executable_extensions; do
6758   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6759     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
6760     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6761     break 2
6762   fi
6763 done
6764 done
6765 IFS=$as_save_IFS
6766
6767   test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
6768   ;;
6769 esac
6770 fi
6771 CMP=$ac_cv_path_CMP
6772 if test -n "$CMP"; then
6773   { echo "$as_me:$LINENO: result: $CMP" >&5
6774 echo "${ECHO_T}$CMP" >&6; }
6775 else
6776   { echo "$as_me:$LINENO: result: no" >&5
6777 echo "${ECHO_T}no" >&6; }
6778 fi
6779
6780
6781 # Extract the first word of "cp", so it can be a program name with args.
6782 set dummy cp; ac_word=$2
6783 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6784 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6785 if test "${ac_cv_path_CP+set}" = set; then
6786   echo $ECHO_N "(cached) $ECHO_C" >&6
6787 else
6788   case $CP in
6789   [\\/]* | ?:[\\/]*)
6790   ac_cv_path_CP="$CP" # Let the user override the test with a path.
6791   ;;
6792   *)
6793   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6794 for as_dir in $PATH
6795 do
6796   IFS=$as_save_IFS
6797   test -z "$as_dir" && as_dir=.
6798   for ac_exec_ext in '' $ac_executable_extensions; do
6799   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6800     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
6801     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6802     break 2
6803   fi
6804 done
6805 done
6806 IFS=$as_save_IFS
6807
6808   test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
6809   ;;
6810 esac
6811 fi
6812 CP=$ac_cv_path_CP
6813 if test -n "$CP"; then
6814   { echo "$as_me:$LINENO: result: $CP" >&5
6815 echo "${ECHO_T}$CP" >&6; }
6816 else
6817   { echo "$as_me:$LINENO: result: no" >&5
6818 echo "${ECHO_T}no" >&6; }
6819 fi
6820
6821
6822 # Extract the first word of "date", so it can be a program name with args.
6823 set dummy date; ac_word=$2
6824 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6825 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6826 if test "${ac_cv_path_DATE+set}" = set; then
6827   echo $ECHO_N "(cached) $ECHO_C" >&6
6828 else
6829   case $DATE in
6830   [\\/]* | ?:[\\/]*)
6831   ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6832   ;;
6833   *)
6834   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6835 for as_dir in $PATH
6836 do
6837   IFS=$as_save_IFS
6838   test -z "$as_dir" && as_dir=.
6839   for ac_exec_ext in '' $ac_executable_extensions; do
6840   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6841     ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6842     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6843     break 2
6844   fi
6845 done
6846 done
6847 IFS=$as_save_IFS
6848
6849   test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
6850   ;;
6851 esac
6852 fi
6853 DATE=$ac_cv_path_DATE
6854 if test -n "$DATE"; then
6855   { echo "$as_me:$LINENO: result: $DATE" >&5
6856 echo "${ECHO_T}$DATE" >&6; }
6857 else
6858   { echo "$as_me:$LINENO: result: no" >&5
6859 echo "${ECHO_T}no" >&6; }
6860 fi
6861
6862
6863 # Extract the first word of "find", so it can be a program name with args.
6864 set dummy find; ac_word=$2
6865 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6866 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6867 if test "${ac_cv_path_FIND+set}" = set; then
6868   echo $ECHO_N "(cached) $ECHO_C" >&6
6869 else
6870   case $FIND in
6871   [\\/]* | ?:[\\/]*)
6872   ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
6873   ;;
6874   *)
6875   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6876 for as_dir in $PATH
6877 do
6878   IFS=$as_save_IFS
6879   test -z "$as_dir" && as_dir=.
6880   for ac_exec_ext in '' $ac_executable_extensions; do
6881   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6882     ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
6883     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6884     break 2
6885   fi
6886 done
6887 done
6888 IFS=$as_save_IFS
6889
6890   test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
6891   ;;
6892 esac
6893 fi
6894 FIND=$ac_cv_path_FIND
6895 if test -n "$FIND"; then
6896   { echo "$as_me:$LINENO: result: $FIND" >&5
6897 echo "${ECHO_T}$FIND" >&6; }
6898 else
6899   { echo "$as_me:$LINENO: result: no" >&5
6900 echo "${ECHO_T}no" >&6; }
6901 fi
6902
6903
6904 # Extract the first word of "grep", so it can be a program name with args.
6905 set dummy grep; ac_word=$2
6906 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6907 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6908 if test "${ac_cv_path_GREP+set}" = set; then
6909   echo $ECHO_N "(cached) $ECHO_C" >&6
6910 else
6911   case $GREP in
6912   [\\/]* | ?:[\\/]*)
6913   ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
6914   ;;
6915   *)
6916   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6917 for as_dir in $PATH
6918 do
6919   IFS=$as_save_IFS
6920   test -z "$as_dir" && as_dir=.
6921   for ac_exec_ext in '' $ac_executable_extensions; do
6922   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6923     ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
6924     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6925     break 2
6926   fi
6927 done
6928 done
6929 IFS=$as_save_IFS
6930
6931   test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
6932   ;;
6933 esac
6934 fi
6935 GREP=$ac_cv_path_GREP
6936 if test -n "$GREP"; then
6937   { echo "$as_me:$LINENO: result: $GREP" >&5
6938 echo "${ECHO_T}$GREP" >&6; }
6939 else
6940   { echo "$as_me:$LINENO: result: no" >&5
6941 echo "${ECHO_T}no" >&6; }
6942 fi
6943
6944
6945 # Extract the first word of "mkdir", so it can be a program name with args.
6946 set dummy mkdir; ac_word=$2
6947 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6948 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6949 if test "${ac_cv_path_MKDIR+set}" = set; then
6950   echo $ECHO_N "(cached) $ECHO_C" >&6
6951 else
6952   case $MKDIR in
6953   [\\/]* | ?:[\\/]*)
6954   ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6955   ;;
6956   *)
6957   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6958 for as_dir in $PATH
6959 do
6960   IFS=$as_save_IFS
6961   test -z "$as_dir" && as_dir=.
6962   for ac_exec_ext in '' $ac_executable_extensions; do
6963   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6964     ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
6965     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6966     break 2
6967   fi
6968 done
6969 done
6970 IFS=$as_save_IFS
6971
6972   test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6973   ;;
6974 esac
6975 fi
6976 MKDIR=$ac_cv_path_MKDIR
6977 if test -n "$MKDIR"; then
6978   { echo "$as_me:$LINENO: result: $MKDIR" >&5
6979 echo "${ECHO_T}$MKDIR" >&6; }
6980 else
6981   { echo "$as_me:$LINENO: result: no" >&5
6982 echo "${ECHO_T}no" >&6; }
6983 fi
6984
6985
6986 # Extract the first word of "mv", so it can be a program name with args.
6987 set dummy mv; ac_word=$2
6988 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6989 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6990 if test "${ac_cv_path_MV+set}" = set; then
6991   echo $ECHO_N "(cached) $ECHO_C" >&6
6992 else
6993   case $MV in
6994   [\\/]* | ?:[\\/]*)
6995   ac_cv_path_MV="$MV" # Let the user override the test with a path.
6996   ;;
6997   *)
6998   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6999 for as_dir in $PATH
7000 do
7001   IFS=$as_save_IFS
7002   test -z "$as_dir" && as_dir=.
7003   for ac_exec_ext in '' $ac_executable_extensions; do
7004   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7005     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
7006     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7007     break 2
7008   fi
7009 done
7010 done
7011 IFS=$as_save_IFS
7012
7013   test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
7014   ;;
7015 esac
7016 fi
7017 MV=$ac_cv_path_MV
7018 if test -n "$MV"; then
7019   { echo "$as_me:$LINENO: result: $MV" >&5
7020 echo "${ECHO_T}$MV" >&6; }
7021 else
7022   { echo "$as_me:$LINENO: result: no" >&5
7023 echo "${ECHO_T}no" >&6; }
7024 fi
7025
7026
7027 if test -n "$ac_tool_prefix"; then
7028   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7029 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7030 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7031 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7032 if test "${ac_cv_prog_RANLIB+set}" = set; then
7033   echo $ECHO_N "(cached) $ECHO_C" >&6
7034 else
7035   if test -n "$RANLIB"; then
7036   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7037 else
7038 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7039 for as_dir in $PATH
7040 do
7041   IFS=$as_save_IFS
7042   test -z "$as_dir" && as_dir=.
7043   for ac_exec_ext in '' $ac_executable_extensions; do
7044   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7045     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7046     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7047     break 2
7048   fi
7049 done
7050 done
7051 IFS=$as_save_IFS
7052
7053 fi
7054 fi
7055 RANLIB=$ac_cv_prog_RANLIB
7056 if test -n "$RANLIB"; then
7057   { echo "$as_me:$LINENO: result: $RANLIB" >&5
7058 echo "${ECHO_T}$RANLIB" >&6; }
7059 else
7060   { echo "$as_me:$LINENO: result: no" >&5
7061 echo "${ECHO_T}no" >&6; }
7062 fi
7063
7064
7065 fi
7066 if test -z "$ac_cv_prog_RANLIB"; then
7067   ac_ct_RANLIB=$RANLIB
7068   # Extract the first word of "ranlib", so it can be a program name with args.
7069 set dummy ranlib; ac_word=$2
7070 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7071 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7072 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7073   echo $ECHO_N "(cached) $ECHO_C" >&6
7074 else
7075   if test -n "$ac_ct_RANLIB"; then
7076   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7077 else
7078 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7079 for as_dir in $PATH
7080 do
7081   IFS=$as_save_IFS
7082   test -z "$as_dir" && as_dir=.
7083   for ac_exec_ext in '' $ac_executable_extensions; do
7084   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7085     ac_cv_prog_ac_ct_RANLIB="ranlib"
7086     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7087     break 2
7088   fi
7089 done
7090 done
7091 IFS=$as_save_IFS
7092
7093 fi
7094 fi
7095 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7096 if test -n "$ac_ct_RANLIB"; then
7097   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7098 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
7099 else
7100   { echo "$as_me:$LINENO: result: no" >&5
7101 echo "${ECHO_T}no" >&6; }
7102 fi
7103
7104   if test "x$ac_ct_RANLIB" = x; then
7105     RANLIB=":"
7106   else
7107     case $cross_compiling:$ac_tool_warned in
7108 yes:)
7109 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7110 whose name does not start with the host triplet.  If you think this
7111 configuration is useful to you, please write to autoconf@gnu.org." >&5
7112 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7113 whose name does not start with the host triplet.  If you think this
7114 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7115 ac_tool_warned=yes ;;
7116 esac
7117     RANLIB=$ac_ct_RANLIB
7118   fi
7119 else
7120   RANLIB="$ac_cv_prog_RANLIB"
7121 fi
7122
7123 if test -n "$ac_tool_prefix"; then
7124   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7125 set dummy ${ac_tool_prefix}ar; ac_word=$2
7126 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7127 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7128 if test "${ac_cv_prog_AR+set}" = set; then
7129   echo $ECHO_N "(cached) $ECHO_C" >&6
7130 else
7131   if test -n "$AR"; then
7132   ac_cv_prog_AR="$AR" # Let the user override the test.
7133 else
7134 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7135 for as_dir in $PATH
7136 do
7137   IFS=$as_save_IFS
7138   test -z "$as_dir" && as_dir=.
7139   for ac_exec_ext in '' $ac_executable_extensions; do
7140   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7141     ac_cv_prog_AR="${ac_tool_prefix}ar"
7142     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7143     break 2
7144   fi
7145 done
7146 done
7147 IFS=$as_save_IFS
7148
7149 fi
7150 fi
7151 AR=$ac_cv_prog_AR
7152 if test -n "$AR"; then
7153   { echo "$as_me:$LINENO: result: $AR" >&5
7154 echo "${ECHO_T}$AR" >&6; }
7155 else
7156   { echo "$as_me:$LINENO: result: no" >&5
7157 echo "${ECHO_T}no" >&6; }
7158 fi
7159
7160
7161 fi
7162 if test -z "$ac_cv_prog_AR"; then
7163   ac_ct_AR=$AR
7164   # Extract the first word of "ar", so it can be a program name with args.
7165 set dummy ar; ac_word=$2
7166 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7167 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7168 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7169   echo $ECHO_N "(cached) $ECHO_C" >&6
7170 else
7171   if test -n "$ac_ct_AR"; then
7172   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7173 else
7174 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7175 for as_dir in $PATH
7176 do
7177   IFS=$as_save_IFS
7178   test -z "$as_dir" && as_dir=.
7179   for ac_exec_ext in '' $ac_executable_extensions; do
7180   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7181     ac_cv_prog_ac_ct_AR="ar"
7182     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7183     break 2
7184   fi
7185 done
7186 done
7187 IFS=$as_save_IFS
7188
7189 fi
7190 fi
7191 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7192 if test -n "$ac_ct_AR"; then
7193   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7194 echo "${ECHO_T}$ac_ct_AR" >&6; }
7195 else
7196   { echo "$as_me:$LINENO: result: no" >&5
7197 echo "${ECHO_T}no" >&6; }
7198 fi
7199
7200   if test "x$ac_ct_AR" = x; then
7201     AR="false"
7202   else
7203     case $cross_compiling:$ac_tool_warned in
7204 yes:)
7205 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7206 whose name does not start with the host triplet.  If you think this
7207 configuration is useful to you, please write to autoconf@gnu.org." >&5
7208 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7209 whose name does not start with the host triplet.  If you think this
7210 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7211 ac_tool_warned=yes ;;
7212 esac
7213     AR=$ac_ct_AR
7214   fi
7215 else
7216   AR="$ac_cv_prog_AR"
7217 fi
7218
7219 # Extract the first word of "rm", so it can be a program name with args.
7220 set dummy rm; ac_word=$2
7221 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7222 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7223 if test "${ac_cv_path_RM+set}" = set; then
7224   echo $ECHO_N "(cached) $ECHO_C" >&6
7225 else
7226   case $RM in
7227   [\\/]* | ?:[\\/]*)
7228   ac_cv_path_RM="$RM" # Let the user override the test with a path.
7229   ;;
7230   *)
7231   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7232 for as_dir in $PATH
7233 do
7234   IFS=$as_save_IFS
7235   test -z "$as_dir" && as_dir=.
7236   for ac_exec_ext in '' $ac_executable_extensions; do
7237   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7238     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
7239     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7240     break 2
7241   fi
7242 done
7243 done
7244 IFS=$as_save_IFS
7245
7246   test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
7247   ;;
7248 esac
7249 fi
7250 RM=$ac_cv_path_RM
7251 if test -n "$RM"; then
7252   { echo "$as_me:$LINENO: result: $RM" >&5
7253 echo "${ECHO_T}$RM" >&6; }
7254 else
7255   { echo "$as_me:$LINENO: result: no" >&5
7256 echo "${ECHO_T}no" >&6; }
7257 fi
7258
7259
7260 # Extract the first word of "sed", so it can be a program name with args.
7261 set dummy sed; ac_word=$2
7262 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7263 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7264 if test "${ac_cv_path_SED+set}" = set; then
7265   echo $ECHO_N "(cached) $ECHO_C" >&6
7266 else
7267   case $SED in
7268   [\\/]* | ?:[\\/]*)
7269   ac_cv_path_SED="$SED" # Let the user override the test with a path.
7270   ;;
7271   *)
7272   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7273 for as_dir in $PATH
7274 do
7275   IFS=$as_save_IFS
7276   test -z "$as_dir" && as_dir=.
7277   for ac_exec_ext in '' $ac_executable_extensions; do
7278   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7279     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
7280     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7281     break 2
7282   fi
7283 done
7284 done
7285 IFS=$as_save_IFS
7286
7287   test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
7288   ;;
7289 esac
7290 fi
7291 SED=$ac_cv_path_SED
7292 if test -n "$SED"; then
7293   { echo "$as_me:$LINENO: result: $SED" >&5
7294 echo "${ECHO_T}$SED" >&6; }
7295 else
7296   { echo "$as_me:$LINENO: result: no" >&5
7297 echo "${ECHO_T}no" >&6; }
7298 fi
7299
7300
7301 # Extract the first word of "tar", so it can be a program name with args.
7302 set dummy tar; ac_word=$2
7303 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7304 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7305 if test "${ac_cv_path_TAR+set}" = set; then
7306   echo $ECHO_N "(cached) $ECHO_C" >&6
7307 else
7308   case $TAR in
7309   [\\/]* | ?:[\\/]*)
7310   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
7311   ;;
7312   *)
7313   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7314 for as_dir in $PATH
7315 do
7316   IFS=$as_save_IFS
7317   test -z "$as_dir" && as_dir=.
7318   for ac_exec_ext in '' $ac_executable_extensions; do
7319   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7320     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
7321     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7322     break 2
7323   fi
7324 done
7325 done
7326 IFS=$as_save_IFS
7327
7328   test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
7329   ;;
7330 esac
7331 fi
7332 TAR=$ac_cv_path_TAR
7333 if test -n "$TAR"; then
7334   { echo "$as_me:$LINENO: result: $TAR" >&5
7335 echo "${ECHO_T}$TAR" >&6; }
7336 else
7337   { echo "$as_me:$LINENO: result: no" >&5
7338 echo "${ECHO_T}no" >&6; }
7339 fi
7340
7341
7342 # Extract the first word of "pwd", so it can be a program name with args.
7343 set dummy pwd; ac_word=$2
7344 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7345 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7346 if test "${ac_cv_path_BINPWD+set}" = set; then
7347   echo $ECHO_N "(cached) $ECHO_C" >&6
7348 else
7349   case $BINPWD in
7350   [\\/]* | ?:[\\/]*)
7351   ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
7352   ;;
7353   *)
7354   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7355 for as_dir in $PATH
7356 do
7357   IFS=$as_save_IFS
7358   test -z "$as_dir" && as_dir=.
7359   for ac_exec_ext in '' $ac_executable_extensions; do
7360   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7361     ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
7362     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7363     break 2
7364   fi
7365 done
7366 done
7367 IFS=$as_save_IFS
7368
7369   test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
7370   ;;
7371 esac
7372 fi
7373 BINPWD=$ac_cv_path_BINPWD
7374 if test -n "$BINPWD"; then
7375   { echo "$as_me:$LINENO: result: $BINPWD" >&5
7376 echo "${ECHO_T}$BINPWD" >&6; }
7377 else
7378   { echo "$as_me:$LINENO: result: no" >&5
7379 echo "${ECHO_T}no" >&6; }
7380 fi
7381
7382
7383
7384 # Extract the first word of "Graphviz", so it can be a program name with args.
7385 set dummy Graphviz; ac_word=$2
7386 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7387 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7388 if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
7389   echo $ECHO_N "(cached) $ECHO_C" >&6
7390 else
7391   case $GRAPHVIZ in
7392   [\\/]* | ?:[\\/]*)
7393   ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
7394   ;;
7395   *)
7396   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7397 for as_dir in $PATH
7398 do
7399   IFS=$as_save_IFS
7400   test -z "$as_dir" && as_dir=.
7401   for ac_exec_ext in '' $ac_executable_extensions; do
7402   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7403     ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
7404     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7405     break 2
7406   fi
7407 done
7408 done
7409 IFS=$as_save_IFS
7410
7411   test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
7412   ;;
7413 esac
7414 fi
7415 GRAPHVIZ=$ac_cv_path_GRAPHVIZ
7416 if test -n "$GRAPHVIZ"; then
7417   { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
7418 echo "${ECHO_T}$GRAPHVIZ" >&6; }
7419 else
7420   { echo "$as_me:$LINENO: result: no" >&5
7421 echo "${ECHO_T}no" >&6; }
7422 fi
7423
7424
7425 if test "$GRAPHVIZ" != "echo Graphviz" ; then
7426
7427 cat >>confdefs.h <<\_ACEOF
7428 #define HAVE_GRAPHVIZ 1
7429 _ACEOF
7430
7431     if test "$llvm_cv_os_type" = "MingW" ; then
7432     GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7433   fi
7434
7435 cat >>confdefs.h <<_ACEOF
7436 #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
7437 _ACEOF
7438
7439 fi
7440 # Extract the first word of "dot", so it can be a program name with args.
7441 set dummy dot; ac_word=$2
7442 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7443 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7444 if test "${ac_cv_path_DOT+set}" = set; then
7445   echo $ECHO_N "(cached) $ECHO_C" >&6
7446 else
7447   case $DOT in
7448   [\\/]* | ?:[\\/]*)
7449   ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
7450   ;;
7451   *)
7452   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7453 for as_dir in $PATH
7454 do
7455   IFS=$as_save_IFS
7456   test -z "$as_dir" && as_dir=.
7457   for ac_exec_ext in '' $ac_executable_extensions; do
7458   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7459     ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
7460     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7461     break 2
7462   fi
7463 done
7464 done
7465 IFS=$as_save_IFS
7466
7467   test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
7468   ;;
7469 esac
7470 fi
7471 DOT=$ac_cv_path_DOT
7472 if test -n "$DOT"; then
7473   { echo "$as_me:$LINENO: result: $DOT" >&5
7474 echo "${ECHO_T}$DOT" >&6; }
7475 else
7476   { echo "$as_me:$LINENO: result: no" >&5
7477 echo "${ECHO_T}no" >&6; }
7478 fi
7479
7480
7481 if test "$DOT" != "echo dot" ; then
7482
7483 cat >>confdefs.h <<\_ACEOF
7484 #define HAVE_DOT 1
7485 _ACEOF
7486
7487     if test "$llvm_cv_os_type" = "MingW" ; then
7488     DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7489   fi
7490
7491 cat >>confdefs.h <<_ACEOF
7492 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
7493 _ACEOF
7494
7495 fi
7496 # Extract the first word of "fdp", so it can be a program name with args.
7497 set dummy fdp; ac_word=$2
7498 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7499 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7500 if test "${ac_cv_path_FDP+set}" = set; then
7501   echo $ECHO_N "(cached) $ECHO_C" >&6
7502 else
7503   case $FDP in
7504   [\\/]* | ?:[\\/]*)
7505   ac_cv_path_FDP="$FDP" # Let the user override the test with a path.
7506   ;;
7507   *)
7508   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7509 for as_dir in $PATH
7510 do
7511   IFS=$as_save_IFS
7512   test -z "$as_dir" && as_dir=.
7513   for ac_exec_ext in '' $ac_executable_extensions; do
7514   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7515     ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext"
7516     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7517     break 2
7518   fi
7519 done
7520 done
7521 IFS=$as_save_IFS
7522
7523   test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp"
7524   ;;
7525 esac
7526 fi
7527 FDP=$ac_cv_path_FDP
7528 if test -n "$FDP"; then
7529   { echo "$as_me:$LINENO: result: $FDP" >&5
7530 echo "${ECHO_T}$FDP" >&6; }
7531 else
7532   { echo "$as_me:$LINENO: result: no" >&5
7533 echo "${ECHO_T}no" >&6; }
7534 fi
7535
7536
7537 if test "$FDP" != "echo fdp" ; then
7538
7539 cat >>confdefs.h <<\_ACEOF
7540 #define HAVE_FDP 1
7541 _ACEOF
7542
7543     if test "$llvm_cv_os_type" = "MingW" ; then
7544     FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7545   fi
7546
7547 cat >>confdefs.h <<_ACEOF
7548 #define LLVM_PATH_FDP "$FDP${EXEEXT}"
7549 _ACEOF
7550
7551 fi
7552 # Extract the first word of "neato", so it can be a program name with args.
7553 set dummy neato; ac_word=$2
7554 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7555 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7556 if test "${ac_cv_path_NEATO+set}" = set; then
7557   echo $ECHO_N "(cached) $ECHO_C" >&6
7558 else
7559   case $NEATO in
7560   [\\/]* | ?:[\\/]*)
7561   ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path.
7562   ;;
7563   *)
7564   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7565 for as_dir in $PATH
7566 do
7567   IFS=$as_save_IFS
7568   test -z "$as_dir" && as_dir=.
7569   for ac_exec_ext in '' $ac_executable_extensions; do
7570   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7571     ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext"
7572     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7573     break 2
7574   fi
7575 done
7576 done
7577 IFS=$as_save_IFS
7578
7579   test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato"
7580   ;;
7581 esac
7582 fi
7583 NEATO=$ac_cv_path_NEATO
7584 if test -n "$NEATO"; then
7585   { echo "$as_me:$LINENO: result: $NEATO" >&5
7586 echo "${ECHO_T}$NEATO" >&6; }
7587 else
7588   { echo "$as_me:$LINENO: result: no" >&5
7589 echo "${ECHO_T}no" >&6; }
7590 fi
7591
7592
7593 if test "$NEATO" != "echo neato" ; then
7594
7595 cat >>confdefs.h <<\_ACEOF
7596 #define HAVE_NEATO 1
7597 _ACEOF
7598
7599     if test "$llvm_cv_os_type" = "MingW" ; then
7600     NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7601   fi
7602
7603 cat >>confdefs.h <<_ACEOF
7604 #define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
7605 _ACEOF
7606
7607 fi
7608 # Extract the first word of "twopi", so it can be a program name with args.
7609 set dummy twopi; ac_word=$2
7610 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7611 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7612 if test "${ac_cv_path_TWOPI+set}" = set; then
7613   echo $ECHO_N "(cached) $ECHO_C" >&6
7614 else
7615   case $TWOPI in
7616   [\\/]* | ?:[\\/]*)
7617   ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path.
7618   ;;
7619   *)
7620   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7621 for as_dir in $PATH
7622 do
7623   IFS=$as_save_IFS
7624   test -z "$as_dir" && as_dir=.
7625   for ac_exec_ext in '' $ac_executable_extensions; do
7626   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7627     ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext"
7628     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7629     break 2
7630   fi
7631 done
7632 done
7633 IFS=$as_save_IFS
7634
7635   test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi"
7636   ;;
7637 esac
7638 fi
7639 TWOPI=$ac_cv_path_TWOPI
7640 if test -n "$TWOPI"; then
7641   { echo "$as_me:$LINENO: result: $TWOPI" >&5
7642 echo "${ECHO_T}$TWOPI" >&6; }
7643 else
7644   { echo "$as_me:$LINENO: result: no" >&5
7645 echo "${ECHO_T}no" >&6; }
7646 fi
7647
7648
7649 if test "$TWOPI" != "echo twopi" ; then
7650
7651 cat >>confdefs.h <<\_ACEOF
7652 #define HAVE_TWOPI 1
7653 _ACEOF
7654
7655     if test "$llvm_cv_os_type" = "MingW" ; then
7656     TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7657   fi
7658
7659 cat >>confdefs.h <<_ACEOF
7660 #define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
7661 _ACEOF
7662
7663 fi
7664 # Extract the first word of "circo", so it can be a program name with args.
7665 set dummy circo; ac_word=$2
7666 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7667 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7668 if test "${ac_cv_path_CIRCO+set}" = set; then
7669   echo $ECHO_N "(cached) $ECHO_C" >&6
7670 else
7671   case $CIRCO in
7672   [\\/]* | ?:[\\/]*)
7673   ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path.
7674   ;;
7675   *)
7676   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7677 for as_dir in $PATH
7678 do
7679   IFS=$as_save_IFS
7680   test -z "$as_dir" && as_dir=.
7681   for ac_exec_ext in '' $ac_executable_extensions; do
7682   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7683     ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext"
7684     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7685     break 2
7686   fi
7687 done
7688 done
7689 IFS=$as_save_IFS
7690
7691   test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo"
7692   ;;
7693 esac
7694 fi
7695 CIRCO=$ac_cv_path_CIRCO
7696 if test -n "$CIRCO"; then
7697   { echo "$as_me:$LINENO: result: $CIRCO" >&5
7698 echo "${ECHO_T}$CIRCO" >&6; }
7699 else
7700   { echo "$as_me:$LINENO: result: no" >&5
7701 echo "${ECHO_T}no" >&6; }
7702 fi
7703
7704
7705 if test "$CIRCO" != "echo circo" ; then
7706
7707 cat >>confdefs.h <<\_ACEOF
7708 #define HAVE_CIRCO 1
7709 _ACEOF
7710
7711     if test "$llvm_cv_os_type" = "MingW" ; then
7712     CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7713   fi
7714
7715 cat >>confdefs.h <<_ACEOF
7716 #define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
7717 _ACEOF
7718
7719 fi
7720 for ac_prog in gv gsview32
7721 do
7722   # Extract the first word of "$ac_prog", so it can be a program name with args.
7723 set dummy $ac_prog; ac_word=$2
7724 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7725 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7726 if test "${ac_cv_path_GV+set}" = set; then
7727   echo $ECHO_N "(cached) $ECHO_C" >&6
7728 else
7729   case $GV in
7730   [\\/]* | ?:[\\/]*)
7731   ac_cv_path_GV="$GV" # Let the user override the test with a path.
7732   ;;
7733   *)
7734   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7735 for as_dir in $PATH
7736 do
7737   IFS=$as_save_IFS
7738   test -z "$as_dir" && as_dir=.
7739   for ac_exec_ext in '' $ac_executable_extensions; do
7740   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7741     ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
7742     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7743     break 2
7744   fi
7745 done
7746 done
7747 IFS=$as_save_IFS
7748
7749   ;;
7750 esac
7751 fi
7752 GV=$ac_cv_path_GV
7753 if test -n "$GV"; then
7754   { echo "$as_me:$LINENO: result: $GV" >&5
7755 echo "${ECHO_T}$GV" >&6; }
7756 else
7757   { echo "$as_me:$LINENO: result: no" >&5
7758 echo "${ECHO_T}no" >&6; }
7759 fi
7760
7761
7762   test -n "$GV" && break
7763 done
7764 test -n "$GV" || GV="echo gv"
7765
7766 if test "$GV" != "echo gv" ; then
7767
7768 cat >>confdefs.h <<\_ACEOF
7769 #define HAVE_GV 1
7770 _ACEOF
7771
7772     if test "$llvm_cv_os_type" = "MingW" ; then
7773     GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7774   fi
7775
7776 cat >>confdefs.h <<_ACEOF
7777 #define LLVM_PATH_GV "$GV${EXEEXT}"
7778 _ACEOF
7779
7780 fi
7781 # Extract the first word of "dotty", so it can be a program name with args.
7782 set dummy dotty; ac_word=$2
7783 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7784 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7785 if test "${ac_cv_path_DOTTY+set}" = set; then
7786   echo $ECHO_N "(cached) $ECHO_C" >&6
7787 else
7788   case $DOTTY in
7789   [\\/]* | ?:[\\/]*)
7790   ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
7791   ;;
7792   *)
7793   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7794 for as_dir in $PATH
7795 do
7796   IFS=$as_save_IFS
7797   test -z "$as_dir" && as_dir=.
7798   for ac_exec_ext in '' $ac_executable_extensions; do
7799   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7800     ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
7801     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7802     break 2
7803   fi
7804 done
7805 done
7806 IFS=$as_save_IFS
7807
7808   test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
7809   ;;
7810 esac
7811 fi
7812 DOTTY=$ac_cv_path_DOTTY
7813 if test -n "$DOTTY"; then
7814   { echo "$as_me:$LINENO: result: $DOTTY" >&5
7815 echo "${ECHO_T}$DOTTY" >&6; }
7816 else
7817   { echo "$as_me:$LINENO: result: no" >&5
7818 echo "${ECHO_T}no" >&6; }
7819 fi
7820
7821
7822 if test "$DOTTY" != "echo dotty" ; then
7823
7824 cat >>confdefs.h <<\_ACEOF
7825 #define HAVE_DOTTY 1
7826 _ACEOF
7827
7828     if test "$llvm_cv_os_type" = "MingW" ; then
7829     DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7830   fi
7831
7832 cat >>confdefs.h <<_ACEOF
7833 #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
7834 _ACEOF
7835
7836 fi
7837
7838
7839 # Extract the first word of "perl", so it can be a program name with args.
7840 set dummy perl; ac_word=$2
7841 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7842 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7843 if test "${ac_cv_path_PERL+set}" = set; then
7844   echo $ECHO_N "(cached) $ECHO_C" >&6
7845 else
7846   case $PERL in
7847   [\\/]* | ?:[\\/]*)
7848   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
7849   ;;
7850   *)
7851   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7852 for as_dir in $PATH
7853 do
7854   IFS=$as_save_IFS
7855   test -z "$as_dir" && as_dir=.
7856   for ac_exec_ext in '' $ac_executable_extensions; do
7857   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7858     ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
7859     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7860     break 2
7861   fi
7862 done
7863 done
7864 IFS=$as_save_IFS
7865
7866   test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
7867   ;;
7868 esac
7869 fi
7870 PERL=$ac_cv_path_PERL
7871 if test -n "$PERL"; then
7872   { echo "$as_me:$LINENO: result: $PERL" >&5
7873 echo "${ECHO_T}$PERL" >&6; }
7874 else
7875   { echo "$as_me:$LINENO: result: no" >&5
7876 echo "${ECHO_T}no" >&6; }
7877 fi
7878
7879
7880 if test "$PERL" != "none"; then
7881   { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
7882 echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; }
7883   if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then
7884     { echo "$as_me:$LINENO: result: yes" >&5
7885 echo "${ECHO_T}yes" >&6; }
7886   else
7887     PERL=none
7888     { echo "$as_me:$LINENO: result: not found" >&5
7889 echo "${ECHO_T}not found" >&6; }
7890   fi
7891 fi
7892
7893
7894 if test x"$PERL" = xnone; then
7895    HAVE_PERL=0
7896
7897    { { echo "$as_me:$LINENO: error: perl is required but was not found, please install it" >&5
7898 echo "$as_me: error: perl is required but was not found, please install it" >&2;}
7899    { (exit 1); exit 1; }; }
7900 else
7901    HAVE_PERL=1
7902
7903 fi
7904
7905 # Find a good install program.  We prefer a C program (faster),
7906 # so one script is as good as another.  But avoid the broken or
7907 # incompatible versions:
7908 # SysV /etc/install, /usr/sbin/install
7909 # SunOS /usr/etc/install
7910 # IRIX /sbin/install
7911 # AIX /bin/install
7912 # AmigaOS /C/install, which installs bootblocks on floppy discs
7913 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7914 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7915 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7916 # OS/2's system install, which has a completely different semantic
7917 # ./install, which can be erroneously created by make from ./install.sh.
7918 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7919 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
7920 if test -z "$INSTALL"; then
7921 if test "${ac_cv_path_install+set}" = set; then
7922   echo $ECHO_N "(cached) $ECHO_C" >&6
7923 else
7924   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7925 for as_dir in $PATH
7926 do
7927   IFS=$as_save_IFS
7928   test -z "$as_dir" && as_dir=.
7929   # Account for people who put trailing slashes in PATH elements.
7930 case $as_dir/ in
7931   ./ | .// | /cC/* | \
7932   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7933   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
7934   /usr/ucb/* ) ;;
7935   *)
7936     # OSF1 and SCO ODT 3.0 have their own names for install.
7937     # Don't use installbsd from OSF since it installs stuff as root
7938     # by default.
7939     for ac_prog in ginstall scoinst install; do
7940       for ac_exec_ext in '' $ac_executable_extensions; do
7941         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
7942           if test $ac_prog = install &&
7943             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7944             # AIX install.  It has an incompatible calling convention.
7945             :
7946           elif test $ac_prog = install &&
7947             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7948             # program-specific install script used by HP pwplus--don't use.
7949             :
7950           else
7951             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7952             break 3
7953           fi
7954         fi
7955       done
7956     done
7957     ;;
7958 esac
7959 done
7960 IFS=$as_save_IFS
7961
7962
7963 fi
7964   if test "${ac_cv_path_install+set}" = set; then
7965     INSTALL=$ac_cv_path_install
7966   else
7967     # As a last resort, use the slow shell script.  Don't cache a
7968     # value for INSTALL within a source directory, because that will
7969     # break other packages using the cache if that directory is
7970     # removed, or if the value is a relative name.
7971     INSTALL=$ac_install_sh
7972   fi
7973 fi
7974 { echo "$as_me:$LINENO: result: $INSTALL" >&5
7975 echo "${ECHO_T}$INSTALL" >&6; }
7976
7977 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7978 # It thinks the first close brace ends the variable substitution.
7979 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7980
7981 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7982
7983 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7984
7985 case "$INSTALL" in
7986  [\\/$]* | ?:[\\/]* ) ;;
7987  *)  INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
7988 esac
7989
7990 # Extract the first word of "bzip2", so it can be a program name with args.
7991 set dummy bzip2; ac_word=$2
7992 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7993 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7994 if test "${ac_cv_path_BZIP2+set}" = set; then
7995   echo $ECHO_N "(cached) $ECHO_C" >&6
7996 else
7997   case $BZIP2 in
7998   [\\/]* | ?:[\\/]*)
7999   ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
8000   ;;
8001   *)
8002   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8003 for as_dir in $PATH
8004 do
8005   IFS=$as_save_IFS
8006   test -z "$as_dir" && as_dir=.
8007   for ac_exec_ext in '' $ac_executable_extensions; do
8008   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8009     ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
8010     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8011     break 2
8012   fi
8013 done
8014 done
8015 IFS=$as_save_IFS
8016
8017   ;;
8018 esac
8019 fi
8020 BZIP2=$ac_cv_path_BZIP2
8021 if test -n "$BZIP2"; then
8022   { echo "$as_me:$LINENO: result: $BZIP2" >&5
8023 echo "${ECHO_T}$BZIP2" >&6; }
8024 else
8025   { echo "$as_me:$LINENO: result: no" >&5
8026 echo "${ECHO_T}no" >&6; }
8027 fi
8028
8029
8030 # Extract the first word of "cat", so it can be a program name with args.
8031 set dummy cat; ac_word=$2
8032 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8033 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8034 if test "${ac_cv_path_CAT+set}" = set; then
8035   echo $ECHO_N "(cached) $ECHO_C" >&6
8036 else
8037   case $CAT in
8038   [\\/]* | ?:[\\/]*)
8039   ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
8040   ;;
8041   *)
8042   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8043 for as_dir in $PATH
8044 do
8045   IFS=$as_save_IFS
8046   test -z "$as_dir" && as_dir=.
8047   for ac_exec_ext in '' $ac_executable_extensions; do
8048   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8049     ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
8050     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8051     break 2
8052   fi
8053 done
8054 done
8055 IFS=$as_save_IFS
8056
8057   ;;
8058 esac
8059 fi
8060 CAT=$ac_cv_path_CAT
8061 if test -n "$CAT"; then
8062   { echo "$as_me:$LINENO: result: $CAT" >&5
8063 echo "${ECHO_T}$CAT" >&6; }
8064 else
8065   { echo "$as_me:$LINENO: result: no" >&5
8066 echo "${ECHO_T}no" >&6; }
8067 fi
8068
8069
8070 # Extract the first word of "doxygen", so it can be a program name with args.
8071 set dummy doxygen; ac_word=$2
8072 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8073 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8074 if test "${ac_cv_path_DOXYGEN+set}" = set; then
8075   echo $ECHO_N "(cached) $ECHO_C" >&6
8076 else
8077   case $DOXYGEN in
8078   [\\/]* | ?:[\\/]*)
8079   ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
8080   ;;
8081   *)
8082   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8083 for as_dir in $PATH
8084 do
8085   IFS=$as_save_IFS
8086   test -z "$as_dir" && as_dir=.
8087   for ac_exec_ext in '' $ac_executable_extensions; do
8088   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8089     ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
8090     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8091     break 2
8092   fi
8093 done
8094 done
8095 IFS=$as_save_IFS
8096
8097   ;;
8098 esac
8099 fi
8100 DOXYGEN=$ac_cv_path_DOXYGEN
8101 if test -n "$DOXYGEN"; then
8102   { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
8103 echo "${ECHO_T}$DOXYGEN" >&6; }
8104 else
8105   { echo "$as_me:$LINENO: result: no" >&5
8106 echo "${ECHO_T}no" >&6; }
8107 fi
8108
8109
8110 # Extract the first word of "groff", so it can be a program name with args.
8111 set dummy groff; ac_word=$2
8112 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8113 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8114 if test "${ac_cv_path_GROFF+set}" = set; then
8115   echo $ECHO_N "(cached) $ECHO_C" >&6
8116 else
8117   case $GROFF in
8118   [\\/]* | ?:[\\/]*)
8119   ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
8120   ;;
8121   *)
8122   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8123 for as_dir in $PATH
8124 do
8125   IFS=$as_save_IFS
8126   test -z "$as_dir" && as_dir=.
8127   for ac_exec_ext in '' $ac_executable_extensions; do
8128   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8129     ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
8130     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8131     break 2
8132   fi
8133 done
8134 done
8135 IFS=$as_save_IFS
8136
8137   ;;
8138 esac
8139 fi
8140 GROFF=$ac_cv_path_GROFF
8141 if test -n "$GROFF"; then
8142   { echo "$as_me:$LINENO: result: $GROFF" >&5
8143 echo "${ECHO_T}$GROFF" >&6; }
8144 else
8145   { echo "$as_me:$LINENO: result: no" >&5
8146 echo "${ECHO_T}no" >&6; }
8147 fi
8148
8149
8150 # Extract the first word of "gzip", so it can be a program name with args.
8151 set dummy gzip; ac_word=$2
8152 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8153 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8154 if test "${ac_cv_path_GZIP+set}" = set; then
8155   echo $ECHO_N "(cached) $ECHO_C" >&6
8156 else
8157   case $GZIP in
8158   [\\/]* | ?:[\\/]*)
8159   ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
8160   ;;
8161   *)
8162   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8163 for as_dir in $PATH
8164 do
8165   IFS=$as_save_IFS
8166   test -z "$as_dir" && as_dir=.
8167   for ac_exec_ext in '' $ac_executable_extensions; do
8168   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8169     ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
8170     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8171     break 2
8172   fi
8173 done
8174 done
8175 IFS=$as_save_IFS
8176
8177   ;;
8178 esac
8179 fi
8180 GZIP=$ac_cv_path_GZIP
8181 if test -n "$GZIP"; then
8182   { echo "$as_me:$LINENO: result: $GZIP" >&5
8183 echo "${ECHO_T}$GZIP" >&6; }
8184 else
8185   { echo "$as_me:$LINENO: result: no" >&5
8186 echo "${ECHO_T}no" >&6; }
8187 fi
8188
8189
8190 # Extract the first word of "pod2html", so it can be a program name with args.
8191 set dummy pod2html; ac_word=$2
8192 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8193 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8194 if test "${ac_cv_path_POD2HTML+set}" = set; then
8195   echo $ECHO_N "(cached) $ECHO_C" >&6
8196 else
8197   case $POD2HTML in
8198   [\\/]* | ?:[\\/]*)
8199   ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
8200   ;;
8201   *)
8202   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8203 for as_dir in $PATH
8204 do
8205   IFS=$as_save_IFS
8206   test -z "$as_dir" && as_dir=.
8207   for ac_exec_ext in '' $ac_executable_extensions; do
8208   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8209     ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
8210     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8211     break 2
8212   fi
8213 done
8214 done
8215 IFS=$as_save_IFS
8216
8217   ;;
8218 esac
8219 fi
8220 POD2HTML=$ac_cv_path_POD2HTML
8221 if test -n "$POD2HTML"; then
8222   { echo "$as_me:$LINENO: result: $POD2HTML" >&5
8223 echo "${ECHO_T}$POD2HTML" >&6; }
8224 else
8225   { echo "$as_me:$LINENO: result: no" >&5
8226 echo "${ECHO_T}no" >&6; }
8227 fi
8228
8229
8230 # Extract the first word of "pod2man", so it can be a program name with args.
8231 set dummy pod2man; ac_word=$2
8232 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8233 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8234 if test "${ac_cv_path_POD2MAN+set}" = set; then
8235   echo $ECHO_N "(cached) $ECHO_C" >&6
8236 else
8237   case $POD2MAN in
8238   [\\/]* | ?:[\\/]*)
8239   ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
8240   ;;
8241   *)
8242   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8243 for as_dir in $PATH
8244 do
8245   IFS=$as_save_IFS
8246   test -z "$as_dir" && as_dir=.
8247   for ac_exec_ext in '' $ac_executable_extensions; do
8248   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8249     ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
8250     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8251     break 2
8252   fi
8253 done
8254 done
8255 IFS=$as_save_IFS
8256
8257   ;;
8258 esac
8259 fi
8260 POD2MAN=$ac_cv_path_POD2MAN
8261 if test -n "$POD2MAN"; then
8262   { echo "$as_me:$LINENO: result: $POD2MAN" >&5
8263 echo "${ECHO_T}$POD2MAN" >&6; }
8264 else
8265   { echo "$as_me:$LINENO: result: no" >&5
8266 echo "${ECHO_T}no" >&6; }
8267 fi
8268
8269
8270 # Extract the first word of "pdfroff", so it can be a program name with args.
8271 set dummy pdfroff; ac_word=$2
8272 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8273 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8274 if test "${ac_cv_path_PDFROFF+set}" = set; then
8275   echo $ECHO_N "(cached) $ECHO_C" >&6
8276 else
8277   case $PDFROFF in
8278   [\\/]* | ?:[\\/]*)
8279   ac_cv_path_PDFROFF="$PDFROFF" # Let the user override the test with a path.
8280   ;;
8281   *)
8282   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8283 for as_dir in $PATH
8284 do
8285   IFS=$as_save_IFS
8286   test -z "$as_dir" && as_dir=.
8287   for ac_exec_ext in '' $ac_executable_extensions; do
8288   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8289     ac_cv_path_PDFROFF="$as_dir/$ac_word$ac_exec_ext"
8290     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8291     break 2
8292   fi
8293 done
8294 done
8295 IFS=$as_save_IFS
8296
8297   ;;
8298 esac
8299 fi
8300 PDFROFF=$ac_cv_path_PDFROFF
8301 if test -n "$PDFROFF"; then
8302   { echo "$as_me:$LINENO: result: $PDFROFF" >&5
8303 echo "${ECHO_T}$PDFROFF" >&6; }
8304 else
8305   { echo "$as_me:$LINENO: result: no" >&5
8306 echo "${ECHO_T}no" >&6; }
8307 fi
8308
8309
8310 # Extract the first word of "runtest", so it can be a program name with args.
8311 set dummy runtest; ac_word=$2
8312 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8313 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8314 if test "${ac_cv_path_RUNTEST+set}" = set; then
8315   echo $ECHO_N "(cached) $ECHO_C" >&6
8316 else
8317   case $RUNTEST in
8318   [\\/]* | ?:[\\/]*)
8319   ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
8320   ;;
8321   *)
8322   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8323 for as_dir in $PATH
8324 do
8325   IFS=$as_save_IFS
8326   test -z "$as_dir" && as_dir=.
8327   for ac_exec_ext in '' $ac_executable_extensions; do
8328   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8329     ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
8330     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8331     break 2
8332   fi
8333 done
8334 done
8335 IFS=$as_save_IFS
8336
8337   ;;
8338 esac
8339 fi
8340 RUNTEST=$ac_cv_path_RUNTEST
8341 if test -n "$RUNTEST"; then
8342   { echo "$as_me:$LINENO: result: $RUNTEST" >&5
8343 echo "${ECHO_T}$RUNTEST" >&6; }
8344 else
8345   { echo "$as_me:$LINENO: result: no" >&5
8346 echo "${ECHO_T}no" >&6; }
8347 fi
8348
8349
8350
8351 no_itcl=true
8352 { echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
8353 echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
8354
8355 # Check whether --with-tclinclude was given.
8356 if test "${with_tclinclude+set}" = set; then
8357   withval=$with_tclinclude; with_tclinclude=${withval}
8358 else
8359   with_tclinclude=''
8360 fi
8361
8362 if test "${ac_cv_path_tclsh+set}" = set; then
8363   echo $ECHO_N "(cached) $ECHO_C" >&6
8364 else
8365
8366 if test x"${with_tclinclude}" != x ; then
8367   if test -f ${with_tclinclude}/tclsh ; then
8368     ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
8369   elif test -f ${with_tclinclude}/src/tclsh ; then
8370     ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
8371   else
8372     { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
8373 echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
8374    { (exit 1); exit 1; }; }
8375   fi
8376 fi
8377 fi
8378
8379
8380 if test x"${ac_cv_path_tclsh}" = x ; then
8381   { echo "$as_me:$LINENO: result: none" >&5
8382 echo "${ECHO_T}none" >&6; }
8383   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
8384 do
8385   # Extract the first word of "$ac_prog", so it can be a program name with args.
8386 set dummy $ac_prog; ac_word=$2
8387 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8388 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8389 if test "${ac_cv_path_TCLSH+set}" = set; then
8390   echo $ECHO_N "(cached) $ECHO_C" >&6
8391 else
8392   case $TCLSH in
8393   [\\/]* | ?:[\\/]*)
8394   ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
8395   ;;
8396   *)
8397   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8398 for as_dir in $PATH
8399 do
8400   IFS=$as_save_IFS
8401   test -z "$as_dir" && as_dir=.
8402   for ac_exec_ext in '' $ac_executable_extensions; do
8403   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8404     ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
8405     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8406     break 2
8407   fi
8408 done
8409 done
8410 IFS=$as_save_IFS
8411
8412   ;;
8413 esac
8414 fi
8415 TCLSH=$ac_cv_path_TCLSH
8416 if test -n "$TCLSH"; then
8417   { echo "$as_me:$LINENO: result: $TCLSH" >&5
8418 echo "${ECHO_T}$TCLSH" >&6; }
8419 else
8420   { echo "$as_me:$LINENO: result: no" >&5
8421 echo "${ECHO_T}no" >&6; }
8422 fi
8423
8424
8425   test -n "$TCLSH" && break
8426 done
8427
8428   if test x"${TCLSH}" = x ; then
8429     ac_cv_path_tclsh='';
8430   else
8431     ac_cv_path_tclsh="${TCLSH}";
8432   fi
8433 else
8434   { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
8435 echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
8436   TCLSH="${ac_cv_path_tclsh}"
8437
8438 fi
8439
8440 # Extract the first word of "zip", so it can be a program name with args.
8441 set dummy zip; ac_word=$2
8442 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8443 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8444 if test "${ac_cv_path_ZIP+set}" = set; then
8445   echo $ECHO_N "(cached) $ECHO_C" >&6
8446 else
8447   case $ZIP in
8448   [\\/]* | ?:[\\/]*)
8449   ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
8450   ;;
8451   *)
8452   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8453 for as_dir in $PATH
8454 do
8455   IFS=$as_save_IFS
8456   test -z "$as_dir" && as_dir=.
8457   for ac_exec_ext in '' $ac_executable_extensions; do
8458   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8459     ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
8460     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8461     break 2
8462   fi
8463 done
8464 done
8465 IFS=$as_save_IFS
8466
8467   ;;
8468 esac
8469 fi
8470 ZIP=$ac_cv_path_ZIP
8471 if test -n "$ZIP"; then
8472   { echo "$as_me:$LINENO: result: $ZIP" >&5
8473 echo "${ECHO_T}$ZIP" >&6; }
8474 else
8475   { echo "$as_me:$LINENO: result: no" >&5
8476 echo "${ECHO_T}no" >&6; }
8477 fi
8478
8479
8480 for ac_prog in ocamlc
8481 do
8482   # Extract the first word of "$ac_prog", so it can be a program name with args.
8483 set dummy $ac_prog; ac_word=$2
8484 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8485 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8486 if test "${ac_cv_path_OCAMLC+set}" = set; then
8487   echo $ECHO_N "(cached) $ECHO_C" >&6
8488 else
8489   case $OCAMLC in
8490   [\\/]* | ?:[\\/]*)
8491   ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
8492   ;;
8493   *)
8494   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8495 for as_dir in $PATH
8496 do
8497   IFS=$as_save_IFS
8498   test -z "$as_dir" && as_dir=.
8499   for ac_exec_ext in '' $ac_executable_extensions; do
8500   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8501     ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
8502     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8503     break 2
8504   fi
8505 done
8506 done
8507 IFS=$as_save_IFS
8508
8509   ;;
8510 esac
8511 fi
8512 OCAMLC=$ac_cv_path_OCAMLC
8513 if test -n "$OCAMLC"; then
8514   { echo "$as_me:$LINENO: result: $OCAMLC" >&5
8515 echo "${ECHO_T}$OCAMLC" >&6; }
8516 else
8517   { echo "$as_me:$LINENO: result: no" >&5
8518 echo "${ECHO_T}no" >&6; }
8519 fi
8520
8521
8522   test -n "$OCAMLC" && break
8523 done
8524
8525 for ac_prog in ocamlopt
8526 do
8527   # Extract the first word of "$ac_prog", so it can be a program name with args.
8528 set dummy $ac_prog; ac_word=$2
8529 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8530 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8531 if test "${ac_cv_path_OCAMLOPT+set}" = set; then
8532   echo $ECHO_N "(cached) $ECHO_C" >&6
8533 else
8534   case $OCAMLOPT in
8535   [\\/]* | ?:[\\/]*)
8536   ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
8537   ;;
8538   *)
8539   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8540 for as_dir in $PATH
8541 do
8542   IFS=$as_save_IFS
8543   test -z "$as_dir" && as_dir=.
8544   for ac_exec_ext in '' $ac_executable_extensions; do
8545   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8546     ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
8547     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8548     break 2
8549   fi
8550 done
8551 done
8552 IFS=$as_save_IFS
8553
8554   ;;
8555 esac
8556 fi
8557 OCAMLOPT=$ac_cv_path_OCAMLOPT
8558 if test -n "$OCAMLOPT"; then
8559   { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
8560 echo "${ECHO_T}$OCAMLOPT" >&6; }
8561 else
8562   { echo "$as_me:$LINENO: result: no" >&5
8563 echo "${ECHO_T}no" >&6; }
8564 fi
8565
8566
8567   test -n "$OCAMLOPT" && break
8568 done
8569
8570 for ac_prog in ocamldep
8571 do
8572   # Extract the first word of "$ac_prog", so it can be a program name with args.
8573 set dummy $ac_prog; ac_word=$2
8574 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8575 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8576 if test "${ac_cv_path_OCAMLDEP+set}" = set; then
8577   echo $ECHO_N "(cached) $ECHO_C" >&6
8578 else
8579   case $OCAMLDEP in
8580   [\\/]* | ?:[\\/]*)
8581   ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
8582   ;;
8583   *)
8584   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8585 for as_dir in $PATH
8586 do
8587   IFS=$as_save_IFS
8588   test -z "$as_dir" && as_dir=.
8589   for ac_exec_ext in '' $ac_executable_extensions; do
8590   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8591     ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
8592     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8593     break 2
8594   fi
8595 done
8596 done
8597 IFS=$as_save_IFS
8598
8599   ;;
8600 esac
8601 fi
8602 OCAMLDEP=$ac_cv_path_OCAMLDEP
8603 if test -n "$OCAMLDEP"; then
8604   { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
8605 echo "${ECHO_T}$OCAMLDEP" >&6; }
8606 else
8607   { echo "$as_me:$LINENO: result: no" >&5
8608 echo "${ECHO_T}no" >&6; }
8609 fi
8610
8611
8612   test -n "$OCAMLDEP" && break
8613 done
8614
8615 for ac_prog in ocamldoc
8616 do
8617   # Extract the first word of "$ac_prog", so it can be a program name with args.
8618 set dummy $ac_prog; ac_word=$2
8619 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8620 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8621 if test "${ac_cv_path_OCAMLDOC+set}" = set; then
8622   echo $ECHO_N "(cached) $ECHO_C" >&6
8623 else
8624   case $OCAMLDOC in
8625   [\\/]* | ?:[\\/]*)
8626   ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
8627   ;;
8628   *)
8629   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8630 for as_dir in $PATH
8631 do
8632   IFS=$as_save_IFS
8633   test -z "$as_dir" && as_dir=.
8634   for ac_exec_ext in '' $ac_executable_extensions; do
8635   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8636     ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
8637     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8638     break 2
8639   fi
8640 done
8641 done
8642 IFS=$as_save_IFS
8643
8644   ;;
8645 esac
8646 fi
8647 OCAMLDOC=$ac_cv_path_OCAMLDOC
8648 if test -n "$OCAMLDOC"; then
8649   { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
8650 echo "${ECHO_T}$OCAMLDOC" >&6; }
8651 else
8652   { echo "$as_me:$LINENO: result: no" >&5
8653 echo "${ECHO_T}no" >&6; }
8654 fi
8655
8656
8657   test -n "$OCAMLDOC" && break
8658 done
8659
8660 for ac_prog in gas as
8661 do
8662   # Extract the first word of "$ac_prog", so it can be a program name with args.
8663 set dummy $ac_prog; ac_word=$2
8664 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8665 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8666 if test "${ac_cv_path_GAS+set}" = set; then
8667   echo $ECHO_N "(cached) $ECHO_C" >&6
8668 else
8669   case $GAS in
8670   [\\/]* | ?:[\\/]*)
8671   ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
8672   ;;
8673   *)
8674   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8675 for as_dir in $PATH
8676 do
8677   IFS=$as_save_IFS
8678   test -z "$as_dir" && as_dir=.
8679   for ac_exec_ext in '' $ac_executable_extensions; do
8680   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8681     ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
8682     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8683     break 2
8684   fi
8685 done
8686 done
8687 IFS=$as_save_IFS
8688
8689   ;;
8690 esac
8691 fi
8692 GAS=$ac_cv_path_GAS
8693 if test -n "$GAS"; then
8694   { echo "$as_me:$LINENO: result: $GAS" >&5
8695 echo "${ECHO_T}$GAS" >&6; }
8696 else
8697   { echo "$as_me:$LINENO: result: no" >&5
8698 echo "${ECHO_T}no" >&6; }
8699 fi
8700
8701
8702   test -n "$GAS" && break
8703 done
8704
8705
8706 { echo "$as_me:$LINENO: checking for linker version" >&5
8707 echo $ECHO_N "checking for linker version... $ECHO_C" >&6; }
8708 if test "${llvm_cv_link_version+set}" = set; then
8709   echo $ECHO_N "(cached) $ECHO_C" >&6
8710 else
8711
8712    version_string="$(ld -v 2>&1 | head -1)"
8713
8714    # Check for ld64.
8715    if (echo "$version_string" | grep -q "ld64"); then
8716      llvm_cv_link_version=$(echo "$version_string" | sed -e "s#.*ld64-\([^ ]*\)#\1#")
8717    else
8718      llvm_cv_link_version=$(echo "$version_string" | sed -e "s#[^0-9]*\([0-9.]*\).*#\1#")
8719    fi
8720
8721 fi
8722 { echo "$as_me:$LINENO: result: $llvm_cv_link_version" >&5
8723 echo "${ECHO_T}$llvm_cv_link_version" >&6; }
8724
8725 cat >>confdefs.h <<_ACEOF
8726 #define HOST_LINK_VERSION "$llvm_cv_link_version"
8727 _ACEOF
8728
8729
8730
8731 { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
8732 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
8733 if test "${llvm_cv_link_use_r+set}" = set; then
8734   echo $ECHO_N "(cached) $ECHO_C" >&6
8735 else
8736    ac_ext=c
8737 ac_cpp='$CPP $CPPFLAGS'
8738 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8739 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8740 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8741
8742   oldcflags="$CFLAGS"
8743   CFLAGS="$CFLAGS -Wl,-R."
8744   cat >conftest.$ac_ext <<_ACEOF
8745 /* confdefs.h.  */
8746 _ACEOF
8747 cat confdefs.h >>conftest.$ac_ext
8748 cat >>conftest.$ac_ext <<_ACEOF
8749 /* end confdefs.h.  */
8750
8751 int
8752 main ()
8753 {
8754
8755   ;
8756   return 0;
8757 }
8758 _ACEOF
8759 rm -f conftest.$ac_objext conftest$ac_exeext
8760 if { (ac_try="$ac_link"
8761 case "(($ac_try" in
8762   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8763   *) ac_try_echo=$ac_try;;
8764 esac
8765 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8766   (eval "$ac_link") 2>conftest.er1
8767   ac_status=$?
8768   grep -v '^ *+' conftest.er1 >conftest.err
8769   rm -f conftest.er1
8770   cat conftest.err >&5
8771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8772   (exit $ac_status); } &&
8773          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8774   { (case "(($ac_try" in
8775   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8776   *) ac_try_echo=$ac_try;;
8777 esac
8778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8779   (eval "$ac_try") 2>&5
8780   ac_status=$?
8781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8782   (exit $ac_status); }; } &&
8783          { ac_try='test -s conftest$ac_exeext'
8784   { (case "(($ac_try" in
8785   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8786   *) ac_try_echo=$ac_try;;
8787 esac
8788 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8789   (eval "$ac_try") 2>&5
8790   ac_status=$?
8791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8792   (exit $ac_status); }; }; then
8793   llvm_cv_link_use_r=yes
8794 else
8795   echo "$as_me: failed program was:" >&5
8796 sed 's/^/| /' conftest.$ac_ext >&5
8797
8798         llvm_cv_link_use_r=no
8799 fi
8800
8801 rm -f core conftest.err conftest.$ac_objext \
8802       conftest$ac_exeext conftest.$ac_ext
8803   CFLAGS="$oldcflags"
8804   ac_ext=c
8805 ac_cpp='$CPP $CPPFLAGS'
8806 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8807 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8808 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8809
8810
8811 fi
8812 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
8813 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
8814 if test "$llvm_cv_link_use_r" = yes ; then
8815
8816 cat >>confdefs.h <<\_ACEOF
8817 #define HAVE_LINK_R 1
8818 _ACEOF
8819
8820   fi
8821
8822
8823 { echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5
8824 echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; }
8825 if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
8826   echo $ECHO_N "(cached) $ECHO_C" >&6
8827 else
8828    ac_ext=c
8829 ac_cpp='$CPP $CPPFLAGS'
8830 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8831 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8832 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8833
8834   oldcflags="$CFLAGS"
8835   CFLAGS="$CFLAGS -Wl,-export-dynamic"
8836   cat >conftest.$ac_ext <<_ACEOF
8837 /* confdefs.h.  */
8838 _ACEOF
8839 cat confdefs.h >>conftest.$ac_ext
8840 cat >>conftest.$ac_ext <<_ACEOF
8841 /* end confdefs.h.  */
8842
8843 int
8844 main ()
8845 {
8846
8847   ;
8848   return 0;
8849 }
8850 _ACEOF
8851 rm -f conftest.$ac_objext conftest$ac_exeext
8852 if { (ac_try="$ac_link"
8853 case "(($ac_try" in
8854   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8855   *) ac_try_echo=$ac_try;;
8856 esac
8857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8858   (eval "$ac_link") 2>conftest.er1
8859   ac_status=$?
8860   grep -v '^ *+' conftest.er1 >conftest.err
8861   rm -f conftest.er1
8862   cat conftest.err >&5
8863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8864   (exit $ac_status); } &&
8865          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8866   { (case "(($ac_try" in
8867   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8868   *) ac_try_echo=$ac_try;;
8869 esac
8870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8871   (eval "$ac_try") 2>&5
8872   ac_status=$?
8873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8874   (exit $ac_status); }; } &&
8875          { ac_try='test -s conftest$ac_exeext'
8876   { (case "(($ac_try" in
8877   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8878   *) ac_try_echo=$ac_try;;
8879 esac
8880 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8881   (eval "$ac_try") 2>&5
8882   ac_status=$?
8883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8884   (exit $ac_status); }; }; then
8885   llvm_cv_link_use_export_dynamic=yes
8886 else
8887   echo "$as_me: failed program was:" >&5
8888 sed 's/^/| /' conftest.$ac_ext >&5
8889
8890         llvm_cv_link_use_export_dynamic=no
8891 fi
8892
8893 rm -f core conftest.err conftest.$ac_objext \
8894       conftest$ac_exeext conftest.$ac_ext
8895   CFLAGS="$oldcflags"
8896   ac_ext=c
8897 ac_cpp='$CPP $CPPFLAGS'
8898 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8899 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8900 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8901
8902
8903 fi
8904 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
8905 echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
8906 if test "$llvm_cv_link_use_export_dynamic" = yes ; then
8907
8908 cat >>confdefs.h <<\_ACEOF
8909 #define HAVE_LINK_EXPORT_DYNAMIC 1
8910 _ACEOF
8911
8912   fi
8913
8914
8915 { echo "$as_me:$LINENO: checking for compiler -Wl,--version-script option" >&5
8916 echo $ECHO_N "checking for compiler -Wl,--version-script option... $ECHO_C" >&6; }
8917 if test "${llvm_cv_link_use_version_script+set}" = set; then
8918   echo $ECHO_N "(cached) $ECHO_C" >&6
8919 else
8920    ac_ext=c
8921 ac_cpp='$CPP $CPPFLAGS'
8922 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8923 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8924 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8925
8926   oldcflags="$CFLAGS"
8927
8928   # The following code is from the autoconf manual,
8929   # "11.13: Limitations of Usual Tools".
8930   # Create a temporary directory $tmp in $TMPDIR (default /tmp).
8931   # Use mktemp if possible; otherwise fall back on mkdir,
8932   # with $RANDOM to make collisions less likely.
8933   : ${TMPDIR=/tmp}
8934   {
8935     tmp=`
8936       (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null
8937     ` &&
8938     test -n "$tmp" && test -d "$tmp"
8939   } || {
8940     tmp=$TMPDIR/foo$$-$RANDOM
8941     (umask 077 && mkdir "$tmp")
8942   } || exit $?
8943
8944   echo "{" > "$tmp/export.map"
8945   echo "  global: main;" >> "$tmp/export.map"
8946   echo "  local: *;" >> "$tmp/export.map"
8947   echo "};" >> "$tmp/export.map"
8948
8949   CFLAGS="$CFLAGS -Wl,--version-script=$tmp/export.map"
8950   cat >conftest.$ac_ext <<_ACEOF
8951 /* confdefs.h.  */
8952 _ACEOF
8953 cat confdefs.h >>conftest.$ac_ext
8954 cat >>conftest.$ac_ext <<_ACEOF
8955 /* end confdefs.h.  */
8956
8957 int
8958 main ()
8959 {
8960
8961   ;
8962   return 0;
8963 }
8964 _ACEOF
8965 rm -f conftest.$ac_objext conftest$ac_exeext
8966 if { (ac_try="$ac_link"
8967 case "(($ac_try" in
8968   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8969   *) ac_try_echo=$ac_try;;
8970 esac
8971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8972   (eval "$ac_link") 2>conftest.er1
8973   ac_status=$?
8974   grep -v '^ *+' conftest.er1 >conftest.err
8975   rm -f conftest.er1
8976   cat conftest.err >&5
8977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8978   (exit $ac_status); } &&
8979          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8980   { (case "(($ac_try" in
8981   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8982   *) ac_try_echo=$ac_try;;
8983 esac
8984 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8985   (eval "$ac_try") 2>&5
8986   ac_status=$?
8987   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8988   (exit $ac_status); }; } &&
8989          { ac_try='test -s conftest$ac_exeext'
8990   { (case "(($ac_try" in
8991   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8992   *) ac_try_echo=$ac_try;;
8993 esac
8994 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8995   (eval "$ac_try") 2>&5
8996   ac_status=$?
8997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8998   (exit $ac_status); }; }; then
8999   llvm_cv_link_use_version_script=yes
9000 else
9001   echo "$as_me: failed program was:" >&5
9002 sed 's/^/| /' conftest.$ac_ext >&5
9003
9004         llvm_cv_link_use_version_script=no
9005 fi
9006
9007 rm -f core conftest.err conftest.$ac_objext \
9008       conftest$ac_exeext conftest.$ac_ext
9009   rm "$tmp/export.map"
9010   rmdir "$tmp"
9011   CFLAGS="$oldcflags"
9012   ac_ext=c
9013 ac_cpp='$CPP $CPPFLAGS'
9014 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9015 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9016 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9017
9018
9019 fi
9020 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_version_script" >&5
9021 echo "${ECHO_T}$llvm_cv_link_use_version_script" >&6; }
9022 if test "$llvm_cv_link_use_version_script" = yes ; then
9023   HAVE_LINK_VERSION_SCRIPT=1
9024
9025   fi
9026
9027
9028
9029
9030 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
9031 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
9032 if test "${ac_cv_c_const+set}" = set; then
9033   echo $ECHO_N "(cached) $ECHO_C" >&6
9034 else
9035   cat >conftest.$ac_ext <<_ACEOF
9036 /* confdefs.h.  */
9037 _ACEOF
9038 cat confdefs.h >>conftest.$ac_ext
9039 cat >>conftest.$ac_ext <<_ACEOF
9040 /* end confdefs.h.  */
9041
9042 int
9043 main ()
9044 {
9045 /* FIXME: Include the comments suggested by Paul. */
9046 #ifndef __cplusplus
9047   /* Ultrix mips cc rejects this.  */
9048   typedef int charset[2];
9049   const charset x;
9050   /* SunOS 4.1.1 cc rejects this.  */
9051   char const *const *ccp;
9052   char **p;
9053   /* NEC SVR4.0.2 mips cc rejects this.  */
9054   struct point {int x, y;};
9055   static struct point const zero = {0,0};
9056   /* AIX XL C 1.02.0.0 rejects this.
9057      It does not let you subtract one const X* pointer from another in
9058      an arm of an if-expression whose if-part is not a constant
9059      expression */
9060   const char *g = "string";
9061   ccp = &g + (g ? g-g : 0);
9062   /* HPUX 7.0 cc rejects these. */
9063   ++ccp;
9064   p = (char**) ccp;
9065   ccp = (char const *const *) p;
9066   { /* SCO 3.2v4 cc rejects this.  */
9067     char *t;
9068     char const *s = 0 ? (char *) 0 : (char const *) 0;
9069
9070     *t++ = 0;
9071     if (s) return 0;
9072   }
9073   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
9074     int x[] = {25, 17};
9075     const int *foo = &x[0];
9076     ++foo;
9077   }
9078   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
9079     typedef const int *iptr;
9080     iptr p = 0;
9081     ++p;
9082   }
9083   { /* AIX XL C 1.02.0.0 rejects this saying
9084        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
9085     struct s { int j; const int *ap[3]; };
9086     struct s *b; b->j = 5;
9087   }
9088   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
9089     const int foo = 10;
9090     if (!foo) return 0;
9091   }
9092   return !x[0] && !zero.x;
9093 #endif
9094
9095   ;
9096   return 0;
9097 }
9098 _ACEOF
9099 rm -f conftest.$ac_objext
9100 if { (ac_try="$ac_compile"
9101 case "(($ac_try" in
9102   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9103   *) ac_try_echo=$ac_try;;
9104 esac
9105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9106   (eval "$ac_compile") 2>conftest.er1
9107   ac_status=$?
9108   grep -v '^ *+' conftest.er1 >conftest.err
9109   rm -f conftest.er1
9110   cat conftest.err >&5
9111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9112   (exit $ac_status); } &&
9113          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9114   { (case "(($ac_try" in
9115   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9116   *) ac_try_echo=$ac_try;;
9117 esac
9118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9119   (eval "$ac_try") 2>&5
9120   ac_status=$?
9121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9122   (exit $ac_status); }; } &&
9123          { ac_try='test -s conftest.$ac_objext'
9124   { (case "(($ac_try" in
9125   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9126   *) ac_try_echo=$ac_try;;
9127 esac
9128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9129   (eval "$ac_try") 2>&5
9130   ac_status=$?
9131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9132   (exit $ac_status); }; }; then
9133   ac_cv_c_const=yes
9134 else
9135   echo "$as_me: failed program was:" >&5
9136 sed 's/^/| /' conftest.$ac_ext >&5
9137
9138         ac_cv_c_const=no
9139 fi
9140
9141 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9142 fi
9143 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
9144 echo "${ECHO_T}$ac_cv_c_const" >&6; }
9145 if test $ac_cv_c_const = no; then
9146
9147 cat >>confdefs.h <<\_ACEOF
9148 #define const
9149 _ACEOF
9150
9151 fi
9152
9153
9154
9155
9156
9157
9158 ac_header_dirent=no
9159 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
9160   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
9161 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
9162 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
9163 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9164   echo $ECHO_N "(cached) $ECHO_C" >&6
9165 else
9166   cat >conftest.$ac_ext <<_ACEOF
9167 /* confdefs.h.  */
9168 _ACEOF
9169 cat confdefs.h >>conftest.$ac_ext
9170 cat >>conftest.$ac_ext <<_ACEOF
9171 /* end confdefs.h.  */
9172 #include <sys/types.h>
9173 #include <$ac_hdr>
9174
9175 int
9176 main ()
9177 {
9178 if ((DIR *) 0)
9179 return 0;
9180   ;
9181   return 0;
9182 }
9183 _ACEOF
9184 rm -f conftest.$ac_objext
9185 if { (ac_try="$ac_compile"
9186 case "(($ac_try" in
9187   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9188   *) ac_try_echo=$ac_try;;
9189 esac
9190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9191   (eval "$ac_compile") 2>conftest.er1
9192   ac_status=$?
9193   grep -v '^ *+' conftest.er1 >conftest.err
9194   rm -f conftest.er1
9195   cat conftest.err >&5
9196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9197   (exit $ac_status); } &&
9198          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9199   { (case "(($ac_try" in
9200   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9201   *) ac_try_echo=$ac_try;;
9202 esac
9203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9204   (eval "$ac_try") 2>&5
9205   ac_status=$?
9206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9207   (exit $ac_status); }; } &&
9208          { ac_try='test -s conftest.$ac_objext'
9209   { (case "(($ac_try" in
9210   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9211   *) ac_try_echo=$ac_try;;
9212 esac
9213 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9214   (eval "$ac_try") 2>&5
9215   ac_status=$?
9216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9217   (exit $ac_status); }; }; then
9218   eval "$as_ac_Header=yes"
9219 else
9220   echo "$as_me: failed program was:" >&5
9221 sed 's/^/| /' conftest.$ac_ext >&5
9222
9223         eval "$as_ac_Header=no"
9224 fi
9225
9226 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9227 fi
9228 ac_res=`eval echo '${'$as_ac_Header'}'`
9229                { echo "$as_me:$LINENO: result: $ac_res" >&5
9230 echo "${ECHO_T}$ac_res" >&6; }
9231 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9232   cat >>confdefs.h <<_ACEOF
9233 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
9234 _ACEOF
9235
9236 ac_header_dirent=$ac_hdr; break
9237 fi
9238
9239 done
9240 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
9241 if test $ac_header_dirent = dirent.h; then
9242   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
9243 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
9244 if test "${ac_cv_search_opendir+set}" = set; then
9245   echo $ECHO_N "(cached) $ECHO_C" >&6
9246 else
9247   ac_func_search_save_LIBS=$LIBS
9248 cat >conftest.$ac_ext <<_ACEOF
9249 /* confdefs.h.  */
9250 _ACEOF
9251 cat confdefs.h >>conftest.$ac_ext
9252 cat >>conftest.$ac_ext <<_ACEOF
9253 /* end confdefs.h.  */
9254
9255 /* Override any GCC internal prototype to avoid an error.
9256    Use char because int might match the return type of a GCC
9257    builtin and then its argument prototype would still apply.  */
9258 #ifdef __cplusplus
9259 extern "C"
9260 #endif
9261 char opendir ();
9262 int
9263 main ()
9264 {
9265 return opendir ();
9266   ;
9267   return 0;
9268 }
9269 _ACEOF
9270 for ac_lib in '' dir; do
9271   if test -z "$ac_lib"; then
9272     ac_res="none required"
9273   else
9274     ac_res=-l$ac_lib
9275     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9276   fi
9277   rm -f conftest.$ac_objext conftest$ac_exeext
9278 if { (ac_try="$ac_link"
9279 case "(($ac_try" in
9280   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9281   *) ac_try_echo=$ac_try;;
9282 esac
9283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9284   (eval "$ac_link") 2>conftest.er1
9285   ac_status=$?
9286   grep -v '^ *+' conftest.er1 >conftest.err
9287   rm -f conftest.er1
9288   cat conftest.err >&5
9289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9290   (exit $ac_status); } &&
9291          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9292   { (case "(($ac_try" in
9293   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9294   *) ac_try_echo=$ac_try;;
9295 esac
9296 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9297   (eval "$ac_try") 2>&5
9298   ac_status=$?
9299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9300   (exit $ac_status); }; } &&
9301          { ac_try='test -s conftest$ac_exeext'
9302   { (case "(($ac_try" in
9303   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9304   *) ac_try_echo=$ac_try;;
9305 esac
9306 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9307   (eval "$ac_try") 2>&5
9308   ac_status=$?
9309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9310   (exit $ac_status); }; }; then
9311   ac_cv_search_opendir=$ac_res
9312 else
9313   echo "$as_me: failed program was:" >&5
9314 sed 's/^/| /' conftest.$ac_ext >&5
9315
9316
9317 fi
9318
9319 rm -f core conftest.err conftest.$ac_objext \
9320       conftest$ac_exeext
9321   if test "${ac_cv_search_opendir+set}" = set; then
9322   break
9323 fi
9324 done
9325 if test "${ac_cv_search_opendir+set}" = set; then
9326   :
9327 else
9328   ac_cv_search_opendir=no
9329 fi
9330 rm conftest.$ac_ext
9331 LIBS=$ac_func_search_save_LIBS
9332 fi
9333 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9334 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
9335 ac_res=$ac_cv_search_opendir
9336 if test "$ac_res" != no; then
9337   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9338
9339 fi
9340
9341 else
9342   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
9343 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
9344 if test "${ac_cv_search_opendir+set}" = set; then
9345   echo $ECHO_N "(cached) $ECHO_C" >&6
9346 else
9347   ac_func_search_save_LIBS=$LIBS
9348 cat >conftest.$ac_ext <<_ACEOF
9349 /* confdefs.h.  */
9350 _ACEOF
9351 cat confdefs.h >>conftest.$ac_ext
9352 cat >>conftest.$ac_ext <<_ACEOF
9353 /* end confdefs.h.  */
9354
9355 /* Override any GCC internal prototype to avoid an error.
9356    Use char because int might match the return type of a GCC
9357    builtin and then its argument prototype would still apply.  */
9358 #ifdef __cplusplus
9359 extern "C"
9360 #endif
9361 char opendir ();
9362 int
9363 main ()
9364 {
9365 return opendir ();
9366   ;
9367   return 0;
9368 }
9369 _ACEOF
9370 for ac_lib in '' x; do
9371   if test -z "$ac_lib"; then
9372     ac_res="none required"
9373   else
9374     ac_res=-l$ac_lib
9375     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9376   fi
9377   rm -f conftest.$ac_objext conftest$ac_exeext
9378 if { (ac_try="$ac_link"
9379 case "(($ac_try" in
9380   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9381   *) ac_try_echo=$ac_try;;
9382 esac
9383 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9384   (eval "$ac_link") 2>conftest.er1
9385   ac_status=$?
9386   grep -v '^ *+' conftest.er1 >conftest.err
9387   rm -f conftest.er1
9388   cat conftest.err >&5
9389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9390   (exit $ac_status); } &&
9391          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9392   { (case "(($ac_try" in
9393   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9394   *) ac_try_echo=$ac_try;;
9395 esac
9396 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9397   (eval "$ac_try") 2>&5
9398   ac_status=$?
9399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9400   (exit $ac_status); }; } &&
9401          { ac_try='test -s conftest$ac_exeext'
9402   { (case "(($ac_try" in
9403   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9404   *) ac_try_echo=$ac_try;;
9405 esac
9406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9407   (eval "$ac_try") 2>&5
9408   ac_status=$?
9409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9410   (exit $ac_status); }; }; then
9411   ac_cv_search_opendir=$ac_res
9412 else
9413   echo "$as_me: failed program was:" >&5
9414 sed 's/^/| /' conftest.$ac_ext >&5
9415
9416
9417 fi
9418
9419 rm -f core conftest.err conftest.$ac_objext \
9420       conftest$ac_exeext
9421   if test "${ac_cv_search_opendir+set}" = set; then
9422   break
9423 fi
9424 done
9425 if test "${ac_cv_search_opendir+set}" = set; then
9426   :
9427 else
9428   ac_cv_search_opendir=no
9429 fi
9430 rm conftest.$ac_ext
9431 LIBS=$ac_func_search_save_LIBS
9432 fi
9433 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9434 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
9435 ac_res=$ac_cv_search_opendir
9436 if test "$ac_res" != no; then
9437   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9438
9439 fi
9440
9441 fi
9442
9443
9444 for ac_header in dlfcn.h
9445 do
9446 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9447 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9448   { echo "$as_me:$LINENO: checking for $ac_header" >&5
9449 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9450 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9451   echo $ECHO_N "(cached) $ECHO_C" >&6
9452 fi
9453 ac_res=`eval echo '${'$as_ac_Header'}'`
9454                { echo "$as_me:$LINENO: result: $ac_res" >&5
9455 echo "${ECHO_T}$ac_res" >&6; }
9456 else
9457   # Is the header compilable?
9458 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9459 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9460 cat >conftest.$ac_ext <<_ACEOF
9461 /* confdefs.h.  */
9462 _ACEOF
9463 cat confdefs.h >>conftest.$ac_ext
9464 cat >>conftest.$ac_ext <<_ACEOF
9465 /* end confdefs.h.  */
9466 $ac_includes_default
9467 #include <$ac_header>
9468 _ACEOF
9469 rm -f conftest.$ac_objext
9470 if { (ac_try="$ac_compile"
9471 case "(($ac_try" in
9472   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9473   *) ac_try_echo=$ac_try;;
9474 esac
9475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9476   (eval "$ac_compile") 2>conftest.er1
9477   ac_status=$?
9478   grep -v '^ *+' conftest.er1 >conftest.err
9479   rm -f conftest.er1
9480   cat conftest.err >&5
9481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9482   (exit $ac_status); } &&
9483          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9484   { (case "(($ac_try" in
9485   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9486   *) ac_try_echo=$ac_try;;
9487 esac
9488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9489   (eval "$ac_try") 2>&5
9490   ac_status=$?
9491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9492   (exit $ac_status); }; } &&
9493          { ac_try='test -s conftest.$ac_objext'
9494   { (case "(($ac_try" in
9495   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9496   *) ac_try_echo=$ac_try;;
9497 esac
9498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9499   (eval "$ac_try") 2>&5
9500   ac_status=$?
9501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9502   (exit $ac_status); }; }; then
9503   ac_header_compiler=yes
9504 else
9505   echo "$as_me: failed program was:" >&5
9506 sed 's/^/| /' conftest.$ac_ext >&5
9507
9508         ac_header_compiler=no
9509 fi
9510
9511 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9512 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9513 echo "${ECHO_T}$ac_header_compiler" >&6; }
9514
9515 # Is the header present?
9516 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9517 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9518 cat >conftest.$ac_ext <<_ACEOF
9519 /* confdefs.h.  */
9520 _ACEOF
9521 cat confdefs.h >>conftest.$ac_ext
9522 cat >>conftest.$ac_ext <<_ACEOF
9523 /* end confdefs.h.  */
9524 #include <$ac_header>
9525 _ACEOF
9526 if { (ac_try="$ac_cpp conftest.$ac_ext"
9527 case "(($ac_try" in
9528   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9529   *) ac_try_echo=$ac_try;;
9530 esac
9531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9532   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9533   ac_status=$?
9534   grep -v '^ *+' conftest.er1 >conftest.err
9535   rm -f conftest.er1
9536   cat conftest.err >&5
9537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9538   (exit $ac_status); } >/dev/null; then
9539   if test -s conftest.err; then
9540     ac_cpp_err=$ac_c_preproc_warn_flag
9541     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9542   else
9543     ac_cpp_err=
9544   fi
9545 else
9546   ac_cpp_err=yes
9547 fi
9548 if test -z "$ac_cpp_err"; then
9549   ac_header_preproc=yes
9550 else
9551   echo "$as_me: failed program was:" >&5
9552 sed 's/^/| /' conftest.$ac_ext >&5
9553
9554   ac_header_preproc=no
9555 fi
9556
9557 rm -f conftest.err conftest.$ac_ext
9558 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9559 echo "${ECHO_T}$ac_header_preproc" >&6; }
9560
9561 # So?  What about this header?
9562 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9563   yes:no: )
9564     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9565 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9566     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9567 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9568     ac_header_preproc=yes
9569     ;;
9570   no:yes:* )
9571     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9572 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9573     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9574 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9575     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9576 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9577     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9578 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9579     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9580 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9581     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9582 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9583     ( cat <<\_ASBOX
9584 ## ----------------------------------- ##
9585 ## Report this to llvmbugs@cs.uiuc.edu ##
9586 ## ----------------------------------- ##
9587 _ASBOX
9588      ) | sed "s/^/$as_me: WARNING:     /" >&2
9589     ;;
9590 esac
9591 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9592 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9593 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9594   echo $ECHO_N "(cached) $ECHO_C" >&6
9595 else
9596   eval "$as_ac_Header=\$ac_header_preproc"
9597 fi
9598 ac_res=`eval echo '${'$as_ac_Header'}'`
9599                { echo "$as_me:$LINENO: result: $ac_res" >&5
9600 echo "${ECHO_T}$ac_res" >&6; }
9601
9602 fi
9603 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9604   cat >>confdefs.h <<_ACEOF
9605 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9606 _ACEOF
9607
9608 fi
9609
9610 done
9611
9612 # Check whether --enable-ltdl-install was given.
9613 if test "${enable_ltdl_install+set}" = set; then
9614   enableval=$enable_ltdl_install;
9615 fi
9616
9617
9618
9619
9620 if test x"${enable_ltdl_install-no}" != xno; then
9621   INSTALL_LTDL_TRUE=
9622   INSTALL_LTDL_FALSE='#'
9623 else
9624   INSTALL_LTDL_TRUE='#'
9625   INSTALL_LTDL_FALSE=
9626 fi
9627
9628
9629
9630 if test x"${enable_ltdl_convenience-no}" != xno; then
9631   CONVENIENCE_LTDL_TRUE=
9632   CONVENIENCE_LTDL_FALSE='#'
9633 else
9634   CONVENIENCE_LTDL_TRUE='#'
9635   CONVENIENCE_LTDL_FALSE=
9636 fi
9637
9638
9639 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9640 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
9641 library_names_spec=
9642 libname_spec='lib$name'
9643 soname_spec=
9644 shrext_cmds=".so"
9645 postinstall_cmds=
9646 postuninstall_cmds=
9647 finish_cmds=
9648 finish_eval=
9649 shlibpath_var=
9650 shlibpath_overrides_runpath=unknown
9651 version_type=none
9652 dynamic_linker="$host_os ld.so"
9653 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9654 if test "$GCC" = yes; then
9655   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9656   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9657     # if the path contains ";" then we assume it to be the separator
9658     # otherwise default to the standard path separator (i.e. ":") - it is
9659     # assumed that no part of a normal pathname contains ";" but that should
9660     # okay in the real world where ";" in dirpaths is itself problematic.
9661     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9662   else
9663     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9664   fi
9665 else
9666   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9667 fi
9668 need_lib_prefix=unknown
9669 hardcode_into_libs=no
9670
9671 # when you set need_version to no, make sure it does not cause -set_version
9672 # flags to be left without arguments
9673 need_version=unknown
9674
9675 case $host_os in
9676 aix3*)
9677   version_type=linux
9678   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9679   shlibpath_var=LIBPATH
9680
9681   # AIX 3 has no versioning support, so we append a major version to the name.
9682   soname_spec='${libname}${release}${shared_ext}$major'
9683   ;;
9684
9685 aix4* | aix5*)
9686   version_type=linux
9687   need_lib_prefix=no
9688   need_version=no
9689   hardcode_into_libs=yes
9690   if test "$host_cpu" = ia64; then
9691     # AIX 5 supports IA64
9692     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9693     shlibpath_var=LD_LIBRARY_PATH
9694   else
9695     # With GCC up to 2.95.x, collect2 would create an import file
9696     # for dependence libraries.  The import file would start with
9697     # the line `#! .'.  This would cause the generated library to
9698     # depend on `.', always an invalid library.  This was fixed in
9699     # development snapshots of GCC prior to 3.0.
9700     case $host_os in
9701       aix4 | aix4.[01] | aix4.[01].*)
9702       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9703            echo ' yes '
9704            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9705         :
9706       else
9707         can_build_shared=no
9708       fi
9709       ;;
9710     esac
9711     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9712     # soname into executable. Probably we can add versioning support to
9713     # collect2, so additional links can be useful in future.
9714     if test "$aix_use_runtimelinking" = yes; then
9715       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9716       # instead of lib<name>.a to let people know that these are not
9717       # typical AIX shared libraries.
9718       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9719     else
9720       # We preserve .a as extension for shared libraries through AIX4.2
9721       # and later when we are not doing run time linking.
9722       library_names_spec='${libname}${release}.a $libname.a'
9723       soname_spec='${libname}${release}${shared_ext}$major'
9724     fi
9725     shlibpath_var=LIBPATH
9726   fi
9727   ;;
9728
9729 amigaos*)
9730   library_names_spec='$libname.ixlibrary $libname.a'
9731   # Create ${libname}_ixlibrary.a entries in /sys/libs.
9732   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'
9733   ;;
9734
9735 beos*)
9736   library_names_spec='${libname}${shared_ext}'
9737   dynamic_linker="$host_os ld.so"
9738   shlibpath_var=LIBRARY_PATH
9739   ;;
9740
9741 bsdi[45]*)
9742   version_type=linux
9743   need_version=no
9744   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9745   soname_spec='${libname}${release}${shared_ext}$major'
9746   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9747   shlibpath_var=LD_LIBRARY_PATH
9748   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9749   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9750   # the default ld.so.conf also contains /usr/contrib/lib and
9751   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9752   # libtool to hard-code these into programs
9753   ;;
9754
9755 cygwin* | mingw* | pw32*)
9756   version_type=windows
9757   shrext_cmds=".dll"
9758   need_version=no
9759   need_lib_prefix=no
9760
9761   case $GCC,$host_os in
9762   yes,cygwin* | yes,mingw* | yes,pw32*)
9763     library_names_spec='$libname.dll.a'
9764     # DLL is installed to $(libdir)/../bin by postinstall_cmds
9765     postinstall_cmds='base_file=`basename \${file}`~
9766       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9767       dldir=$destdir/`dirname \$dlpath`~
9768       test -d \$dldir || mkdir -p \$dldir~
9769       $install_prog $dir/$dlname \$dldir/$dlname~
9770       chmod a+x \$dldir/$dlname'
9771     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9772       dlpath=$dir/\$dldll~
9773        $rm \$dlpath'
9774     shlibpath_overrides_runpath=yes
9775
9776     case $host_os in
9777     cygwin*)
9778       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9779       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9780       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9781       ;;
9782     mingw*)
9783       # MinGW DLLs use traditional 'lib' prefix
9784       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9785       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9786       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9787         # It is most probably a Windows format PATH printed by
9788         # mingw gcc, but we are running on Cygwin. Gcc prints its search
9789         # path with ; separators, and with drive letters. We can handle the
9790         # drive letters (cygwin fileutils understands them), so leave them,
9791         # especially as we might pass files found there to a mingw objdump,
9792         # which wouldn't understand a cygwinified path. Ahh.
9793         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9794       else
9795         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9796       fi
9797       ;;
9798     pw32*)
9799       # pw32 DLLs use 'pw' prefix rather than 'lib'
9800       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9801       ;;
9802     esac
9803     ;;
9804
9805   *)
9806     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9807     ;;
9808   esac
9809   dynamic_linker='Win32 ld.exe'
9810   # FIXME: first we should search . and the directory the executable is in
9811   shlibpath_var=PATH
9812   ;;
9813
9814 darwin* | rhapsody*)
9815   dynamic_linker="$host_os dyld"
9816   version_type=darwin
9817   need_lib_prefix=no
9818   need_version=no
9819   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9820   soname_spec='${libname}${release}${major}$shared_ext'
9821   shlibpath_overrides_runpath=yes
9822   shlibpath_var=DYLD_LIBRARY_PATH
9823   shrext_cmds='.dylib'
9824   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9825   if test "$GCC" = yes; then
9826     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"`
9827   else
9828     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9829   fi
9830   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9831   ;;
9832
9833 dgux*)
9834   version_type=linux
9835   need_lib_prefix=no
9836   need_version=no
9837   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9838   soname_spec='${libname}${release}${shared_ext}$major'
9839   shlibpath_var=LD_LIBRARY_PATH
9840   ;;
9841
9842 freebsd1*)
9843   dynamic_linker=no
9844   ;;
9845
9846 kfreebsd*-gnu)
9847   version_type=linux
9848   need_lib_prefix=no
9849   need_version=no
9850   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9851   soname_spec='${libname}${release}${shared_ext}$major'
9852   shlibpath_var=LD_LIBRARY_PATH
9853   shlibpath_overrides_runpath=no
9854   hardcode_into_libs=yes
9855   dynamic_linker='GNU ld.so'
9856   ;;
9857
9858 freebsd* | dragonfly*)
9859   # DragonFly does not have aout.  When/if they implement a new
9860   # versioning mechanism, adjust this.
9861   if test -x /usr/bin/objformat; then
9862     objformat=`/usr/bin/objformat`
9863   else
9864     case $host_os in
9865     freebsd[123]*) objformat=aout ;;
9866     *) objformat=elf ;;
9867     esac
9868   fi
9869   version_type=freebsd-$objformat
9870   case $version_type in
9871     freebsd-elf*)
9872       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9873       need_version=no
9874       need_lib_prefix=no
9875       ;;
9876     freebsd-*)
9877       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9878       need_version=yes
9879       ;;
9880   esac
9881   shlibpath_var=LD_LIBRARY_PATH
9882   case $host_os in
9883   freebsd2*)
9884     shlibpath_overrides_runpath=yes
9885     ;;
9886   freebsd3.[01]* | freebsdelf3.[01]*)
9887     shlibpath_overrides_runpath=yes
9888     hardcode_into_libs=yes
9889     ;;
9890   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9891   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9892     shlibpath_overrides_runpath=no
9893     hardcode_into_libs=yes
9894     ;;
9895   freebsd*) # from 4.6 on
9896     shlibpath_overrides_runpath=yes
9897     hardcode_into_libs=yes
9898     ;;
9899   esac
9900   ;;
9901
9902 gnu*)
9903   version_type=linux
9904   need_lib_prefix=no
9905   need_version=no
9906   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9907   soname_spec='${libname}${release}${shared_ext}$major'
9908   shlibpath_var=LD_LIBRARY_PATH
9909   hardcode_into_libs=yes
9910   ;;
9911
9912 hpux9* | hpux10* | hpux11*)
9913   # Give a soname corresponding to the major version so that dld.sl refuses to
9914   # link against other versions.
9915   version_type=sunos
9916   need_lib_prefix=no
9917   need_version=no
9918   case $host_cpu in
9919   ia64*)
9920     shrext_cmds='.so'
9921     hardcode_into_libs=yes
9922     dynamic_linker="$host_os dld.so"
9923     shlibpath_var=LD_LIBRARY_PATH
9924     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9925     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9926     soname_spec='${libname}${release}${shared_ext}$major'
9927     if test "X$HPUX_IA64_MODE" = X32; then
9928       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9929     else
9930       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9931     fi
9932     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9933     ;;
9934    hppa*64*)
9935      shrext_cmds='.sl'
9936      hardcode_into_libs=yes
9937      dynamic_linker="$host_os dld.sl"
9938      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9939      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9940      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9941      soname_spec='${libname}${release}${shared_ext}$major'
9942      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9943      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9944      ;;
9945    *)
9946     shrext_cmds='.sl'
9947     dynamic_linker="$host_os dld.sl"
9948     shlibpath_var=SHLIB_PATH
9949     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9950     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9951     soname_spec='${libname}${release}${shared_ext}$major'
9952     ;;
9953   esac
9954   # HP-UX runs *really* slowly unless shared libraries are mode 555.
9955   postinstall_cmds='chmod 555 $lib'
9956   ;;
9957
9958 interix3*)
9959   version_type=linux
9960   need_lib_prefix=no
9961   need_version=no
9962   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9963   soname_spec='${libname}${release}${shared_ext}$major'
9964   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9965   shlibpath_var=LD_LIBRARY_PATH
9966   shlibpath_overrides_runpath=no
9967   hardcode_into_libs=yes
9968   ;;
9969
9970 irix5* | irix6* | nonstopux*)
9971   case $host_os in
9972     nonstopux*) version_type=nonstopux ;;
9973     *)
9974         if test "$lt_cv_prog_gnu_ld" = yes; then
9975                 version_type=linux
9976         else
9977                 version_type=irix
9978         fi ;;
9979   esac
9980   need_lib_prefix=no
9981   need_version=no
9982   soname_spec='${libname}${release}${shared_ext}$major'
9983   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9984   case $host_os in
9985   irix5* | nonstopux*)
9986     libsuff= shlibsuff=
9987     ;;
9988   *)
9989     case $LD in # libtool.m4 will add one of these switches to LD
9990     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9991       libsuff= shlibsuff= libmagic=32-bit;;
9992     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9993       libsuff=32 shlibsuff=N32 libmagic=N32;;
9994     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9995       libsuff=64 shlibsuff=64 libmagic=64-bit;;
9996     *) libsuff= shlibsuff= libmagic=never-match;;
9997     esac
9998     ;;
9999   esac
10000   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10001   shlibpath_overrides_runpath=no
10002   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10003   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10004   hardcode_into_libs=yes
10005   ;;
10006
10007 # No shared lib support for Linux oldld, aout, or coff.
10008 linux*oldld* | linux*aout* | linux*coff*)
10009   dynamic_linker=no
10010   ;;
10011
10012 # This must be Linux ELF.
10013 linux*)
10014   version_type=linux
10015   need_lib_prefix=no
10016   need_version=no
10017   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10018   soname_spec='${libname}${release}${shared_ext}$major'
10019   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10020   shlibpath_var=LD_LIBRARY_PATH
10021   shlibpath_overrides_runpath=no
10022   # This implies no fast_install, which is unacceptable.
10023   # Some rework will be needed to allow for fast_install
10024   # before this can be enabled.
10025   hardcode_into_libs=yes
10026
10027   # Append ld.so.conf contents to the search path
10028   if test -f /etc/ld.so.conf; then
10029     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' ' '`
10030     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10031   fi
10032
10033   # We used to test for /lib/ld.so.1 and disable shared libraries on
10034   # powerpc, because MkLinux only supported shared libraries with the
10035   # GNU dynamic linker.  Since this was broken with cross compilers,
10036   # most powerpc-linux boxes support dynamic linking these days and
10037   # people can always --disable-shared, the test was removed, and we
10038   # assume the GNU/Linux dynamic linker is in use.
10039   dynamic_linker='GNU/Linux ld.so'
10040   ;;
10041
10042 knetbsd*-gnu)
10043   version_type=linux
10044   need_lib_prefix=no
10045   need_version=no
10046   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10047   soname_spec='${libname}${release}${shared_ext}$major'
10048   shlibpath_var=LD_LIBRARY_PATH
10049   shlibpath_overrides_runpath=no
10050   hardcode_into_libs=yes
10051   dynamic_linker='GNU ld.so'
10052   ;;
10053
10054 netbsd*)
10055   version_type=sunos
10056   need_lib_prefix=no
10057   need_version=no
10058   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10059     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10060     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10061     dynamic_linker='NetBSD (a.out) ld.so'
10062   else
10063     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10064     soname_spec='${libname}${release}${shared_ext}$major'
10065     dynamic_linker='NetBSD ld.elf_so'
10066   fi
10067   shlibpath_var=LD_LIBRARY_PATH
10068   shlibpath_overrides_runpath=yes
10069   hardcode_into_libs=yes
10070   ;;
10071
10072 newsos6)
10073   version_type=linux
10074   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10075   shlibpath_var=LD_LIBRARY_PATH
10076   shlibpath_overrides_runpath=yes
10077   ;;
10078
10079 nto-qnx*)
10080   version_type=linux
10081   need_lib_prefix=no
10082   need_version=no
10083   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10084   soname_spec='${libname}${release}${shared_ext}$major'
10085   shlibpath_var=LD_LIBRARY_PATH
10086   shlibpath_overrides_runpath=yes
10087   ;;
10088
10089 openbsd*)
10090   version_type=sunos
10091   sys_lib_dlsearch_path_spec="/usr/lib"
10092   need_lib_prefix=no
10093   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10094   case $host_os in
10095     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10096     *)                         need_version=no  ;;
10097   esac
10098   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10099   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10100   shlibpath_var=LD_LIBRARY_PATH
10101   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10102     case $host_os in
10103       openbsd2.[89] | openbsd2.[89].*)
10104         shlibpath_overrides_runpath=no
10105         ;;
10106       *)
10107         shlibpath_overrides_runpath=yes
10108         ;;
10109       esac
10110   else
10111     shlibpath_overrides_runpath=yes
10112   fi
10113   ;;
10114
10115 os2*)
10116   libname_spec='$name'
10117   shrext_cmds=".dll"
10118   need_lib_prefix=no
10119   library_names_spec='$libname${shared_ext} $libname.a'
10120   dynamic_linker='OS/2 ld.exe'
10121   shlibpath_var=LIBPATH
10122   ;;
10123
10124 osf3* | osf4* | osf5*)
10125   version_type=osf
10126   need_lib_prefix=no
10127   need_version=no
10128   soname_spec='${libname}${release}${shared_ext}$major'
10129   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10130   shlibpath_var=LD_LIBRARY_PATH
10131   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10132   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10133   ;;
10134
10135 solaris*)
10136   version_type=linux
10137   need_lib_prefix=no
10138   need_version=no
10139   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10140   soname_spec='${libname}${release}${shared_ext}$major'
10141   shlibpath_var=LD_LIBRARY_PATH
10142   shlibpath_overrides_runpath=yes
10143   hardcode_into_libs=yes
10144   # ldd complains unless libraries are executable
10145   postinstall_cmds='chmod +x $lib'
10146   ;;
10147
10148 sunos4*)
10149   version_type=sunos
10150   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10151   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10152   shlibpath_var=LD_LIBRARY_PATH
10153   shlibpath_overrides_runpath=yes
10154   if test "$with_gnu_ld" = yes; then
10155     need_lib_prefix=no
10156   fi
10157   need_version=yes
10158   ;;
10159
10160 sysv4 | sysv4.3*)
10161   version_type=linux
10162   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10163   soname_spec='${libname}${release}${shared_ext}$major'
10164   shlibpath_var=LD_LIBRARY_PATH
10165   case $host_vendor in
10166     sni)
10167       shlibpath_overrides_runpath=no
10168       need_lib_prefix=no
10169       export_dynamic_flag_spec='${wl}-Blargedynsym'
10170       runpath_var=LD_RUN_PATH
10171       ;;
10172     siemens)
10173       need_lib_prefix=no
10174       ;;
10175     motorola)
10176       need_lib_prefix=no
10177       need_version=no
10178       shlibpath_overrides_runpath=no
10179       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10180       ;;
10181   esac
10182   ;;
10183
10184 sysv4*MP*)
10185   if test -d /usr/nec ;then
10186     version_type=linux
10187     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10188     soname_spec='$libname${shared_ext}.$major'
10189     shlibpath_var=LD_LIBRARY_PATH
10190   fi
10191   ;;
10192
10193 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10194   version_type=freebsd-elf
10195   need_lib_prefix=no
10196   need_version=no
10197   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10198   soname_spec='${libname}${release}${shared_ext}$major'
10199   shlibpath_var=LD_LIBRARY_PATH
10200   hardcode_into_libs=yes
10201   if test "$with_gnu_ld" = yes; then
10202     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10203     shlibpath_overrides_runpath=no
10204   else
10205     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10206     shlibpath_overrides_runpath=yes
10207     case $host_os in
10208       sco3.2v5*)
10209         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10210         ;;
10211     esac
10212   fi
10213   sys_lib_dlsearch_path_spec='/usr/lib'
10214   ;;
10215
10216 uts4*)
10217   version_type=linux
10218   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10219   soname_spec='${libname}${release}${shared_ext}$major'
10220   shlibpath_var=LD_LIBRARY_PATH
10221   ;;
10222
10223 *)
10224   dynamic_linker=no
10225   ;;
10226 esac
10227 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10228 echo "${ECHO_T}$dynamic_linker" >&6; }
10229 test "$dynamic_linker" = no && can_build_shared=no
10230
10231 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10232 if test "$GCC" = yes; then
10233   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10234 fi
10235
10236
10237 { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
10238 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
10239 if test "${libltdl_cv_shlibext+set}" = set; then
10240   echo $ECHO_N "(cached) $ECHO_C" >&6
10241 else
10242
10243 module=yes
10244 eval libltdl_cv_shlibext=$shrext_cmds
10245
10246 fi
10247 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
10248 echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
10249 if test -n "$libltdl_cv_shlibext"; then
10250
10251 cat >>confdefs.h <<_ACEOF
10252 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
10253 _ACEOF
10254
10255 fi
10256
10257
10258 { echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
10259 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
10260 if test "${libltdl_cv_shlibpath_var+set}" = set; then
10261   echo $ECHO_N "(cached) $ECHO_C" >&6
10262 else
10263   libltdl_cv_shlibpath_var="$shlibpath_var"
10264 fi
10265 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
10266 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
10267 if test -n "$libltdl_cv_shlibpath_var"; then
10268
10269 cat >>confdefs.h <<_ACEOF
10270 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
10271 _ACEOF
10272
10273 fi
10274
10275
10276 { echo "$as_me:$LINENO: checking for the default library search path" >&5
10277 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
10278 if test "${libltdl_cv_sys_search_path+set}" = set; then
10279   echo $ECHO_N "(cached) $ECHO_C" >&6
10280 else
10281   libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
10282 fi
10283 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
10284 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
10285 if test -n "$libltdl_cv_sys_search_path"; then
10286   sys_search_path=
10287   for dir in $libltdl_cv_sys_search_path; do
10288     if test -z "$sys_search_path"; then
10289       sys_search_path="$dir"
10290     else
10291       sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
10292     fi
10293   done
10294
10295 cat >>confdefs.h <<_ACEOF
10296 #define LTDL_SYSSEARCHPATH "$sys_search_path"
10297 _ACEOF
10298
10299 fi
10300
10301 { echo "$as_me:$LINENO: checking for objdir" >&5
10302 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
10303 if test "${libltdl_cv_objdir+set}" = set; then
10304   echo $ECHO_N "(cached) $ECHO_C" >&6
10305 else
10306   libltdl_cv_objdir="$objdir"
10307   if test -n "$objdir"; then
10308     :
10309   else
10310     rm -f .libs 2>/dev/null
10311     mkdir .libs 2>/dev/null
10312     if test -d .libs; then
10313       libltdl_cv_objdir=.libs
10314     else
10315       # MS-DOS does not allow filenames that begin with a dot.
10316       libltdl_cv_objdir=_libs
10317     fi
10318   rmdir .libs 2>/dev/null
10319   fi
10320
10321 fi
10322 { echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
10323 echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
10324
10325 cat >>confdefs.h <<_ACEOF
10326 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
10327 _ACEOF
10328
10329
10330
10331
10332
10333
10334 # Check for command to grab the raw symbol name followed by C symbol from nm.
10335 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
10336 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
10337 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
10338   echo $ECHO_N "(cached) $ECHO_C" >&6
10339 else
10340
10341 # These are sane defaults that work on at least a few old systems.
10342 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
10343
10344 # Character class describing NM global symbol codes.
10345 symcode='[BCDEGRST]'
10346
10347 # Regexp to match symbols that can be accessed directly from C.
10348 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
10349
10350 # Transform an extracted symbol line into a proper C declaration
10351 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
10352
10353 # Transform an extracted symbol line into symbol name and symbol address
10354 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'"
10355
10356 # Define system-specific variables.
10357 case $host_os in
10358 aix*)
10359   symcode='[BCDT]'
10360   ;;
10361 cygwin* | mingw* | pw32*)
10362   symcode='[ABCDGISTW]'
10363   ;;
10364 hpux*) # Its linker distinguishes data from code symbols
10365   if test "$host_cpu" = ia64; then
10366     symcode='[ABCDEGRST]'
10367   fi
10368   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10369   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'"
10370   ;;
10371 linux*)
10372   if test "$host_cpu" = ia64; then
10373     symcode='[ABCDGIRSTW]'
10374     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10375     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'"
10376   fi
10377   ;;
10378 irix* | nonstopux*)
10379   symcode='[BCDEGRST]'
10380   ;;
10381 osf*)
10382   symcode='[BCDEGQRST]'
10383   ;;
10384 solaris*)
10385   symcode='[BDRT]'
10386   ;;
10387 sco3.2v5*)
10388   symcode='[DT]'
10389   ;;
10390 sysv4.2uw2*)
10391   symcode='[DT]'
10392   ;;
10393 sysv5* | sco5v6* | unixware* | OpenUNIX*)
10394   symcode='[ABDT]'
10395   ;;
10396 sysv4)
10397   symcode='[DFNSTU]'
10398   ;;
10399 esac
10400
10401 # Handle CRLF in mingw tool chain
10402 opt_cr=
10403 case $build_os in
10404 mingw*)
10405   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
10406   ;;
10407 esac
10408
10409 # If we're using GNU nm, then use its standard symbol codes.
10410 case `$NM -V 2>&1` in
10411 *GNU* | *'with BFD'*)
10412   symcode='[ABCDGIRSTW]' ;;
10413 esac
10414
10415 # Try without a prefix undercore, then with it.
10416 for ac_symprfx in "" "_"; do
10417
10418   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
10419   symxfrm="\\1 $ac_symprfx\\2 \\2"
10420
10421   # Write the raw and C identifiers.
10422   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
10423
10424   # Check to see that the pipe works correctly.
10425   pipe_works=no
10426
10427   rm -f conftest*
10428   cat > conftest.$ac_ext <<EOF
10429 #ifdef __cplusplus
10430 extern "C" {
10431 #endif
10432 char nm_test_var;
10433 void nm_test_func(){}
10434 #ifdef __cplusplus
10435 }
10436 #endif
10437 int main(){nm_test_var='a';nm_test_func();return(0);}
10438 EOF
10439
10440   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10441   (eval $ac_compile) 2>&5
10442   ac_status=$?
10443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10444   (exit $ac_status); }; then
10445     # Now try to grab the symbols.
10446     nlist=conftest.nm
10447     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
10448   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
10449   ac_status=$?
10450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10451   (exit $ac_status); } && test -s "$nlist"; then
10452       # Try sorting and uniquifying the output.
10453       if sort "$nlist" | uniq > "$nlist"T; then
10454         mv -f "$nlist"T "$nlist"
10455       else
10456         rm -f "$nlist"T
10457       fi
10458
10459       # Make sure that we snagged all the symbols we need.
10460       if grep ' nm_test_var$' "$nlist" >/dev/null; then
10461         if grep ' nm_test_func$' "$nlist" >/dev/null; then
10462           cat <<EOF > conftest.$ac_ext
10463 #ifdef __cplusplus
10464 extern "C" {
10465 #endif
10466
10467 EOF
10468           # Now generate the symbol file.
10469           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
10470
10471           cat <<EOF >> conftest.$ac_ext
10472 #if defined (__STDC__) && __STDC__
10473 # define lt_ptr_t void *
10474 #else
10475 # define lt_ptr_t char *
10476 # define const
10477 #endif
10478
10479 /* The mapping between symbol names and symbols. */
10480 const struct {
10481   const char *name;
10482   lt_ptr_t address;
10483 }
10484 lt_preloaded_symbols[] =
10485 {
10486 EOF
10487           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
10488           cat <<\EOF >> conftest.$ac_ext
10489   {0, (lt_ptr_t) 0}
10490 };
10491
10492 #ifdef __cplusplus
10493 }
10494 #endif
10495 EOF
10496           # Now try linking the two files.
10497           mv conftest.$ac_objext conftstm.$ac_objext
10498           lt_save_LIBS="$LIBS"
10499           lt_save_CFLAGS="$CFLAGS"
10500           LIBS="conftstm.$ac_objext"
10501           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
10502           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10503   (eval $ac_link) 2>&5
10504   ac_status=$?
10505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10506   (exit $ac_status); } && test -s conftest${ac_exeext}; then
10507             pipe_works=yes
10508           fi
10509           LIBS="$lt_save_LIBS"
10510           CFLAGS="$lt_save_CFLAGS"
10511         else
10512           echo "cannot find nm_test_func in $nlist" >&5
10513         fi
10514       else
10515         echo "cannot find nm_test_var in $nlist" >&5
10516       fi
10517     else
10518       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
10519     fi
10520   else
10521     echo "$progname: failed program was:" >&5
10522     cat conftest.$ac_ext >&5
10523   fi
10524   rm -f conftest* conftst*
10525
10526   # Do not use the global_symbol_pipe unless it works.
10527   if test "$pipe_works" = yes; then
10528     break
10529   else
10530     lt_cv_sys_global_symbol_pipe=
10531   fi
10532 done
10533
10534 fi
10535
10536 if test -z "$lt_cv_sys_global_symbol_pipe"; then
10537   lt_cv_sys_global_symbol_to_cdecl=
10538 fi
10539 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
10540   { echo "$as_me:$LINENO: result: failed" >&5
10541 echo "${ECHO_T}failed" >&6; }
10542 else
10543   { echo "$as_me:$LINENO: result: ok" >&5
10544 echo "${ECHO_T}ok" >&6; }
10545 fi
10546
10547
10548 { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
10549 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
10550 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
10551   echo $ECHO_N "(cached) $ECHO_C" >&6
10552 else
10553   if test -n "$lt_cv_sys_global_symbol_pipe"; then
10554     libltdl_cv_preloaded_symbols=yes
10555   else
10556     libltdl_cv_preloaded_symbols=no
10557   fi
10558
10559 fi
10560 { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
10561 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
10562 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
10563
10564 cat >>confdefs.h <<\_ACEOF
10565 #define HAVE_PRELOADED_SYMBOLS 1
10566 _ACEOF
10567
10568 fi
10569
10570 LIBADD_DL=
10571
10572 ac_ext=c
10573 ac_cpp='$CPP $CPPFLAGS'
10574 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10575 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10576 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10577
10578
10579 { echo "$as_me:$LINENO: checking for shl_load" >&5
10580 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
10581 if test "${ac_cv_func_shl_load+set}" = set; then
10582   echo $ECHO_N "(cached) $ECHO_C" >&6
10583 else
10584   cat >conftest.$ac_ext <<_ACEOF
10585 /* confdefs.h.  */
10586 _ACEOF
10587 cat confdefs.h >>conftest.$ac_ext
10588 cat >>conftest.$ac_ext <<_ACEOF
10589 /* end confdefs.h.  */
10590 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10591    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10592 #define shl_load innocuous_shl_load
10593
10594 /* System header to define __stub macros and hopefully few prototypes,
10595     which can conflict with char shl_load (); below.
10596     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10597     <limits.h> exists even on freestanding compilers.  */
10598
10599 #ifdef __STDC__
10600 # include <limits.h>
10601 #else
10602 # include <assert.h>
10603 #endif
10604
10605 #undef shl_load
10606
10607 /* Override any GCC internal prototype to avoid an error.
10608    Use char because int might match the return type of a GCC
10609    builtin and then its argument prototype would still apply.  */
10610 #ifdef __cplusplus
10611 extern "C"
10612 #endif
10613 char shl_load ();
10614 /* The GNU C library defines this for functions which it implements
10615     to always fail with ENOSYS.  Some functions are actually named
10616     something starting with __ and the normal name is an alias.  */
10617 #if defined __stub_shl_load || defined __stub___shl_load
10618 choke me
10619 #endif
10620
10621 int
10622 main ()
10623 {
10624 return shl_load ();
10625   ;
10626   return 0;
10627 }
10628 _ACEOF
10629 rm -f conftest.$ac_objext conftest$ac_exeext
10630 if { (ac_try="$ac_link"
10631 case "(($ac_try" in
10632   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10633   *) ac_try_echo=$ac_try;;
10634 esac
10635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10636   (eval "$ac_link") 2>conftest.er1
10637   ac_status=$?
10638   grep -v '^ *+' conftest.er1 >conftest.err
10639   rm -f conftest.er1
10640   cat conftest.err >&5
10641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10642   (exit $ac_status); } &&
10643          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10644   { (case "(($ac_try" in
10645   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10646   *) ac_try_echo=$ac_try;;
10647 esac
10648 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10649   (eval "$ac_try") 2>&5
10650   ac_status=$?
10651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10652   (exit $ac_status); }; } &&
10653          { ac_try='test -s conftest$ac_exeext'
10654   { (case "(($ac_try" in
10655   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10656   *) ac_try_echo=$ac_try;;
10657 esac
10658 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10659   (eval "$ac_try") 2>&5
10660   ac_status=$?
10661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10662   (exit $ac_status); }; }; then
10663   ac_cv_func_shl_load=yes
10664 else
10665   echo "$as_me: failed program was:" >&5
10666 sed 's/^/| /' conftest.$ac_ext >&5
10667
10668         ac_cv_func_shl_load=no
10669 fi
10670
10671 rm -f core conftest.err conftest.$ac_objext \
10672       conftest$ac_exeext conftest.$ac_ext
10673 fi
10674 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10675 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
10676 if test $ac_cv_func_shl_load = yes; then
10677
10678 cat >>confdefs.h <<\_ACEOF
10679 #define HAVE_SHL_LOAD 1
10680 _ACEOF
10681
10682 else
10683   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10684 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
10685 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10686   echo $ECHO_N "(cached) $ECHO_C" >&6
10687 else
10688   ac_check_lib_save_LIBS=$LIBS
10689 LIBS="-ldld  $LIBS"
10690 cat >conftest.$ac_ext <<_ACEOF
10691 /* confdefs.h.  */
10692 _ACEOF
10693 cat confdefs.h >>conftest.$ac_ext
10694 cat >>conftest.$ac_ext <<_ACEOF
10695 /* end confdefs.h.  */
10696
10697 /* Override any GCC internal prototype to avoid an error.
10698    Use char because int might match the return type of a GCC
10699    builtin and then its argument prototype would still apply.  */
10700 #ifdef __cplusplus
10701 extern "C"
10702 #endif
10703 char shl_load ();
10704 int
10705 main ()
10706 {
10707 return shl_load ();
10708   ;
10709   return 0;
10710 }
10711 _ACEOF
10712 rm -f conftest.$ac_objext conftest$ac_exeext
10713 if { (ac_try="$ac_link"
10714 case "(($ac_try" in
10715   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10716   *) ac_try_echo=$ac_try;;
10717 esac
10718 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10719   (eval "$ac_link") 2>conftest.er1
10720   ac_status=$?
10721   grep -v '^ *+' conftest.er1 >conftest.err
10722   rm -f conftest.er1
10723   cat conftest.err >&5
10724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10725   (exit $ac_status); } &&
10726          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10727   { (case "(($ac_try" in
10728   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10729   *) ac_try_echo=$ac_try;;
10730 esac
10731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10732   (eval "$ac_try") 2>&5
10733   ac_status=$?
10734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10735   (exit $ac_status); }; } &&
10736          { ac_try='test -s conftest$ac_exeext'
10737   { (case "(($ac_try" in
10738   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10739   *) ac_try_echo=$ac_try;;
10740 esac
10741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10742   (eval "$ac_try") 2>&5
10743   ac_status=$?
10744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10745   (exit $ac_status); }; }; then
10746   ac_cv_lib_dld_shl_load=yes
10747 else
10748   echo "$as_me: failed program was:" >&5
10749 sed 's/^/| /' conftest.$ac_ext >&5
10750
10751         ac_cv_lib_dld_shl_load=no
10752 fi
10753
10754 rm -f core conftest.err conftest.$ac_objext \
10755       conftest$ac_exeext conftest.$ac_ext
10756 LIBS=$ac_check_lib_save_LIBS
10757 fi
10758 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10759 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
10760 if test $ac_cv_lib_dld_shl_load = yes; then
10761
10762 cat >>confdefs.h <<\_ACEOF
10763 #define HAVE_SHL_LOAD 1
10764 _ACEOF
10765
10766         LIBADD_DL="$LIBADD_DL -ldld"
10767 else
10768   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10769 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10770 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10771   echo $ECHO_N "(cached) $ECHO_C" >&6
10772 else
10773   ac_check_lib_save_LIBS=$LIBS
10774 LIBS="-ldl  $LIBS"
10775 cat >conftest.$ac_ext <<_ACEOF
10776 /* confdefs.h.  */
10777 _ACEOF
10778 cat confdefs.h >>conftest.$ac_ext
10779 cat >>conftest.$ac_ext <<_ACEOF
10780 /* end confdefs.h.  */
10781
10782 /* Override any GCC internal prototype to avoid an error.
10783    Use char because int might match the return type of a GCC
10784    builtin and then its argument prototype would still apply.  */
10785 #ifdef __cplusplus
10786 extern "C"
10787 #endif
10788 char dlopen ();
10789 int
10790 main ()
10791 {
10792 return dlopen ();
10793   ;
10794   return 0;
10795 }
10796 _ACEOF
10797 rm -f conftest.$ac_objext conftest$ac_exeext
10798 if { (ac_try="$ac_link"
10799 case "(($ac_try" in
10800   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10801   *) ac_try_echo=$ac_try;;
10802 esac
10803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10804   (eval "$ac_link") 2>conftest.er1
10805   ac_status=$?
10806   grep -v '^ *+' conftest.er1 >conftest.err
10807   rm -f conftest.er1
10808   cat conftest.err >&5
10809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10810   (exit $ac_status); } &&
10811          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10812   { (case "(($ac_try" in
10813   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10814   *) ac_try_echo=$ac_try;;
10815 esac
10816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10817   (eval "$ac_try") 2>&5
10818   ac_status=$?
10819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10820   (exit $ac_status); }; } &&
10821          { ac_try='test -s conftest$ac_exeext'
10822   { (case "(($ac_try" in
10823   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10824   *) ac_try_echo=$ac_try;;
10825 esac
10826 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10827   (eval "$ac_try") 2>&5
10828   ac_status=$?
10829   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10830   (exit $ac_status); }; }; then
10831   ac_cv_lib_dl_dlopen=yes
10832 else
10833   echo "$as_me: failed program was:" >&5
10834 sed 's/^/| /' conftest.$ac_ext >&5
10835
10836         ac_cv_lib_dl_dlopen=no
10837 fi
10838
10839 rm -f core conftest.err conftest.$ac_objext \
10840       conftest$ac_exeext conftest.$ac_ext
10841 LIBS=$ac_check_lib_save_LIBS
10842 fi
10843 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10844 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10845 if test $ac_cv_lib_dl_dlopen = yes; then
10846
10847 cat >>confdefs.h <<\_ACEOF
10848 #define HAVE_LIBDL 1
10849 _ACEOF
10850
10851                 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
10852 else
10853   cat >conftest.$ac_ext <<_ACEOF
10854 /* confdefs.h.  */
10855 _ACEOF
10856 cat confdefs.h >>conftest.$ac_ext
10857 cat >>conftest.$ac_ext <<_ACEOF
10858 /* end confdefs.h.  */
10859 #if HAVE_DLFCN_H
10860 #  include <dlfcn.h>
10861 #endif
10862
10863 int
10864 main ()
10865 {
10866 dlopen(0, 0);
10867   ;
10868   return 0;
10869 }
10870 _ACEOF
10871 rm -f conftest.$ac_objext conftest$ac_exeext
10872 if { (ac_try="$ac_link"
10873 case "(($ac_try" in
10874   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10875   *) ac_try_echo=$ac_try;;
10876 esac
10877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10878   (eval "$ac_link") 2>conftest.er1
10879   ac_status=$?
10880   grep -v '^ *+' conftest.er1 >conftest.err
10881   rm -f conftest.er1
10882   cat conftest.err >&5
10883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10884   (exit $ac_status); } &&
10885          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10886   { (case "(($ac_try" in
10887   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10888   *) ac_try_echo=$ac_try;;
10889 esac
10890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10891   (eval "$ac_try") 2>&5
10892   ac_status=$?
10893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10894   (exit $ac_status); }; } &&
10895          { ac_try='test -s conftest$ac_exeext'
10896   { (case "(($ac_try" in
10897   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10898   *) ac_try_echo=$ac_try;;
10899 esac
10900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10901   (eval "$ac_try") 2>&5
10902   ac_status=$?
10903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10904   (exit $ac_status); }; }; then
10905
10906 cat >>confdefs.h <<\_ACEOF
10907 #define HAVE_LIBDL 1
10908 _ACEOF
10909  libltdl_cv_func_dlopen="yes"
10910 else
10911   echo "$as_me: failed program was:" >&5
10912 sed 's/^/| /' conftest.$ac_ext >&5
10913
10914         { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10915 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10916 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10917   echo $ECHO_N "(cached) $ECHO_C" >&6
10918 else
10919   ac_check_lib_save_LIBS=$LIBS
10920 LIBS="-lsvld  $LIBS"
10921 cat >conftest.$ac_ext <<_ACEOF
10922 /* confdefs.h.  */
10923 _ACEOF
10924 cat confdefs.h >>conftest.$ac_ext
10925 cat >>conftest.$ac_ext <<_ACEOF
10926 /* end confdefs.h.  */
10927
10928 /* Override any GCC internal prototype to avoid an error.
10929    Use char because int might match the return type of a GCC
10930    builtin and then its argument prototype would still apply.  */
10931 #ifdef __cplusplus
10932 extern "C"
10933 #endif
10934 char dlopen ();
10935 int
10936 main ()
10937 {
10938 return dlopen ();
10939   ;
10940   return 0;
10941 }
10942 _ACEOF
10943 rm -f conftest.$ac_objext conftest$ac_exeext
10944 if { (ac_try="$ac_link"
10945 case "(($ac_try" in
10946   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10947   *) ac_try_echo=$ac_try;;
10948 esac
10949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10950   (eval "$ac_link") 2>conftest.er1
10951   ac_status=$?
10952   grep -v '^ *+' conftest.er1 >conftest.err
10953   rm -f conftest.er1
10954   cat conftest.err >&5
10955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10956   (exit $ac_status); } &&
10957          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10958   { (case "(($ac_try" in
10959   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10960   *) ac_try_echo=$ac_try;;
10961 esac
10962 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10963   (eval "$ac_try") 2>&5
10964   ac_status=$?
10965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10966   (exit $ac_status); }; } &&
10967          { ac_try='test -s conftest$ac_exeext'
10968   { (case "(($ac_try" in
10969   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10970   *) ac_try_echo=$ac_try;;
10971 esac
10972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10973   (eval "$ac_try") 2>&5
10974   ac_status=$?
10975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10976   (exit $ac_status); }; }; then
10977   ac_cv_lib_svld_dlopen=yes
10978 else
10979   echo "$as_me: failed program was:" >&5
10980 sed 's/^/| /' conftest.$ac_ext >&5
10981
10982         ac_cv_lib_svld_dlopen=no
10983 fi
10984
10985 rm -f core conftest.err conftest.$ac_objext \
10986       conftest$ac_exeext conftest.$ac_ext
10987 LIBS=$ac_check_lib_save_LIBS
10988 fi
10989 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10990 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10991 if test $ac_cv_lib_svld_dlopen = yes; then
10992
10993 cat >>confdefs.h <<\_ACEOF
10994 #define HAVE_LIBDL 1
10995 _ACEOF
10996
10997                     LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
10998 else
10999   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
11000 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
11001 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
11002   echo $ECHO_N "(cached) $ECHO_C" >&6
11003 else
11004   ac_check_lib_save_LIBS=$LIBS
11005 LIBS="-ldld  $LIBS"
11006 cat >conftest.$ac_ext <<_ACEOF
11007 /* confdefs.h.  */
11008 _ACEOF
11009 cat confdefs.h >>conftest.$ac_ext
11010 cat >>conftest.$ac_ext <<_ACEOF
11011 /* end confdefs.h.  */
11012
11013 /* Override any GCC internal prototype to avoid an error.
11014    Use char because int might match the return type of a GCC
11015    builtin and then its argument prototype would still apply.  */
11016 #ifdef __cplusplus
11017 extern "C"
11018 #endif
11019 char dld_link ();
11020 int
11021 main ()
11022 {
11023 return dld_link ();
11024   ;
11025   return 0;
11026 }
11027 _ACEOF
11028 rm -f conftest.$ac_objext conftest$ac_exeext
11029 if { (ac_try="$ac_link"
11030 case "(($ac_try" in
11031   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11032   *) ac_try_echo=$ac_try;;
11033 esac
11034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11035   (eval "$ac_link") 2>conftest.er1
11036   ac_status=$?
11037   grep -v '^ *+' conftest.er1 >conftest.err
11038   rm -f conftest.er1
11039   cat conftest.err >&5
11040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11041   (exit $ac_status); } &&
11042          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11043   { (case "(($ac_try" in
11044   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11045   *) ac_try_echo=$ac_try;;
11046 esac
11047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11048   (eval "$ac_try") 2>&5
11049   ac_status=$?
11050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11051   (exit $ac_status); }; } &&
11052          { ac_try='test -s conftest$ac_exeext'
11053   { (case "(($ac_try" in
11054   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11055   *) ac_try_echo=$ac_try;;
11056 esac
11057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11058   (eval "$ac_try") 2>&5
11059   ac_status=$?
11060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11061   (exit $ac_status); }; }; then
11062   ac_cv_lib_dld_dld_link=yes
11063 else
11064   echo "$as_me: failed program was:" >&5
11065 sed 's/^/| /' conftest.$ac_ext >&5
11066
11067         ac_cv_lib_dld_dld_link=no
11068 fi
11069
11070 rm -f core conftest.err conftest.$ac_objext \
11071       conftest$ac_exeext conftest.$ac_ext
11072 LIBS=$ac_check_lib_save_LIBS
11073 fi
11074 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11075 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
11076 if test $ac_cv_lib_dld_dld_link = yes; then
11077
11078 cat >>confdefs.h <<\_ACEOF
11079 #define HAVE_DLD 1
11080 _ACEOF
11081
11082                 LIBADD_DL="$LIBADD_DL -ldld"
11083 else
11084   { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
11085 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
11086 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
11087   echo $ECHO_N "(cached) $ECHO_C" >&6
11088 else
11089   cat >conftest.$ac_ext <<_ACEOF
11090 /* confdefs.h.  */
11091 _ACEOF
11092 cat confdefs.h >>conftest.$ac_ext
11093 cat >>conftest.$ac_ext <<_ACEOF
11094 /* end confdefs.h.  */
11095 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
11096    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11097 #define _dyld_func_lookup innocuous__dyld_func_lookup
11098
11099 /* System header to define __stub macros and hopefully few prototypes,
11100     which can conflict with char _dyld_func_lookup (); below.
11101     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11102     <limits.h> exists even on freestanding compilers.  */
11103
11104 #ifdef __STDC__
11105 # include <limits.h>
11106 #else
11107 # include <assert.h>
11108 #endif
11109
11110 #undef _dyld_func_lookup
11111
11112 /* Override any GCC internal prototype to avoid an error.
11113    Use char because int might match the return type of a GCC
11114    builtin and then its argument prototype would still apply.  */
11115 #ifdef __cplusplus
11116 extern "C"
11117 #endif
11118 char _dyld_func_lookup ();
11119 /* The GNU C library defines this for functions which it implements
11120     to always fail with ENOSYS.  Some functions are actually named
11121     something starting with __ and the normal name is an alias.  */
11122 #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
11123 choke me
11124 #endif
11125
11126 int
11127 main ()
11128 {
11129 return _dyld_func_lookup ();
11130   ;
11131   return 0;
11132 }
11133 _ACEOF
11134 rm -f conftest.$ac_objext conftest$ac_exeext
11135 if { (ac_try="$ac_link"
11136 case "(($ac_try" in
11137   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11138   *) ac_try_echo=$ac_try;;
11139 esac
11140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11141   (eval "$ac_link") 2>conftest.er1
11142   ac_status=$?
11143   grep -v '^ *+' conftest.er1 >conftest.err
11144   rm -f conftest.er1
11145   cat conftest.err >&5
11146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11147   (exit $ac_status); } &&
11148          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11149   { (case "(($ac_try" in
11150   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11151   *) ac_try_echo=$ac_try;;
11152 esac
11153 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11154   (eval "$ac_try") 2>&5
11155   ac_status=$?
11156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11157   (exit $ac_status); }; } &&
11158          { ac_try='test -s conftest$ac_exeext'
11159   { (case "(($ac_try" in
11160   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11161   *) ac_try_echo=$ac_try;;
11162 esac
11163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11164   (eval "$ac_try") 2>&5
11165   ac_status=$?
11166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11167   (exit $ac_status); }; }; then
11168   ac_cv_func__dyld_func_lookup=yes
11169 else
11170   echo "$as_me: failed program was:" >&5
11171 sed 's/^/| /' conftest.$ac_ext >&5
11172
11173         ac_cv_func__dyld_func_lookup=no
11174 fi
11175
11176 rm -f core conftest.err conftest.$ac_objext \
11177       conftest$ac_exeext conftest.$ac_ext
11178 fi
11179 { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
11180 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
11181 if test $ac_cv_func__dyld_func_lookup = yes; then
11182
11183 cat >>confdefs.h <<\_ACEOF
11184 #define HAVE_DYLD 1
11185 _ACEOF
11186
11187 fi
11188
11189
11190 fi
11191
11192
11193 fi
11194
11195
11196 fi
11197
11198 rm -f core conftest.err conftest.$ac_objext \
11199       conftest$ac_exeext conftest.$ac_ext
11200
11201 fi
11202
11203
11204 fi
11205
11206
11207 fi
11208
11209
11210 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
11211 then
11212   lt_save_LIBS="$LIBS"
11213   LIBS="$LIBS $LIBADD_DL"
11214
11215 for ac_func in dlerror
11216 do
11217 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11218 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11219 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11220 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11221   echo $ECHO_N "(cached) $ECHO_C" >&6
11222 else
11223   cat >conftest.$ac_ext <<_ACEOF
11224 /* confdefs.h.  */
11225 _ACEOF
11226 cat confdefs.h >>conftest.$ac_ext
11227 cat >>conftest.$ac_ext <<_ACEOF
11228 /* end confdefs.h.  */
11229 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11230    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11231 #define $ac_func innocuous_$ac_func
11232
11233 /* System header to define __stub macros and hopefully few prototypes,
11234     which can conflict with char $ac_func (); below.
11235     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11236     <limits.h> exists even on freestanding compilers.  */
11237
11238 #ifdef __STDC__
11239 # include <limits.h>
11240 #else
11241 # include <assert.h>
11242 #endif
11243
11244 #undef $ac_func
11245
11246 /* Override any GCC internal prototype to avoid an error.
11247    Use char because int might match the return type of a GCC
11248    builtin and then its argument prototype would still apply.  */
11249 #ifdef __cplusplus
11250 extern "C"
11251 #endif
11252 char $ac_func ();
11253 /* The GNU C library defines this for functions which it implements
11254     to always fail with ENOSYS.  Some functions are actually named
11255     something starting with __ and the normal name is an alias.  */
11256 #if defined __stub_$ac_func || defined __stub___$ac_func
11257 choke me
11258 #endif
11259
11260 int
11261 main ()
11262 {
11263 return $ac_func ();
11264   ;
11265   return 0;
11266 }
11267 _ACEOF
11268 rm -f conftest.$ac_objext conftest$ac_exeext
11269 if { (ac_try="$ac_link"
11270 case "(($ac_try" in
11271   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11272   *) ac_try_echo=$ac_try;;
11273 esac
11274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11275   (eval "$ac_link") 2>conftest.er1
11276   ac_status=$?
11277   grep -v '^ *+' conftest.er1 >conftest.err
11278   rm -f conftest.er1
11279   cat conftest.err >&5
11280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11281   (exit $ac_status); } &&
11282          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11283   { (case "(($ac_try" in
11284   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11285   *) ac_try_echo=$ac_try;;
11286 esac
11287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11288   (eval "$ac_try") 2>&5
11289   ac_status=$?
11290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11291   (exit $ac_status); }; } &&
11292          { ac_try='test -s conftest$ac_exeext'
11293   { (case "(($ac_try" in
11294   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11295   *) ac_try_echo=$ac_try;;
11296 esac
11297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11298   (eval "$ac_try") 2>&5
11299   ac_status=$?
11300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11301   (exit $ac_status); }; }; then
11302   eval "$as_ac_var=yes"
11303 else
11304   echo "$as_me: failed program was:" >&5
11305 sed 's/^/| /' conftest.$ac_ext >&5
11306
11307         eval "$as_ac_var=no"
11308 fi
11309
11310 rm -f core conftest.err conftest.$ac_objext \
11311       conftest$ac_exeext conftest.$ac_ext
11312 fi
11313 ac_res=`eval echo '${'$as_ac_var'}'`
11314                { echo "$as_me:$LINENO: result: $ac_res" >&5
11315 echo "${ECHO_T}$ac_res" >&6; }
11316 if test `eval echo '${'$as_ac_var'}'` = yes; then
11317   cat >>confdefs.h <<_ACEOF
11318 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11319 _ACEOF
11320
11321 fi
11322 done
11323
11324   LIBS="$lt_save_LIBS"
11325 fi
11326 ac_ext=c
11327 ac_cpp='$CPP $CPPFLAGS'
11328 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11329 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11330 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11331
11332
11333
11334 { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
11335 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
11336 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
11337   echo $ECHO_N "(cached) $ECHO_C" >&6
11338 else
11339   ac_cv_sys_symbol_underscore=no
11340   cat > conftest.$ac_ext <<EOF
11341 void nm_test_func(){}
11342 int main(){nm_test_func;return 0;}
11343 EOF
11344   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11345   (eval $ac_compile) 2>&5
11346   ac_status=$?
11347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11348   (exit $ac_status); }; then
11349     # Now try to grab the symbols.
11350     ac_nlist=conftest.nm
11351     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
11352   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
11353   ac_status=$?
11354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11355   (exit $ac_status); } && test -s "$ac_nlist"; then
11356       # See whether the symbols have a leading underscore.
11357       if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
11358         ac_cv_sys_symbol_underscore=yes
11359       else
11360         if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
11361           :
11362         else
11363           echo "configure: cannot find nm_test_func in $ac_nlist" >&5
11364         fi
11365       fi
11366     else
11367       echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
11368     fi
11369   else
11370     echo "configure: failed program was:" >&5
11371     cat conftest.c >&5
11372   fi
11373   rm -rf conftest*
11374
11375 fi
11376 { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
11377 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
11378
11379
11380 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
11381   if test x"$libltdl_cv_func_dlopen" = xyes ||
11382      test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
11383         { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
11384 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
11385 if test "${libltdl_cv_need_uscore+set}" = set; then
11386   echo $ECHO_N "(cached) $ECHO_C" >&6
11387 else
11388   libltdl_cv_need_uscore=unknown
11389           save_LIBS="$LIBS"
11390           LIBS="$LIBS $LIBADD_DL"
11391           if test "$cross_compiling" = yes; then :
11392   libltdl_cv_need_uscore=cross
11393 else
11394   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11395   lt_status=$lt_dlunknown
11396   cat > conftest.$ac_ext <<EOF
11397 #line 11397 "configure"
11398 #include "confdefs.h"
11399
11400 #if HAVE_DLFCN_H
11401 #include <dlfcn.h>
11402 #endif
11403
11404 #include <stdio.h>
11405
11406 #ifdef RTLD_GLOBAL
11407 #  define LT_DLGLOBAL           RTLD_GLOBAL
11408 #else
11409 #  ifdef DL_GLOBAL
11410 #    define LT_DLGLOBAL         DL_GLOBAL
11411 #  else
11412 #    define LT_DLGLOBAL         0
11413 #  endif
11414 #endif
11415
11416 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11417    find out it does not work in some platform. */
11418 #ifndef LT_DLLAZY_OR_NOW
11419 #  ifdef RTLD_LAZY
11420 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11421 #  else
11422 #    ifdef DL_LAZY
11423 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11424 #    else
11425 #      ifdef RTLD_NOW
11426 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11427 #      else
11428 #        ifdef DL_NOW
11429 #          define LT_DLLAZY_OR_NOW      DL_NOW
11430 #        else
11431 #          define LT_DLLAZY_OR_NOW      0
11432 #        endif
11433 #      endif
11434 #    endif
11435 #  endif
11436 #endif
11437
11438 #ifdef __cplusplus
11439 extern "C" void exit (int);
11440 #endif
11441
11442 void fnord() { int i=42;}
11443 int main ()
11444 {
11445   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11446   int status = $lt_dlunknown;
11447
11448   if (self)
11449     {
11450       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11451       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11452       /* dlclose (self); */
11453     }
11454   else
11455     puts (dlerror ());
11456
11457     exit (status);
11458 }
11459 EOF
11460   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11461   (eval $ac_link) 2>&5
11462   ac_status=$?
11463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11464   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11465     (./conftest; exit; ) >&5 2>/dev/null
11466     lt_status=$?
11467     case x$lt_status in
11468       x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
11469       x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
11470       x$lt_dlunknown|x*)  ;;
11471     esac
11472   else :
11473     # compilation failed
11474
11475   fi
11476 fi
11477 rm -fr conftest*
11478
11479           LIBS="$save_LIBS"
11480
11481 fi
11482 { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
11483 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
11484   fi
11485 fi
11486
11487 if test x"$libltdl_cv_need_uscore" = xyes; then
11488
11489 cat >>confdefs.h <<\_ACEOF
11490 #define NEED_USCORE 1
11491 _ACEOF
11492
11493 fi
11494
11495
11496 { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
11497 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
11498 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
11499   echo $ECHO_N "(cached) $ECHO_C" >&6
11500 else
11501   # PORTME does your system automatically load deplibs for dlopen?
11502   # or its logical equivalent (e.g. shl_load for HP-UX < 11)
11503   # For now, we just catch OSes we know something about -- in the
11504   # future, we'll try test this programmatically.
11505   libltdl_cv_sys_dlopen_deplibs=unknown
11506   case "$host_os" in
11507   aix3*|aix4.1.*|aix4.2.*)
11508     # Unknown whether this is true for these versions of AIX, but
11509     # we want this `case' here to explicitly catch those versions.
11510     libltdl_cv_sys_dlopen_deplibs=unknown
11511     ;;
11512   aix[45]*)
11513     libltdl_cv_sys_dlopen_deplibs=yes
11514     ;;
11515   darwin*)
11516     # Assuming the user has installed a libdl from somewhere, this is true
11517     # If you are looking for one http://www.opendarwin.org/projects/dlcompat
11518     libltdl_cv_sys_dlopen_deplibs=yes
11519     ;;
11520   gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
11521     # GNU and its variants, using gnu ld.so (Glibc)
11522     libltdl_cv_sys_dlopen_deplibs=yes
11523     ;;
11524   hpux10*|hpux11*)
11525     libltdl_cv_sys_dlopen_deplibs=yes
11526     ;;
11527   interix*)
11528     libltdl_cv_sys_dlopen_deplibs=yes
11529     ;;
11530   irix[12345]*|irix6.[01]*)
11531     # Catch all versions of IRIX before 6.2, and indicate that we don't
11532     # know how it worked for any of those versions.
11533     libltdl_cv_sys_dlopen_deplibs=unknown
11534     ;;
11535   irix*)
11536     # The case above catches anything before 6.2, and it's known that
11537     # at 6.2 and later dlopen does load deplibs.
11538     libltdl_cv_sys_dlopen_deplibs=yes
11539     ;;
11540   netbsd*)
11541     libltdl_cv_sys_dlopen_deplibs=yes
11542     ;;
11543   openbsd*)
11544     libltdl_cv_sys_dlopen_deplibs=yes
11545     ;;
11546   osf[1234]*)
11547     # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
11548     # it did *not* use an RPATH in a shared library to find objects the
11549     # library depends on, so we explictly say `no'.
11550     libltdl_cv_sys_dlopen_deplibs=no
11551     ;;
11552   osf5.0|osf5.0a|osf5.1)
11553     # dlopen *does* load deplibs and with the right loader patch applied
11554     # it even uses RPATH in a shared library to search for shared objects
11555     # that the library depends on, but there's no easy way to know if that
11556     # patch is installed.  Since this is the case, all we can really
11557     # say is unknown -- it depends on the patch being installed.  If
11558     # it is, this changes to `yes'.  Without it, it would be `no'.
11559     libltdl_cv_sys_dlopen_deplibs=unknown
11560     ;;
11561   osf*)
11562     # the two cases above should catch all versions of osf <= 5.1.  Read
11563     # the comments above for what we know about them.
11564     # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
11565     # is used to find them so we can finally say `yes'.
11566     libltdl_cv_sys_dlopen_deplibs=yes
11567     ;;
11568   solaris*)
11569     libltdl_cv_sys_dlopen_deplibs=yes
11570     ;;
11571   sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11572     libltdl_cv_sys_dlopen_deplibs=yes
11573     ;;
11574   esac
11575
11576 fi
11577 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
11578 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
11579 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
11580
11581 cat >>confdefs.h <<\_ACEOF
11582 #define LTDL_DLOPEN_DEPLIBS 1
11583 _ACEOF
11584
11585 fi
11586
11587
11588 for ac_header in argz.h
11589 do
11590 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11591 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11592   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11593 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11594 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11595   echo $ECHO_N "(cached) $ECHO_C" >&6
11596 fi
11597 ac_res=`eval echo '${'$as_ac_Header'}'`
11598                { echo "$as_me:$LINENO: result: $ac_res" >&5
11599 echo "${ECHO_T}$ac_res" >&6; }
11600 else
11601   # Is the header compilable?
11602 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11603 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11604 cat >conftest.$ac_ext <<_ACEOF
11605 /* confdefs.h.  */
11606 _ACEOF
11607 cat confdefs.h >>conftest.$ac_ext
11608 cat >>conftest.$ac_ext <<_ACEOF
11609 /* end confdefs.h.  */
11610 $ac_includes_default
11611 #include <$ac_header>
11612 _ACEOF
11613 rm -f conftest.$ac_objext
11614 if { (ac_try="$ac_compile"
11615 case "(($ac_try" in
11616   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11617   *) ac_try_echo=$ac_try;;
11618 esac
11619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11620   (eval "$ac_compile") 2>conftest.er1
11621   ac_status=$?
11622   grep -v '^ *+' conftest.er1 >conftest.err
11623   rm -f conftest.er1
11624   cat conftest.err >&5
11625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11626   (exit $ac_status); } &&
11627          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11628   { (case "(($ac_try" in
11629   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11630   *) ac_try_echo=$ac_try;;
11631 esac
11632 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11633   (eval "$ac_try") 2>&5
11634   ac_status=$?
11635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11636   (exit $ac_status); }; } &&
11637          { ac_try='test -s conftest.$ac_objext'
11638   { (case "(($ac_try" in
11639   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11640   *) ac_try_echo=$ac_try;;
11641 esac
11642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11643   (eval "$ac_try") 2>&5
11644   ac_status=$?
11645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11646   (exit $ac_status); }; }; then
11647   ac_header_compiler=yes
11648 else
11649   echo "$as_me: failed program was:" >&5
11650 sed 's/^/| /' conftest.$ac_ext >&5
11651
11652         ac_header_compiler=no
11653 fi
11654
11655 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11656 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11657 echo "${ECHO_T}$ac_header_compiler" >&6; }
11658
11659 # Is the header present?
11660 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11661 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11662 cat >conftest.$ac_ext <<_ACEOF
11663 /* confdefs.h.  */
11664 _ACEOF
11665 cat confdefs.h >>conftest.$ac_ext
11666 cat >>conftest.$ac_ext <<_ACEOF
11667 /* end confdefs.h.  */
11668 #include <$ac_header>
11669 _ACEOF
11670 if { (ac_try="$ac_cpp conftest.$ac_ext"
11671 case "(($ac_try" in
11672   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11673   *) ac_try_echo=$ac_try;;
11674 esac
11675 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11676   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11677   ac_status=$?
11678   grep -v '^ *+' conftest.er1 >conftest.err
11679   rm -f conftest.er1
11680   cat conftest.err >&5
11681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11682   (exit $ac_status); } >/dev/null; then
11683   if test -s conftest.err; then
11684     ac_cpp_err=$ac_c_preproc_warn_flag
11685     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11686   else
11687     ac_cpp_err=
11688   fi
11689 else
11690   ac_cpp_err=yes
11691 fi
11692 if test -z "$ac_cpp_err"; then
11693   ac_header_preproc=yes
11694 else
11695   echo "$as_me: failed program was:" >&5
11696 sed 's/^/| /' conftest.$ac_ext >&5
11697
11698   ac_header_preproc=no
11699 fi
11700
11701 rm -f conftest.err conftest.$ac_ext
11702 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11703 echo "${ECHO_T}$ac_header_preproc" >&6; }
11704
11705 # So?  What about this header?
11706 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11707   yes:no: )
11708     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11709 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11710     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11711 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11712     ac_header_preproc=yes
11713     ;;
11714   no:yes:* )
11715     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11716 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11717     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11718 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11719     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11720 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11721     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11722 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11723     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11724 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11725     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11726 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11727     ( cat <<\_ASBOX
11728 ## ----------------------------------- ##
11729 ## Report this to llvmbugs@cs.uiuc.edu ##
11730 ## ----------------------------------- ##
11731 _ASBOX
11732      ) | sed "s/^/$as_me: WARNING:     /" >&2
11733     ;;
11734 esac
11735 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11736 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11737 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11738   echo $ECHO_N "(cached) $ECHO_C" >&6
11739 else
11740   eval "$as_ac_Header=\$ac_header_preproc"
11741 fi
11742 ac_res=`eval echo '${'$as_ac_Header'}'`
11743                { echo "$as_me:$LINENO: result: $ac_res" >&5
11744 echo "${ECHO_T}$ac_res" >&6; }
11745
11746 fi
11747 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11748   cat >>confdefs.h <<_ACEOF
11749 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11750 _ACEOF
11751
11752 fi
11753
11754 done
11755
11756
11757 { echo "$as_me:$LINENO: checking for error_t" >&5
11758 echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
11759 if test "${ac_cv_type_error_t+set}" = set; then
11760   echo $ECHO_N "(cached) $ECHO_C" >&6
11761 else
11762   cat >conftest.$ac_ext <<_ACEOF
11763 /* confdefs.h.  */
11764 _ACEOF
11765 cat confdefs.h >>conftest.$ac_ext
11766 cat >>conftest.$ac_ext <<_ACEOF
11767 /* end confdefs.h.  */
11768 #if HAVE_ARGZ_H
11769 #  include <argz.h>
11770 #endif
11771
11772 typedef error_t ac__type_new_;
11773 int
11774 main ()
11775 {
11776 if ((ac__type_new_ *) 0)
11777   return 0;
11778 if (sizeof (ac__type_new_))
11779   return 0;
11780   ;
11781   return 0;
11782 }
11783 _ACEOF
11784 rm -f conftest.$ac_objext
11785 if { (ac_try="$ac_compile"
11786 case "(($ac_try" in
11787   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11788   *) ac_try_echo=$ac_try;;
11789 esac
11790 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11791   (eval "$ac_compile") 2>conftest.er1
11792   ac_status=$?
11793   grep -v '^ *+' conftest.er1 >conftest.err
11794   rm -f conftest.er1
11795   cat conftest.err >&5
11796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11797   (exit $ac_status); } &&
11798          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11799   { (case "(($ac_try" in
11800   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11801   *) ac_try_echo=$ac_try;;
11802 esac
11803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11804   (eval "$ac_try") 2>&5
11805   ac_status=$?
11806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11807   (exit $ac_status); }; } &&
11808          { ac_try='test -s conftest.$ac_objext'
11809   { (case "(($ac_try" in
11810   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11811   *) ac_try_echo=$ac_try;;
11812 esac
11813 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11814   (eval "$ac_try") 2>&5
11815   ac_status=$?
11816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11817   (exit $ac_status); }; }; then
11818   ac_cv_type_error_t=yes
11819 else
11820   echo "$as_me: failed program was:" >&5
11821 sed 's/^/| /' conftest.$ac_ext >&5
11822
11823         ac_cv_type_error_t=no
11824 fi
11825
11826 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11827 fi
11828 { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
11829 echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
11830 if test $ac_cv_type_error_t = yes; then
11831
11832 cat >>confdefs.h <<_ACEOF
11833 #define HAVE_ERROR_T 1
11834 _ACEOF
11835
11836
11837 else
11838
11839 cat >>confdefs.h <<\_ACEOF
11840 #define error_t int
11841 _ACEOF
11842
11843 fi
11844
11845
11846
11847
11848
11849
11850
11851 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
11852 do
11853 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11854 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11855 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11856 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11857   echo $ECHO_N "(cached) $ECHO_C" >&6
11858 else
11859   cat >conftest.$ac_ext <<_ACEOF
11860 /* confdefs.h.  */
11861 _ACEOF
11862 cat confdefs.h >>conftest.$ac_ext
11863 cat >>conftest.$ac_ext <<_ACEOF
11864 /* end confdefs.h.  */
11865 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11866    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11867 #define $ac_func innocuous_$ac_func
11868
11869 /* System header to define __stub macros and hopefully few prototypes,
11870     which can conflict with char $ac_func (); below.
11871     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11872     <limits.h> exists even on freestanding compilers.  */
11873
11874 #ifdef __STDC__
11875 # include <limits.h>
11876 #else
11877 # include <assert.h>
11878 #endif
11879
11880 #undef $ac_func
11881
11882 /* Override any GCC internal prototype to avoid an error.
11883    Use char because int might match the return type of a GCC
11884    builtin and then its argument prototype would still apply.  */
11885 #ifdef __cplusplus
11886 extern "C"
11887 #endif
11888 char $ac_func ();
11889 /* The GNU C library defines this for functions which it implements
11890     to always fail with ENOSYS.  Some functions are actually named
11891     something starting with __ and the normal name is an alias.  */
11892 #if defined __stub_$ac_func || defined __stub___$ac_func
11893 choke me
11894 #endif
11895
11896 int
11897 main ()
11898 {
11899 return $ac_func ();
11900   ;
11901   return 0;
11902 }
11903 _ACEOF
11904 rm -f conftest.$ac_objext conftest$ac_exeext
11905 if { (ac_try="$ac_link"
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_link") 2>conftest.er1
11912   ac_status=$?
11913   grep -v '^ *+' conftest.er1 >conftest.err
11914   rm -f conftest.er1
11915   cat conftest.err >&5
11916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11917   (exit $ac_status); } &&
11918          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11919   { (case "(($ac_try" in
11920   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11921   *) ac_try_echo=$ac_try;;
11922 esac
11923 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11924   (eval "$ac_try") 2>&5
11925   ac_status=$?
11926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11927   (exit $ac_status); }; } &&
11928          { ac_try='test -s conftest$ac_exeext'
11929   { (case "(($ac_try" in
11930   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11931   *) ac_try_echo=$ac_try;;
11932 esac
11933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11934   (eval "$ac_try") 2>&5
11935   ac_status=$?
11936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11937   (exit $ac_status); }; }; then
11938   eval "$as_ac_var=yes"
11939 else
11940   echo "$as_me: failed program was:" >&5
11941 sed 's/^/| /' conftest.$ac_ext >&5
11942
11943         eval "$as_ac_var=no"
11944 fi
11945
11946 rm -f core conftest.err conftest.$ac_objext \
11947       conftest$ac_exeext conftest.$ac_ext
11948 fi
11949 ac_res=`eval echo '${'$as_ac_var'}'`
11950                { echo "$as_me:$LINENO: result: $ac_res" >&5
11951 echo "${ECHO_T}$ac_res" >&6; }
11952 if test `eval echo '${'$as_ac_var'}'` = yes; then
11953   cat >>confdefs.h <<_ACEOF
11954 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11955 _ACEOF
11956
11957 fi
11958 done
11959
11960
11961
11962
11963
11964
11965
11966
11967
11968
11969
11970
11971
11972
11973
11974
11975
11976
11977
11978
11979
11980
11981
11982
11983
11984
11985
11986
11987 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
11988                   stdio.h unistd.h
11989 do
11990 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11991 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11992   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11993 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11994 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11995   echo $ECHO_N "(cached) $ECHO_C" >&6
11996 fi
11997 ac_res=`eval echo '${'$as_ac_Header'}'`
11998                { echo "$as_me:$LINENO: result: $ac_res" >&5
11999 echo "${ECHO_T}$ac_res" >&6; }
12000 else
12001   # Is the header compilable?
12002 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12003 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12004 cat >conftest.$ac_ext <<_ACEOF
12005 /* confdefs.h.  */
12006 _ACEOF
12007 cat confdefs.h >>conftest.$ac_ext
12008 cat >>conftest.$ac_ext <<_ACEOF
12009 /* end confdefs.h.  */
12010 $ac_includes_default
12011 #include <$ac_header>
12012 _ACEOF
12013 rm -f conftest.$ac_objext
12014 if { (ac_try="$ac_compile"
12015 case "(($ac_try" in
12016   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12017   *) ac_try_echo=$ac_try;;
12018 esac
12019 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12020   (eval "$ac_compile") 2>conftest.er1
12021   ac_status=$?
12022   grep -v '^ *+' conftest.er1 >conftest.err
12023   rm -f conftest.er1
12024   cat conftest.err >&5
12025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12026   (exit $ac_status); } &&
12027          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12028   { (case "(($ac_try" in
12029   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12030   *) ac_try_echo=$ac_try;;
12031 esac
12032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12033   (eval "$ac_try") 2>&5
12034   ac_status=$?
12035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12036   (exit $ac_status); }; } &&
12037          { ac_try='test -s conftest.$ac_objext'
12038   { (case "(($ac_try" in
12039   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12040   *) ac_try_echo=$ac_try;;
12041 esac
12042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12043   (eval "$ac_try") 2>&5
12044   ac_status=$?
12045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12046   (exit $ac_status); }; }; then
12047   ac_header_compiler=yes
12048 else
12049   echo "$as_me: failed program was:" >&5
12050 sed 's/^/| /' conftest.$ac_ext >&5
12051
12052         ac_header_compiler=no
12053 fi
12054
12055 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12056 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12057 echo "${ECHO_T}$ac_header_compiler" >&6; }
12058
12059 # Is the header present?
12060 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12061 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12062 cat >conftest.$ac_ext <<_ACEOF
12063 /* confdefs.h.  */
12064 _ACEOF
12065 cat confdefs.h >>conftest.$ac_ext
12066 cat >>conftest.$ac_ext <<_ACEOF
12067 /* end confdefs.h.  */
12068 #include <$ac_header>
12069 _ACEOF
12070 if { (ac_try="$ac_cpp conftest.$ac_ext"
12071 case "(($ac_try" in
12072   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12073   *) ac_try_echo=$ac_try;;
12074 esac
12075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12076   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12077   ac_status=$?
12078   grep -v '^ *+' conftest.er1 >conftest.err
12079   rm -f conftest.er1
12080   cat conftest.err >&5
12081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12082   (exit $ac_status); } >/dev/null; then
12083   if test -s conftest.err; then
12084     ac_cpp_err=$ac_c_preproc_warn_flag
12085     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12086   else
12087     ac_cpp_err=
12088   fi
12089 else
12090   ac_cpp_err=yes
12091 fi
12092 if test -z "$ac_cpp_err"; then
12093   ac_header_preproc=yes
12094 else
12095   echo "$as_me: failed program was:" >&5
12096 sed 's/^/| /' conftest.$ac_ext >&5
12097
12098   ac_header_preproc=no
12099 fi
12100
12101 rm -f conftest.err conftest.$ac_ext
12102 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12103 echo "${ECHO_T}$ac_header_preproc" >&6; }
12104
12105 # So?  What about this header?
12106 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12107   yes:no: )
12108     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12109 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12110     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12111 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12112     ac_header_preproc=yes
12113     ;;
12114   no:yes:* )
12115     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12116 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12117     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12118 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12119     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12120 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12121     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12122 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12123     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12124 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12125     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12126 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12127     ( cat <<\_ASBOX
12128 ## ----------------------------------- ##
12129 ## Report this to llvmbugs@cs.uiuc.edu ##
12130 ## ----------------------------------- ##
12131 _ASBOX
12132      ) | sed "s/^/$as_me: WARNING:     /" >&2
12133     ;;
12134 esac
12135 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12136 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12137 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12138   echo $ECHO_N "(cached) $ECHO_C" >&6
12139 else
12140   eval "$as_ac_Header=\$ac_header_preproc"
12141 fi
12142 ac_res=`eval echo '${'$as_ac_Header'}'`
12143                { echo "$as_me:$LINENO: result: $ac_res" >&5
12144 echo "${ECHO_T}$ac_res" >&6; }
12145
12146 fi
12147 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12148   cat >>confdefs.h <<_ACEOF
12149 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12150 _ACEOF
12151
12152 fi
12153
12154 done
12155
12156
12157
12158
12159
12160 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
12161 do
12162 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12163 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12164   { echo "$as_me:$LINENO: checking for $ac_header" >&5
12165 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12166 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12167   echo $ECHO_N "(cached) $ECHO_C" >&6
12168 fi
12169 ac_res=`eval echo '${'$as_ac_Header'}'`
12170                { echo "$as_me:$LINENO: result: $ac_res" >&5
12171 echo "${ECHO_T}$ac_res" >&6; }
12172 else
12173   # Is the header compilable?
12174 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12175 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12176 cat >conftest.$ac_ext <<_ACEOF
12177 /* confdefs.h.  */
12178 _ACEOF
12179 cat confdefs.h >>conftest.$ac_ext
12180 cat >>conftest.$ac_ext <<_ACEOF
12181 /* end confdefs.h.  */
12182 $ac_includes_default
12183 #include <$ac_header>
12184 _ACEOF
12185 rm -f conftest.$ac_objext
12186 if { (ac_try="$ac_compile"
12187 case "(($ac_try" in
12188   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12189   *) ac_try_echo=$ac_try;;
12190 esac
12191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12192   (eval "$ac_compile") 2>conftest.er1
12193   ac_status=$?
12194   grep -v '^ *+' conftest.er1 >conftest.err
12195   rm -f conftest.er1
12196   cat conftest.err >&5
12197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12198   (exit $ac_status); } &&
12199          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12200   { (case "(($ac_try" in
12201   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12202   *) ac_try_echo=$ac_try;;
12203 esac
12204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12205   (eval "$ac_try") 2>&5
12206   ac_status=$?
12207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12208   (exit $ac_status); }; } &&
12209          { ac_try='test -s conftest.$ac_objext'
12210   { (case "(($ac_try" in
12211   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12212   *) ac_try_echo=$ac_try;;
12213 esac
12214 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12215   (eval "$ac_try") 2>&5
12216   ac_status=$?
12217   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12218   (exit $ac_status); }; }; then
12219   ac_header_compiler=yes
12220 else
12221   echo "$as_me: failed program was:" >&5
12222 sed 's/^/| /' conftest.$ac_ext >&5
12223
12224         ac_header_compiler=no
12225 fi
12226
12227 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12228 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12229 echo "${ECHO_T}$ac_header_compiler" >&6; }
12230
12231 # Is the header present?
12232 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12233 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12234 cat >conftest.$ac_ext <<_ACEOF
12235 /* confdefs.h.  */
12236 _ACEOF
12237 cat confdefs.h >>conftest.$ac_ext
12238 cat >>conftest.$ac_ext <<_ACEOF
12239 /* end confdefs.h.  */
12240 #include <$ac_header>
12241 _ACEOF
12242 if { (ac_try="$ac_cpp conftest.$ac_ext"
12243 case "(($ac_try" in
12244   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12245   *) ac_try_echo=$ac_try;;
12246 esac
12247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12248   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12249   ac_status=$?
12250   grep -v '^ *+' conftest.er1 >conftest.err
12251   rm -f conftest.er1
12252   cat conftest.err >&5
12253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12254   (exit $ac_status); } >/dev/null; then
12255   if test -s conftest.err; then
12256     ac_cpp_err=$ac_c_preproc_warn_flag
12257     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12258   else
12259     ac_cpp_err=
12260   fi
12261 else
12262   ac_cpp_err=yes
12263 fi
12264 if test -z "$ac_cpp_err"; then
12265   ac_header_preproc=yes
12266 else
12267   echo "$as_me: failed program was:" >&5
12268 sed 's/^/| /' conftest.$ac_ext >&5
12269
12270   ac_header_preproc=no
12271 fi
12272
12273 rm -f conftest.err conftest.$ac_ext
12274 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12275 echo "${ECHO_T}$ac_header_preproc" >&6; }
12276
12277 # So?  What about this header?
12278 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12279   yes:no: )
12280     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12281 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12282     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12283 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12284     ac_header_preproc=yes
12285     ;;
12286   no:yes:* )
12287     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12288 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12289     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12290 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12291     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12292 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12293     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12294 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12295     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12296 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12297     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12298 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12299     ( cat <<\_ASBOX
12300 ## ----------------------------------- ##
12301 ## Report this to llvmbugs@cs.uiuc.edu ##
12302 ## ----------------------------------- ##
12303 _ASBOX
12304      ) | sed "s/^/$as_me: WARNING:     /" >&2
12305     ;;
12306 esac
12307 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12308 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12309 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12310   echo $ECHO_N "(cached) $ECHO_C" >&6
12311 else
12312   eval "$as_ac_Header=\$ac_header_preproc"
12313 fi
12314 ac_res=`eval echo '${'$as_ac_Header'}'`
12315                { echo "$as_me:$LINENO: result: $ac_res" >&5
12316 echo "${ECHO_T}$ac_res" >&6; }
12317
12318 fi
12319 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12320   cat >>confdefs.h <<_ACEOF
12321 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12322 _ACEOF
12323
12324 fi
12325
12326 done
12327
12328
12329
12330 for ac_header in string.h strings.h
12331 do
12332 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12333 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12334   { echo "$as_me:$LINENO: checking for $ac_header" >&5
12335 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12336 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12337   echo $ECHO_N "(cached) $ECHO_C" >&6
12338 fi
12339 ac_res=`eval echo '${'$as_ac_Header'}'`
12340                { echo "$as_me:$LINENO: result: $ac_res" >&5
12341 echo "${ECHO_T}$ac_res" >&6; }
12342 else
12343   # Is the header compilable?
12344 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12345 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12346 cat >conftest.$ac_ext <<_ACEOF
12347 /* confdefs.h.  */
12348 _ACEOF
12349 cat confdefs.h >>conftest.$ac_ext
12350 cat >>conftest.$ac_ext <<_ACEOF
12351 /* end confdefs.h.  */
12352 $ac_includes_default
12353 #include <$ac_header>
12354 _ACEOF
12355 rm -f conftest.$ac_objext
12356 if { (ac_try="$ac_compile"
12357 case "(($ac_try" in
12358   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12359   *) ac_try_echo=$ac_try;;
12360 esac
12361 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12362   (eval "$ac_compile") 2>conftest.er1
12363   ac_status=$?
12364   grep -v '^ *+' conftest.er1 >conftest.err
12365   rm -f conftest.er1
12366   cat conftest.err >&5
12367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12368   (exit $ac_status); } &&
12369          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12370   { (case "(($ac_try" in
12371   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12372   *) ac_try_echo=$ac_try;;
12373 esac
12374 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12375   (eval "$ac_try") 2>&5
12376   ac_status=$?
12377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12378   (exit $ac_status); }; } &&
12379          { ac_try='test -s conftest.$ac_objext'
12380   { (case "(($ac_try" in
12381   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12382   *) ac_try_echo=$ac_try;;
12383 esac
12384 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12385   (eval "$ac_try") 2>&5
12386   ac_status=$?
12387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12388   (exit $ac_status); }; }; then
12389   ac_header_compiler=yes
12390 else
12391   echo "$as_me: failed program was:" >&5
12392 sed 's/^/| /' conftest.$ac_ext >&5
12393
12394         ac_header_compiler=no
12395 fi
12396
12397 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12398 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12399 echo "${ECHO_T}$ac_header_compiler" >&6; }
12400
12401 # Is the header present?
12402 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12403 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12404 cat >conftest.$ac_ext <<_ACEOF
12405 /* confdefs.h.  */
12406 _ACEOF
12407 cat confdefs.h >>conftest.$ac_ext
12408 cat >>conftest.$ac_ext <<_ACEOF
12409 /* end confdefs.h.  */
12410 #include <$ac_header>
12411 _ACEOF
12412 if { (ac_try="$ac_cpp conftest.$ac_ext"
12413 case "(($ac_try" in
12414   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12415   *) ac_try_echo=$ac_try;;
12416 esac
12417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12418   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12419   ac_status=$?
12420   grep -v '^ *+' conftest.er1 >conftest.err
12421   rm -f conftest.er1
12422   cat conftest.err >&5
12423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12424   (exit $ac_status); } >/dev/null; then
12425   if test -s conftest.err; then
12426     ac_cpp_err=$ac_c_preproc_warn_flag
12427     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12428   else
12429     ac_cpp_err=
12430   fi
12431 else
12432   ac_cpp_err=yes
12433 fi
12434 if test -z "$ac_cpp_err"; then
12435   ac_header_preproc=yes
12436 else
12437   echo "$as_me: failed program was:" >&5
12438 sed 's/^/| /' conftest.$ac_ext >&5
12439
12440   ac_header_preproc=no
12441 fi
12442
12443 rm -f conftest.err conftest.$ac_ext
12444 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12445 echo "${ECHO_T}$ac_header_preproc" >&6; }
12446
12447 # So?  What about this header?
12448 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12449   yes:no: )
12450     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12451 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12452     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12453 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12454     ac_header_preproc=yes
12455     ;;
12456   no:yes:* )
12457     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12458 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12459     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12460 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12461     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12462 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12463     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12464 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12465     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12466 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12467     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12468 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12469     ( cat <<\_ASBOX
12470 ## ----------------------------------- ##
12471 ## Report this to llvmbugs@cs.uiuc.edu ##
12472 ## ----------------------------------- ##
12473 _ASBOX
12474      ) | sed "s/^/$as_me: WARNING:     /" >&2
12475     ;;
12476 esac
12477 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12478 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12479 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12480   echo $ECHO_N "(cached) $ECHO_C" >&6
12481 else
12482   eval "$as_ac_Header=\$ac_header_preproc"
12483 fi
12484 ac_res=`eval echo '${'$as_ac_Header'}'`
12485                { echo "$as_me:$LINENO: result: $ac_res" >&5
12486 echo "${ECHO_T}$ac_res" >&6; }
12487
12488 fi
12489 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12490   cat >>confdefs.h <<_ACEOF
12491 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12492 _ACEOF
12493  break
12494 fi
12495
12496 done
12497
12498
12499
12500
12501 for ac_func in strchr index
12502 do
12503 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12504 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12505 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12506 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12507   echo $ECHO_N "(cached) $ECHO_C" >&6
12508 else
12509   cat >conftest.$ac_ext <<_ACEOF
12510 /* confdefs.h.  */
12511 _ACEOF
12512 cat confdefs.h >>conftest.$ac_ext
12513 cat >>conftest.$ac_ext <<_ACEOF
12514 /* end confdefs.h.  */
12515 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12516    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12517 #define $ac_func innocuous_$ac_func
12518
12519 /* System header to define __stub macros and hopefully few prototypes,
12520     which can conflict with char $ac_func (); below.
12521     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12522     <limits.h> exists even on freestanding compilers.  */
12523
12524 #ifdef __STDC__
12525 # include <limits.h>
12526 #else
12527 # include <assert.h>
12528 #endif
12529
12530 #undef $ac_func
12531
12532 /* Override any GCC internal prototype to avoid an error.
12533    Use char because int might match the return type of a GCC
12534    builtin and then its argument prototype would still apply.  */
12535 #ifdef __cplusplus
12536 extern "C"
12537 #endif
12538 char $ac_func ();
12539 /* The GNU C library defines this for functions which it implements
12540     to always fail with ENOSYS.  Some functions are actually named
12541     something starting with __ and the normal name is an alias.  */
12542 #if defined __stub_$ac_func || defined __stub___$ac_func
12543 choke me
12544 #endif
12545
12546 int
12547 main ()
12548 {
12549 return $ac_func ();
12550   ;
12551   return 0;
12552 }
12553 _ACEOF
12554 rm -f conftest.$ac_objext conftest$ac_exeext
12555 if { (ac_try="$ac_link"
12556 case "(($ac_try" in
12557   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12558   *) ac_try_echo=$ac_try;;
12559 esac
12560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12561   (eval "$ac_link") 2>conftest.er1
12562   ac_status=$?
12563   grep -v '^ *+' conftest.er1 >conftest.err
12564   rm -f conftest.er1
12565   cat conftest.err >&5
12566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12567   (exit $ac_status); } &&
12568          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12569   { (case "(($ac_try" in
12570   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12571   *) ac_try_echo=$ac_try;;
12572 esac
12573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12574   (eval "$ac_try") 2>&5
12575   ac_status=$?
12576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12577   (exit $ac_status); }; } &&
12578          { ac_try='test -s conftest$ac_exeext'
12579   { (case "(($ac_try" in
12580   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12581   *) ac_try_echo=$ac_try;;
12582 esac
12583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12584   (eval "$ac_try") 2>&5
12585   ac_status=$?
12586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12587   (exit $ac_status); }; }; then
12588   eval "$as_ac_var=yes"
12589 else
12590   echo "$as_me: failed program was:" >&5
12591 sed 's/^/| /' conftest.$ac_ext >&5
12592
12593         eval "$as_ac_var=no"
12594 fi
12595
12596 rm -f core conftest.err conftest.$ac_objext \
12597       conftest$ac_exeext conftest.$ac_ext
12598 fi
12599 ac_res=`eval echo '${'$as_ac_var'}'`
12600                { echo "$as_me:$LINENO: result: $ac_res" >&5
12601 echo "${ECHO_T}$ac_res" >&6; }
12602 if test `eval echo '${'$as_ac_var'}'` = yes; then
12603   cat >>confdefs.h <<_ACEOF
12604 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12605 _ACEOF
12606  break
12607 fi
12608 done
12609
12610
12611
12612 for ac_func in strrchr rindex
12613 do
12614 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12615 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12616 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12617 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12618   echo $ECHO_N "(cached) $ECHO_C" >&6
12619 else
12620   cat >conftest.$ac_ext <<_ACEOF
12621 /* confdefs.h.  */
12622 _ACEOF
12623 cat confdefs.h >>conftest.$ac_ext
12624 cat >>conftest.$ac_ext <<_ACEOF
12625 /* end confdefs.h.  */
12626 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12627    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12628 #define $ac_func innocuous_$ac_func
12629
12630 /* System header to define __stub macros and hopefully few prototypes,
12631     which can conflict with char $ac_func (); below.
12632     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12633     <limits.h> exists even on freestanding compilers.  */
12634
12635 #ifdef __STDC__
12636 # include <limits.h>
12637 #else
12638 # include <assert.h>
12639 #endif
12640
12641 #undef $ac_func
12642
12643 /* Override any GCC internal prototype to avoid an error.
12644    Use char because int might match the return type of a GCC
12645    builtin and then its argument prototype would still apply.  */
12646 #ifdef __cplusplus
12647 extern "C"
12648 #endif
12649 char $ac_func ();
12650 /* The GNU C library defines this for functions which it implements
12651     to always fail with ENOSYS.  Some functions are actually named
12652     something starting with __ and the normal name is an alias.  */
12653 #if defined __stub_$ac_func || defined __stub___$ac_func
12654 choke me
12655 #endif
12656
12657 int
12658 main ()
12659 {
12660 return $ac_func ();
12661   ;
12662   return 0;
12663 }
12664 _ACEOF
12665 rm -f conftest.$ac_objext conftest$ac_exeext
12666 if { (ac_try="$ac_link"
12667 case "(($ac_try" in
12668   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12669   *) ac_try_echo=$ac_try;;
12670 esac
12671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12672   (eval "$ac_link") 2>conftest.er1
12673   ac_status=$?
12674   grep -v '^ *+' conftest.er1 >conftest.err
12675   rm -f conftest.er1
12676   cat conftest.err >&5
12677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12678   (exit $ac_status); } &&
12679          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12680   { (case "(($ac_try" in
12681   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12682   *) ac_try_echo=$ac_try;;
12683 esac
12684 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12685   (eval "$ac_try") 2>&5
12686   ac_status=$?
12687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12688   (exit $ac_status); }; } &&
12689          { ac_try='test -s conftest$ac_exeext'
12690   { (case "(($ac_try" in
12691   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12692   *) ac_try_echo=$ac_try;;
12693 esac
12694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12695   (eval "$ac_try") 2>&5
12696   ac_status=$?
12697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12698   (exit $ac_status); }; }; then
12699   eval "$as_ac_var=yes"
12700 else
12701   echo "$as_me: failed program was:" >&5
12702 sed 's/^/| /' conftest.$ac_ext >&5
12703
12704         eval "$as_ac_var=no"
12705 fi
12706
12707 rm -f core conftest.err conftest.$ac_objext \
12708       conftest$ac_exeext conftest.$ac_ext
12709 fi
12710 ac_res=`eval echo '${'$as_ac_var'}'`
12711                { echo "$as_me:$LINENO: result: $ac_res" >&5
12712 echo "${ECHO_T}$ac_res" >&6; }
12713 if test `eval echo '${'$as_ac_var'}'` = yes; then
12714   cat >>confdefs.h <<_ACEOF
12715 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12716 _ACEOF
12717  break
12718 fi
12719 done
12720
12721
12722
12723 for ac_func in memcpy bcopy
12724 do
12725 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12726 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12727 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12728 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12729   echo $ECHO_N "(cached) $ECHO_C" >&6
12730 else
12731   cat >conftest.$ac_ext <<_ACEOF
12732 /* confdefs.h.  */
12733 _ACEOF
12734 cat confdefs.h >>conftest.$ac_ext
12735 cat >>conftest.$ac_ext <<_ACEOF
12736 /* end confdefs.h.  */
12737 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12738    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12739 #define $ac_func innocuous_$ac_func
12740
12741 /* System header to define __stub macros and hopefully few prototypes,
12742     which can conflict with char $ac_func (); below.
12743     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12744     <limits.h> exists even on freestanding compilers.  */
12745
12746 #ifdef __STDC__
12747 # include <limits.h>
12748 #else
12749 # include <assert.h>
12750 #endif
12751
12752 #undef $ac_func
12753
12754 /* Override any GCC internal prototype to avoid an error.
12755    Use char because int might match the return type of a GCC
12756    builtin and then its argument prototype would still apply.  */
12757 #ifdef __cplusplus
12758 extern "C"
12759 #endif
12760 char $ac_func ();
12761 /* The GNU C library defines this for functions which it implements
12762     to always fail with ENOSYS.  Some functions are actually named
12763     something starting with __ and the normal name is an alias.  */
12764 #if defined __stub_$ac_func || defined __stub___$ac_func
12765 choke me
12766 #endif
12767
12768 int
12769 main ()
12770 {
12771 return $ac_func ();
12772   ;
12773   return 0;
12774 }
12775 _ACEOF
12776 rm -f conftest.$ac_objext conftest$ac_exeext
12777 if { (ac_try="$ac_link"
12778 case "(($ac_try" in
12779   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12780   *) ac_try_echo=$ac_try;;
12781 esac
12782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12783   (eval "$ac_link") 2>conftest.er1
12784   ac_status=$?
12785   grep -v '^ *+' conftest.er1 >conftest.err
12786   rm -f conftest.er1
12787   cat conftest.err >&5
12788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12789   (exit $ac_status); } &&
12790          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12791   { (case "(($ac_try" in
12792   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12793   *) ac_try_echo=$ac_try;;
12794 esac
12795 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12796   (eval "$ac_try") 2>&5
12797   ac_status=$?
12798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12799   (exit $ac_status); }; } &&
12800          { ac_try='test -s conftest$ac_exeext'
12801   { (case "(($ac_try" in
12802   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12803   *) ac_try_echo=$ac_try;;
12804 esac
12805 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12806   (eval "$ac_try") 2>&5
12807   ac_status=$?
12808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12809   (exit $ac_status); }; }; then
12810   eval "$as_ac_var=yes"
12811 else
12812   echo "$as_me: failed program was:" >&5
12813 sed 's/^/| /' conftest.$ac_ext >&5
12814
12815         eval "$as_ac_var=no"
12816 fi
12817
12818 rm -f core conftest.err conftest.$ac_objext \
12819       conftest$ac_exeext conftest.$ac_ext
12820 fi
12821 ac_res=`eval echo '${'$as_ac_var'}'`
12822                { echo "$as_me:$LINENO: result: $ac_res" >&5
12823 echo "${ECHO_T}$ac_res" >&6; }
12824 if test `eval echo '${'$as_ac_var'}'` = yes; then
12825   cat >>confdefs.h <<_ACEOF
12826 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12827 _ACEOF
12828  break
12829 fi
12830 done
12831
12832
12833
12834 for ac_func in memmove strcmp
12835 do
12836 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12837 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12838 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12839 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12840   echo $ECHO_N "(cached) $ECHO_C" >&6
12841 else
12842   cat >conftest.$ac_ext <<_ACEOF
12843 /* confdefs.h.  */
12844 _ACEOF
12845 cat confdefs.h >>conftest.$ac_ext
12846 cat >>conftest.$ac_ext <<_ACEOF
12847 /* end confdefs.h.  */
12848 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12849    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12850 #define $ac_func innocuous_$ac_func
12851
12852 /* System header to define __stub macros and hopefully few prototypes,
12853     which can conflict with char $ac_func (); below.
12854     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12855     <limits.h> exists even on freestanding compilers.  */
12856
12857 #ifdef __STDC__
12858 # include <limits.h>
12859 #else
12860 # include <assert.h>
12861 #endif
12862
12863 #undef $ac_func
12864
12865 /* Override any GCC internal prototype to avoid an error.
12866    Use char because int might match the return type of a GCC
12867    builtin and then its argument prototype would still apply.  */
12868 #ifdef __cplusplus
12869 extern "C"
12870 #endif
12871 char $ac_func ();
12872 /* The GNU C library defines this for functions which it implements
12873     to always fail with ENOSYS.  Some functions are actually named
12874     something starting with __ and the normal name is an alias.  */
12875 #if defined __stub_$ac_func || defined __stub___$ac_func
12876 choke me
12877 #endif
12878
12879 int
12880 main ()
12881 {
12882 return $ac_func ();
12883   ;
12884   return 0;
12885 }
12886 _ACEOF
12887 rm -f conftest.$ac_objext conftest$ac_exeext
12888 if { (ac_try="$ac_link"
12889 case "(($ac_try" in
12890   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12891   *) ac_try_echo=$ac_try;;
12892 esac
12893 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12894   (eval "$ac_link") 2>conftest.er1
12895   ac_status=$?
12896   grep -v '^ *+' conftest.er1 >conftest.err
12897   rm -f conftest.er1
12898   cat conftest.err >&5
12899   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12900   (exit $ac_status); } &&
12901          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12902   { (case "(($ac_try" in
12903   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12904   *) ac_try_echo=$ac_try;;
12905 esac
12906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12907   (eval "$ac_try") 2>&5
12908   ac_status=$?
12909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12910   (exit $ac_status); }; } &&
12911          { ac_try='test -s conftest$ac_exeext'
12912   { (case "(($ac_try" in
12913   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12914   *) ac_try_echo=$ac_try;;
12915 esac
12916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12917   (eval "$ac_try") 2>&5
12918   ac_status=$?
12919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12920   (exit $ac_status); }; }; then
12921   eval "$as_ac_var=yes"
12922 else
12923   echo "$as_me: failed program was:" >&5
12924 sed 's/^/| /' conftest.$ac_ext >&5
12925
12926         eval "$as_ac_var=no"
12927 fi
12928
12929 rm -f core conftest.err conftest.$ac_objext \
12930       conftest$ac_exeext conftest.$ac_ext
12931 fi
12932 ac_res=`eval echo '${'$as_ac_var'}'`
12933                { echo "$as_me:$LINENO: result: $ac_res" >&5
12934 echo "${ECHO_T}$ac_res" >&6; }
12935 if test `eval echo '${'$as_ac_var'}'` = yes; then
12936   cat >>confdefs.h <<_ACEOF
12937 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12938 _ACEOF
12939
12940 fi
12941 done
12942
12943
12944
12945
12946 for ac_func in closedir opendir readdir
12947 do
12948 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12949 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12950 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12951 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12952   echo $ECHO_N "(cached) $ECHO_C" >&6
12953 else
12954   cat >conftest.$ac_ext <<_ACEOF
12955 /* confdefs.h.  */
12956 _ACEOF
12957 cat confdefs.h >>conftest.$ac_ext
12958 cat >>conftest.$ac_ext <<_ACEOF
12959 /* end confdefs.h.  */
12960 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12961    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12962 #define $ac_func innocuous_$ac_func
12963
12964 /* System header to define __stub macros and hopefully few prototypes,
12965     which can conflict with char $ac_func (); below.
12966     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12967     <limits.h> exists even on freestanding compilers.  */
12968
12969 #ifdef __STDC__
12970 # include <limits.h>
12971 #else
12972 # include <assert.h>
12973 #endif
12974
12975 #undef $ac_func
12976
12977 /* Override any GCC internal prototype to avoid an error.
12978    Use char because int might match the return type of a GCC
12979    builtin and then its argument prototype would still apply.  */
12980 #ifdef __cplusplus
12981 extern "C"
12982 #endif
12983 char $ac_func ();
12984 /* The GNU C library defines this for functions which it implements
12985     to always fail with ENOSYS.  Some functions are actually named
12986     something starting with __ and the normal name is an alias.  */
12987 #if defined __stub_$ac_func || defined __stub___$ac_func
12988 choke me
12989 #endif
12990
12991 int
12992 main ()
12993 {
12994 return $ac_func ();
12995   ;
12996   return 0;
12997 }
12998 _ACEOF
12999 rm -f conftest.$ac_objext conftest$ac_exeext
13000 if { (ac_try="$ac_link"
13001 case "(($ac_try" in
13002   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13003   *) ac_try_echo=$ac_try;;
13004 esac
13005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13006   (eval "$ac_link") 2>conftest.er1
13007   ac_status=$?
13008   grep -v '^ *+' conftest.er1 >conftest.err
13009   rm -f conftest.er1
13010   cat conftest.err >&5
13011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13012   (exit $ac_status); } &&
13013          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13014   { (case "(($ac_try" in
13015   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13016   *) ac_try_echo=$ac_try;;
13017 esac
13018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13019   (eval "$ac_try") 2>&5
13020   ac_status=$?
13021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13022   (exit $ac_status); }; } &&
13023          { ac_try='test -s conftest$ac_exeext'
13024   { (case "(($ac_try" in
13025   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13026   *) ac_try_echo=$ac_try;;
13027 esac
13028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13029   (eval "$ac_try") 2>&5
13030   ac_status=$?
13031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13032   (exit $ac_status); }; }; then
13033   eval "$as_ac_var=yes"
13034 else
13035   echo "$as_me: failed program was:" >&5
13036 sed 's/^/| /' conftest.$ac_ext >&5
13037
13038         eval "$as_ac_var=no"
13039 fi
13040
13041 rm -f core conftest.err conftest.$ac_objext \
13042       conftest$ac_exeext conftest.$ac_ext
13043 fi
13044 ac_res=`eval echo '${'$as_ac_var'}'`
13045                { echo "$as_me:$LINENO: result: $ac_res" >&5
13046 echo "${ECHO_T}$ac_res" >&6; }
13047 if test `eval echo '${'$as_ac_var'}'` = yes; then
13048   cat >>confdefs.h <<_ACEOF
13049 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13050 _ACEOF
13051
13052 fi
13053 done
13054
13055
13056
13057 if test "$WITH_LLVMGCCDIR" = "default" ; then
13058   LLVMGCC="llvm-gcc${EXEEXT}"
13059   LLVMGXX="llvm-g++${EXEEXT}"
13060   LLVMGCCCOMMAND="$LLVMGCC"
13061   LLVMGXXCOMMAND="$LLVMGXX"
13062   LLVMGCCCOMMAND=$LLVMGCCCOMMAND
13063
13064   LLVMGXXCOMMAND=$LLVMGXXCOMMAND
13065
13066   # Extract the first word of "$LLVMGCC", so it can be a program name with args.
13067 set dummy $LLVMGCC; ac_word=$2
13068 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13069 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13070 if test "${ac_cv_path_LLVMGCC+set}" = set; then
13071   echo $ECHO_N "(cached) $ECHO_C" >&6
13072 else
13073   case $LLVMGCC in
13074   [\\/]* | ?:[\\/]*)
13075   ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path.
13076   ;;
13077   *)
13078   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13079 for as_dir in $PATH
13080 do
13081   IFS=$as_save_IFS
13082   test -z "$as_dir" && as_dir=.
13083   for ac_exec_ext in '' $ac_executable_extensions; do
13084   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13085     ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext"
13086     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13087     break 2
13088   fi
13089 done
13090 done
13091 IFS=$as_save_IFS
13092
13093   ;;
13094 esac
13095 fi
13096 LLVMGCC=$ac_cv_path_LLVMGCC
13097 if test -n "$LLVMGCC"; then
13098   { echo "$as_me:$LINENO: result: $LLVMGCC" >&5
13099 echo "${ECHO_T}$LLVMGCC" >&6; }
13100 else
13101   { echo "$as_me:$LINENO: result: no" >&5
13102 echo "${ECHO_T}no" >&6; }
13103 fi
13104
13105
13106   # Extract the first word of "$LLVMGXX", so it can be a program name with args.
13107 set dummy $LLVMGXX; ac_word=$2
13108 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13109 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13110 if test "${ac_cv_path_LLVMGXX+set}" = set; then
13111   echo $ECHO_N "(cached) $ECHO_C" >&6
13112 else
13113   case $LLVMGXX in
13114   [\\/]* | ?:[\\/]*)
13115   ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path.
13116   ;;
13117   *)
13118   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13119 for as_dir in $PATH
13120 do
13121   IFS=$as_save_IFS
13122   test -z "$as_dir" && as_dir=.
13123   for ac_exec_ext in '' $ac_executable_extensions; do
13124   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13125     ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext"
13126     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13127     break 2
13128   fi
13129 done
13130 done
13131 IFS=$as_save_IFS
13132
13133   ;;
13134 esac
13135 fi
13136 LLVMGXX=$ac_cv_path_LLVMGXX
13137 if test -n "$LLVMGXX"; then
13138   { echo "$as_me:$LINENO: result: $LLVMGXX" >&5
13139 echo "${ECHO_T}$LLVMGXX" >&6; }
13140 else
13141   { echo "$as_me:$LINENO: result: no" >&5
13142 echo "${ECHO_T}no" >&6; }
13143 fi
13144
13145
13146 else
13147   if test -z "$LLVMGCC"; then
13148     LLVMGCC="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}"
13149     LLVMGCCCOMMAND="$LLVMGCC"
13150   fi
13151   if test -z "$LLVMGXX"; then
13152     LLVMGXX="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}"
13153     LLVMGXXCOMMAND="$LLVMGXX"
13154   fi
13155
13156   LLVMGCC=$LLVMGCC
13157
13158   LLVMGXX=$LLVMGXX
13159
13160   LLVMGCCCOMMAND=$LLVMGCCCOMMAND
13161
13162   LLVMGXXCOMMAND=$LLVMGXXCOMMAND
13163
13164 fi
13165
13166
13167 # Check whether --with-llvmcc was given.
13168 if test "${with_llvmcc+set}" = set; then
13169   withval=$with_llvmcc;
13170 else
13171   with_llvmcc=check
13172 fi
13173
13174 { echo "$as_me:$LINENO: checking LLVM capable compiler" >&5
13175 echo $ECHO_N "checking LLVM capable compiler... $ECHO_C" >&6; }
13176 if test "$with_llvmcc" != "check"; then
13177    if (test "$with_llvmcc" != "llvm-gcc" &&
13178        test "$with_llvmcc" != "clang" &&
13179        test "$with_llvmcc" != "none"); then
13180       { { echo "$as_me:$LINENO: error: invalid value for --with-llvmcc, expected 'llvm-gcc', 'clang', or 'none'." >&5
13181 echo "$as_me: error: invalid value for --with-llvmcc, expected 'llvm-gcc', 'clang', or 'none'." >&2;}
13182    { (exit 1); exit 1; }; }
13183    fi
13184    WITH_LLVMCC="$with_llvmcc"
13185 elif test -n "$LLVMGCC"; then
13186    WITH_LLVMCC=llvm-gcc
13187 elif test -n "$WITH_CLANGPATH" || test "$WITH_BUILT_CLANG" -ne "0"; then
13188    WITH_LLVMCC=clang
13189 else
13190    WITH_LLVMCC=none
13191 fi
13192 { echo "$as_me:$LINENO: result: $WITH_LLVMCC" >&5
13193 echo "${ECHO_T}$WITH_LLVMCC" >&6; }
13194 LLVMCC_OPTION=$WITH_LLVMCC
13195
13196
13197 { echo "$as_me:$LINENO: checking tool compatibility" >&5
13198 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
13199
13200 ICC=no
13201 IXX=no
13202 case $CC in
13203   icc*|icpc*)
13204     ICC=yes
13205     IXX=yes
13206     ;;
13207    *)
13208     ;;
13209 esac
13210
13211 if test "$GCC" != "yes" && test "$ICC" != "yes"
13212 then
13213   { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
13214 echo "$as_me: error: gcc|icc required but not found" >&2;}
13215    { (exit 1); exit 1; }; }
13216 fi
13217
13218 if test "$GXX" != "yes" && test "$IXX" != "yes"
13219 then
13220   { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5
13221 echo "$as_me: error: g++|icc required but not found" >&2;}
13222    { (exit 1); exit 1; }; }
13223 fi
13224
13225 if test "$GCC" = "yes"
13226 then
13227   cat >conftest.$ac_ext <<_ACEOF
13228 #if !defined(__GNUC__) || __GNUC__ < 3
13229 #error Unsupported GCC version
13230 #endif
13231
13232 _ACEOF
13233 rm -f conftest.$ac_objext
13234 if { (ac_try="$ac_compile"
13235 case "(($ac_try" in
13236   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13237   *) ac_try_echo=$ac_try;;
13238 esac
13239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13240   (eval "$ac_compile") 2>conftest.er1
13241   ac_status=$?
13242   grep -v '^ *+' conftest.er1 >conftest.err
13243   rm -f conftest.er1
13244   cat conftest.err >&5
13245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13246   (exit $ac_status); } &&
13247          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13248   { (case "(($ac_try" in
13249   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13250   *) ac_try_echo=$ac_try;;
13251 esac
13252 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13253   (eval "$ac_try") 2>&5
13254   ac_status=$?
13255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13256   (exit $ac_status); }; } &&
13257          { ac_try='test -s conftest.$ac_objext'
13258   { (case "(($ac_try" in
13259   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13260   *) ac_try_echo=$ac_try;;
13261 esac
13262 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13263   (eval "$ac_try") 2>&5
13264   ac_status=$?
13265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13266   (exit $ac_status); }; }; then
13267   :
13268 else
13269   echo "$as_me: failed program was:" >&5
13270 sed 's/^/| /' conftest.$ac_ext >&5
13271
13272         { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
13273 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
13274    { (exit 1); exit 1; }; }
13275 fi
13276
13277 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13278 fi
13279
13280 if test -z "$llvm_cv_gnu_make_command"
13281 then
13282   { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
13283 echo "$as_me: error: GNU Make required but not found" >&2;}
13284    { (exit 1); exit 1; }; }
13285 fi
13286
13287 { echo "$as_me:$LINENO: result: ok" >&5
13288 echo "${ECHO_T}ok" >&6; }
13289
13290 { echo "$as_me:$LINENO: checking optional compiler flags" >&5
13291 echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
13292 NO_VARIADIC_MACROS=`$CXX -Wno-variadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
13293
13294 NO_MISSING_FIELD_INITIALIZERS=`$CXX -Wno-missing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
13295
13296 { echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&5
13297 echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&6; }
13298
13299
13300
13301 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
13302 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
13303 if test "${ac_cv_lib_m_sin+set}" = set; then
13304   echo $ECHO_N "(cached) $ECHO_C" >&6
13305 else
13306   ac_check_lib_save_LIBS=$LIBS
13307 LIBS="-lm  $LIBS"
13308 cat >conftest.$ac_ext <<_ACEOF
13309 /* confdefs.h.  */
13310 _ACEOF
13311 cat confdefs.h >>conftest.$ac_ext
13312 cat >>conftest.$ac_ext <<_ACEOF
13313 /* end confdefs.h.  */
13314
13315 /* Override any GCC internal prototype to avoid an error.
13316    Use char because int might match the return type of a GCC
13317    builtin and then its argument prototype would still apply.  */
13318 #ifdef __cplusplus
13319 extern "C"
13320 #endif
13321 char sin ();
13322 int
13323 main ()
13324 {
13325 return sin ();
13326   ;
13327   return 0;
13328 }
13329 _ACEOF
13330 rm -f conftest.$ac_objext conftest$ac_exeext
13331 if { (ac_try="$ac_link"
13332 case "(($ac_try" in
13333   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13334   *) ac_try_echo=$ac_try;;
13335 esac
13336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13337   (eval "$ac_link") 2>conftest.er1
13338   ac_status=$?
13339   grep -v '^ *+' conftest.er1 >conftest.err
13340   rm -f conftest.er1
13341   cat conftest.err >&5
13342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13343   (exit $ac_status); } &&
13344          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13345   { (case "(($ac_try" in
13346   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13347   *) ac_try_echo=$ac_try;;
13348 esac
13349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13350   (eval "$ac_try") 2>&5
13351   ac_status=$?
13352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13353   (exit $ac_status); }; } &&
13354          { ac_try='test -s conftest$ac_exeext'
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); }; }; then
13364   ac_cv_lib_m_sin=yes
13365 else
13366   echo "$as_me: failed program was:" >&5
13367 sed 's/^/| /' conftest.$ac_ext >&5
13368
13369         ac_cv_lib_m_sin=no
13370 fi
13371
13372 rm -f core conftest.err conftest.$ac_objext \
13373       conftest$ac_exeext conftest.$ac_ext
13374 LIBS=$ac_check_lib_save_LIBS
13375 fi
13376 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
13377 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
13378 if test $ac_cv_lib_m_sin = yes; then
13379   cat >>confdefs.h <<_ACEOF
13380 #define HAVE_LIBM 1
13381 _ACEOF
13382
13383   LIBS="-lm $LIBS"
13384
13385 fi
13386
13387 if test "$llvm_cv_os_type" = "MingW" ; then
13388
13389 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
13390 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
13391 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
13392   echo $ECHO_N "(cached) $ECHO_C" >&6
13393 else
13394   ac_check_lib_save_LIBS=$LIBS
13395 LIBS="-limagehlp  $LIBS"
13396 cat >conftest.$ac_ext <<_ACEOF
13397 /* confdefs.h.  */
13398 _ACEOF
13399 cat confdefs.h >>conftest.$ac_ext
13400 cat >>conftest.$ac_ext <<_ACEOF
13401 /* end confdefs.h.  */
13402
13403
13404 int
13405 main ()
13406 {
13407 return main ();
13408   ;
13409   return 0;
13410 }
13411 _ACEOF
13412 rm -f conftest.$ac_objext conftest$ac_exeext
13413 if { (ac_try="$ac_link"
13414 case "(($ac_try" in
13415   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13416   *) ac_try_echo=$ac_try;;
13417 esac
13418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13419   (eval "$ac_link") 2>conftest.er1
13420   ac_status=$?
13421   grep -v '^ *+' conftest.er1 >conftest.err
13422   rm -f conftest.er1
13423   cat conftest.err >&5
13424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13425   (exit $ac_status); } &&
13426          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13427   { (case "(($ac_try" in
13428   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13429   *) ac_try_echo=$ac_try;;
13430 esac
13431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13432   (eval "$ac_try") 2>&5
13433   ac_status=$?
13434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13435   (exit $ac_status); }; } &&
13436          { ac_try='test -s conftest$ac_exeext'
13437   { (case "(($ac_try" in
13438   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13439   *) ac_try_echo=$ac_try;;
13440 esac
13441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13442   (eval "$ac_try") 2>&5
13443   ac_status=$?
13444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13445   (exit $ac_status); }; }; then
13446   ac_cv_lib_imagehlp_main=yes
13447 else
13448   echo "$as_me: failed program was:" >&5
13449 sed 's/^/| /' conftest.$ac_ext >&5
13450
13451         ac_cv_lib_imagehlp_main=no
13452 fi
13453
13454 rm -f core conftest.err conftest.$ac_objext \
13455       conftest$ac_exeext conftest.$ac_ext
13456 LIBS=$ac_check_lib_save_LIBS
13457 fi
13458 { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
13459 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
13460 if test $ac_cv_lib_imagehlp_main = yes; then
13461   cat >>confdefs.h <<_ACEOF
13462 #define HAVE_LIBIMAGEHLP 1
13463 _ACEOF
13464
13465   LIBS="-limagehlp $LIBS"
13466
13467 fi
13468
13469
13470 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
13471 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
13472 if test "${ac_cv_lib_psapi_main+set}" = set; then
13473   echo $ECHO_N "(cached) $ECHO_C" >&6
13474 else
13475   ac_check_lib_save_LIBS=$LIBS
13476 LIBS="-lpsapi  $LIBS"
13477 cat >conftest.$ac_ext <<_ACEOF
13478 /* confdefs.h.  */
13479 _ACEOF
13480 cat confdefs.h >>conftest.$ac_ext
13481 cat >>conftest.$ac_ext <<_ACEOF
13482 /* end confdefs.h.  */
13483
13484
13485 int
13486 main ()
13487 {
13488 return main ();
13489   ;
13490   return 0;
13491 }
13492 _ACEOF
13493 rm -f conftest.$ac_objext conftest$ac_exeext
13494 if { (ac_try="$ac_link"
13495 case "(($ac_try" in
13496   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13497   *) ac_try_echo=$ac_try;;
13498 esac
13499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13500   (eval "$ac_link") 2>conftest.er1
13501   ac_status=$?
13502   grep -v '^ *+' conftest.er1 >conftest.err
13503   rm -f conftest.er1
13504   cat conftest.err >&5
13505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13506   (exit $ac_status); } &&
13507          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13508   { (case "(($ac_try" in
13509   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13510   *) ac_try_echo=$ac_try;;
13511 esac
13512 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13513   (eval "$ac_try") 2>&5
13514   ac_status=$?
13515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13516   (exit $ac_status); }; } &&
13517          { ac_try='test -s conftest$ac_exeext'
13518   { (case "(($ac_try" in
13519   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13520   *) ac_try_echo=$ac_try;;
13521 esac
13522 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13523   (eval "$ac_try") 2>&5
13524   ac_status=$?
13525   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13526   (exit $ac_status); }; }; then
13527   ac_cv_lib_psapi_main=yes
13528 else
13529   echo "$as_me: failed program was:" >&5
13530 sed 's/^/| /' conftest.$ac_ext >&5
13531
13532         ac_cv_lib_psapi_main=no
13533 fi
13534
13535 rm -f core conftest.err conftest.$ac_objext \
13536       conftest$ac_exeext conftest.$ac_ext
13537 LIBS=$ac_check_lib_save_LIBS
13538 fi
13539 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
13540 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
13541 if test $ac_cv_lib_psapi_main = yes; then
13542   cat >>confdefs.h <<_ACEOF
13543 #define HAVE_LIBPSAPI 1
13544 _ACEOF
13545
13546   LIBS="-lpsapi $LIBS"
13547
13548 fi
13549
13550 fi
13551
13552 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
13553 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
13554 if test "${ac_cv_search_dlopen+set}" = set; then
13555   echo $ECHO_N "(cached) $ECHO_C" >&6
13556 else
13557   ac_func_search_save_LIBS=$LIBS
13558 cat >conftest.$ac_ext <<_ACEOF
13559 /* confdefs.h.  */
13560 _ACEOF
13561 cat confdefs.h >>conftest.$ac_ext
13562 cat >>conftest.$ac_ext <<_ACEOF
13563 /* end confdefs.h.  */
13564
13565 /* Override any GCC internal prototype to avoid an error.
13566    Use char because int might match the return type of a GCC
13567    builtin and then its argument prototype would still apply.  */
13568 #ifdef __cplusplus
13569 extern "C"
13570 #endif
13571 char dlopen ();
13572 int
13573 main ()
13574 {
13575 return dlopen ();
13576   ;
13577   return 0;
13578 }
13579 _ACEOF
13580 for ac_lib in '' dl; do
13581   if test -z "$ac_lib"; then
13582     ac_res="none required"
13583   else
13584     ac_res=-l$ac_lib
13585     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13586   fi
13587   rm -f conftest.$ac_objext conftest$ac_exeext
13588 if { (ac_try="$ac_link"
13589 case "(($ac_try" in
13590   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13591   *) ac_try_echo=$ac_try;;
13592 esac
13593 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13594   (eval "$ac_link") 2>conftest.er1
13595   ac_status=$?
13596   grep -v '^ *+' conftest.er1 >conftest.err
13597   rm -f conftest.er1
13598   cat conftest.err >&5
13599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13600   (exit $ac_status); } &&
13601          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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_try") 2>&5
13608   ac_status=$?
13609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13610   (exit $ac_status); }; } &&
13611          { ac_try='test -s conftest$ac_exeext'
13612   { (case "(($ac_try" in
13613   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13614   *) ac_try_echo=$ac_try;;
13615 esac
13616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13617   (eval "$ac_try") 2>&5
13618   ac_status=$?
13619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13620   (exit $ac_status); }; }; then
13621   ac_cv_search_dlopen=$ac_res
13622 else
13623   echo "$as_me: failed program was:" >&5
13624 sed 's/^/| /' conftest.$ac_ext >&5
13625
13626
13627 fi
13628
13629 rm -f core conftest.err conftest.$ac_objext \
13630       conftest$ac_exeext
13631   if test "${ac_cv_search_dlopen+set}" = set; then
13632   break
13633 fi
13634 done
13635 if test "${ac_cv_search_dlopen+set}" = set; then
13636   :
13637 else
13638   ac_cv_search_dlopen=no
13639 fi
13640 rm conftest.$ac_ext
13641 LIBS=$ac_func_search_save_LIBS
13642 fi
13643 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
13644 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
13645 ac_res=$ac_cv_search_dlopen
13646 if test "$ac_res" != no; then
13647   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13648
13649 cat >>confdefs.h <<\_ACEOF
13650 #define HAVE_DLOPEN 1
13651 _ACEOF
13652
13653 else
13654   { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
13655 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
13656 fi
13657
13658
13659 if test "$llvm_cv_enable_libffi" = "yes" ; then
13660   { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
13661 echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
13662 if test "${ac_cv_search_ffi_call+set}" = set; then
13663   echo $ECHO_N "(cached) $ECHO_C" >&6
13664 else
13665   ac_func_search_save_LIBS=$LIBS
13666 cat >conftest.$ac_ext <<_ACEOF
13667 /* confdefs.h.  */
13668 _ACEOF
13669 cat confdefs.h >>conftest.$ac_ext
13670 cat >>conftest.$ac_ext <<_ACEOF
13671 /* end confdefs.h.  */
13672
13673 /* Override any GCC internal prototype to avoid an error.
13674    Use char because int might match the return type of a GCC
13675    builtin and then its argument prototype would still apply.  */
13676 #ifdef __cplusplus
13677 extern "C"
13678 #endif
13679 char ffi_call ();
13680 int
13681 main ()
13682 {
13683 return ffi_call ();
13684   ;
13685   return 0;
13686 }
13687 _ACEOF
13688 for ac_lib in '' ffi; do
13689   if test -z "$ac_lib"; then
13690     ac_res="none required"
13691   else
13692     ac_res=-l$ac_lib
13693     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13694   fi
13695   rm -f conftest.$ac_objext conftest$ac_exeext
13696 if { (ac_try="$ac_link"
13697 case "(($ac_try" in
13698   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13699   *) ac_try_echo=$ac_try;;
13700 esac
13701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13702   (eval "$ac_link") 2>conftest.er1
13703   ac_status=$?
13704   grep -v '^ *+' conftest.er1 >conftest.err
13705   rm -f conftest.er1
13706   cat conftest.err >&5
13707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13708   (exit $ac_status); } &&
13709          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13710   { (case "(($ac_try" in
13711   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13712   *) ac_try_echo=$ac_try;;
13713 esac
13714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13715   (eval "$ac_try") 2>&5
13716   ac_status=$?
13717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13718   (exit $ac_status); }; } &&
13719          { ac_try='test -s conftest$ac_exeext'
13720   { (case "(($ac_try" in
13721   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13722   *) ac_try_echo=$ac_try;;
13723 esac
13724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13725   (eval "$ac_try") 2>&5
13726   ac_status=$?
13727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13728   (exit $ac_status); }; }; then
13729   ac_cv_search_ffi_call=$ac_res
13730 else
13731   echo "$as_me: failed program was:" >&5
13732 sed 's/^/| /' conftest.$ac_ext >&5
13733
13734
13735 fi
13736
13737 rm -f core conftest.err conftest.$ac_objext \
13738       conftest$ac_exeext
13739   if test "${ac_cv_search_ffi_call+set}" = set; then
13740   break
13741 fi
13742 done
13743 if test "${ac_cv_search_ffi_call+set}" = set; then
13744   :
13745 else
13746   ac_cv_search_ffi_call=no
13747 fi
13748 rm conftest.$ac_ext
13749 LIBS=$ac_func_search_save_LIBS
13750 fi
13751 { echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
13752 echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
13753 ac_res=$ac_cv_search_ffi_call
13754 if test "$ac_res" != no; then
13755   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13756
13757 cat >>confdefs.h <<\_ACEOF
13758 #define HAVE_FFI_CALL 1
13759 _ACEOF
13760
13761 else
13762   { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
13763 echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
13764    { (exit 1); exit 1; }; }
13765 fi
13766
13767 fi
13768
13769 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
13770 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
13771 if test "${ac_cv_search_mallinfo+set}" = set; then
13772   echo $ECHO_N "(cached) $ECHO_C" >&6
13773 else
13774   ac_func_search_save_LIBS=$LIBS
13775 cat >conftest.$ac_ext <<_ACEOF
13776 /* confdefs.h.  */
13777 _ACEOF
13778 cat confdefs.h >>conftest.$ac_ext
13779 cat >>conftest.$ac_ext <<_ACEOF
13780 /* end confdefs.h.  */
13781
13782 /* Override any GCC internal prototype to avoid an error.
13783    Use char because int might match the return type of a GCC
13784    builtin and then its argument prototype would still apply.  */
13785 #ifdef __cplusplus
13786 extern "C"
13787 #endif
13788 char mallinfo ();
13789 int
13790 main ()
13791 {
13792 return mallinfo ();
13793   ;
13794   return 0;
13795 }
13796 _ACEOF
13797 for ac_lib in '' malloc; do
13798   if test -z "$ac_lib"; then
13799     ac_res="none required"
13800   else
13801     ac_res=-l$ac_lib
13802     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13803   fi
13804   rm -f conftest.$ac_objext conftest$ac_exeext
13805 if { (ac_try="$ac_link"
13806 case "(($ac_try" in
13807   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13808   *) ac_try_echo=$ac_try;;
13809 esac
13810 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13811   (eval "$ac_link") 2>conftest.er1
13812   ac_status=$?
13813   grep -v '^ *+' conftest.er1 >conftest.err
13814   rm -f conftest.er1
13815   cat conftest.err >&5
13816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13817   (exit $ac_status); } &&
13818          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13819   { (case "(($ac_try" in
13820   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13821   *) ac_try_echo=$ac_try;;
13822 esac
13823 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13824   (eval "$ac_try") 2>&5
13825   ac_status=$?
13826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13827   (exit $ac_status); }; } &&
13828          { ac_try='test -s conftest$ac_exeext'
13829   { (case "(($ac_try" in
13830   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13831   *) ac_try_echo=$ac_try;;
13832 esac
13833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13834   (eval "$ac_try") 2>&5
13835   ac_status=$?
13836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13837   (exit $ac_status); }; }; then
13838   ac_cv_search_mallinfo=$ac_res
13839 else
13840   echo "$as_me: failed program was:" >&5
13841 sed 's/^/| /' conftest.$ac_ext >&5
13842
13843
13844 fi
13845
13846 rm -f core conftest.err conftest.$ac_objext \
13847       conftest$ac_exeext
13848   if test "${ac_cv_search_mallinfo+set}" = set; then
13849   break
13850 fi
13851 done
13852 if test "${ac_cv_search_mallinfo+set}" = set; then
13853   :
13854 else
13855   ac_cv_search_mallinfo=no
13856 fi
13857 rm conftest.$ac_ext
13858 LIBS=$ac_func_search_save_LIBS
13859 fi
13860 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
13861 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
13862 ac_res=$ac_cv_search_mallinfo
13863 if test "$ac_res" != no; then
13864   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13865
13866 cat >>confdefs.h <<\_ACEOF
13867 #define HAVE_MALLINFO 1
13868 _ACEOF
13869
13870 fi
13871
13872
13873 if test "$ENABLE_THREADS" -eq 1 ; then
13874
13875 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
13876 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
13877 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
13878   echo $ECHO_N "(cached) $ECHO_C" >&6
13879 else
13880   ac_check_lib_save_LIBS=$LIBS
13881 LIBS="-lpthread  $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 pthread_mutex_init ();
13896 int
13897 main ()
13898 {
13899 return pthread_mutex_init ();
13900   ;
13901   return 0;
13902 }
13903 _ACEOF
13904 rm -f conftest.$ac_objext conftest$ac_exeext
13905 if { (ac_try="$ac_link"
13906 case "(($ac_try" in
13907   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13908   *) ac_try_echo=$ac_try;;
13909 esac
13910 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13911   (eval "$ac_link") 2>conftest.er1
13912   ac_status=$?
13913   grep -v '^ *+' conftest.er1 >conftest.err
13914   rm -f conftest.er1
13915   cat conftest.err >&5
13916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13917   (exit $ac_status); } &&
13918          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13919   { (case "(($ac_try" in
13920   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13921   *) ac_try_echo=$ac_try;;
13922 esac
13923 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13924   (eval "$ac_try") 2>&5
13925   ac_status=$?
13926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13927   (exit $ac_status); }; } &&
13928          { ac_try='test -s conftest$ac_exeext'
13929   { (case "(($ac_try" in
13930   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13931   *) ac_try_echo=$ac_try;;
13932 esac
13933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13934   (eval "$ac_try") 2>&5
13935   ac_status=$?
13936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13937   (exit $ac_status); }; }; then
13938   ac_cv_lib_pthread_pthread_mutex_init=yes
13939 else
13940   echo "$as_me: failed program was:" >&5
13941 sed 's/^/| /' conftest.$ac_ext >&5
13942
13943         ac_cv_lib_pthread_pthread_mutex_init=no
13944 fi
13945
13946 rm -f core conftest.err conftest.$ac_objext \
13947       conftest$ac_exeext conftest.$ac_ext
13948 LIBS=$ac_check_lib_save_LIBS
13949 fi
13950 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
13951 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
13952 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
13953   cat >>confdefs.h <<_ACEOF
13954 #define HAVE_LIBPTHREAD 1
13955 _ACEOF
13956
13957   LIBS="-lpthread $LIBS"
13958
13959 fi
13960
13961   { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
13962 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
13963 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
13964   echo $ECHO_N "(cached) $ECHO_C" >&6
13965 else
13966   ac_func_search_save_LIBS=$LIBS
13967 cat >conftest.$ac_ext <<_ACEOF
13968 /* confdefs.h.  */
13969 _ACEOF
13970 cat confdefs.h >>conftest.$ac_ext
13971 cat >>conftest.$ac_ext <<_ACEOF
13972 /* end confdefs.h.  */
13973
13974 /* Override any GCC internal prototype to avoid an error.
13975    Use char because int might match the return type of a GCC
13976    builtin and then its argument prototype would still apply.  */
13977 #ifdef __cplusplus
13978 extern "C"
13979 #endif
13980 char pthread_mutex_lock ();
13981 int
13982 main ()
13983 {
13984 return pthread_mutex_lock ();
13985   ;
13986   return 0;
13987 }
13988 _ACEOF
13989 for ac_lib in '' pthread; do
13990   if test -z "$ac_lib"; then
13991     ac_res="none required"
13992   else
13993     ac_res=-l$ac_lib
13994     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13995   fi
13996   rm -f conftest.$ac_objext conftest$ac_exeext
13997 if { (ac_try="$ac_link"
13998 case "(($ac_try" in
13999   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14000   *) ac_try_echo=$ac_try;;
14001 esac
14002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14003   (eval "$ac_link") 2>conftest.er1
14004   ac_status=$?
14005   grep -v '^ *+' conftest.er1 >conftest.err
14006   rm -f conftest.er1
14007   cat conftest.err >&5
14008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14009   (exit $ac_status); } &&
14010          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14011   { (case "(($ac_try" in
14012   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14013   *) ac_try_echo=$ac_try;;
14014 esac
14015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14016   (eval "$ac_try") 2>&5
14017   ac_status=$?
14018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14019   (exit $ac_status); }; } &&
14020          { ac_try='test -s conftest$ac_exeext'
14021   { (case "(($ac_try" in
14022   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14023   *) ac_try_echo=$ac_try;;
14024 esac
14025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14026   (eval "$ac_try") 2>&5
14027   ac_status=$?
14028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14029   (exit $ac_status); }; }; then
14030   ac_cv_search_pthread_mutex_lock=$ac_res
14031 else
14032   echo "$as_me: failed program was:" >&5
14033 sed 's/^/| /' conftest.$ac_ext >&5
14034
14035
14036 fi
14037
14038 rm -f core conftest.err conftest.$ac_objext \
14039       conftest$ac_exeext
14040   if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
14041   break
14042 fi
14043 done
14044 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
14045   :
14046 else
14047   ac_cv_search_pthread_mutex_lock=no
14048 fi
14049 rm conftest.$ac_ext
14050 LIBS=$ac_func_search_save_LIBS
14051 fi
14052 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
14053 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
14054 ac_res=$ac_cv_search_pthread_mutex_lock
14055 if test "$ac_res" != no; then
14056   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14057
14058 cat >>confdefs.h <<\_ACEOF
14059 #define HAVE_PTHREAD_MUTEX_LOCK 1
14060 _ACEOF
14061
14062 fi
14063
14064   { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
14065 echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
14066 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
14067   echo $ECHO_N "(cached) $ECHO_C" >&6
14068 else
14069   ac_func_search_save_LIBS=$LIBS
14070 cat >conftest.$ac_ext <<_ACEOF
14071 /* confdefs.h.  */
14072 _ACEOF
14073 cat confdefs.h >>conftest.$ac_ext
14074 cat >>conftest.$ac_ext <<_ACEOF
14075 /* end confdefs.h.  */
14076
14077 /* Override any GCC internal prototype to avoid an error.
14078    Use char because int might match the return type of a GCC
14079    builtin and then its argument prototype would still apply.  */
14080 #ifdef __cplusplus
14081 extern "C"
14082 #endif
14083 char pthread_rwlock_init ();
14084 int
14085 main ()
14086 {
14087 return pthread_rwlock_init ();
14088   ;
14089   return 0;
14090 }
14091 _ACEOF
14092 for ac_lib in '' pthread; do
14093   if test -z "$ac_lib"; then
14094     ac_res="none required"
14095   else
14096     ac_res=-l$ac_lib
14097     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14098   fi
14099   rm -f conftest.$ac_objext conftest$ac_exeext
14100 if { (ac_try="$ac_link"
14101 case "(($ac_try" in
14102   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14103   *) ac_try_echo=$ac_try;;
14104 esac
14105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14106   (eval "$ac_link") 2>conftest.er1
14107   ac_status=$?
14108   grep -v '^ *+' conftest.er1 >conftest.err
14109   rm -f conftest.er1
14110   cat conftest.err >&5
14111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14112   (exit $ac_status); } &&
14113          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14114   { (case "(($ac_try" in
14115   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14116   *) ac_try_echo=$ac_try;;
14117 esac
14118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14119   (eval "$ac_try") 2>&5
14120   ac_status=$?
14121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14122   (exit $ac_status); }; } &&
14123          { ac_try='test -s conftest$ac_exeext'
14124   { (case "(($ac_try" in
14125   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14126   *) ac_try_echo=$ac_try;;
14127 esac
14128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14129   (eval "$ac_try") 2>&5
14130   ac_status=$?
14131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14132   (exit $ac_status); }; }; then
14133   ac_cv_search_pthread_rwlock_init=$ac_res
14134 else
14135   echo "$as_me: failed program was:" >&5
14136 sed 's/^/| /' conftest.$ac_ext >&5
14137
14138
14139 fi
14140
14141 rm -f core conftest.err conftest.$ac_objext \
14142       conftest$ac_exeext
14143   if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
14144   break
14145 fi
14146 done
14147 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
14148   :
14149 else
14150   ac_cv_search_pthread_rwlock_init=no
14151 fi
14152 rm conftest.$ac_ext
14153 LIBS=$ac_func_search_save_LIBS
14154 fi
14155 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
14156 echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
14157 ac_res=$ac_cv_search_pthread_rwlock_init
14158 if test "$ac_res" != no; then
14159   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14160
14161 cat >>confdefs.h <<\_ACEOF
14162 #define HAVE_PTHREAD_RWLOCK_INIT 1
14163 _ACEOF
14164
14165 fi
14166
14167   { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
14168 echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
14169 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
14170   echo $ECHO_N "(cached) $ECHO_C" >&6
14171 else
14172   ac_func_search_save_LIBS=$LIBS
14173 cat >conftest.$ac_ext <<_ACEOF
14174 /* confdefs.h.  */
14175 _ACEOF
14176 cat confdefs.h >>conftest.$ac_ext
14177 cat >>conftest.$ac_ext <<_ACEOF
14178 /* end confdefs.h.  */
14179
14180 /* Override any GCC internal prototype to avoid an error.
14181    Use char because int might match the return type of a GCC
14182    builtin and then its argument prototype would still apply.  */
14183 #ifdef __cplusplus
14184 extern "C"
14185 #endif
14186 char pthread_getspecific ();
14187 int
14188 main ()
14189 {
14190 return pthread_getspecific ();
14191   ;
14192   return 0;
14193 }
14194 _ACEOF
14195 for ac_lib in '' pthread; do
14196   if test -z "$ac_lib"; then
14197     ac_res="none required"
14198   else
14199     ac_res=-l$ac_lib
14200     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14201   fi
14202   rm -f conftest.$ac_objext conftest$ac_exeext
14203 if { (ac_try="$ac_link"
14204 case "(($ac_try" in
14205   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14206   *) ac_try_echo=$ac_try;;
14207 esac
14208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14209   (eval "$ac_link") 2>conftest.er1
14210   ac_status=$?
14211   grep -v '^ *+' conftest.er1 >conftest.err
14212   rm -f conftest.er1
14213   cat conftest.err >&5
14214   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14215   (exit $ac_status); } &&
14216          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14217   { (case "(($ac_try" in
14218   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14219   *) ac_try_echo=$ac_try;;
14220 esac
14221 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14222   (eval "$ac_try") 2>&5
14223   ac_status=$?
14224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14225   (exit $ac_status); }; } &&
14226          { ac_try='test -s conftest$ac_exeext'
14227   { (case "(($ac_try" in
14228   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14229   *) ac_try_echo=$ac_try;;
14230 esac
14231 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14232   (eval "$ac_try") 2>&5
14233   ac_status=$?
14234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14235   (exit $ac_status); }; }; then
14236   ac_cv_search_pthread_getspecific=$ac_res
14237 else
14238   echo "$as_me: failed program was:" >&5
14239 sed 's/^/| /' conftest.$ac_ext >&5
14240
14241
14242 fi
14243
14244 rm -f core conftest.err conftest.$ac_objext \
14245       conftest$ac_exeext
14246   if test "${ac_cv_search_pthread_getspecific+set}" = set; then
14247   break
14248 fi
14249 done
14250 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
14251   :
14252 else
14253   ac_cv_search_pthread_getspecific=no
14254 fi
14255 rm conftest.$ac_ext
14256 LIBS=$ac_func_search_save_LIBS
14257 fi
14258 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
14259 echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
14260 ac_res=$ac_cv_search_pthread_getspecific
14261 if test "$ac_res" != no; then
14262   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14263
14264 cat >>confdefs.h <<\_ACEOF
14265 #define HAVE_PTHREAD_GETSPECIFIC 1
14266 _ACEOF
14267
14268 fi
14269
14270 fi
14271
14272
14273 # Check whether --with-udis86 was given.
14274 if test "${with_udis86+set}" = set; then
14275   withval=$with_udis86;
14276       USE_UDIS86=1
14277
14278       case "$withval" in
14279         /usr/lib|yes) ;;
14280         *) LDFLAGS="$LDFLAGS -L${withval}" ;;
14281       esac
14282
14283 { echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
14284 echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
14285 if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
14286   echo $ECHO_N "(cached) $ECHO_C" >&6
14287 else
14288   ac_check_lib_save_LIBS=$LIBS
14289 LIBS="-ludis86  $LIBS"
14290 cat >conftest.$ac_ext <<_ACEOF
14291 /* confdefs.h.  */
14292 _ACEOF
14293 cat confdefs.h >>conftest.$ac_ext
14294 cat >>conftest.$ac_ext <<_ACEOF
14295 /* end confdefs.h.  */
14296
14297 /* Override any GCC internal prototype to avoid an error.
14298    Use char because int might match the return type of a GCC
14299    builtin and then its argument prototype would still apply.  */
14300 #ifdef __cplusplus
14301 extern "C"
14302 #endif
14303 char ud_init ();
14304 int
14305 main ()
14306 {
14307 return ud_init ();
14308   ;
14309   return 0;
14310 }
14311 _ACEOF
14312 rm -f conftest.$ac_objext conftest$ac_exeext
14313 if { (ac_try="$ac_link"
14314 case "(($ac_try" in
14315   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14316   *) ac_try_echo=$ac_try;;
14317 esac
14318 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14319   (eval "$ac_link") 2>conftest.er1
14320   ac_status=$?
14321   grep -v '^ *+' conftest.er1 >conftest.err
14322   rm -f conftest.er1
14323   cat conftest.err >&5
14324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14325   (exit $ac_status); } &&
14326          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14327   { (case "(($ac_try" in
14328   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14329   *) ac_try_echo=$ac_try;;
14330 esac
14331 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14332   (eval "$ac_try") 2>&5
14333   ac_status=$?
14334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14335   (exit $ac_status); }; } &&
14336          { ac_try='test -s conftest$ac_exeext'
14337   { (case "(($ac_try" in
14338   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14339   *) ac_try_echo=$ac_try;;
14340 esac
14341 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14342   (eval "$ac_try") 2>&5
14343   ac_status=$?
14344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14345   (exit $ac_status); }; }; then
14346   ac_cv_lib_udis86_ud_init=yes
14347 else
14348   echo "$as_me: failed program was:" >&5
14349 sed 's/^/| /' conftest.$ac_ext >&5
14350
14351         ac_cv_lib_udis86_ud_init=no
14352 fi
14353
14354 rm -f core conftest.err conftest.$ac_objext \
14355       conftest$ac_exeext conftest.$ac_ext
14356 LIBS=$ac_check_lib_save_LIBS
14357 fi
14358 { echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
14359 echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
14360 if test $ac_cv_lib_udis86_ud_init = yes; then
14361   cat >>confdefs.h <<_ACEOF
14362 #define HAVE_LIBUDIS86 1
14363 _ACEOF
14364
14365   LIBS="-ludis86 $LIBS"
14366
14367 else
14368
14369         echo "Error! You need to have libudis86 around."
14370         exit -1
14371
14372 fi
14373
14374
14375 else
14376   USE_UDIS86=0
14377
14378 fi
14379
14380
14381 cat >>confdefs.h <<_ACEOF
14382 #define USE_UDIS86 $USE_UDIS86
14383 _ACEOF
14384
14385
14386
14387 # Check whether --with-oprofile was given.
14388 if test "${with_oprofile+set}" = set; then
14389   withval=$with_oprofile;
14390       USE_OPROFILE=1
14391
14392       case "$withval" in
14393         /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
14394         no) llvm_cv_oppath=
14395             USE_OPROFILE=0
14396  ;;
14397         *) llvm_cv_oppath="${withval}/lib/oprofile"
14398            CPPFLAGS="-I${withval}/include";;
14399       esac
14400       if test -n "$llvm_cv_oppath" ; then
14401         LIBS="$LIBS -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
14402                                         { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
14403 echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
14404 if test "${ac_cv_search_bfd_init+set}" = set; then
14405   echo $ECHO_N "(cached) $ECHO_C" >&6
14406 else
14407   ac_func_search_save_LIBS=$LIBS
14408 cat >conftest.$ac_ext <<_ACEOF
14409 /* confdefs.h.  */
14410 _ACEOF
14411 cat confdefs.h >>conftest.$ac_ext
14412 cat >>conftest.$ac_ext <<_ACEOF
14413 /* end confdefs.h.  */
14414
14415 /* Override any GCC internal prototype to avoid an error.
14416    Use char because int might match the return type of a GCC
14417    builtin and then its argument prototype would still apply.  */
14418 #ifdef __cplusplus
14419 extern "C"
14420 #endif
14421 char bfd_init ();
14422 int
14423 main ()
14424 {
14425 return bfd_init ();
14426   ;
14427   return 0;
14428 }
14429 _ACEOF
14430 for ac_lib in '' bfd; do
14431   if test -z "$ac_lib"; then
14432     ac_res="none required"
14433   else
14434     ac_res=-l$ac_lib
14435     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14436   fi
14437   rm -f conftest.$ac_objext conftest$ac_exeext
14438 if { (ac_try="$ac_link"
14439 case "(($ac_try" in
14440   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14441   *) ac_try_echo=$ac_try;;
14442 esac
14443 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14444   (eval "$ac_link") 2>conftest.er1
14445   ac_status=$?
14446   grep -v '^ *+' conftest.er1 >conftest.err
14447   rm -f conftest.er1
14448   cat conftest.err >&5
14449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14450   (exit $ac_status); } &&
14451          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14452   { (case "(($ac_try" in
14453   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14454   *) ac_try_echo=$ac_try;;
14455 esac
14456 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14457   (eval "$ac_try") 2>&5
14458   ac_status=$?
14459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14460   (exit $ac_status); }; } &&
14461          { ac_try='test -s conftest$ac_exeext'
14462   { (case "(($ac_try" in
14463   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14464   *) ac_try_echo=$ac_try;;
14465 esac
14466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14467   (eval "$ac_try") 2>&5
14468   ac_status=$?
14469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14470   (exit $ac_status); }; }; then
14471   ac_cv_search_bfd_init=$ac_res
14472 else
14473   echo "$as_me: failed program was:" >&5
14474 sed 's/^/| /' conftest.$ac_ext >&5
14475
14476
14477 fi
14478
14479 rm -f core conftest.err conftest.$ac_objext \
14480       conftest$ac_exeext
14481   if test "${ac_cv_search_bfd_init+set}" = set; then
14482   break
14483 fi
14484 done
14485 if test "${ac_cv_search_bfd_init+set}" = set; then
14486   :
14487 else
14488   ac_cv_search_bfd_init=no
14489 fi
14490 rm conftest.$ac_ext
14491 LIBS=$ac_func_search_save_LIBS
14492 fi
14493 { echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
14494 echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
14495 ac_res=$ac_cv_search_bfd_init
14496 if test "$ac_res" != no; then
14497   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14498
14499 fi
14500
14501         { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
14502 echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
14503 if test "${ac_cv_search_op_open_agent+set}" = set; then
14504   echo $ECHO_N "(cached) $ECHO_C" >&6
14505 else
14506   ac_func_search_save_LIBS=$LIBS
14507 cat >conftest.$ac_ext <<_ACEOF
14508 /* confdefs.h.  */
14509 _ACEOF
14510 cat confdefs.h >>conftest.$ac_ext
14511 cat >>conftest.$ac_ext <<_ACEOF
14512 /* end confdefs.h.  */
14513
14514 /* Override any GCC internal prototype to avoid an error.
14515    Use char because int might match the return type of a GCC
14516    builtin and then its argument prototype would still apply.  */
14517 #ifdef __cplusplus
14518 extern "C"
14519 #endif
14520 char op_open_agent ();
14521 int
14522 main ()
14523 {
14524 return op_open_agent ();
14525   ;
14526   return 0;
14527 }
14528 _ACEOF
14529 for ac_lib in '' opagent; do
14530   if test -z "$ac_lib"; then
14531     ac_res="none required"
14532   else
14533     ac_res=-l$ac_lib
14534     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14535   fi
14536   rm -f conftest.$ac_objext conftest$ac_exeext
14537 if { (ac_try="$ac_link"
14538 case "(($ac_try" in
14539   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14540   *) ac_try_echo=$ac_try;;
14541 esac
14542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14543   (eval "$ac_link") 2>conftest.er1
14544   ac_status=$?
14545   grep -v '^ *+' conftest.er1 >conftest.err
14546   rm -f conftest.er1
14547   cat conftest.err >&5
14548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14549   (exit $ac_status); } &&
14550          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14551   { (case "(($ac_try" in
14552   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14553   *) ac_try_echo=$ac_try;;
14554 esac
14555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14556   (eval "$ac_try") 2>&5
14557   ac_status=$?
14558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14559   (exit $ac_status); }; } &&
14560          { ac_try='test -s conftest$ac_exeext'
14561   { (case "(($ac_try" in
14562   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14563   *) ac_try_echo=$ac_try;;
14564 esac
14565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14566   (eval "$ac_try") 2>&5
14567   ac_status=$?
14568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14569   (exit $ac_status); }; }; then
14570   ac_cv_search_op_open_agent=$ac_res
14571 else
14572   echo "$as_me: failed program was:" >&5
14573 sed 's/^/| /' conftest.$ac_ext >&5
14574
14575
14576 fi
14577
14578 rm -f core conftest.err conftest.$ac_objext \
14579       conftest$ac_exeext
14580   if test "${ac_cv_search_op_open_agent+set}" = set; then
14581   break
14582 fi
14583 done
14584 if test "${ac_cv_search_op_open_agent+set}" = set; then
14585   :
14586 else
14587   ac_cv_search_op_open_agent=no
14588 fi
14589 rm conftest.$ac_ext
14590 LIBS=$ac_func_search_save_LIBS
14591 fi
14592 { echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
14593 echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
14594 ac_res=$ac_cv_search_op_open_agent
14595 if test "$ac_res" != no; then
14596   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14597
14598 else
14599
14600           echo "Error! You need to have libopagent around."
14601           exit -1
14602
14603 fi
14604
14605         if test "${ac_cv_header_opagent_h+set}" = set; then
14606   { echo "$as_me:$LINENO: checking for opagent.h" >&5
14607 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
14608 if test "${ac_cv_header_opagent_h+set}" = set; then
14609   echo $ECHO_N "(cached) $ECHO_C" >&6
14610 fi
14611 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
14612 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
14613 else
14614   # Is the header compilable?
14615 { echo "$as_me:$LINENO: checking opagent.h usability" >&5
14616 echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
14617 cat >conftest.$ac_ext <<_ACEOF
14618 /* confdefs.h.  */
14619 _ACEOF
14620 cat confdefs.h >>conftest.$ac_ext
14621 cat >>conftest.$ac_ext <<_ACEOF
14622 /* end confdefs.h.  */
14623 $ac_includes_default
14624 #include <opagent.h>
14625 _ACEOF
14626 rm -f conftest.$ac_objext
14627 if { (ac_try="$ac_compile"
14628 case "(($ac_try" in
14629   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14630   *) ac_try_echo=$ac_try;;
14631 esac
14632 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14633   (eval "$ac_compile") 2>conftest.er1
14634   ac_status=$?
14635   grep -v '^ *+' conftest.er1 >conftest.err
14636   rm -f conftest.er1
14637   cat conftest.err >&5
14638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14639   (exit $ac_status); } &&
14640          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14641   { (case "(($ac_try" in
14642   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14643   *) ac_try_echo=$ac_try;;
14644 esac
14645 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14646   (eval "$ac_try") 2>&5
14647   ac_status=$?
14648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14649   (exit $ac_status); }; } &&
14650          { ac_try='test -s conftest.$ac_objext'
14651   { (case "(($ac_try" in
14652   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14653   *) ac_try_echo=$ac_try;;
14654 esac
14655 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14656   (eval "$ac_try") 2>&5
14657   ac_status=$?
14658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14659   (exit $ac_status); }; }; then
14660   ac_header_compiler=yes
14661 else
14662   echo "$as_me: failed program was:" >&5
14663 sed 's/^/| /' conftest.$ac_ext >&5
14664
14665         ac_header_compiler=no
14666 fi
14667
14668 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14669 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14670 echo "${ECHO_T}$ac_header_compiler" >&6; }
14671
14672 # Is the header present?
14673 { echo "$as_me:$LINENO: checking opagent.h presence" >&5
14674 echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
14675 cat >conftest.$ac_ext <<_ACEOF
14676 /* confdefs.h.  */
14677 _ACEOF
14678 cat confdefs.h >>conftest.$ac_ext
14679 cat >>conftest.$ac_ext <<_ACEOF
14680 /* end confdefs.h.  */
14681 #include <opagent.h>
14682 _ACEOF
14683 if { (ac_try="$ac_cpp conftest.$ac_ext"
14684 case "(($ac_try" in
14685   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14686   *) ac_try_echo=$ac_try;;
14687 esac
14688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14689   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14690   ac_status=$?
14691   grep -v '^ *+' conftest.er1 >conftest.err
14692   rm -f conftest.er1
14693   cat conftest.err >&5
14694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14695   (exit $ac_status); } >/dev/null; then
14696   if test -s conftest.err; then
14697     ac_cpp_err=$ac_c_preproc_warn_flag
14698     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14699   else
14700     ac_cpp_err=
14701   fi
14702 else
14703   ac_cpp_err=yes
14704 fi
14705 if test -z "$ac_cpp_err"; then
14706   ac_header_preproc=yes
14707 else
14708   echo "$as_me: failed program was:" >&5
14709 sed 's/^/| /' conftest.$ac_ext >&5
14710
14711   ac_header_preproc=no
14712 fi
14713
14714 rm -f conftest.err conftest.$ac_ext
14715 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14716 echo "${ECHO_T}$ac_header_preproc" >&6; }
14717
14718 # So?  What about this header?
14719 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14720   yes:no: )
14721     { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
14722 echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14723     { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
14724 echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
14725     ac_header_preproc=yes
14726     ;;
14727   no:yes:* )
14728     { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
14729 echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
14730     { echo "$as_me:$LINENO: WARNING: opagent.h:     check for missing prerequisite headers?" >&5
14731 echo "$as_me: WARNING: opagent.h:     check for missing prerequisite headers?" >&2;}
14732     { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
14733 echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
14734     { echo "$as_me:$LINENO: WARNING: opagent.h:     section \"Present But Cannot Be Compiled\"" >&5
14735 echo "$as_me: WARNING: opagent.h:     section \"Present But Cannot Be Compiled\"" >&2;}
14736     { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
14737 echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
14738     { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
14739 echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
14740     ( cat <<\_ASBOX
14741 ## ----------------------------------- ##
14742 ## Report this to llvmbugs@cs.uiuc.edu ##
14743 ## ----------------------------------- ##
14744 _ASBOX
14745      ) | sed "s/^/$as_me: WARNING:     /" >&2
14746     ;;
14747 esac
14748 { echo "$as_me:$LINENO: checking for opagent.h" >&5
14749 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
14750 if test "${ac_cv_header_opagent_h+set}" = set; then
14751   echo $ECHO_N "(cached) $ECHO_C" >&6
14752 else
14753   ac_cv_header_opagent_h=$ac_header_preproc
14754 fi
14755 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
14756 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
14757
14758 fi
14759 if test $ac_cv_header_opagent_h = yes; then
14760   :
14761 else
14762
14763           echo "Error! You need to have opagent.h around."
14764           exit -1
14765
14766 fi
14767
14768
14769       fi
14770
14771 else
14772
14773       USE_OPROFILE=0
14774
14775
14776 fi
14777
14778
14779 cat >>confdefs.h <<_ACEOF
14780 #define USE_OPROFILE $USE_OPROFILE
14781 _ACEOF
14782
14783
14784
14785
14786
14787
14788
14789
14790 ac_header_dirent=no
14791 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
14792   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
14793 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
14794 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
14795 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14796   echo $ECHO_N "(cached) $ECHO_C" >&6
14797 else
14798   cat >conftest.$ac_ext <<_ACEOF
14799 /* confdefs.h.  */
14800 _ACEOF
14801 cat confdefs.h >>conftest.$ac_ext
14802 cat >>conftest.$ac_ext <<_ACEOF
14803 /* end confdefs.h.  */
14804 #include <sys/types.h>
14805 #include <$ac_hdr>
14806
14807 int
14808 main ()
14809 {
14810 if ((DIR *) 0)
14811 return 0;
14812   ;
14813   return 0;
14814 }
14815 _ACEOF
14816 rm -f conftest.$ac_objext
14817 if { (ac_try="$ac_compile"
14818 case "(($ac_try" in
14819   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14820   *) ac_try_echo=$ac_try;;
14821 esac
14822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14823   (eval "$ac_compile") 2>conftest.er1
14824   ac_status=$?
14825   grep -v '^ *+' conftest.er1 >conftest.err
14826   rm -f conftest.er1
14827   cat conftest.err >&5
14828   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14829   (exit $ac_status); } &&
14830          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14831   { (case "(($ac_try" in
14832   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14833   *) ac_try_echo=$ac_try;;
14834 esac
14835 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14836   (eval "$ac_try") 2>&5
14837   ac_status=$?
14838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14839   (exit $ac_status); }; } &&
14840          { ac_try='test -s conftest.$ac_objext'
14841   { (case "(($ac_try" in
14842   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14843   *) ac_try_echo=$ac_try;;
14844 esac
14845 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14846   (eval "$ac_try") 2>&5
14847   ac_status=$?
14848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14849   (exit $ac_status); }; }; then
14850   eval "$as_ac_Header=yes"
14851 else
14852   echo "$as_me: failed program was:" >&5
14853 sed 's/^/| /' conftest.$ac_ext >&5
14854
14855         eval "$as_ac_Header=no"
14856 fi
14857
14858 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14859 fi
14860 ac_res=`eval echo '${'$as_ac_Header'}'`
14861                { echo "$as_me:$LINENO: result: $ac_res" >&5
14862 echo "${ECHO_T}$ac_res" >&6; }
14863 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14864   cat >>confdefs.h <<_ACEOF
14865 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
14866 _ACEOF
14867
14868 ac_header_dirent=$ac_hdr; break
14869 fi
14870
14871 done
14872 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
14873 if test $ac_header_dirent = dirent.h; then
14874   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
14875 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
14876 if test "${ac_cv_search_opendir+set}" = set; then
14877   echo $ECHO_N "(cached) $ECHO_C" >&6
14878 else
14879   ac_func_search_save_LIBS=$LIBS
14880 cat >conftest.$ac_ext <<_ACEOF
14881 /* confdefs.h.  */
14882 _ACEOF
14883 cat confdefs.h >>conftest.$ac_ext
14884 cat >>conftest.$ac_ext <<_ACEOF
14885 /* end confdefs.h.  */
14886
14887 /* Override any GCC internal prototype to avoid an error.
14888    Use char because int might match the return type of a GCC
14889    builtin and then its argument prototype would still apply.  */
14890 #ifdef __cplusplus
14891 extern "C"
14892 #endif
14893 char opendir ();
14894 int
14895 main ()
14896 {
14897 return opendir ();
14898   ;
14899   return 0;
14900 }
14901 _ACEOF
14902 for ac_lib in '' dir; do
14903   if test -z "$ac_lib"; then
14904     ac_res="none required"
14905   else
14906     ac_res=-l$ac_lib
14907     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14908   fi
14909   rm -f conftest.$ac_objext conftest$ac_exeext
14910 if { (ac_try="$ac_link"
14911 case "(($ac_try" in
14912   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14913   *) ac_try_echo=$ac_try;;
14914 esac
14915 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14916   (eval "$ac_link") 2>conftest.er1
14917   ac_status=$?
14918   grep -v '^ *+' conftest.er1 >conftest.err
14919   rm -f conftest.er1
14920   cat conftest.err >&5
14921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14922   (exit $ac_status); } &&
14923          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14924   { (case "(($ac_try" in
14925   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14926   *) ac_try_echo=$ac_try;;
14927 esac
14928 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14929   (eval "$ac_try") 2>&5
14930   ac_status=$?
14931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14932   (exit $ac_status); }; } &&
14933          { ac_try='test -s conftest$ac_exeext'
14934   { (case "(($ac_try" in
14935   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14936   *) ac_try_echo=$ac_try;;
14937 esac
14938 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14939   (eval "$ac_try") 2>&5
14940   ac_status=$?
14941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14942   (exit $ac_status); }; }; then
14943   ac_cv_search_opendir=$ac_res
14944 else
14945   echo "$as_me: failed program was:" >&5
14946 sed 's/^/| /' conftest.$ac_ext >&5
14947
14948
14949 fi
14950
14951 rm -f core conftest.err conftest.$ac_objext \
14952       conftest$ac_exeext
14953   if test "${ac_cv_search_opendir+set}" = set; then
14954   break
14955 fi
14956 done
14957 if test "${ac_cv_search_opendir+set}" = set; then
14958   :
14959 else
14960   ac_cv_search_opendir=no
14961 fi
14962 rm conftest.$ac_ext
14963 LIBS=$ac_func_search_save_LIBS
14964 fi
14965 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14966 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
14967 ac_res=$ac_cv_search_opendir
14968 if test "$ac_res" != no; then
14969   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14970
14971 fi
14972
14973 else
14974   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
14975 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
14976 if test "${ac_cv_search_opendir+set}" = set; then
14977   echo $ECHO_N "(cached) $ECHO_C" >&6
14978 else
14979   ac_func_search_save_LIBS=$LIBS
14980 cat >conftest.$ac_ext <<_ACEOF
14981 /* confdefs.h.  */
14982 _ACEOF
14983 cat confdefs.h >>conftest.$ac_ext
14984 cat >>conftest.$ac_ext <<_ACEOF
14985 /* end confdefs.h.  */
14986
14987 /* Override any GCC internal prototype to avoid an error.
14988    Use char because int might match the return type of a GCC
14989    builtin and then its argument prototype would still apply.  */
14990 #ifdef __cplusplus
14991 extern "C"
14992 #endif
14993 char opendir ();
14994 int
14995 main ()
14996 {
14997 return opendir ();
14998   ;
14999   return 0;
15000 }
15001 _ACEOF
15002 for ac_lib in '' x; do
15003   if test -z "$ac_lib"; then
15004     ac_res="none required"
15005   else
15006     ac_res=-l$ac_lib
15007     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
15008   fi
15009   rm -f conftest.$ac_objext conftest$ac_exeext
15010 if { (ac_try="$ac_link"
15011 case "(($ac_try" in
15012   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15013   *) ac_try_echo=$ac_try;;
15014 esac
15015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15016   (eval "$ac_link") 2>conftest.er1
15017   ac_status=$?
15018   grep -v '^ *+' conftest.er1 >conftest.err
15019   rm -f conftest.er1
15020   cat conftest.err >&5
15021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15022   (exit $ac_status); } &&
15023          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15024   { (case "(($ac_try" in
15025   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15026   *) ac_try_echo=$ac_try;;
15027 esac
15028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15029   (eval "$ac_try") 2>&5
15030   ac_status=$?
15031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15032   (exit $ac_status); }; } &&
15033          { ac_try='test -s conftest$ac_exeext'
15034   { (case "(($ac_try" in
15035   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15036   *) ac_try_echo=$ac_try;;
15037 esac
15038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15039   (eval "$ac_try") 2>&5
15040   ac_status=$?
15041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15042   (exit $ac_status); }; }; then
15043   ac_cv_search_opendir=$ac_res
15044 else
15045   echo "$as_me: failed program was:" >&5
15046 sed 's/^/| /' conftest.$ac_ext >&5
15047
15048
15049 fi
15050
15051 rm -f core conftest.err conftest.$ac_objext \
15052       conftest$ac_exeext
15053   if test "${ac_cv_search_opendir+set}" = set; then
15054   break
15055 fi
15056 done
15057 if test "${ac_cv_search_opendir+set}" = set; then
15058   :
15059 else
15060   ac_cv_search_opendir=no
15061 fi
15062 rm conftest.$ac_ext
15063 LIBS=$ac_func_search_save_LIBS
15064 fi
15065 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
15066 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
15067 ac_res=$ac_cv_search_opendir
15068 if test "$ac_res" != no; then
15069   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15070
15071 fi
15072
15073 fi
15074
15075 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
15076 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
15077 if test "${ac_cv_header_mmap_anon+set}" = set; then
15078   echo $ECHO_N "(cached) $ECHO_C" >&6
15079 else
15080    ac_ext=c
15081 ac_cpp='$CPP $CPPFLAGS'
15082 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15083 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15084 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15085
15086   cat >conftest.$ac_ext <<_ACEOF
15087 /* confdefs.h.  */
15088 _ACEOF
15089 cat confdefs.h >>conftest.$ac_ext
15090 cat >>conftest.$ac_ext <<_ACEOF
15091 /* end confdefs.h.  */
15092 #include <sys/mman.h>
15093 #include <unistd.h>
15094 #include <fcntl.h>
15095 int
15096 main ()
15097 {
15098 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
15099   ;
15100   return 0;
15101 }
15102 _ACEOF
15103 rm -f conftest.$ac_objext
15104 if { (ac_try="$ac_compile"
15105 case "(($ac_try" in
15106   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15107   *) ac_try_echo=$ac_try;;
15108 esac
15109 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15110   (eval "$ac_compile") 2>conftest.er1
15111   ac_status=$?
15112   grep -v '^ *+' conftest.er1 >conftest.err
15113   rm -f conftest.er1
15114   cat conftest.err >&5
15115   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15116   (exit $ac_status); } &&
15117          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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_try") 2>&5
15124   ac_status=$?
15125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15126   (exit $ac_status); }; } &&
15127          { ac_try='test -s conftest.$ac_objext'
15128   { (case "(($ac_try" in
15129   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15130   *) ac_try_echo=$ac_try;;
15131 esac
15132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15133   (eval "$ac_try") 2>&5
15134   ac_status=$?
15135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15136   (exit $ac_status); }; }; then
15137   ac_cv_header_mmap_anon=yes
15138 else
15139   echo "$as_me: failed program was:" >&5
15140 sed 's/^/| /' conftest.$ac_ext >&5
15141
15142         ac_cv_header_mmap_anon=no
15143 fi
15144
15145 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15146   ac_ext=c
15147 ac_cpp='$CPP $CPPFLAGS'
15148 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15149 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15150 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15151
15152
15153 fi
15154 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
15155 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
15156 if test "$ac_cv_header_mmap_anon" = yes; then
15157
15158 cat >>confdefs.h <<\_ACEOF
15159 #define HAVE_MMAP_ANONYMOUS 1
15160 _ACEOF
15161
15162 fi
15163
15164 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
15165 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
15166 if test "${ac_cv_header_stat_broken+set}" = set; then
15167   echo $ECHO_N "(cached) $ECHO_C" >&6
15168 else
15169   cat >conftest.$ac_ext <<_ACEOF
15170 /* confdefs.h.  */
15171 _ACEOF
15172 cat confdefs.h >>conftest.$ac_ext
15173 cat >>conftest.$ac_ext <<_ACEOF
15174 /* end confdefs.h.  */
15175 #include <sys/types.h>
15176 #include <sys/stat.h>
15177
15178 #if defined S_ISBLK && defined S_IFDIR
15179 # if S_ISBLK (S_IFDIR)
15180 You lose.
15181 # endif
15182 #endif
15183
15184 #if defined S_ISBLK && defined S_IFCHR
15185 # if S_ISBLK (S_IFCHR)
15186 You lose.
15187 # endif
15188 #endif
15189
15190 #if defined S_ISLNK && defined S_IFREG
15191 # if S_ISLNK (S_IFREG)
15192 You lose.
15193 # endif
15194 #endif
15195
15196 #if defined S_ISSOCK && defined S_IFREG
15197 # if S_ISSOCK (S_IFREG)
15198 You lose.
15199 # endif
15200 #endif
15201
15202 _ACEOF
15203 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15204   $EGREP "You lose" >/dev/null 2>&1; then
15205   ac_cv_header_stat_broken=yes
15206 else
15207   ac_cv_header_stat_broken=no
15208 fi
15209 rm -f conftest*
15210
15211 fi
15212 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
15213 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
15214 if test $ac_cv_header_stat_broken = yes; then
15215
15216 cat >>confdefs.h <<\_ACEOF
15217 #define STAT_MACROS_BROKEN 1
15218 _ACEOF
15219
15220 fi
15221
15222 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
15223 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
15224 if test "${ac_cv_header_stdc+set}" = set; then
15225   echo $ECHO_N "(cached) $ECHO_C" >&6
15226 else
15227   cat >conftest.$ac_ext <<_ACEOF
15228 /* confdefs.h.  */
15229 _ACEOF
15230 cat confdefs.h >>conftest.$ac_ext
15231 cat >>conftest.$ac_ext <<_ACEOF
15232 /* end confdefs.h.  */
15233 #include <stdlib.h>
15234 #include <stdarg.h>
15235 #include <string.h>
15236 #include <float.h>
15237
15238 int
15239 main ()
15240 {
15241
15242   ;
15243   return 0;
15244 }
15245 _ACEOF
15246 rm -f conftest.$ac_objext
15247 if { (ac_try="$ac_compile"
15248 case "(($ac_try" in
15249   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15250   *) ac_try_echo=$ac_try;;
15251 esac
15252 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15253   (eval "$ac_compile") 2>conftest.er1
15254   ac_status=$?
15255   grep -v '^ *+' conftest.er1 >conftest.err
15256   rm -f conftest.er1
15257   cat conftest.err >&5
15258   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15259   (exit $ac_status); } &&
15260          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15261   { (case "(($ac_try" in
15262   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15263   *) ac_try_echo=$ac_try;;
15264 esac
15265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15266   (eval "$ac_try") 2>&5
15267   ac_status=$?
15268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15269   (exit $ac_status); }; } &&
15270          { ac_try='test -s conftest.$ac_objext'
15271   { (case "(($ac_try" in
15272   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15273   *) ac_try_echo=$ac_try;;
15274 esac
15275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15276   (eval "$ac_try") 2>&5
15277   ac_status=$?
15278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15279   (exit $ac_status); }; }; then
15280   ac_cv_header_stdc=yes
15281 else
15282   echo "$as_me: failed program was:" >&5
15283 sed 's/^/| /' conftest.$ac_ext >&5
15284
15285         ac_cv_header_stdc=no
15286 fi
15287
15288 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15289
15290 if test $ac_cv_header_stdc = yes; then
15291   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
15292   cat >conftest.$ac_ext <<_ACEOF
15293 /* confdefs.h.  */
15294 _ACEOF
15295 cat confdefs.h >>conftest.$ac_ext
15296 cat >>conftest.$ac_ext <<_ACEOF
15297 /* end confdefs.h.  */
15298 #include <string.h>
15299
15300 _ACEOF
15301 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15302   $EGREP "memchr" >/dev/null 2>&1; then
15303   :
15304 else
15305   ac_cv_header_stdc=no
15306 fi
15307 rm -f conftest*
15308
15309 fi
15310
15311 if test $ac_cv_header_stdc = yes; then
15312   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
15313   cat >conftest.$ac_ext <<_ACEOF
15314 /* confdefs.h.  */
15315 _ACEOF
15316 cat confdefs.h >>conftest.$ac_ext
15317 cat >>conftest.$ac_ext <<_ACEOF
15318 /* end confdefs.h.  */
15319 #include <stdlib.h>
15320
15321 _ACEOF
15322 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15323   $EGREP "free" >/dev/null 2>&1; then
15324   :
15325 else
15326   ac_cv_header_stdc=no
15327 fi
15328 rm -f conftest*
15329
15330 fi
15331
15332 if test $ac_cv_header_stdc = yes; then
15333   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
15334   if test "$cross_compiling" = yes; then
15335   :
15336 else
15337   cat >conftest.$ac_ext <<_ACEOF
15338 /* confdefs.h.  */
15339 _ACEOF
15340 cat confdefs.h >>conftest.$ac_ext
15341 cat >>conftest.$ac_ext <<_ACEOF
15342 /* end confdefs.h.  */
15343 #include <ctype.h>
15344 #include <stdlib.h>
15345 #if ((' ' & 0x0FF) == 0x020)
15346 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
15347 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
15348 #else
15349 # define ISLOWER(c) \
15350                    (('a' <= (c) && (c) <= 'i') \
15351                      || ('j' <= (c) && (c) <= 'r') \
15352                      || ('s' <= (c) && (c) <= 'z'))
15353 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
15354 #endif
15355
15356 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
15357 int
15358 main ()
15359 {
15360   int i;
15361   for (i = 0; i < 256; i++)
15362     if (XOR (islower (i), ISLOWER (i))
15363         || toupper (i) != TOUPPER (i))
15364       return 2;
15365   return 0;
15366 }
15367 _ACEOF
15368 rm -f conftest$ac_exeext
15369 if { (ac_try="$ac_link"
15370 case "(($ac_try" in
15371   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15372   *) ac_try_echo=$ac_try;;
15373 esac
15374 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15375   (eval "$ac_link") 2>&5
15376   ac_status=$?
15377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15378   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15379   { (case "(($ac_try" in
15380   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15381   *) ac_try_echo=$ac_try;;
15382 esac
15383 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15384   (eval "$ac_try") 2>&5
15385   ac_status=$?
15386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15387   (exit $ac_status); }; }; then
15388   :
15389 else
15390   echo "$as_me: program exited with status $ac_status" >&5
15391 echo "$as_me: failed program was:" >&5
15392 sed 's/^/| /' conftest.$ac_ext >&5
15393
15394 ( exit $ac_status )
15395 ac_cv_header_stdc=no
15396 fi
15397 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15398 fi
15399
15400
15401 fi
15402 fi
15403 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
15404 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
15405 if test $ac_cv_header_stdc = yes; then
15406
15407 cat >>confdefs.h <<\_ACEOF
15408 #define STDC_HEADERS 1
15409 _ACEOF
15410
15411 fi
15412
15413 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
15414 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
15415 if test "${ac_cv_header_sys_wait_h+set}" = set; then
15416   echo $ECHO_N "(cached) $ECHO_C" >&6
15417 else
15418   cat >conftest.$ac_ext <<_ACEOF
15419 /* confdefs.h.  */
15420 _ACEOF
15421 cat confdefs.h >>conftest.$ac_ext
15422 cat >>conftest.$ac_ext <<_ACEOF
15423 /* end confdefs.h.  */
15424 #include <sys/types.h>
15425 #include <sys/wait.h>
15426 #ifndef WEXITSTATUS
15427 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
15428 #endif
15429 #ifndef WIFEXITED
15430 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
15431 #endif
15432
15433 int
15434 main ()
15435 {
15436   int s;
15437   wait (&s);
15438   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
15439   ;
15440   return 0;
15441 }
15442 _ACEOF
15443 rm -f conftest.$ac_objext
15444 if { (ac_try="$ac_compile"
15445 case "(($ac_try" in
15446   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15447   *) ac_try_echo=$ac_try;;
15448 esac
15449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15450   (eval "$ac_compile") 2>conftest.er1
15451   ac_status=$?
15452   grep -v '^ *+' conftest.er1 >conftest.err
15453   rm -f conftest.er1
15454   cat conftest.err >&5
15455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15456   (exit $ac_status); } &&
15457          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15458   { (case "(($ac_try" in
15459   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15460   *) ac_try_echo=$ac_try;;
15461 esac
15462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15463   (eval "$ac_try") 2>&5
15464   ac_status=$?
15465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15466   (exit $ac_status); }; } &&
15467          { ac_try='test -s conftest.$ac_objext'
15468   { (case "(($ac_try" in
15469   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15470   *) ac_try_echo=$ac_try;;
15471 esac
15472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15473   (eval "$ac_try") 2>&5
15474   ac_status=$?
15475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15476   (exit $ac_status); }; }; then
15477   ac_cv_header_sys_wait_h=yes
15478 else
15479   echo "$as_me: failed program was:" >&5
15480 sed 's/^/| /' conftest.$ac_ext >&5
15481
15482         ac_cv_header_sys_wait_h=no
15483 fi
15484
15485 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15486 fi
15487 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
15488 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
15489 if test $ac_cv_header_sys_wait_h = yes; then
15490
15491 cat >>confdefs.h <<\_ACEOF
15492 #define HAVE_SYS_WAIT_H 1
15493 _ACEOF
15494
15495 fi
15496
15497 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
15498 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
15499 if test "${ac_cv_header_time+set}" = set; then
15500   echo $ECHO_N "(cached) $ECHO_C" >&6
15501 else
15502   cat >conftest.$ac_ext <<_ACEOF
15503 /* confdefs.h.  */
15504 _ACEOF
15505 cat confdefs.h >>conftest.$ac_ext
15506 cat >>conftest.$ac_ext <<_ACEOF
15507 /* end confdefs.h.  */
15508 #include <sys/types.h>
15509 #include <sys/time.h>
15510 #include <time.h>
15511
15512 int
15513 main ()
15514 {
15515 if ((struct tm *) 0)
15516 return 0;
15517   ;
15518   return 0;
15519 }
15520 _ACEOF
15521 rm -f conftest.$ac_objext
15522 if { (ac_try="$ac_compile"
15523 case "(($ac_try" in
15524   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15525   *) ac_try_echo=$ac_try;;
15526 esac
15527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15528   (eval "$ac_compile") 2>conftest.er1
15529   ac_status=$?
15530   grep -v '^ *+' conftest.er1 >conftest.err
15531   rm -f conftest.er1
15532   cat conftest.err >&5
15533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15534   (exit $ac_status); } &&
15535          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15536   { (case "(($ac_try" in
15537   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15538   *) ac_try_echo=$ac_try;;
15539 esac
15540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15541   (eval "$ac_try") 2>&5
15542   ac_status=$?
15543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15544   (exit $ac_status); }; } &&
15545          { ac_try='test -s conftest.$ac_objext'
15546   { (case "(($ac_try" in
15547   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15548   *) ac_try_echo=$ac_try;;
15549 esac
15550 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15551   (eval "$ac_try") 2>&5
15552   ac_status=$?
15553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15554   (exit $ac_status); }; }; then
15555   ac_cv_header_time=yes
15556 else
15557   echo "$as_me: failed program was:" >&5
15558 sed 's/^/| /' conftest.$ac_ext >&5
15559
15560         ac_cv_header_time=no
15561 fi
15562
15563 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15564 fi
15565 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
15566 echo "${ECHO_T}$ac_cv_header_time" >&6; }
15567 if test $ac_cv_header_time = yes; then
15568
15569 cat >>confdefs.h <<\_ACEOF
15570 #define TIME_WITH_SYS_TIME 1
15571 _ACEOF
15572
15573 fi
15574
15575
15576
15577
15578
15579
15580
15581
15582 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
15583 do
15584 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15585 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15586   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15587 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15588 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15589   echo $ECHO_N "(cached) $ECHO_C" >&6
15590 fi
15591 ac_res=`eval echo '${'$as_ac_Header'}'`
15592                { echo "$as_me:$LINENO: result: $ac_res" >&5
15593 echo "${ECHO_T}$ac_res" >&6; }
15594 else
15595   # Is the header compilable?
15596 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15597 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15598 cat >conftest.$ac_ext <<_ACEOF
15599 /* confdefs.h.  */
15600 _ACEOF
15601 cat confdefs.h >>conftest.$ac_ext
15602 cat >>conftest.$ac_ext <<_ACEOF
15603 /* end confdefs.h.  */
15604 $ac_includes_default
15605 #include <$ac_header>
15606 _ACEOF
15607 rm -f conftest.$ac_objext
15608 if { (ac_try="$ac_compile"
15609 case "(($ac_try" in
15610   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15611   *) ac_try_echo=$ac_try;;
15612 esac
15613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15614   (eval "$ac_compile") 2>conftest.er1
15615   ac_status=$?
15616   grep -v '^ *+' conftest.er1 >conftest.err
15617   rm -f conftest.er1
15618   cat conftest.err >&5
15619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15620   (exit $ac_status); } &&
15621          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15622   { (case "(($ac_try" in
15623   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15624   *) ac_try_echo=$ac_try;;
15625 esac
15626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15627   (eval "$ac_try") 2>&5
15628   ac_status=$?
15629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15630   (exit $ac_status); }; } &&
15631          { ac_try='test -s conftest.$ac_objext'
15632   { (case "(($ac_try" in
15633   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15634   *) ac_try_echo=$ac_try;;
15635 esac
15636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15637   (eval "$ac_try") 2>&5
15638   ac_status=$?
15639   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15640   (exit $ac_status); }; }; then
15641   ac_header_compiler=yes
15642 else
15643   echo "$as_me: failed program was:" >&5
15644 sed 's/^/| /' conftest.$ac_ext >&5
15645
15646         ac_header_compiler=no
15647 fi
15648
15649 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15650 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15651 echo "${ECHO_T}$ac_header_compiler" >&6; }
15652
15653 # Is the header present?
15654 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15655 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15656 cat >conftest.$ac_ext <<_ACEOF
15657 /* confdefs.h.  */
15658 _ACEOF
15659 cat confdefs.h >>conftest.$ac_ext
15660 cat >>conftest.$ac_ext <<_ACEOF
15661 /* end confdefs.h.  */
15662 #include <$ac_header>
15663 _ACEOF
15664 if { (ac_try="$ac_cpp conftest.$ac_ext"
15665 case "(($ac_try" in
15666   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15667   *) ac_try_echo=$ac_try;;
15668 esac
15669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15670   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15671   ac_status=$?
15672   grep -v '^ *+' conftest.er1 >conftest.err
15673   rm -f conftest.er1
15674   cat conftest.err >&5
15675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15676   (exit $ac_status); } >/dev/null; then
15677   if test -s conftest.err; then
15678     ac_cpp_err=$ac_c_preproc_warn_flag
15679     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15680   else
15681     ac_cpp_err=
15682   fi
15683 else
15684   ac_cpp_err=yes
15685 fi
15686 if test -z "$ac_cpp_err"; then
15687   ac_header_preproc=yes
15688 else
15689   echo "$as_me: failed program was:" >&5
15690 sed 's/^/| /' conftest.$ac_ext >&5
15691
15692   ac_header_preproc=no
15693 fi
15694
15695 rm -f conftest.err conftest.$ac_ext
15696 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15697 echo "${ECHO_T}$ac_header_preproc" >&6; }
15698
15699 # So?  What about this header?
15700 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15701   yes:no: )
15702     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15703 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15704     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15705 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15706     ac_header_preproc=yes
15707     ;;
15708   no:yes:* )
15709     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15710 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15711     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15712 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15713     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15714 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15715     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15716 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15717     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15718 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15719     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15720 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15721     ( cat <<\_ASBOX
15722 ## ----------------------------------- ##
15723 ## Report this to llvmbugs@cs.uiuc.edu ##
15724 ## ----------------------------------- ##
15725 _ASBOX
15726      ) | sed "s/^/$as_me: WARNING:     /" >&2
15727     ;;
15728 esac
15729 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15730 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15731 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15732   echo $ECHO_N "(cached) $ECHO_C" >&6
15733 else
15734   eval "$as_ac_Header=\$ac_header_preproc"
15735 fi
15736 ac_res=`eval echo '${'$as_ac_Header'}'`
15737                { echo "$as_me:$LINENO: result: $ac_res" >&5
15738 echo "${ECHO_T}$ac_res" >&6; }
15739
15740 fi
15741 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15742   cat >>confdefs.h <<_ACEOF
15743 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15744 _ACEOF
15745
15746 fi
15747
15748 done
15749
15750
15751
15752
15753
15754
15755
15756 for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
15757 do
15758 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15759 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15760   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15761 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15762 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15763   echo $ECHO_N "(cached) $ECHO_C" >&6
15764 fi
15765 ac_res=`eval echo '${'$as_ac_Header'}'`
15766                { echo "$as_me:$LINENO: result: $ac_res" >&5
15767 echo "${ECHO_T}$ac_res" >&6; }
15768 else
15769   # Is the header compilable?
15770 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15771 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15772 cat >conftest.$ac_ext <<_ACEOF
15773 /* confdefs.h.  */
15774 _ACEOF
15775 cat confdefs.h >>conftest.$ac_ext
15776 cat >>conftest.$ac_ext <<_ACEOF
15777 /* end confdefs.h.  */
15778 $ac_includes_default
15779 #include <$ac_header>
15780 _ACEOF
15781 rm -f conftest.$ac_objext
15782 if { (ac_try="$ac_compile"
15783 case "(($ac_try" in
15784   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15785   *) ac_try_echo=$ac_try;;
15786 esac
15787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15788   (eval "$ac_compile") 2>conftest.er1
15789   ac_status=$?
15790   grep -v '^ *+' conftest.er1 >conftest.err
15791   rm -f conftest.er1
15792   cat conftest.err >&5
15793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15794   (exit $ac_status); } &&
15795          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15796   { (case "(($ac_try" in
15797   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15798   *) ac_try_echo=$ac_try;;
15799 esac
15800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15801   (eval "$ac_try") 2>&5
15802   ac_status=$?
15803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15804   (exit $ac_status); }; } &&
15805          { ac_try='test -s conftest.$ac_objext'
15806   { (case "(($ac_try" in
15807   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15808   *) ac_try_echo=$ac_try;;
15809 esac
15810 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15811   (eval "$ac_try") 2>&5
15812   ac_status=$?
15813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15814   (exit $ac_status); }; }; then
15815   ac_header_compiler=yes
15816 else
15817   echo "$as_me: failed program was:" >&5
15818 sed 's/^/| /' conftest.$ac_ext >&5
15819
15820         ac_header_compiler=no
15821 fi
15822
15823 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15824 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15825 echo "${ECHO_T}$ac_header_compiler" >&6; }
15826
15827 # Is the header present?
15828 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15829 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15830 cat >conftest.$ac_ext <<_ACEOF
15831 /* confdefs.h.  */
15832 _ACEOF
15833 cat confdefs.h >>conftest.$ac_ext
15834 cat >>conftest.$ac_ext <<_ACEOF
15835 /* end confdefs.h.  */
15836 #include <$ac_header>
15837 _ACEOF
15838 if { (ac_try="$ac_cpp conftest.$ac_ext"
15839 case "(($ac_try" in
15840   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15841   *) ac_try_echo=$ac_try;;
15842 esac
15843 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15844   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15845   ac_status=$?
15846   grep -v '^ *+' conftest.er1 >conftest.err
15847   rm -f conftest.er1
15848   cat conftest.err >&5
15849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15850   (exit $ac_status); } >/dev/null; then
15851   if test -s conftest.err; then
15852     ac_cpp_err=$ac_c_preproc_warn_flag
15853     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15854   else
15855     ac_cpp_err=
15856   fi
15857 else
15858   ac_cpp_err=yes
15859 fi
15860 if test -z "$ac_cpp_err"; then
15861   ac_header_preproc=yes
15862 else
15863   echo "$as_me: failed program was:" >&5
15864 sed 's/^/| /' conftest.$ac_ext >&5
15865
15866   ac_header_preproc=no
15867 fi
15868
15869 rm -f conftest.err conftest.$ac_ext
15870 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15871 echo "${ECHO_T}$ac_header_preproc" >&6; }
15872
15873 # So?  What about this header?
15874 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15875   yes:no: )
15876     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15877 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15878     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15879 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15880     ac_header_preproc=yes
15881     ;;
15882   no:yes:* )
15883     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15884 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15885     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15886 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15887     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15888 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15889     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15890 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15891     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15892 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15893     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15894 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15895     ( cat <<\_ASBOX
15896 ## ----------------------------------- ##
15897 ## Report this to llvmbugs@cs.uiuc.edu ##
15898 ## ----------------------------------- ##
15899 _ASBOX
15900      ) | sed "s/^/$as_me: WARNING:     /" >&2
15901     ;;
15902 esac
15903 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15904 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15905 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15906   echo $ECHO_N "(cached) $ECHO_C" >&6
15907 else
15908   eval "$as_ac_Header=\$ac_header_preproc"
15909 fi
15910 ac_res=`eval echo '${'$as_ac_Header'}'`
15911                { echo "$as_me:$LINENO: result: $ac_res" >&5
15912 echo "${ECHO_T}$ac_res" >&6; }
15913
15914 fi
15915 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15916   cat >>confdefs.h <<_ACEOF
15917 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15918 _ACEOF
15919
15920 fi
15921
15922 done
15923
15924
15925
15926 for ac_header in utime.h windows.h
15927 do
15928 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15929 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15930   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15931 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15932 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15933   echo $ECHO_N "(cached) $ECHO_C" >&6
15934 fi
15935 ac_res=`eval echo '${'$as_ac_Header'}'`
15936                { echo "$as_me:$LINENO: result: $ac_res" >&5
15937 echo "${ECHO_T}$ac_res" >&6; }
15938 else
15939   # Is the header compilable?
15940 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15941 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15942 cat >conftest.$ac_ext <<_ACEOF
15943 /* confdefs.h.  */
15944 _ACEOF
15945 cat confdefs.h >>conftest.$ac_ext
15946 cat >>conftest.$ac_ext <<_ACEOF
15947 /* end confdefs.h.  */
15948 $ac_includes_default
15949 #include <$ac_header>
15950 _ACEOF
15951 rm -f conftest.$ac_objext
15952 if { (ac_try="$ac_compile"
15953 case "(($ac_try" in
15954   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15955   *) ac_try_echo=$ac_try;;
15956 esac
15957 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15958   (eval "$ac_compile") 2>conftest.er1
15959   ac_status=$?
15960   grep -v '^ *+' conftest.er1 >conftest.err
15961   rm -f conftest.er1
15962   cat conftest.err >&5
15963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15964   (exit $ac_status); } &&
15965          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15966   { (case "(($ac_try" in
15967   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15968   *) ac_try_echo=$ac_try;;
15969 esac
15970 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15971   (eval "$ac_try") 2>&5
15972   ac_status=$?
15973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15974   (exit $ac_status); }; } &&
15975          { ac_try='test -s conftest.$ac_objext'
15976   { (case "(($ac_try" in
15977   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15978   *) ac_try_echo=$ac_try;;
15979 esac
15980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15981   (eval "$ac_try") 2>&5
15982   ac_status=$?
15983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15984   (exit $ac_status); }; }; then
15985   ac_header_compiler=yes
15986 else
15987   echo "$as_me: failed program was:" >&5
15988 sed 's/^/| /' conftest.$ac_ext >&5
15989
15990         ac_header_compiler=no
15991 fi
15992
15993 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15994 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15995 echo "${ECHO_T}$ac_header_compiler" >&6; }
15996
15997 # Is the header present?
15998 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15999 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16000 cat >conftest.$ac_ext <<_ACEOF
16001 /* confdefs.h.  */
16002 _ACEOF
16003 cat confdefs.h >>conftest.$ac_ext
16004 cat >>conftest.$ac_ext <<_ACEOF
16005 /* end confdefs.h.  */
16006 #include <$ac_header>
16007 _ACEOF
16008 if { (ac_try="$ac_cpp conftest.$ac_ext"
16009 case "(($ac_try" in
16010   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16011   *) ac_try_echo=$ac_try;;
16012 esac
16013 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16014   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16015   ac_status=$?
16016   grep -v '^ *+' conftest.er1 >conftest.err
16017   rm -f conftest.er1
16018   cat conftest.err >&5
16019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16020   (exit $ac_status); } >/dev/null; then
16021   if test -s conftest.err; then
16022     ac_cpp_err=$ac_c_preproc_warn_flag
16023     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16024   else
16025     ac_cpp_err=
16026   fi
16027 else
16028   ac_cpp_err=yes
16029 fi
16030 if test -z "$ac_cpp_err"; then
16031   ac_header_preproc=yes
16032 else
16033   echo "$as_me: failed program was:" >&5
16034 sed 's/^/| /' conftest.$ac_ext >&5
16035
16036   ac_header_preproc=no
16037 fi
16038
16039 rm -f conftest.err conftest.$ac_ext
16040 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16041 echo "${ECHO_T}$ac_header_preproc" >&6; }
16042
16043 # So?  What about this header?
16044 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16045   yes:no: )
16046     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16047 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16048     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16049 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16050     ac_header_preproc=yes
16051     ;;
16052   no:yes:* )
16053     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16054 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16055     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16056 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16057     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16058 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16059     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16060 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16061     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16062 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16063     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16064 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16065     ( cat <<\_ASBOX
16066 ## ----------------------------------- ##
16067 ## Report this to llvmbugs@cs.uiuc.edu ##
16068 ## ----------------------------------- ##
16069 _ASBOX
16070      ) | sed "s/^/$as_me: WARNING:     /" >&2
16071     ;;
16072 esac
16073 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16074 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16075 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16076   echo $ECHO_N "(cached) $ECHO_C" >&6
16077 else
16078   eval "$as_ac_Header=\$ac_header_preproc"
16079 fi
16080 ac_res=`eval echo '${'$as_ac_Header'}'`
16081                { echo "$as_me:$LINENO: result: $ac_res" >&5
16082 echo "${ECHO_T}$ac_res" >&6; }
16083
16084 fi
16085 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16086   cat >>confdefs.h <<_ACEOF
16087 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16088 _ACEOF
16089
16090 fi
16091
16092 done
16093
16094
16095
16096
16097
16098 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h
16099 do
16100 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16101 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16102   { echo "$as_me:$LINENO: checking for $ac_header" >&5
16103 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16104 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16105   echo $ECHO_N "(cached) $ECHO_C" >&6
16106 fi
16107 ac_res=`eval echo '${'$as_ac_Header'}'`
16108                { echo "$as_me:$LINENO: result: $ac_res" >&5
16109 echo "${ECHO_T}$ac_res" >&6; }
16110 else
16111   # Is the header compilable?
16112 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16113 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16114 cat >conftest.$ac_ext <<_ACEOF
16115 /* confdefs.h.  */
16116 _ACEOF
16117 cat confdefs.h >>conftest.$ac_ext
16118 cat >>conftest.$ac_ext <<_ACEOF
16119 /* end confdefs.h.  */
16120 $ac_includes_default
16121 #include <$ac_header>
16122 _ACEOF
16123 rm -f conftest.$ac_objext
16124 if { (ac_try="$ac_compile"
16125 case "(($ac_try" in
16126   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16127   *) ac_try_echo=$ac_try;;
16128 esac
16129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16130   (eval "$ac_compile") 2>conftest.er1
16131   ac_status=$?
16132   grep -v '^ *+' conftest.er1 >conftest.err
16133   rm -f conftest.er1
16134   cat conftest.err >&5
16135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16136   (exit $ac_status); } &&
16137          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16138   { (case "(($ac_try" in
16139   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16140   *) ac_try_echo=$ac_try;;
16141 esac
16142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16143   (eval "$ac_try") 2>&5
16144   ac_status=$?
16145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16146   (exit $ac_status); }; } &&
16147          { ac_try='test -s conftest.$ac_objext'
16148   { (case "(($ac_try" in
16149   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16150   *) ac_try_echo=$ac_try;;
16151 esac
16152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16153   (eval "$ac_try") 2>&5
16154   ac_status=$?
16155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16156   (exit $ac_status); }; }; then
16157   ac_header_compiler=yes
16158 else
16159   echo "$as_me: failed program was:" >&5
16160 sed 's/^/| /' conftest.$ac_ext >&5
16161
16162         ac_header_compiler=no
16163 fi
16164
16165 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16166 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16167 echo "${ECHO_T}$ac_header_compiler" >&6; }
16168
16169 # Is the header present?
16170 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16171 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16172 cat >conftest.$ac_ext <<_ACEOF
16173 /* confdefs.h.  */
16174 _ACEOF
16175 cat confdefs.h >>conftest.$ac_ext
16176 cat >>conftest.$ac_ext <<_ACEOF
16177 /* end confdefs.h.  */
16178 #include <$ac_header>
16179 _ACEOF
16180 if { (ac_try="$ac_cpp conftest.$ac_ext"
16181 case "(($ac_try" in
16182   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16183   *) ac_try_echo=$ac_try;;
16184 esac
16185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16186   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16187   ac_status=$?
16188   grep -v '^ *+' conftest.er1 >conftest.err
16189   rm -f conftest.er1
16190   cat conftest.err >&5
16191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16192   (exit $ac_status); } >/dev/null; then
16193   if test -s conftest.err; then
16194     ac_cpp_err=$ac_c_preproc_warn_flag
16195     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16196   else
16197     ac_cpp_err=
16198   fi
16199 else
16200   ac_cpp_err=yes
16201 fi
16202 if test -z "$ac_cpp_err"; then
16203   ac_header_preproc=yes
16204 else
16205   echo "$as_me: failed program was:" >&5
16206 sed 's/^/| /' conftest.$ac_ext >&5
16207
16208   ac_header_preproc=no
16209 fi
16210
16211 rm -f conftest.err conftest.$ac_ext
16212 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16213 echo "${ECHO_T}$ac_header_preproc" >&6; }
16214
16215 # So?  What about this header?
16216 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16217   yes:no: )
16218     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16219 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16220     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16221 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16222     ac_header_preproc=yes
16223     ;;
16224   no:yes:* )
16225     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16226 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16227     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16228 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16229     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16230 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16231     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16232 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16233     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16234 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16235     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16236 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16237     ( cat <<\_ASBOX
16238 ## ----------------------------------- ##
16239 ## Report this to llvmbugs@cs.uiuc.edu ##
16240 ## ----------------------------------- ##
16241 _ASBOX
16242      ) | sed "s/^/$as_me: WARNING:     /" >&2
16243     ;;
16244 esac
16245 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16246 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16247 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16248   echo $ECHO_N "(cached) $ECHO_C" >&6
16249 else
16250   eval "$as_ac_Header=\$ac_header_preproc"
16251 fi
16252 ac_res=`eval echo '${'$as_ac_Header'}'`
16253                { echo "$as_me:$LINENO: result: $ac_res" >&5
16254 echo "${ECHO_T}$ac_res" >&6; }
16255
16256 fi
16257 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16258   cat >>confdefs.h <<_ACEOF
16259 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16260 _ACEOF
16261
16262 fi
16263
16264 done
16265
16266
16267
16268
16269
16270 for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h
16271 do
16272 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16273 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16274   { echo "$as_me:$LINENO: checking for $ac_header" >&5
16275 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16276 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16277   echo $ECHO_N "(cached) $ECHO_C" >&6
16278 fi
16279 ac_res=`eval echo '${'$as_ac_Header'}'`
16280                { echo "$as_me:$LINENO: result: $ac_res" >&5
16281 echo "${ECHO_T}$ac_res" >&6; }
16282 else
16283   # Is the header compilable?
16284 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16285 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16286 cat >conftest.$ac_ext <<_ACEOF
16287 /* confdefs.h.  */
16288 _ACEOF
16289 cat confdefs.h >>conftest.$ac_ext
16290 cat >>conftest.$ac_ext <<_ACEOF
16291 /* end confdefs.h.  */
16292 $ac_includes_default
16293 #include <$ac_header>
16294 _ACEOF
16295 rm -f conftest.$ac_objext
16296 if { (ac_try="$ac_compile"
16297 case "(($ac_try" in
16298   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16299   *) ac_try_echo=$ac_try;;
16300 esac
16301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16302   (eval "$ac_compile") 2>conftest.er1
16303   ac_status=$?
16304   grep -v '^ *+' conftest.er1 >conftest.err
16305   rm -f conftest.er1
16306   cat conftest.err >&5
16307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16308   (exit $ac_status); } &&
16309          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16310   { (case "(($ac_try" in
16311   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16312   *) ac_try_echo=$ac_try;;
16313 esac
16314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16315   (eval "$ac_try") 2>&5
16316   ac_status=$?
16317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16318   (exit $ac_status); }; } &&
16319          { ac_try='test -s conftest.$ac_objext'
16320   { (case "(($ac_try" in
16321   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16322   *) ac_try_echo=$ac_try;;
16323 esac
16324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16325   (eval "$ac_try") 2>&5
16326   ac_status=$?
16327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16328   (exit $ac_status); }; }; then
16329   ac_header_compiler=yes
16330 else
16331   echo "$as_me: failed program was:" >&5
16332 sed 's/^/| /' conftest.$ac_ext >&5
16333
16334         ac_header_compiler=no
16335 fi
16336
16337 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16338 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16339 echo "${ECHO_T}$ac_header_compiler" >&6; }
16340
16341 # Is the header present?
16342 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16343 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16344 cat >conftest.$ac_ext <<_ACEOF
16345 /* confdefs.h.  */
16346 _ACEOF
16347 cat confdefs.h >>conftest.$ac_ext
16348 cat >>conftest.$ac_ext <<_ACEOF
16349 /* end confdefs.h.  */
16350 #include <$ac_header>
16351 _ACEOF
16352 if { (ac_try="$ac_cpp conftest.$ac_ext"
16353 case "(($ac_try" in
16354   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16355   *) ac_try_echo=$ac_try;;
16356 esac
16357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16358   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16359   ac_status=$?
16360   grep -v '^ *+' conftest.er1 >conftest.err
16361   rm -f conftest.er1
16362   cat conftest.err >&5
16363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16364   (exit $ac_status); } >/dev/null; then
16365   if test -s conftest.err; then
16366     ac_cpp_err=$ac_c_preproc_warn_flag
16367     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16368   else
16369     ac_cpp_err=
16370   fi
16371 else
16372   ac_cpp_err=yes
16373 fi
16374 if test -z "$ac_cpp_err"; then
16375   ac_header_preproc=yes
16376 else
16377   echo "$as_me: failed program was:" >&5
16378 sed 's/^/| /' conftest.$ac_ext >&5
16379
16380   ac_header_preproc=no
16381 fi
16382
16383 rm -f conftest.err conftest.$ac_ext
16384 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16385 echo "${ECHO_T}$ac_header_preproc" >&6; }
16386
16387 # So?  What about this header?
16388 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16389   yes:no: )
16390     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16391 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16392     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16393 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16394     ac_header_preproc=yes
16395     ;;
16396   no:yes:* )
16397     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16398 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16399     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16400 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16401     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16402 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16403     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16404 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16405     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16406 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16407     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16408 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16409     ( cat <<\_ASBOX
16410 ## ----------------------------------- ##
16411 ## Report this to llvmbugs@cs.uiuc.edu ##
16412 ## ----------------------------------- ##
16413 _ASBOX
16414      ) | sed "s/^/$as_me: WARNING:     /" >&2
16415     ;;
16416 esac
16417 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16418 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16419 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16420   echo $ECHO_N "(cached) $ECHO_C" >&6
16421 else
16422   eval "$as_ac_Header=\$ac_header_preproc"
16423 fi
16424 ac_res=`eval echo '${'$as_ac_Header'}'`
16425                { echo "$as_me:$LINENO: result: $ac_res" >&5
16426 echo "${ECHO_T}$ac_res" >&6; }
16427
16428 fi
16429 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16430   cat >>confdefs.h <<_ACEOF
16431 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16432 _ACEOF
16433
16434 fi
16435
16436 done
16437
16438
16439 for ac_header in valgrind/valgrind.h
16440 do
16441 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16442 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16443   { echo "$as_me:$LINENO: checking for $ac_header" >&5
16444 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16445 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16446   echo $ECHO_N "(cached) $ECHO_C" >&6
16447 fi
16448 ac_res=`eval echo '${'$as_ac_Header'}'`
16449                { echo "$as_me:$LINENO: result: $ac_res" >&5
16450 echo "${ECHO_T}$ac_res" >&6; }
16451 else
16452   # Is the header compilable?
16453 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16454 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16455 cat >conftest.$ac_ext <<_ACEOF
16456 /* confdefs.h.  */
16457 _ACEOF
16458 cat confdefs.h >>conftest.$ac_ext
16459 cat >>conftest.$ac_ext <<_ACEOF
16460 /* end confdefs.h.  */
16461 $ac_includes_default
16462 #include <$ac_header>
16463 _ACEOF
16464 rm -f conftest.$ac_objext
16465 if { (ac_try="$ac_compile"
16466 case "(($ac_try" in
16467   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16468   *) ac_try_echo=$ac_try;;
16469 esac
16470 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16471   (eval "$ac_compile") 2>conftest.er1
16472   ac_status=$?
16473   grep -v '^ *+' conftest.er1 >conftest.err
16474   rm -f conftest.er1
16475   cat conftest.err >&5
16476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16477   (exit $ac_status); } &&
16478          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16479   { (case "(($ac_try" in
16480   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16481   *) ac_try_echo=$ac_try;;
16482 esac
16483 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16484   (eval "$ac_try") 2>&5
16485   ac_status=$?
16486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16487   (exit $ac_status); }; } &&
16488          { ac_try='test -s conftest.$ac_objext'
16489   { (case "(($ac_try" in
16490   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16491   *) ac_try_echo=$ac_try;;
16492 esac
16493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16494   (eval "$ac_try") 2>&5
16495   ac_status=$?
16496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16497   (exit $ac_status); }; }; then
16498   ac_header_compiler=yes
16499 else
16500   echo "$as_me: failed program was:" >&5
16501 sed 's/^/| /' conftest.$ac_ext >&5
16502
16503         ac_header_compiler=no
16504 fi
16505
16506 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16507 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16508 echo "${ECHO_T}$ac_header_compiler" >&6; }
16509
16510 # Is the header present?
16511 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16512 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16513 cat >conftest.$ac_ext <<_ACEOF
16514 /* confdefs.h.  */
16515 _ACEOF
16516 cat confdefs.h >>conftest.$ac_ext
16517 cat >>conftest.$ac_ext <<_ACEOF
16518 /* end confdefs.h.  */
16519 #include <$ac_header>
16520 _ACEOF
16521 if { (ac_try="$ac_cpp conftest.$ac_ext"
16522 case "(($ac_try" in
16523   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16524   *) ac_try_echo=$ac_try;;
16525 esac
16526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16527   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16528   ac_status=$?
16529   grep -v '^ *+' conftest.er1 >conftest.err
16530   rm -f conftest.er1
16531   cat conftest.err >&5
16532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16533   (exit $ac_status); } >/dev/null; then
16534   if test -s conftest.err; then
16535     ac_cpp_err=$ac_c_preproc_warn_flag
16536     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16537   else
16538     ac_cpp_err=
16539   fi
16540 else
16541   ac_cpp_err=yes
16542 fi
16543 if test -z "$ac_cpp_err"; then
16544   ac_header_preproc=yes
16545 else
16546   echo "$as_me: failed program was:" >&5
16547 sed 's/^/| /' conftest.$ac_ext >&5
16548
16549   ac_header_preproc=no
16550 fi
16551
16552 rm -f conftest.err conftest.$ac_ext
16553 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16554 echo "${ECHO_T}$ac_header_preproc" >&6; }
16555
16556 # So?  What about this header?
16557 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16558   yes:no: )
16559     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16560 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16561     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16562 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16563     ac_header_preproc=yes
16564     ;;
16565   no:yes:* )
16566     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16567 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16568     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16569 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16570     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16571 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16572     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16573 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16574     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16575 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16576     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16577 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16578     ( cat <<\_ASBOX
16579 ## ----------------------------------- ##
16580 ## Report this to llvmbugs@cs.uiuc.edu ##
16581 ## ----------------------------------- ##
16582 _ASBOX
16583      ) | sed "s/^/$as_me: WARNING:     /" >&2
16584     ;;
16585 esac
16586 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16587 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16588 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16589   echo $ECHO_N "(cached) $ECHO_C" >&6
16590 else
16591   eval "$as_ac_Header=\$ac_header_preproc"
16592 fi
16593 ac_res=`eval echo '${'$as_ac_Header'}'`
16594                { echo "$as_me:$LINENO: result: $ac_res" >&5
16595 echo "${ECHO_T}$ac_res" >&6; }
16596
16597 fi
16598 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16599   cat >>confdefs.h <<_ACEOF
16600 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16601 _ACEOF
16602
16603 fi
16604
16605 done
16606
16607 if test "$ENABLE_THREADS" -eq 1 ; then
16608
16609 for ac_header in pthread.h
16610 do
16611 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16612 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16613   { echo "$as_me:$LINENO: checking for $ac_header" >&5
16614 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16615 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16616   echo $ECHO_N "(cached) $ECHO_C" >&6
16617 fi
16618 ac_res=`eval echo '${'$as_ac_Header'}'`
16619                { echo "$as_me:$LINENO: result: $ac_res" >&5
16620 echo "${ECHO_T}$ac_res" >&6; }
16621 else
16622   # Is the header compilable?
16623 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16624 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16625 cat >conftest.$ac_ext <<_ACEOF
16626 /* confdefs.h.  */
16627 _ACEOF
16628 cat confdefs.h >>conftest.$ac_ext
16629 cat >>conftest.$ac_ext <<_ACEOF
16630 /* end confdefs.h.  */
16631 $ac_includes_default
16632 #include <$ac_header>
16633 _ACEOF
16634 rm -f conftest.$ac_objext
16635 if { (ac_try="$ac_compile"
16636 case "(($ac_try" in
16637   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16638   *) ac_try_echo=$ac_try;;
16639 esac
16640 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16641   (eval "$ac_compile") 2>conftest.er1
16642   ac_status=$?
16643   grep -v '^ *+' conftest.er1 >conftest.err
16644   rm -f conftest.er1
16645   cat conftest.err >&5
16646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16647   (exit $ac_status); } &&
16648          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16649   { (case "(($ac_try" in
16650   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16651   *) ac_try_echo=$ac_try;;
16652 esac
16653 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16654   (eval "$ac_try") 2>&5
16655   ac_status=$?
16656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16657   (exit $ac_status); }; } &&
16658          { ac_try='test -s conftest.$ac_objext'
16659   { (case "(($ac_try" in
16660   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16661   *) ac_try_echo=$ac_try;;
16662 esac
16663 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16664   (eval "$ac_try") 2>&5
16665   ac_status=$?
16666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16667   (exit $ac_status); }; }; then
16668   ac_header_compiler=yes
16669 else
16670   echo "$as_me: failed program was:" >&5
16671 sed 's/^/| /' conftest.$ac_ext >&5
16672
16673         ac_header_compiler=no
16674 fi
16675
16676 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16677 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16678 echo "${ECHO_T}$ac_header_compiler" >&6; }
16679
16680 # Is the header present?
16681 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16682 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16683 cat >conftest.$ac_ext <<_ACEOF
16684 /* confdefs.h.  */
16685 _ACEOF
16686 cat confdefs.h >>conftest.$ac_ext
16687 cat >>conftest.$ac_ext <<_ACEOF
16688 /* end confdefs.h.  */
16689 #include <$ac_header>
16690 _ACEOF
16691 if { (ac_try="$ac_cpp conftest.$ac_ext"
16692 case "(($ac_try" in
16693   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16694   *) ac_try_echo=$ac_try;;
16695 esac
16696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16697   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16698   ac_status=$?
16699   grep -v '^ *+' conftest.er1 >conftest.err
16700   rm -f conftest.er1
16701   cat conftest.err >&5
16702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16703   (exit $ac_status); } >/dev/null; then
16704   if test -s conftest.err; then
16705     ac_cpp_err=$ac_c_preproc_warn_flag
16706     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16707   else
16708     ac_cpp_err=
16709   fi
16710 else
16711   ac_cpp_err=yes
16712 fi
16713 if test -z "$ac_cpp_err"; then
16714   ac_header_preproc=yes
16715 else
16716   echo "$as_me: failed program was:" >&5
16717 sed 's/^/| /' conftest.$ac_ext >&5
16718
16719   ac_header_preproc=no
16720 fi
16721
16722 rm -f conftest.err conftest.$ac_ext
16723 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16724 echo "${ECHO_T}$ac_header_preproc" >&6; }
16725
16726 # So?  What about this header?
16727 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16728   yes:no: )
16729     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16730 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16731     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16732 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16733     ac_header_preproc=yes
16734     ;;
16735   no:yes:* )
16736     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16737 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16738     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16739 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16740     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16741 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16742     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16743 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16744     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16745 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16746     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16747 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16748     ( cat <<\_ASBOX
16749 ## ----------------------------------- ##
16750 ## Report this to llvmbugs@cs.uiuc.edu ##
16751 ## ----------------------------------- ##
16752 _ASBOX
16753      ) | sed "s/^/$as_me: WARNING:     /" >&2
16754     ;;
16755 esac
16756 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16757 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16758 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16759   echo $ECHO_N "(cached) $ECHO_C" >&6
16760 else
16761   eval "$as_ac_Header=\$ac_header_preproc"
16762 fi
16763 ac_res=`eval echo '${'$as_ac_Header'}'`
16764                { echo "$as_me:$LINENO: result: $ac_res" >&5
16765 echo "${ECHO_T}$ac_res" >&6; }
16766
16767 fi
16768 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16769   cat >>confdefs.h <<_ACEOF
16770 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16771 _ACEOF
16772  HAVE_PTHREAD=1
16773
16774 else
16775   HAVE_PTHREAD=0
16776
16777 fi
16778
16779 done
16780
16781 else
16782   HAVE_PTHREAD=0
16783
16784 fi
16785
16786 if test "$llvm_cv_enable_libffi" = "yes" ; then
16787
16788
16789 for ac_header in ffi.h ffi/ffi.h
16790 do
16791 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16792 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16793   { echo "$as_me:$LINENO: checking for $ac_header" >&5
16794 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16795 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16796   echo $ECHO_N "(cached) $ECHO_C" >&6
16797 fi
16798 ac_res=`eval echo '${'$as_ac_Header'}'`
16799                { echo "$as_me:$LINENO: result: $ac_res" >&5
16800 echo "${ECHO_T}$ac_res" >&6; }
16801 else
16802   # Is the header compilable?
16803 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16804 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16805 cat >conftest.$ac_ext <<_ACEOF
16806 /* confdefs.h.  */
16807 _ACEOF
16808 cat confdefs.h >>conftest.$ac_ext
16809 cat >>conftest.$ac_ext <<_ACEOF
16810 /* end confdefs.h.  */
16811 $ac_includes_default
16812 #include <$ac_header>
16813 _ACEOF
16814 rm -f conftest.$ac_objext
16815 if { (ac_try="$ac_compile"
16816 case "(($ac_try" in
16817   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16818   *) ac_try_echo=$ac_try;;
16819 esac
16820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16821   (eval "$ac_compile") 2>conftest.er1
16822   ac_status=$?
16823   grep -v '^ *+' conftest.er1 >conftest.err
16824   rm -f conftest.er1
16825   cat conftest.err >&5
16826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16827   (exit $ac_status); } &&
16828          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16829   { (case "(($ac_try" in
16830   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16831   *) ac_try_echo=$ac_try;;
16832 esac
16833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16834   (eval "$ac_try") 2>&5
16835   ac_status=$?
16836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16837   (exit $ac_status); }; } &&
16838          { ac_try='test -s conftest.$ac_objext'
16839   { (case "(($ac_try" in
16840   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16841   *) ac_try_echo=$ac_try;;
16842 esac
16843 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16844   (eval "$ac_try") 2>&5
16845   ac_status=$?
16846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16847   (exit $ac_status); }; }; then
16848   ac_header_compiler=yes
16849 else
16850   echo "$as_me: failed program was:" >&5
16851 sed 's/^/| /' conftest.$ac_ext >&5
16852
16853         ac_header_compiler=no
16854 fi
16855
16856 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16857 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16858 echo "${ECHO_T}$ac_header_compiler" >&6; }
16859
16860 # Is the header present?
16861 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16862 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16863 cat >conftest.$ac_ext <<_ACEOF
16864 /* confdefs.h.  */
16865 _ACEOF
16866 cat confdefs.h >>conftest.$ac_ext
16867 cat >>conftest.$ac_ext <<_ACEOF
16868 /* end confdefs.h.  */
16869 #include <$ac_header>
16870 _ACEOF
16871 if { (ac_try="$ac_cpp conftest.$ac_ext"
16872 case "(($ac_try" in
16873   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16874   *) ac_try_echo=$ac_try;;
16875 esac
16876 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16877   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16878   ac_status=$?
16879   grep -v '^ *+' conftest.er1 >conftest.err
16880   rm -f conftest.er1
16881   cat conftest.err >&5
16882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16883   (exit $ac_status); } >/dev/null; then
16884   if test -s conftest.err; then
16885     ac_cpp_err=$ac_c_preproc_warn_flag
16886     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16887   else
16888     ac_cpp_err=
16889   fi
16890 else
16891   ac_cpp_err=yes
16892 fi
16893 if test -z "$ac_cpp_err"; then
16894   ac_header_preproc=yes
16895 else
16896   echo "$as_me: failed program was:" >&5
16897 sed 's/^/| /' conftest.$ac_ext >&5
16898
16899   ac_header_preproc=no
16900 fi
16901
16902 rm -f conftest.err conftest.$ac_ext
16903 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16904 echo "${ECHO_T}$ac_header_preproc" >&6; }
16905
16906 # So?  What about this header?
16907 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16908   yes:no: )
16909     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16910 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16911     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16912 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16913     ac_header_preproc=yes
16914     ;;
16915   no:yes:* )
16916     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16917 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16918     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16919 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16920     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16921 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16922     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16923 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16924     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16925 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16926     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16927 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16928     ( cat <<\_ASBOX
16929 ## ----------------------------------- ##
16930 ## Report this to llvmbugs@cs.uiuc.edu ##
16931 ## ----------------------------------- ##
16932 _ASBOX
16933      ) | sed "s/^/$as_me: WARNING:     /" >&2
16934     ;;
16935 esac
16936 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16937 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16938 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16939   echo $ECHO_N "(cached) $ECHO_C" >&6
16940 else
16941   eval "$as_ac_Header=\$ac_header_preproc"
16942 fi
16943 ac_res=`eval echo '${'$as_ac_Header'}'`
16944                { echo "$as_me:$LINENO: result: $ac_res" >&5
16945 echo "${ECHO_T}$ac_res" >&6; }
16946
16947 fi
16948 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16949   cat >>confdefs.h <<_ACEOF
16950 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16951 _ACEOF
16952
16953 fi
16954
16955 done
16956
16957 fi
16958
16959
16960 for ac_header in CrashReporterClient.h
16961 do
16962 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16963 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16964   { echo "$as_me:$LINENO: checking for $ac_header" >&5
16965 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16966 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16967   echo $ECHO_N "(cached) $ECHO_C" >&6
16968 fi
16969 ac_res=`eval echo '${'$as_ac_Header'}'`
16970                { echo "$as_me:$LINENO: result: $ac_res" >&5
16971 echo "${ECHO_T}$ac_res" >&6; }
16972 else
16973   # Is the header compilable?
16974 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16975 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16976 cat >conftest.$ac_ext <<_ACEOF
16977 /* confdefs.h.  */
16978 _ACEOF
16979 cat confdefs.h >>conftest.$ac_ext
16980 cat >>conftest.$ac_ext <<_ACEOF
16981 /* end confdefs.h.  */
16982 $ac_includes_default
16983 #include <$ac_header>
16984 _ACEOF
16985 rm -f conftest.$ac_objext
16986 if { (ac_try="$ac_compile"
16987 case "(($ac_try" in
16988   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16989   *) ac_try_echo=$ac_try;;
16990 esac
16991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16992   (eval "$ac_compile") 2>conftest.er1
16993   ac_status=$?
16994   grep -v '^ *+' conftest.er1 >conftest.err
16995   rm -f conftest.er1
16996   cat conftest.err >&5
16997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16998   (exit $ac_status); } &&
16999          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17000   { (case "(($ac_try" in
17001   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17002   *) ac_try_echo=$ac_try;;
17003 esac
17004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17005   (eval "$ac_try") 2>&5
17006   ac_status=$?
17007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17008   (exit $ac_status); }; } &&
17009          { ac_try='test -s conftest.$ac_objext'
17010   { (case "(($ac_try" in
17011   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17012   *) ac_try_echo=$ac_try;;
17013 esac
17014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17015   (eval "$ac_try") 2>&5
17016   ac_status=$?
17017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17018   (exit $ac_status); }; }; then
17019   ac_header_compiler=yes
17020 else
17021   echo "$as_me: failed program was:" >&5
17022 sed 's/^/| /' conftest.$ac_ext >&5
17023
17024         ac_header_compiler=no
17025 fi
17026
17027 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17028 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17029 echo "${ECHO_T}$ac_header_compiler" >&6; }
17030
17031 # Is the header present?
17032 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
17033 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
17034 cat >conftest.$ac_ext <<_ACEOF
17035 /* confdefs.h.  */
17036 _ACEOF
17037 cat confdefs.h >>conftest.$ac_ext
17038 cat >>conftest.$ac_ext <<_ACEOF
17039 /* end confdefs.h.  */
17040 #include <$ac_header>
17041 _ACEOF
17042 if { (ac_try="$ac_cpp conftest.$ac_ext"
17043 case "(($ac_try" in
17044   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17045   *) ac_try_echo=$ac_try;;
17046 esac
17047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17048   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17049   ac_status=$?
17050   grep -v '^ *+' conftest.er1 >conftest.err
17051   rm -f conftest.er1
17052   cat conftest.err >&5
17053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17054   (exit $ac_status); } >/dev/null; then
17055   if test -s conftest.err; then
17056     ac_cpp_err=$ac_c_preproc_warn_flag
17057     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17058   else
17059     ac_cpp_err=
17060   fi
17061 else
17062   ac_cpp_err=yes
17063 fi
17064 if test -z "$ac_cpp_err"; then
17065   ac_header_preproc=yes
17066 else
17067   echo "$as_me: failed program was:" >&5
17068 sed 's/^/| /' conftest.$ac_ext >&5
17069
17070   ac_header_preproc=no
17071 fi
17072
17073 rm -f conftest.err conftest.$ac_ext
17074 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17075 echo "${ECHO_T}$ac_header_preproc" >&6; }
17076
17077 # So?  What about this header?
17078 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17079   yes:no: )
17080     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17081 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17082     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17083 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17084     ac_header_preproc=yes
17085     ;;
17086   no:yes:* )
17087     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17088 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17089     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
17090 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
17091     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17092 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17093     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
17094 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
17095     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17096 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17097     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17098 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17099     ( cat <<\_ASBOX
17100 ## ----------------------------------- ##
17101 ## Report this to llvmbugs@cs.uiuc.edu ##
17102 ## ----------------------------------- ##
17103 _ASBOX
17104      ) | sed "s/^/$as_me: WARNING:     /" >&2
17105     ;;
17106 esac
17107 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17108 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17109 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17110   echo $ECHO_N "(cached) $ECHO_C" >&6
17111 else
17112   eval "$as_ac_Header=\$ac_header_preproc"
17113 fi
17114 ac_res=`eval echo '${'$as_ac_Header'}'`
17115                { echo "$as_me:$LINENO: result: $ac_res" >&5
17116 echo "${ECHO_T}$ac_res" >&6; }
17117
17118 fi
17119 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17120   cat >>confdefs.h <<_ACEOF
17121 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17122 _ACEOF
17123
17124 fi
17125
17126 done
17127
17128
17129
17130
17131
17132   { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
17133 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
17134 if test "${ac_cv_huge_val_sanity+set}" = set; then
17135   echo $ECHO_N "(cached) $ECHO_C" >&6
17136 else
17137
17138     ac_ext=cpp
17139 ac_cpp='$CXXCPP $CPPFLAGS'
17140 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17141 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17142 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17143
17144     ac_save_CXXFLAGS=$CXXFLAGS
17145     CXXFLAGS=-pedantic
17146     if test "$cross_compiling" = yes; then
17147   ac_cv_huge_val_sanity=yes
17148 else
17149   cat >conftest.$ac_ext <<_ACEOF
17150 /* confdefs.h.  */
17151 _ACEOF
17152 cat confdefs.h >>conftest.$ac_ext
17153 cat >>conftest.$ac_ext <<_ACEOF
17154 /* end confdefs.h.  */
17155 #include <math.h>
17156 int
17157 main ()
17158 {
17159 double x = HUGE_VAL; return x != x;
17160   ;
17161   return 0;
17162 }
17163 _ACEOF
17164 rm -f conftest$ac_exeext
17165 if { (ac_try="$ac_link"
17166 case "(($ac_try" in
17167   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17168   *) ac_try_echo=$ac_try;;
17169 esac
17170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17171   (eval "$ac_link") 2>&5
17172   ac_status=$?
17173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17174   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17175   { (case "(($ac_try" in
17176   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17177   *) ac_try_echo=$ac_try;;
17178 esac
17179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17180   (eval "$ac_try") 2>&5
17181   ac_status=$?
17182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17183   (exit $ac_status); }; }; then
17184   ac_cv_huge_val_sanity=yes
17185 else
17186   echo "$as_me: program exited with status $ac_status" >&5
17187 echo "$as_me: failed program was:" >&5
17188 sed 's/^/| /' conftest.$ac_ext >&5
17189
17190 ( exit $ac_status )
17191 ac_cv_huge_val_sanity=no
17192 fi
17193 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17194 fi
17195
17196
17197     CXXFLAGS=$ac_save_CXXFLAGS
17198     ac_ext=c
17199 ac_cpp='$CPP $CPPFLAGS'
17200 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17201 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17202 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17203
17204
17205 fi
17206 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
17207 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
17208   HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
17209
17210
17211 { echo "$as_me:$LINENO: checking for pid_t" >&5
17212 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
17213 if test "${ac_cv_type_pid_t+set}" = set; then
17214   echo $ECHO_N "(cached) $ECHO_C" >&6
17215 else
17216   cat >conftest.$ac_ext <<_ACEOF
17217 /* confdefs.h.  */
17218 _ACEOF
17219 cat confdefs.h >>conftest.$ac_ext
17220 cat >>conftest.$ac_ext <<_ACEOF
17221 /* end confdefs.h.  */
17222 $ac_includes_default
17223 typedef pid_t ac__type_new_;
17224 int
17225 main ()
17226 {
17227 if ((ac__type_new_ *) 0)
17228   return 0;
17229 if (sizeof (ac__type_new_))
17230   return 0;
17231   ;
17232   return 0;
17233 }
17234 _ACEOF
17235 rm -f conftest.$ac_objext
17236 if { (ac_try="$ac_compile"
17237 case "(($ac_try" in
17238   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17239   *) ac_try_echo=$ac_try;;
17240 esac
17241 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17242   (eval "$ac_compile") 2>conftest.er1
17243   ac_status=$?
17244   grep -v '^ *+' conftest.er1 >conftest.err
17245   rm -f conftest.er1
17246   cat conftest.err >&5
17247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17248   (exit $ac_status); } &&
17249          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17250   { (case "(($ac_try" in
17251   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17252   *) ac_try_echo=$ac_try;;
17253 esac
17254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17255   (eval "$ac_try") 2>&5
17256   ac_status=$?
17257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17258   (exit $ac_status); }; } &&
17259          { ac_try='test -s conftest.$ac_objext'
17260   { (case "(($ac_try" in
17261   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17262   *) ac_try_echo=$ac_try;;
17263 esac
17264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17265   (eval "$ac_try") 2>&5
17266   ac_status=$?
17267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17268   (exit $ac_status); }; }; then
17269   ac_cv_type_pid_t=yes
17270 else
17271   echo "$as_me: failed program was:" >&5
17272 sed 's/^/| /' conftest.$ac_ext >&5
17273
17274         ac_cv_type_pid_t=no
17275 fi
17276
17277 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17278 fi
17279 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
17280 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
17281 if test $ac_cv_type_pid_t = yes; then
17282   :
17283 else
17284
17285 cat >>confdefs.h <<_ACEOF
17286 #define pid_t int
17287 _ACEOF
17288
17289 fi
17290
17291 { echo "$as_me:$LINENO: checking for size_t" >&5
17292 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
17293 if test "${ac_cv_type_size_t+set}" = set; then
17294   echo $ECHO_N "(cached) $ECHO_C" >&6
17295 else
17296   cat >conftest.$ac_ext <<_ACEOF
17297 /* confdefs.h.  */
17298 _ACEOF
17299 cat confdefs.h >>conftest.$ac_ext
17300 cat >>conftest.$ac_ext <<_ACEOF
17301 /* end confdefs.h.  */
17302 $ac_includes_default
17303 typedef size_t ac__type_new_;
17304 int
17305 main ()
17306 {
17307 if ((ac__type_new_ *) 0)
17308   return 0;
17309 if (sizeof (ac__type_new_))
17310   return 0;
17311   ;
17312   return 0;
17313 }
17314 _ACEOF
17315 rm -f conftest.$ac_objext
17316 if { (ac_try="$ac_compile"
17317 case "(($ac_try" in
17318   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17319   *) ac_try_echo=$ac_try;;
17320 esac
17321 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17322   (eval "$ac_compile") 2>conftest.er1
17323   ac_status=$?
17324   grep -v '^ *+' conftest.er1 >conftest.err
17325   rm -f conftest.er1
17326   cat conftest.err >&5
17327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17328   (exit $ac_status); } &&
17329          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17330   { (case "(($ac_try" in
17331   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17332   *) ac_try_echo=$ac_try;;
17333 esac
17334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17335   (eval "$ac_try") 2>&5
17336   ac_status=$?
17337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17338   (exit $ac_status); }; } &&
17339          { ac_try='test -s conftest.$ac_objext'
17340   { (case "(($ac_try" in
17341   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17342   *) ac_try_echo=$ac_try;;
17343 esac
17344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17345   (eval "$ac_try") 2>&5
17346   ac_status=$?
17347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17348   (exit $ac_status); }; }; then
17349   ac_cv_type_size_t=yes
17350 else
17351   echo "$as_me: failed program was:" >&5
17352 sed 's/^/| /' conftest.$ac_ext >&5
17353
17354         ac_cv_type_size_t=no
17355 fi
17356
17357 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17358 fi
17359 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
17360 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
17361 if test $ac_cv_type_size_t = yes; then
17362   :
17363 else
17364
17365 cat >>confdefs.h <<_ACEOF
17366 #define size_t unsigned int
17367 _ACEOF
17368
17369 fi
17370
17371
17372 cat >>confdefs.h <<_ACEOF
17373 #define RETSIGTYPE void
17374 _ACEOF
17375
17376 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
17377 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
17378 if test "${ac_cv_struct_tm+set}" = set; then
17379   echo $ECHO_N "(cached) $ECHO_C" >&6
17380 else
17381   cat >conftest.$ac_ext <<_ACEOF
17382 /* confdefs.h.  */
17383 _ACEOF
17384 cat confdefs.h >>conftest.$ac_ext
17385 cat >>conftest.$ac_ext <<_ACEOF
17386 /* end confdefs.h.  */
17387 #include <sys/types.h>
17388 #include <time.h>
17389
17390 int
17391 main ()
17392 {
17393 struct tm *tp; tp->tm_sec;
17394   ;
17395   return 0;
17396 }
17397 _ACEOF
17398 rm -f conftest.$ac_objext
17399 if { (ac_try="$ac_compile"
17400 case "(($ac_try" in
17401   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17402   *) ac_try_echo=$ac_try;;
17403 esac
17404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17405   (eval "$ac_compile") 2>conftest.er1
17406   ac_status=$?
17407   grep -v '^ *+' conftest.er1 >conftest.err
17408   rm -f conftest.er1
17409   cat conftest.err >&5
17410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17411   (exit $ac_status); } &&
17412          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17413   { (case "(($ac_try" in
17414   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17415   *) ac_try_echo=$ac_try;;
17416 esac
17417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17418   (eval "$ac_try") 2>&5
17419   ac_status=$?
17420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17421   (exit $ac_status); }; } &&
17422          { ac_try='test -s conftest.$ac_objext'
17423   { (case "(($ac_try" in
17424   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17425   *) ac_try_echo=$ac_try;;
17426 esac
17427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17428   (eval "$ac_try") 2>&5
17429   ac_status=$?
17430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17431   (exit $ac_status); }; }; then
17432   ac_cv_struct_tm=time.h
17433 else
17434   echo "$as_me: failed program was:" >&5
17435 sed 's/^/| /' conftest.$ac_ext >&5
17436
17437         ac_cv_struct_tm=sys/time.h
17438 fi
17439
17440 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17441 fi
17442 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
17443 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
17444 if test $ac_cv_struct_tm = sys/time.h; then
17445
17446 cat >>confdefs.h <<\_ACEOF
17447 #define TM_IN_SYS_TIME 1
17448 _ACEOF
17449
17450 fi
17451
17452 { echo "$as_me:$LINENO: checking for int64_t" >&5
17453 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
17454 if test "${ac_cv_type_int64_t+set}" = set; then
17455   echo $ECHO_N "(cached) $ECHO_C" >&6
17456 else
17457   cat >conftest.$ac_ext <<_ACEOF
17458 /* confdefs.h.  */
17459 _ACEOF
17460 cat confdefs.h >>conftest.$ac_ext
17461 cat >>conftest.$ac_ext <<_ACEOF
17462 /* end confdefs.h.  */
17463 $ac_includes_default
17464 typedef int64_t ac__type_new_;
17465 int
17466 main ()
17467 {
17468 if ((ac__type_new_ *) 0)
17469   return 0;
17470 if (sizeof (ac__type_new_))
17471   return 0;
17472   ;
17473   return 0;
17474 }
17475 _ACEOF
17476 rm -f conftest.$ac_objext
17477 if { (ac_try="$ac_compile"
17478 case "(($ac_try" in
17479   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17480   *) ac_try_echo=$ac_try;;
17481 esac
17482 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17483   (eval "$ac_compile") 2>conftest.er1
17484   ac_status=$?
17485   grep -v '^ *+' conftest.er1 >conftest.err
17486   rm -f conftest.er1
17487   cat conftest.err >&5
17488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17489   (exit $ac_status); } &&
17490          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17491   { (case "(($ac_try" in
17492   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17493   *) ac_try_echo=$ac_try;;
17494 esac
17495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17496   (eval "$ac_try") 2>&5
17497   ac_status=$?
17498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17499   (exit $ac_status); }; } &&
17500          { ac_try='test -s conftest.$ac_objext'
17501   { (case "(($ac_try" in
17502   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17503   *) ac_try_echo=$ac_try;;
17504 esac
17505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17506   (eval "$ac_try") 2>&5
17507   ac_status=$?
17508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17509   (exit $ac_status); }; }; then
17510   ac_cv_type_int64_t=yes
17511 else
17512   echo "$as_me: failed program was:" >&5
17513 sed 's/^/| /' conftest.$ac_ext >&5
17514
17515         ac_cv_type_int64_t=no
17516 fi
17517
17518 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17519 fi
17520 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
17521 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
17522 if test $ac_cv_type_int64_t = yes; then
17523
17524 cat >>confdefs.h <<_ACEOF
17525 #define HAVE_INT64_T 1
17526 _ACEOF
17527
17528
17529 else
17530   { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
17531 echo "$as_me: error: Type int64_t required but not found" >&2;}
17532    { (exit 1); exit 1; }; }
17533 fi
17534
17535 { echo "$as_me:$LINENO: checking for uint64_t" >&5
17536 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
17537 if test "${ac_cv_type_uint64_t+set}" = set; then
17538   echo $ECHO_N "(cached) $ECHO_C" >&6
17539 else
17540   cat >conftest.$ac_ext <<_ACEOF
17541 /* confdefs.h.  */
17542 _ACEOF
17543 cat confdefs.h >>conftest.$ac_ext
17544 cat >>conftest.$ac_ext <<_ACEOF
17545 /* end confdefs.h.  */
17546 $ac_includes_default
17547 typedef uint64_t ac__type_new_;
17548 int
17549 main ()
17550 {
17551 if ((ac__type_new_ *) 0)
17552   return 0;
17553 if (sizeof (ac__type_new_))
17554   return 0;
17555   ;
17556   return 0;
17557 }
17558 _ACEOF
17559 rm -f conftest.$ac_objext
17560 if { (ac_try="$ac_compile"
17561 case "(($ac_try" in
17562   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17563   *) ac_try_echo=$ac_try;;
17564 esac
17565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17566   (eval "$ac_compile") 2>conftest.er1
17567   ac_status=$?
17568   grep -v '^ *+' conftest.er1 >conftest.err
17569   rm -f conftest.er1
17570   cat conftest.err >&5
17571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17572   (exit $ac_status); } &&
17573          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17574   { (case "(($ac_try" in
17575   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17576   *) ac_try_echo=$ac_try;;
17577 esac
17578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17579   (eval "$ac_try") 2>&5
17580   ac_status=$?
17581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17582   (exit $ac_status); }; } &&
17583          { ac_try='test -s conftest.$ac_objext'
17584   { (case "(($ac_try" in
17585   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17586   *) ac_try_echo=$ac_try;;
17587 esac
17588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17589   (eval "$ac_try") 2>&5
17590   ac_status=$?
17591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17592   (exit $ac_status); }; }; then
17593   ac_cv_type_uint64_t=yes
17594 else
17595   echo "$as_me: failed program was:" >&5
17596 sed 's/^/| /' conftest.$ac_ext >&5
17597
17598         ac_cv_type_uint64_t=no
17599 fi
17600
17601 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17602 fi
17603 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
17604 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
17605 if test $ac_cv_type_uint64_t = yes; then
17606
17607 cat >>confdefs.h <<_ACEOF
17608 #define HAVE_UINT64_T 1
17609 _ACEOF
17610
17611
17612 else
17613   { echo "$as_me:$LINENO: checking for u_int64_t" >&5
17614 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
17615 if test "${ac_cv_type_u_int64_t+set}" = set; then
17616   echo $ECHO_N "(cached) $ECHO_C" >&6
17617 else
17618   cat >conftest.$ac_ext <<_ACEOF
17619 /* confdefs.h.  */
17620 _ACEOF
17621 cat confdefs.h >>conftest.$ac_ext
17622 cat >>conftest.$ac_ext <<_ACEOF
17623 /* end confdefs.h.  */
17624 $ac_includes_default
17625 typedef u_int64_t ac__type_new_;
17626 int
17627 main ()
17628 {
17629 if ((ac__type_new_ *) 0)
17630   return 0;
17631 if (sizeof (ac__type_new_))
17632   return 0;
17633   ;
17634   return 0;
17635 }
17636 _ACEOF
17637 rm -f conftest.$ac_objext
17638 if { (ac_try="$ac_compile"
17639 case "(($ac_try" in
17640   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17641   *) ac_try_echo=$ac_try;;
17642 esac
17643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17644   (eval "$ac_compile") 2>conftest.er1
17645   ac_status=$?
17646   grep -v '^ *+' conftest.er1 >conftest.err
17647   rm -f conftest.er1
17648   cat conftest.err >&5
17649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17650   (exit $ac_status); } &&
17651          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17652   { (case "(($ac_try" in
17653   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17654   *) ac_try_echo=$ac_try;;
17655 esac
17656 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17657   (eval "$ac_try") 2>&5
17658   ac_status=$?
17659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17660   (exit $ac_status); }; } &&
17661          { ac_try='test -s conftest.$ac_objext'
17662   { (case "(($ac_try" in
17663   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17664   *) ac_try_echo=$ac_try;;
17665 esac
17666 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17667   (eval "$ac_try") 2>&5
17668   ac_status=$?
17669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17670   (exit $ac_status); }; }; then
17671   ac_cv_type_u_int64_t=yes
17672 else
17673   echo "$as_me: failed program was:" >&5
17674 sed 's/^/| /' conftest.$ac_ext >&5
17675
17676         ac_cv_type_u_int64_t=no
17677 fi
17678
17679 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17680 fi
17681 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
17682 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
17683 if test $ac_cv_type_u_int64_t = yes; then
17684
17685 cat >>confdefs.h <<_ACEOF
17686 #define HAVE_U_INT64_T 1
17687 _ACEOF
17688
17689
17690 else
17691   { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
17692 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
17693    { (exit 1); exit 1; }; }
17694 fi
17695
17696 fi
17697
17698
17699
17700
17701
17702
17703
17704
17705
17706
17707 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
17708 do
17709 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17710 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17711 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17712 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17713   echo $ECHO_N "(cached) $ECHO_C" >&6
17714 else
17715   cat >conftest.$ac_ext <<_ACEOF
17716 /* confdefs.h.  */
17717 _ACEOF
17718 cat confdefs.h >>conftest.$ac_ext
17719 cat >>conftest.$ac_ext <<_ACEOF
17720 /* end confdefs.h.  */
17721 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17722    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17723 #define $ac_func innocuous_$ac_func
17724
17725 /* System header to define __stub macros and hopefully few prototypes,
17726     which can conflict with char $ac_func (); below.
17727     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17728     <limits.h> exists even on freestanding compilers.  */
17729
17730 #ifdef __STDC__
17731 # include <limits.h>
17732 #else
17733 # include <assert.h>
17734 #endif
17735
17736 #undef $ac_func
17737
17738 /* Override any GCC internal prototype to avoid an error.
17739    Use char because int might match the return type of a GCC
17740    builtin and then its argument prototype would still apply.  */
17741 #ifdef __cplusplus
17742 extern "C"
17743 #endif
17744 char $ac_func ();
17745 /* The GNU C library defines this for functions which it implements
17746     to always fail with ENOSYS.  Some functions are actually named
17747     something starting with __ and the normal name is an alias.  */
17748 #if defined __stub_$ac_func || defined __stub___$ac_func
17749 choke me
17750 #endif
17751
17752 int
17753 main ()
17754 {
17755 return $ac_func ();
17756   ;
17757   return 0;
17758 }
17759 _ACEOF
17760 rm -f conftest.$ac_objext conftest$ac_exeext
17761 if { (ac_try="$ac_link"
17762 case "(($ac_try" in
17763   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17764   *) ac_try_echo=$ac_try;;
17765 esac
17766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17767   (eval "$ac_link") 2>conftest.er1
17768   ac_status=$?
17769   grep -v '^ *+' conftest.er1 >conftest.err
17770   rm -f conftest.er1
17771   cat conftest.err >&5
17772   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17773   (exit $ac_status); } &&
17774          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17775   { (case "(($ac_try" in
17776   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17777   *) ac_try_echo=$ac_try;;
17778 esac
17779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17780   (eval "$ac_try") 2>&5
17781   ac_status=$?
17782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17783   (exit $ac_status); }; } &&
17784          { ac_try='test -s conftest$ac_exeext'
17785   { (case "(($ac_try" in
17786   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17787   *) ac_try_echo=$ac_try;;
17788 esac
17789 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17790   (eval "$ac_try") 2>&5
17791   ac_status=$?
17792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17793   (exit $ac_status); }; }; then
17794   eval "$as_ac_var=yes"
17795 else
17796   echo "$as_me: failed program was:" >&5
17797 sed 's/^/| /' conftest.$ac_ext >&5
17798
17799         eval "$as_ac_var=no"
17800 fi
17801
17802 rm -f core conftest.err conftest.$ac_objext \
17803       conftest$ac_exeext conftest.$ac_ext
17804 fi
17805 ac_res=`eval echo '${'$as_ac_var'}'`
17806                { echo "$as_me:$LINENO: result: $ac_res" >&5
17807 echo "${ECHO_T}$ac_res" >&6; }
17808 if test `eval echo '${'$as_ac_var'}'` = yes; then
17809   cat >>confdefs.h <<_ACEOF
17810 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17811 _ACEOF
17812
17813 fi
17814 done
17815
17816
17817
17818
17819
17820 for ac_func in powf fmodf strtof round
17821 do
17822 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17823 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17824 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17825 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17826   echo $ECHO_N "(cached) $ECHO_C" >&6
17827 else
17828   cat >conftest.$ac_ext <<_ACEOF
17829 /* confdefs.h.  */
17830 _ACEOF
17831 cat confdefs.h >>conftest.$ac_ext
17832 cat >>conftest.$ac_ext <<_ACEOF
17833 /* end confdefs.h.  */
17834 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17835    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17836 #define $ac_func innocuous_$ac_func
17837
17838 /* System header to define __stub macros and hopefully few prototypes,
17839     which can conflict with char $ac_func (); below.
17840     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17841     <limits.h> exists even on freestanding compilers.  */
17842
17843 #ifdef __STDC__
17844 # include <limits.h>
17845 #else
17846 # include <assert.h>
17847 #endif
17848
17849 #undef $ac_func
17850
17851 /* Override any GCC internal prototype to avoid an error.
17852    Use char because int might match the return type of a GCC
17853    builtin and then its argument prototype would still apply.  */
17854 #ifdef __cplusplus
17855 extern "C"
17856 #endif
17857 char $ac_func ();
17858 /* The GNU C library defines this for functions which it implements
17859     to always fail with ENOSYS.  Some functions are actually named
17860     something starting with __ and the normal name is an alias.  */
17861 #if defined __stub_$ac_func || defined __stub___$ac_func
17862 choke me
17863 #endif
17864
17865 int
17866 main ()
17867 {
17868 return $ac_func ();
17869   ;
17870   return 0;
17871 }
17872 _ACEOF
17873 rm -f conftest.$ac_objext conftest$ac_exeext
17874 if { (ac_try="$ac_link"
17875 case "(($ac_try" in
17876   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17877   *) ac_try_echo=$ac_try;;
17878 esac
17879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17880   (eval "$ac_link") 2>conftest.er1
17881   ac_status=$?
17882   grep -v '^ *+' conftest.er1 >conftest.err
17883   rm -f conftest.er1
17884   cat conftest.err >&5
17885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17886   (exit $ac_status); } &&
17887          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17888   { (case "(($ac_try" in
17889   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17890   *) ac_try_echo=$ac_try;;
17891 esac
17892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17893   (eval "$ac_try") 2>&5
17894   ac_status=$?
17895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17896   (exit $ac_status); }; } &&
17897          { ac_try='test -s conftest$ac_exeext'
17898   { (case "(($ac_try" in
17899   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17900   *) ac_try_echo=$ac_try;;
17901 esac
17902 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17903   (eval "$ac_try") 2>&5
17904   ac_status=$?
17905   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17906   (exit $ac_status); }; }; then
17907   eval "$as_ac_var=yes"
17908 else
17909   echo "$as_me: failed program was:" >&5
17910 sed 's/^/| /' conftest.$ac_ext >&5
17911
17912         eval "$as_ac_var=no"
17913 fi
17914
17915 rm -f core conftest.err conftest.$ac_objext \
17916       conftest$ac_exeext conftest.$ac_ext
17917 fi
17918 ac_res=`eval echo '${'$as_ac_var'}'`
17919                { echo "$as_me:$LINENO: result: $ac_res" >&5
17920 echo "${ECHO_T}$ac_res" >&6; }
17921 if test `eval echo '${'$as_ac_var'}'` = yes; then
17922   cat >>confdefs.h <<_ACEOF
17923 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17924 _ACEOF
17925
17926 fi
17927 done
17928
17929
17930
17931
17932
17933
17934 for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
17935 do
17936 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17937 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17938 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17939 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17940   echo $ECHO_N "(cached) $ECHO_C" >&6
17941 else
17942   cat >conftest.$ac_ext <<_ACEOF
17943 /* confdefs.h.  */
17944 _ACEOF
17945 cat confdefs.h >>conftest.$ac_ext
17946 cat >>conftest.$ac_ext <<_ACEOF
17947 /* end confdefs.h.  */
17948 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17949    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17950 #define $ac_func innocuous_$ac_func
17951
17952 /* System header to define __stub macros and hopefully few prototypes,
17953     which can conflict with char $ac_func (); below.
17954     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17955     <limits.h> exists even on freestanding compilers.  */
17956
17957 #ifdef __STDC__
17958 # include <limits.h>
17959 #else
17960 # include <assert.h>
17961 #endif
17962
17963 #undef $ac_func
17964
17965 /* Override any GCC internal prototype to avoid an error.
17966    Use char because int might match the return type of a GCC
17967    builtin and then its argument prototype would still apply.  */
17968 #ifdef __cplusplus
17969 extern "C"
17970 #endif
17971 char $ac_func ();
17972 /* The GNU C library defines this for functions which it implements
17973     to always fail with ENOSYS.  Some functions are actually named
17974     something starting with __ and the normal name is an alias.  */
17975 #if defined __stub_$ac_func || defined __stub___$ac_func
17976 choke me
17977 #endif
17978
17979 int
17980 main ()
17981 {
17982 return $ac_func ();
17983   ;
17984   return 0;
17985 }
17986 _ACEOF
17987 rm -f conftest.$ac_objext conftest$ac_exeext
17988 if { (ac_try="$ac_link"
17989 case "(($ac_try" in
17990   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17991   *) ac_try_echo=$ac_try;;
17992 esac
17993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17994   (eval "$ac_link") 2>conftest.er1
17995   ac_status=$?
17996   grep -v '^ *+' conftest.er1 >conftest.err
17997   rm -f conftest.er1
17998   cat conftest.err >&5
17999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18000   (exit $ac_status); } &&
18001          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18002   { (case "(($ac_try" in
18003   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18004   *) ac_try_echo=$ac_try;;
18005 esac
18006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18007   (eval "$ac_try") 2>&5
18008   ac_status=$?
18009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18010   (exit $ac_status); }; } &&
18011          { ac_try='test -s conftest$ac_exeext'
18012   { (case "(($ac_try" in
18013   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18014   *) ac_try_echo=$ac_try;;
18015 esac
18016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18017   (eval "$ac_try") 2>&5
18018   ac_status=$?
18019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18020   (exit $ac_status); }; }; then
18021   eval "$as_ac_var=yes"
18022 else
18023   echo "$as_me: failed program was:" >&5
18024 sed 's/^/| /' conftest.$ac_ext >&5
18025
18026         eval "$as_ac_var=no"
18027 fi
18028
18029 rm -f core conftest.err conftest.$ac_objext \
18030       conftest$ac_exeext conftest.$ac_ext
18031 fi
18032 ac_res=`eval echo '${'$as_ac_var'}'`
18033                { echo "$as_me:$LINENO: result: $ac_res" >&5
18034 echo "${ECHO_T}$ac_res" >&6; }
18035 if test `eval echo '${'$as_ac_var'}'` = yes; then
18036   cat >>confdefs.h <<_ACEOF
18037 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18038 _ACEOF
18039
18040 fi
18041 done
18042
18043
18044
18045
18046 for ac_func in isatty mkdtemp mkstemp
18047 do
18048 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18049 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18050 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18051 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18052   echo $ECHO_N "(cached) $ECHO_C" >&6
18053 else
18054   cat >conftest.$ac_ext <<_ACEOF
18055 /* confdefs.h.  */
18056 _ACEOF
18057 cat confdefs.h >>conftest.$ac_ext
18058 cat >>conftest.$ac_ext <<_ACEOF
18059 /* end confdefs.h.  */
18060 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18061    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18062 #define $ac_func innocuous_$ac_func
18063
18064 /* System header to define __stub macros and hopefully few prototypes,
18065     which can conflict with char $ac_func (); below.
18066     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18067     <limits.h> exists even on freestanding compilers.  */
18068
18069 #ifdef __STDC__
18070 # include <limits.h>
18071 #else
18072 # include <assert.h>
18073 #endif
18074
18075 #undef $ac_func
18076
18077 /* Override any GCC internal prototype to avoid an error.
18078    Use char because int might match the return type of a GCC
18079    builtin and then its argument prototype would still apply.  */
18080 #ifdef __cplusplus
18081 extern "C"
18082 #endif
18083 char $ac_func ();
18084 /* The GNU C library defines this for functions which it implements
18085     to always fail with ENOSYS.  Some functions are actually named
18086     something starting with __ and the normal name is an alias.  */
18087 #if defined __stub_$ac_func || defined __stub___$ac_func
18088 choke me
18089 #endif
18090
18091 int
18092 main ()
18093 {
18094 return $ac_func ();
18095   ;
18096   return 0;
18097 }
18098 _ACEOF
18099 rm -f conftest.$ac_objext conftest$ac_exeext
18100 if { (ac_try="$ac_link"
18101 case "(($ac_try" in
18102   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18103   *) ac_try_echo=$ac_try;;
18104 esac
18105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18106   (eval "$ac_link") 2>conftest.er1
18107   ac_status=$?
18108   grep -v '^ *+' conftest.er1 >conftest.err
18109   rm -f conftest.er1
18110   cat conftest.err >&5
18111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18112   (exit $ac_status); } &&
18113          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18114   { (case "(($ac_try" in
18115   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18116   *) ac_try_echo=$ac_try;;
18117 esac
18118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18119   (eval "$ac_try") 2>&5
18120   ac_status=$?
18121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18122   (exit $ac_status); }; } &&
18123          { ac_try='test -s conftest$ac_exeext'
18124   { (case "(($ac_try" in
18125   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18126   *) ac_try_echo=$ac_try;;
18127 esac
18128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18129   (eval "$ac_try") 2>&5
18130   ac_status=$?
18131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18132   (exit $ac_status); }; }; then
18133   eval "$as_ac_var=yes"
18134 else
18135   echo "$as_me: failed program was:" >&5
18136 sed 's/^/| /' conftest.$ac_ext >&5
18137
18138         eval "$as_ac_var=no"
18139 fi
18140
18141 rm -f core conftest.err conftest.$ac_objext \
18142       conftest$ac_exeext conftest.$ac_ext
18143 fi
18144 ac_res=`eval echo '${'$as_ac_var'}'`
18145                { echo "$as_me:$LINENO: result: $ac_res" >&5
18146 echo "${ECHO_T}$ac_res" >&6; }
18147 if test `eval echo '${'$as_ac_var'}'` = yes; then
18148   cat >>confdefs.h <<_ACEOF
18149 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18150 _ACEOF
18151
18152 fi
18153 done
18154
18155
18156
18157
18158
18159
18160
18161 for ac_func in mktemp posix_spawn realpath sbrk setrlimit strdup
18162 do
18163 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18164 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18165 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18166 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18167   echo $ECHO_N "(cached) $ECHO_C" >&6
18168 else
18169   cat >conftest.$ac_ext <<_ACEOF
18170 /* confdefs.h.  */
18171 _ACEOF
18172 cat confdefs.h >>conftest.$ac_ext
18173 cat >>conftest.$ac_ext <<_ACEOF
18174 /* end confdefs.h.  */
18175 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18176    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18177 #define $ac_func innocuous_$ac_func
18178
18179 /* System header to define __stub macros and hopefully few prototypes,
18180     which can conflict with char $ac_func (); below.
18181     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18182     <limits.h> exists even on freestanding compilers.  */
18183
18184 #ifdef __STDC__
18185 # include <limits.h>
18186 #else
18187 # include <assert.h>
18188 #endif
18189
18190 #undef $ac_func
18191
18192 /* Override any GCC internal prototype to avoid an error.
18193    Use char because int might match the return type of a GCC
18194    builtin and then its argument prototype would still apply.  */
18195 #ifdef __cplusplus
18196 extern "C"
18197 #endif
18198 char $ac_func ();
18199 /* The GNU C library defines this for functions which it implements
18200     to always fail with ENOSYS.  Some functions are actually named
18201     something starting with __ and the normal name is an alias.  */
18202 #if defined __stub_$ac_func || defined __stub___$ac_func
18203 choke me
18204 #endif
18205
18206 int
18207 main ()
18208 {
18209 return $ac_func ();
18210   ;
18211   return 0;
18212 }
18213 _ACEOF
18214 rm -f conftest.$ac_objext conftest$ac_exeext
18215 if { (ac_try="$ac_link"
18216 case "(($ac_try" in
18217   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18218   *) ac_try_echo=$ac_try;;
18219 esac
18220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18221   (eval "$ac_link") 2>conftest.er1
18222   ac_status=$?
18223   grep -v '^ *+' conftest.er1 >conftest.err
18224   rm -f conftest.er1
18225   cat conftest.err >&5
18226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18227   (exit $ac_status); } &&
18228          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18229   { (case "(($ac_try" in
18230   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18231   *) ac_try_echo=$ac_try;;
18232 esac
18233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18234   (eval "$ac_try") 2>&5
18235   ac_status=$?
18236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18237   (exit $ac_status); }; } &&
18238          { ac_try='test -s conftest$ac_exeext'
18239   { (case "(($ac_try" in
18240   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18241   *) ac_try_echo=$ac_try;;
18242 esac
18243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18244   (eval "$ac_try") 2>&5
18245   ac_status=$?
18246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18247   (exit $ac_status); }; }; then
18248   eval "$as_ac_var=yes"
18249 else
18250   echo "$as_me: failed program was:" >&5
18251 sed 's/^/| /' conftest.$ac_ext >&5
18252
18253         eval "$as_ac_var=no"
18254 fi
18255
18256 rm -f core conftest.err conftest.$ac_objext \
18257       conftest$ac_exeext conftest.$ac_ext
18258 fi
18259 ac_res=`eval echo '${'$as_ac_var'}'`
18260                { echo "$as_me:$LINENO: result: $ac_res" >&5
18261 echo "${ECHO_T}$ac_res" >&6; }
18262 if test `eval echo '${'$as_ac_var'}'` = yes; then
18263   cat >>confdefs.h <<_ACEOF
18264 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18265 _ACEOF
18266
18267 fi
18268 done
18269
18270
18271
18272
18273
18274 for ac_func in strerror strerror_r strerror_s setenv
18275 do
18276 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18277 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18278 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18279 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18280   echo $ECHO_N "(cached) $ECHO_C" >&6
18281 else
18282   cat >conftest.$ac_ext <<_ACEOF
18283 /* confdefs.h.  */
18284 _ACEOF
18285 cat confdefs.h >>conftest.$ac_ext
18286 cat >>conftest.$ac_ext <<_ACEOF
18287 /* end confdefs.h.  */
18288 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18289    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18290 #define $ac_func innocuous_$ac_func
18291
18292 /* System header to define __stub macros and hopefully few prototypes,
18293     which can conflict with char $ac_func (); below.
18294     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18295     <limits.h> exists even on freestanding compilers.  */
18296
18297 #ifdef __STDC__
18298 # include <limits.h>
18299 #else
18300 # include <assert.h>
18301 #endif
18302
18303 #undef $ac_func
18304
18305 /* Override any GCC internal prototype to avoid an error.
18306    Use char because int might match the return type of a GCC
18307    builtin and then its argument prototype would still apply.  */
18308 #ifdef __cplusplus
18309 extern "C"
18310 #endif
18311 char $ac_func ();
18312 /* The GNU C library defines this for functions which it implements
18313     to always fail with ENOSYS.  Some functions are actually named
18314     something starting with __ and the normal name is an alias.  */
18315 #if defined __stub_$ac_func || defined __stub___$ac_func
18316 choke me
18317 #endif
18318
18319 int
18320 main ()
18321 {
18322 return $ac_func ();
18323   ;
18324   return 0;
18325 }
18326 _ACEOF
18327 rm -f conftest.$ac_objext conftest$ac_exeext
18328 if { (ac_try="$ac_link"
18329 case "(($ac_try" in
18330   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18331   *) ac_try_echo=$ac_try;;
18332 esac
18333 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18334   (eval "$ac_link") 2>conftest.er1
18335   ac_status=$?
18336   grep -v '^ *+' conftest.er1 >conftest.err
18337   rm -f conftest.er1
18338   cat conftest.err >&5
18339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18340   (exit $ac_status); } &&
18341          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18342   { (case "(($ac_try" in
18343   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18344   *) ac_try_echo=$ac_try;;
18345 esac
18346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18347   (eval "$ac_try") 2>&5
18348   ac_status=$?
18349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18350   (exit $ac_status); }; } &&
18351          { ac_try='test -s conftest$ac_exeext'
18352   { (case "(($ac_try" in
18353   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18354   *) ac_try_echo=$ac_try;;
18355 esac
18356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18357   (eval "$ac_try") 2>&5
18358   ac_status=$?
18359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18360   (exit $ac_status); }; }; then
18361   eval "$as_ac_var=yes"
18362 else
18363   echo "$as_me: failed program was:" >&5
18364 sed 's/^/| /' conftest.$ac_ext >&5
18365
18366         eval "$as_ac_var=no"
18367 fi
18368
18369 rm -f core conftest.err conftest.$ac_objext \
18370       conftest$ac_exeext conftest.$ac_ext
18371 fi
18372 ac_res=`eval echo '${'$as_ac_var'}'`
18373                { echo "$as_me:$LINENO: result: $ac_res" >&5
18374 echo "${ECHO_T}$ac_res" >&6; }
18375 if test `eval echo '${'$as_ac_var'}'` = yes; then
18376   cat >>confdefs.h <<_ACEOF
18377 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18378 _ACEOF
18379
18380 fi
18381 done
18382
18383
18384
18385
18386
18387 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
18388 do
18389 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18390 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18391 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18392 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18393   echo $ECHO_N "(cached) $ECHO_C" >&6
18394 else
18395   cat >conftest.$ac_ext <<_ACEOF
18396 /* confdefs.h.  */
18397 _ACEOF
18398 cat confdefs.h >>conftest.$ac_ext
18399 cat >>conftest.$ac_ext <<_ACEOF
18400 /* end confdefs.h.  */
18401 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18402    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18403 #define $ac_func innocuous_$ac_func
18404
18405 /* System header to define __stub macros and hopefully few prototypes,
18406     which can conflict with char $ac_func (); below.
18407     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18408     <limits.h> exists even on freestanding compilers.  */
18409
18410 #ifdef __STDC__
18411 # include <limits.h>
18412 #else
18413 # include <assert.h>
18414 #endif
18415
18416 #undef $ac_func
18417
18418 /* Override any GCC internal prototype to avoid an error.
18419    Use char because int might match the return type of a GCC
18420    builtin and then its argument prototype would still apply.  */
18421 #ifdef __cplusplus
18422 extern "C"
18423 #endif
18424 char $ac_func ();
18425 /* The GNU C library defines this for functions which it implements
18426     to always fail with ENOSYS.  Some functions are actually named
18427     something starting with __ and the normal name is an alias.  */
18428 #if defined __stub_$ac_func || defined __stub___$ac_func
18429 choke me
18430 #endif
18431
18432 int
18433 main ()
18434 {
18435 return $ac_func ();
18436   ;
18437   return 0;
18438 }
18439 _ACEOF
18440 rm -f conftest.$ac_objext conftest$ac_exeext
18441 if { (ac_try="$ac_link"
18442 case "(($ac_try" in
18443   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18444   *) ac_try_echo=$ac_try;;
18445 esac
18446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18447   (eval "$ac_link") 2>conftest.er1
18448   ac_status=$?
18449   grep -v '^ *+' conftest.er1 >conftest.err
18450   rm -f conftest.er1
18451   cat conftest.err >&5
18452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18453   (exit $ac_status); } &&
18454          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18455   { (case "(($ac_try" in
18456   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18457   *) ac_try_echo=$ac_try;;
18458 esac
18459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18460   (eval "$ac_try") 2>&5
18461   ac_status=$?
18462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18463   (exit $ac_status); }; } &&
18464          { ac_try='test -s conftest$ac_exeext'
18465   { (case "(($ac_try" in
18466   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18467   *) ac_try_echo=$ac_try;;
18468 esac
18469 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18470   (eval "$ac_try") 2>&5
18471   ac_status=$?
18472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18473   (exit $ac_status); }; }; then
18474   eval "$as_ac_var=yes"
18475 else
18476   echo "$as_me: failed program was:" >&5
18477 sed 's/^/| /' conftest.$ac_ext >&5
18478
18479         eval "$as_ac_var=no"
18480 fi
18481
18482 rm -f core conftest.err conftest.$ac_objext \
18483       conftest$ac_exeext conftest.$ac_ext
18484 fi
18485 ac_res=`eval echo '${'$as_ac_var'}'`
18486                { echo "$as_me:$LINENO: result: $ac_res" >&5
18487 echo "${ECHO_T}$ac_res" >&6; }
18488 if test `eval echo '${'$as_ac_var'}'` = yes; then
18489   cat >>confdefs.h <<_ACEOF
18490 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18491 _ACEOF
18492
18493 fi
18494 done
18495
18496
18497
18498
18499
18500 for ac_func in setjmp longjmp sigsetjmp siglongjmp
18501 do
18502 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18503 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18504 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18505 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18506   echo $ECHO_N "(cached) $ECHO_C" >&6
18507 else
18508   cat >conftest.$ac_ext <<_ACEOF
18509 /* confdefs.h.  */
18510 _ACEOF
18511 cat confdefs.h >>conftest.$ac_ext
18512 cat >>conftest.$ac_ext <<_ACEOF
18513 /* end confdefs.h.  */
18514 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18515    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18516 #define $ac_func innocuous_$ac_func
18517
18518 /* System header to define __stub macros and hopefully few prototypes,
18519     which can conflict with char $ac_func (); below.
18520     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18521     <limits.h> exists even on freestanding compilers.  */
18522
18523 #ifdef __STDC__
18524 # include <limits.h>
18525 #else
18526 # include <assert.h>
18527 #endif
18528
18529 #undef $ac_func
18530
18531 /* Override any GCC internal prototype to avoid an error.
18532    Use char because int might match the return type of a GCC
18533    builtin and then its argument prototype would still apply.  */
18534 #ifdef __cplusplus
18535 extern "C"
18536 #endif
18537 char $ac_func ();
18538 /* The GNU C library defines this for functions which it implements
18539     to always fail with ENOSYS.  Some functions are actually named
18540     something starting with __ and the normal name is an alias.  */
18541 #if defined __stub_$ac_func || defined __stub___$ac_func
18542 choke me
18543 #endif
18544
18545 int
18546 main ()
18547 {
18548 return $ac_func ();
18549   ;
18550   return 0;
18551 }
18552 _ACEOF
18553 rm -f conftest.$ac_objext conftest$ac_exeext
18554 if { (ac_try="$ac_link"
18555 case "(($ac_try" in
18556   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18557   *) ac_try_echo=$ac_try;;
18558 esac
18559 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18560   (eval "$ac_link") 2>conftest.er1
18561   ac_status=$?
18562   grep -v '^ *+' conftest.er1 >conftest.err
18563   rm -f conftest.er1
18564   cat conftest.err >&5
18565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18566   (exit $ac_status); } &&
18567          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18568   { (case "(($ac_try" in
18569   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18570   *) ac_try_echo=$ac_try;;
18571 esac
18572 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18573   (eval "$ac_try") 2>&5
18574   ac_status=$?
18575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18576   (exit $ac_status); }; } &&
18577          { ac_try='test -s conftest$ac_exeext'
18578   { (case "(($ac_try" in
18579   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18580   *) ac_try_echo=$ac_try;;
18581 esac
18582 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18583   (eval "$ac_try") 2>&5
18584   ac_status=$?
18585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18586   (exit $ac_status); }; }; then
18587   eval "$as_ac_var=yes"
18588 else
18589   echo "$as_me: failed program was:" >&5
18590 sed 's/^/| /' conftest.$ac_ext >&5
18591
18592         eval "$as_ac_var=no"
18593 fi
18594
18595 rm -f core conftest.err conftest.$ac_objext \
18596       conftest$ac_exeext conftest.$ac_ext
18597 fi
18598 ac_res=`eval echo '${'$as_ac_var'}'`
18599                { echo "$as_me:$LINENO: result: $ac_res" >&5
18600 echo "${ECHO_T}$ac_res" >&6; }
18601 if test `eval echo '${'$as_ac_var'}'` = yes; then
18602   cat >>confdefs.h <<_ACEOF
18603 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18604 _ACEOF
18605
18606 fi
18607 done
18608
18609 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
18610 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
18611 if test "${llvm_cv_c_printf_a+set}" = set; then
18612   echo $ECHO_N "(cached) $ECHO_C" >&6
18613 else
18614   ac_ext=c
18615 ac_cpp='$CPP $CPPFLAGS'
18616 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18617 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18618 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18619
18620  if test "$cross_compiling" = yes; then
18621   llvmac_cv_c_printf_a=no
18622 else
18623   cat >conftest.$ac_ext <<_ACEOF
18624
18625   /* confdefs.h.  */
18626 _ACEOF
18627 cat confdefs.h >>conftest.$ac_ext
18628 cat >>conftest.$ac_ext <<_ACEOF
18629 /* end confdefs.h.  */
18630
18631 #include <stdio.h>
18632 #include <stdlib.h>
18633
18634 int
18635 main ()
18636 {
18637
18638 volatile double A, B;
18639 char Buffer[100];
18640 A = 1;
18641 A /= 10.0;
18642 sprintf(Buffer, "%a", A);
18643 B = atof(Buffer);
18644 if (A != B)
18645   return (1);
18646 if (A != 0x1.999999999999ap-4)
18647   return (1);
18648 return (0);
18649   ;
18650   return 0;
18651 }
18652 _ACEOF
18653 rm -f conftest$ac_exeext
18654 if { (ac_try="$ac_link"
18655 case "(($ac_try" in
18656   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18657   *) ac_try_echo=$ac_try;;
18658 esac
18659 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18660   (eval "$ac_link") 2>&5
18661   ac_status=$?
18662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18663   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18664   { (case "(($ac_try" in
18665   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18666   *) ac_try_echo=$ac_try;;
18667 esac
18668 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18669   (eval "$ac_try") 2>&5
18670   ac_status=$?
18671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18672   (exit $ac_status); }; }; then
18673   llvm_cv_c_printf_a=yes
18674 else
18675   echo "$as_me: program exited with status $ac_status" >&5
18676 echo "$as_me: failed program was:" >&5
18677 sed 's/^/| /' conftest.$ac_ext >&5
18678
18679 ( exit $ac_status )
18680 llvmac_cv_c_printf_a=no
18681 fi
18682 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18683 fi
18684
18685
18686  ac_ext=c
18687 ac_cpp='$CPP $CPPFLAGS'
18688 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18689 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18690 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18691
18692 fi
18693 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
18694 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
18695  if test "$llvm_cv_c_printf_a" = "yes"; then
18696
18697 cat >>confdefs.h <<\_ACEOF
18698 #define HAVE_PRINTF_A 1
18699 _ACEOF
18700
18701  fi
18702
18703
18704 { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
18705 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
18706 if test "${ac_cv_func_rand48+set}" = set; then
18707   echo $ECHO_N "(cached) $ECHO_C" >&6
18708 else
18709   ac_ext=cpp
18710 ac_cpp='$CXXCPP $CPPFLAGS'
18711 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18712 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18713 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18714
18715    cat >conftest.$ac_ext <<_ACEOF
18716 /* confdefs.h.  */
18717 _ACEOF
18718 cat confdefs.h >>conftest.$ac_ext
18719 cat >>conftest.$ac_ext <<_ACEOF
18720 /* end confdefs.h.  */
18721 #include <stdlib.h>
18722 int
18723 main ()
18724 {
18725 srand48(0);lrand48();drand48();
18726   ;
18727   return 0;
18728 }
18729 _ACEOF
18730 rm -f conftest.$ac_objext
18731 if { (ac_try="$ac_compile"
18732 case "(($ac_try" in
18733   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18734   *) ac_try_echo=$ac_try;;
18735 esac
18736 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18737   (eval "$ac_compile") 2>conftest.er1
18738   ac_status=$?
18739   grep -v '^ *+' conftest.er1 >conftest.err
18740   rm -f conftest.er1
18741   cat conftest.err >&5
18742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18743   (exit $ac_status); } &&
18744          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18745   { (case "(($ac_try" in
18746   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18747   *) ac_try_echo=$ac_try;;
18748 esac
18749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18750   (eval "$ac_try") 2>&5
18751   ac_status=$?
18752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18753   (exit $ac_status); }; } &&
18754          { ac_try='test -s conftest.$ac_objext'
18755   { (case "(($ac_try" in
18756   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18757   *) ac_try_echo=$ac_try;;
18758 esac
18759 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18760   (eval "$ac_try") 2>&5
18761   ac_status=$?
18762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18763   (exit $ac_status); }; }; then
18764   ac_cv_func_rand48=yes
18765 else
18766   echo "$as_me: failed program was:" >&5
18767 sed 's/^/| /' conftest.$ac_ext >&5
18768
18769         ac_cv_func_rand48=no
18770 fi
18771
18772 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18773   ac_ext=c
18774 ac_cpp='$CPP $CPPFLAGS'
18775 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18776 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18777 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18778
18779 fi
18780 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
18781 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
18782
18783 if test "$ac_cv_func_rand48" = "yes" ; then
18784
18785 cat >>confdefs.h <<\_ACEOF
18786 #define HAVE_RAND48 1
18787 _ACEOF
18788
18789 fi
18790
18791
18792
18793 { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
18794 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
18795 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
18796   echo $ECHO_N "(cached) $ECHO_C" >&6
18797 else
18798   ac_ext=cpp
18799 ac_cpp='$CXXCPP $CPPFLAGS'
18800 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18801 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18802 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18803
18804    cat >conftest.$ac_ext <<_ACEOF
18805 /* confdefs.h.  */
18806 _ACEOF
18807 cat confdefs.h >>conftest.$ac_ext
18808 cat >>conftest.$ac_ext <<_ACEOF
18809 /* end confdefs.h.  */
18810 #include <math.h>
18811 int
18812 main ()
18813 {
18814 float f; isnan(f);
18815   ;
18816   return 0;
18817 }
18818 _ACEOF
18819 rm -f conftest.$ac_objext
18820 if { (ac_try="$ac_compile"
18821 case "(($ac_try" in
18822   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18823   *) ac_try_echo=$ac_try;;
18824 esac
18825 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18826   (eval "$ac_compile") 2>conftest.er1
18827   ac_status=$?
18828   grep -v '^ *+' conftest.er1 >conftest.err
18829   rm -f conftest.er1
18830   cat conftest.err >&5
18831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18832   (exit $ac_status); } &&
18833          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18834   { (case "(($ac_try" in
18835   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18836   *) ac_try_echo=$ac_try;;
18837 esac
18838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18839   (eval "$ac_try") 2>&5
18840   ac_status=$?
18841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18842   (exit $ac_status); }; } &&
18843          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
18853   ac_cv_func_isnan_in_math_h=yes
18854 else
18855   echo "$as_me: failed program was:" >&5
18856 sed 's/^/| /' conftest.$ac_ext >&5
18857
18858         ac_cv_func_isnan_in_math_h=no
18859 fi
18860
18861 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18862   ac_ext=c
18863 ac_cpp='$CPP $CPPFLAGS'
18864 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18865 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18866 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18867
18868 fi
18869 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
18870 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
18871
18872
18873 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
18874
18875 cat >>confdefs.h <<\_ACEOF
18876 #define HAVE_ISNAN_IN_MATH_H 1
18877 _ACEOF
18878
18879 fi
18880
18881 { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
18882 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
18883 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
18884   echo $ECHO_N "(cached) $ECHO_C" >&6
18885 else
18886   ac_ext=cpp
18887 ac_cpp='$CXXCPP $CPPFLAGS'
18888 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18889 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18890 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18891
18892    cat >conftest.$ac_ext <<_ACEOF
18893 /* confdefs.h.  */
18894 _ACEOF
18895 cat confdefs.h >>conftest.$ac_ext
18896 cat >>conftest.$ac_ext <<_ACEOF
18897 /* end confdefs.h.  */
18898 #include <cmath>
18899 int
18900 main ()
18901 {
18902 float f; isnan(f);
18903   ;
18904   return 0;
18905 }
18906 _ACEOF
18907 rm -f conftest.$ac_objext
18908 if { (ac_try="$ac_compile"
18909 case "(($ac_try" in
18910   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18911   *) ac_try_echo=$ac_try;;
18912 esac
18913 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18914   (eval "$ac_compile") 2>conftest.er1
18915   ac_status=$?
18916   grep -v '^ *+' conftest.er1 >conftest.err
18917   rm -f conftest.er1
18918   cat conftest.err >&5
18919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18920   (exit $ac_status); } &&
18921          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18922   { (case "(($ac_try" in
18923   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18924   *) ac_try_echo=$ac_try;;
18925 esac
18926 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18927   (eval "$ac_try") 2>&5
18928   ac_status=$?
18929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18930   (exit $ac_status); }; } &&
18931          { ac_try='test -s conftest.$ac_objext'
18932   { (case "(($ac_try" in
18933   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18934   *) ac_try_echo=$ac_try;;
18935 esac
18936 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18937   (eval "$ac_try") 2>&5
18938   ac_status=$?
18939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18940   (exit $ac_status); }; }; then
18941   ac_cv_func_isnan_in_cmath=yes
18942 else
18943   echo "$as_me: failed program was:" >&5
18944 sed 's/^/| /' conftest.$ac_ext >&5
18945
18946         ac_cv_func_isnan_in_cmath=no
18947 fi
18948
18949 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18950   ac_ext=c
18951 ac_cpp='$CPP $CPPFLAGS'
18952 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18953 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18954 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18955
18956 fi
18957 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
18958 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
18959
18960 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
18961
18962 cat >>confdefs.h <<\_ACEOF
18963 #define HAVE_ISNAN_IN_CMATH 1
18964 _ACEOF
18965
18966 fi
18967
18968 { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
18969 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
18970 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
18971   echo $ECHO_N "(cached) $ECHO_C" >&6
18972 else
18973   ac_ext=cpp
18974 ac_cpp='$CXXCPP $CPPFLAGS'
18975 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18976 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18977 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18978
18979    cat >conftest.$ac_ext <<_ACEOF
18980 /* confdefs.h.  */
18981 _ACEOF
18982 cat confdefs.h >>conftest.$ac_ext
18983 cat >>conftest.$ac_ext <<_ACEOF
18984 /* end confdefs.h.  */
18985 #include <cmath>
18986 int
18987 main ()
18988 {
18989 float f; std::isnan(f);
18990   ;
18991   return 0;
18992 }
18993 _ACEOF
18994 rm -f conftest.$ac_objext
18995 if { (ac_try="$ac_compile"
18996 case "(($ac_try" in
18997   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18998   *) ac_try_echo=$ac_try;;
18999 esac
19000 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19001   (eval "$ac_compile") 2>conftest.er1
19002   ac_status=$?
19003   grep -v '^ *+' conftest.er1 >conftest.err
19004   rm -f conftest.er1
19005   cat conftest.err >&5
19006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19007   (exit $ac_status); } &&
19008          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19009   { (case "(($ac_try" in
19010   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19011   *) ac_try_echo=$ac_try;;
19012 esac
19013 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19014   (eval "$ac_try") 2>&5
19015   ac_status=$?
19016   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19017   (exit $ac_status); }; } &&
19018          { ac_try='test -s conftest.$ac_objext'
19019   { (case "(($ac_try" in
19020   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19021   *) ac_try_echo=$ac_try;;
19022 esac
19023 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19024   (eval "$ac_try") 2>&5
19025   ac_status=$?
19026   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19027   (exit $ac_status); }; }; then
19028   ac_cv_func_std_isnan_in_cmath=yes
19029 else
19030   echo "$as_me: failed program was:" >&5
19031 sed 's/^/| /' conftest.$ac_ext >&5
19032
19033         ac_cv_func_std_isnan_in_cmath=no
19034 fi
19035
19036 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19037   ac_ext=c
19038 ac_cpp='$CPP $CPPFLAGS'
19039 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19040 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19041 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19042
19043 fi
19044 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
19045 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
19046
19047 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
19048
19049 cat >>confdefs.h <<\_ACEOF
19050 #define HAVE_STD_ISNAN_IN_CMATH 1
19051 _ACEOF
19052
19053 fi
19054
19055
19056 { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
19057 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
19058 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
19059   echo $ECHO_N "(cached) $ECHO_C" >&6
19060 else
19061   ac_ext=cpp
19062 ac_cpp='$CXXCPP $CPPFLAGS'
19063 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19064 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19065 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19066
19067    cat >conftest.$ac_ext <<_ACEOF
19068 /* confdefs.h.  */
19069 _ACEOF
19070 cat confdefs.h >>conftest.$ac_ext
19071 cat >>conftest.$ac_ext <<_ACEOF
19072 /* end confdefs.h.  */
19073 #include <math.h>
19074 int
19075 main ()
19076 {
19077 float f; isinf(f);
19078   ;
19079   return 0;
19080 }
19081 _ACEOF
19082 rm -f conftest.$ac_objext
19083 if { (ac_try="$ac_compile"
19084 case "(($ac_try" in
19085   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19086   *) ac_try_echo=$ac_try;;
19087 esac
19088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19089   (eval "$ac_compile") 2>conftest.er1
19090   ac_status=$?
19091   grep -v '^ *+' conftest.er1 >conftest.err
19092   rm -f conftest.er1
19093   cat conftest.err >&5
19094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19095   (exit $ac_status); } &&
19096          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
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_try") 2>&5
19103   ac_status=$?
19104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19105   (exit $ac_status); }; } &&
19106          { ac_try='test -s conftest.$ac_objext'
19107   { (case "(($ac_try" in
19108   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19109   *) ac_try_echo=$ac_try;;
19110 esac
19111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19112   (eval "$ac_try") 2>&5
19113   ac_status=$?
19114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19115   (exit $ac_status); }; }; then
19116   ac_cv_func_isinf_in_math_h=yes
19117 else
19118   echo "$as_me: failed program was:" >&5
19119 sed 's/^/| /' conftest.$ac_ext >&5
19120
19121         ac_cv_func_isinf_in_math_h=no
19122 fi
19123
19124 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19125   ac_ext=c
19126 ac_cpp='$CPP $CPPFLAGS'
19127 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19128 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19129 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19130
19131 fi
19132 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
19133 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
19134
19135 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
19136
19137 cat >>confdefs.h <<\_ACEOF
19138 #define HAVE_ISINF_IN_MATH_H 1
19139 _ACEOF
19140
19141 fi
19142
19143 { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
19144 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
19145 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
19146   echo $ECHO_N "(cached) $ECHO_C" >&6
19147 else
19148   ac_ext=cpp
19149 ac_cpp='$CXXCPP $CPPFLAGS'
19150 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19151 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19152 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19153
19154    cat >conftest.$ac_ext <<_ACEOF
19155 /* confdefs.h.  */
19156 _ACEOF
19157 cat confdefs.h >>conftest.$ac_ext
19158 cat >>conftest.$ac_ext <<_ACEOF
19159 /* end confdefs.h.  */
19160 #include <cmath>
19161 int
19162 main ()
19163 {
19164 float f; isinf(f);
19165   ;
19166   return 0;
19167 }
19168 _ACEOF
19169 rm -f conftest.$ac_objext
19170 if { (ac_try="$ac_compile"
19171 case "(($ac_try" in
19172   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19173   *) ac_try_echo=$ac_try;;
19174 esac
19175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19176   (eval "$ac_compile") 2>conftest.er1
19177   ac_status=$?
19178   grep -v '^ *+' conftest.er1 >conftest.err
19179   rm -f conftest.er1
19180   cat conftest.err >&5
19181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19182   (exit $ac_status); } &&
19183          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19184   { (case "(($ac_try" in
19185   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19186   *) ac_try_echo=$ac_try;;
19187 esac
19188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19189   (eval "$ac_try") 2>&5
19190   ac_status=$?
19191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19192   (exit $ac_status); }; } &&
19193          { ac_try='test -s conftest.$ac_objext'
19194   { (case "(($ac_try" in
19195   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19196   *) ac_try_echo=$ac_try;;
19197 esac
19198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19199   (eval "$ac_try") 2>&5
19200   ac_status=$?
19201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19202   (exit $ac_status); }; }; then
19203   ac_cv_func_isinf_in_cmath=yes
19204 else
19205   echo "$as_me: failed program was:" >&5
19206 sed 's/^/| /' conftest.$ac_ext >&5
19207
19208         ac_cv_func_isinf_in_cmath=no
19209 fi
19210
19211 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19212   ac_ext=c
19213 ac_cpp='$CPP $CPPFLAGS'
19214 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19215 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19216 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19217
19218 fi
19219 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
19220 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
19221
19222 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
19223
19224 cat >>confdefs.h <<\_ACEOF
19225 #define HAVE_ISINF_IN_CMATH 1
19226 _ACEOF
19227
19228 fi
19229
19230 { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
19231 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
19232 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
19233   echo $ECHO_N "(cached) $ECHO_C" >&6
19234 else
19235   ac_ext=cpp
19236 ac_cpp='$CXXCPP $CPPFLAGS'
19237 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19238 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19239 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19240
19241    cat >conftest.$ac_ext <<_ACEOF
19242 /* confdefs.h.  */
19243 _ACEOF
19244 cat confdefs.h >>conftest.$ac_ext
19245 cat >>conftest.$ac_ext <<_ACEOF
19246 /* end confdefs.h.  */
19247 #include <cmath>
19248 int
19249 main ()
19250 {
19251 float f; std::isinf(f)}
19252   ;
19253   return 0;
19254 }
19255 _ACEOF
19256 rm -f conftest.$ac_objext
19257 if { (ac_try="$ac_compile"
19258 case "(($ac_try" in
19259   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19260   *) ac_try_echo=$ac_try;;
19261 esac
19262 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19263   (eval "$ac_compile") 2>conftest.er1
19264   ac_status=$?
19265   grep -v '^ *+' conftest.er1 >conftest.err
19266   rm -f conftest.er1
19267   cat conftest.err >&5
19268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19269   (exit $ac_status); } &&
19270          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19271   { (case "(($ac_try" in
19272   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19273   *) ac_try_echo=$ac_try;;
19274 esac
19275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19276   (eval "$ac_try") 2>&5
19277   ac_status=$?
19278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19279   (exit $ac_status); }; } &&
19280          { ac_try='test -s conftest.$ac_objext'
19281   { (case "(($ac_try" in
19282   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19283   *) ac_try_echo=$ac_try;;
19284 esac
19285 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19286   (eval "$ac_try") 2>&5
19287   ac_status=$?
19288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19289   (exit $ac_status); }; }; then
19290   ac_cv_func_std_isinf_in_cmath=yes
19291 else
19292   echo "$as_me: failed program was:" >&5
19293 sed 's/^/| /' conftest.$ac_ext >&5
19294
19295         ac_cv_func_std_isinf_in_cmath=no
19296 fi
19297
19298 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19299   ac_ext=c
19300 ac_cpp='$CPP $CPPFLAGS'
19301 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19302 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19303 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19304
19305 fi
19306 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
19307 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
19308
19309 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
19310
19311 cat >>confdefs.h <<\_ACEOF
19312 #define HAVE_STD_ISINF_IN_CMATH 1
19313 _ACEOF
19314
19315 fi
19316
19317 { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
19318 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
19319 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
19320   echo $ECHO_N "(cached) $ECHO_C" >&6
19321 else
19322   ac_ext=cpp
19323 ac_cpp='$CXXCPP $CPPFLAGS'
19324 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19325 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19326 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19327
19328    cat >conftest.$ac_ext <<_ACEOF
19329 /* confdefs.h.  */
19330 _ACEOF
19331 cat confdefs.h >>conftest.$ac_ext
19332 cat >>conftest.$ac_ext <<_ACEOF
19333 /* end confdefs.h.  */
19334 #include <ieeefp.h>
19335 int
19336 main ()
19337 {
19338 float f; finite(f);
19339   ;
19340   return 0;
19341 }
19342 _ACEOF
19343 rm -f conftest.$ac_objext
19344 if { (ac_try="$ac_compile"
19345 case "(($ac_try" in
19346   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19347   *) ac_try_echo=$ac_try;;
19348 esac
19349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19350   (eval "$ac_compile") 2>conftest.er1
19351   ac_status=$?
19352   grep -v '^ *+' conftest.er1 >conftest.err
19353   rm -f conftest.er1
19354   cat conftest.err >&5
19355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19356   (exit $ac_status); } &&
19357          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19358   { (case "(($ac_try" in
19359   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19360   *) ac_try_echo=$ac_try;;
19361 esac
19362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19363   (eval "$ac_try") 2>&5
19364   ac_status=$?
19365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19366   (exit $ac_status); }; } &&
19367          { ac_try='test -s conftest.$ac_objext'
19368   { (case "(($ac_try" in
19369   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19370   *) ac_try_echo=$ac_try;;
19371 esac
19372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19373   (eval "$ac_try") 2>&5
19374   ac_status=$?
19375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19376   (exit $ac_status); }; }; then
19377   ac_cv_func_finite_in_ieeefp_h=yes
19378 else
19379   echo "$as_me: failed program was:" >&5
19380 sed 's/^/| /' conftest.$ac_ext >&5
19381
19382         ac_cv_func_finite_in_ieeefp_h=no
19383 fi
19384
19385 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19386   ac_ext=c
19387 ac_cpp='$CPP $CPPFLAGS'
19388 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19389 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19390 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19391
19392 fi
19393 { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
19394 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
19395
19396 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
19397
19398 cat >>confdefs.h <<\_ACEOF
19399 #define HAVE_FINITE_IN_IEEEFP_H 1
19400 _ACEOF
19401
19402 fi
19403
19404
19405
19406 if test "$llvm_cv_platform_type" = "Unix" ; then
19407
19408
19409 for ac_header in stdlib.h unistd.h
19410 do
19411 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19412 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19413   { echo "$as_me:$LINENO: checking for $ac_header" >&5
19414 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19415 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19416   echo $ECHO_N "(cached) $ECHO_C" >&6
19417 fi
19418 ac_res=`eval echo '${'$as_ac_Header'}'`
19419                { echo "$as_me:$LINENO: result: $ac_res" >&5
19420 echo "${ECHO_T}$ac_res" >&6; }
19421 else
19422   # Is the header compilable?
19423 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
19424 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19425 cat >conftest.$ac_ext <<_ACEOF
19426 /* confdefs.h.  */
19427 _ACEOF
19428 cat confdefs.h >>conftest.$ac_ext
19429 cat >>conftest.$ac_ext <<_ACEOF
19430 /* end confdefs.h.  */
19431 $ac_includes_default
19432 #include <$ac_header>
19433 _ACEOF
19434 rm -f conftest.$ac_objext
19435 if { (ac_try="$ac_compile"
19436 case "(($ac_try" in
19437   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19438   *) ac_try_echo=$ac_try;;
19439 esac
19440 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19441   (eval "$ac_compile") 2>conftest.er1
19442   ac_status=$?
19443   grep -v '^ *+' conftest.er1 >conftest.err
19444   rm -f conftest.er1
19445   cat conftest.err >&5
19446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19447   (exit $ac_status); } &&
19448          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19449   { (case "(($ac_try" in
19450   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19451   *) ac_try_echo=$ac_try;;
19452 esac
19453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19454   (eval "$ac_try") 2>&5
19455   ac_status=$?
19456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19457   (exit $ac_status); }; } &&
19458          { ac_try='test -s conftest.$ac_objext'
19459   { (case "(($ac_try" in
19460   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19461   *) ac_try_echo=$ac_try;;
19462 esac
19463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19464   (eval "$ac_try") 2>&5
19465   ac_status=$?
19466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19467   (exit $ac_status); }; }; then
19468   ac_header_compiler=yes
19469 else
19470   echo "$as_me: failed program was:" >&5
19471 sed 's/^/| /' conftest.$ac_ext >&5
19472
19473         ac_header_compiler=no
19474 fi
19475
19476 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19477 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19478 echo "${ECHO_T}$ac_header_compiler" >&6; }
19479
19480 # Is the header present?
19481 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
19482 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
19483 cat >conftest.$ac_ext <<_ACEOF
19484 /* confdefs.h.  */
19485 _ACEOF
19486 cat confdefs.h >>conftest.$ac_ext
19487 cat >>conftest.$ac_ext <<_ACEOF
19488 /* end confdefs.h.  */
19489 #include <$ac_header>
19490 _ACEOF
19491 if { (ac_try="$ac_cpp conftest.$ac_ext"
19492 case "(($ac_try" in
19493   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19494   *) ac_try_echo=$ac_try;;
19495 esac
19496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19497   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19498   ac_status=$?
19499   grep -v '^ *+' conftest.er1 >conftest.err
19500   rm -f conftest.er1
19501   cat conftest.err >&5
19502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19503   (exit $ac_status); } >/dev/null; then
19504   if test -s conftest.err; then
19505     ac_cpp_err=$ac_c_preproc_warn_flag
19506     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19507   else
19508     ac_cpp_err=
19509   fi
19510 else
19511   ac_cpp_err=yes
19512 fi
19513 if test -z "$ac_cpp_err"; then
19514   ac_header_preproc=yes
19515 else
19516   echo "$as_me: failed program was:" >&5
19517 sed 's/^/| /' conftest.$ac_ext >&5
19518
19519   ac_header_preproc=no
19520 fi
19521
19522 rm -f conftest.err conftest.$ac_ext
19523 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19524 echo "${ECHO_T}$ac_header_preproc" >&6; }
19525
19526 # So?  What about this header?
19527 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19528   yes:no: )
19529     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19530 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19531     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19532 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19533     ac_header_preproc=yes
19534     ;;
19535   no:yes:* )
19536     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19537 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19538     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
19539 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
19540     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19541 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19542     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
19543 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
19544     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19545 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19546     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19547 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19548     ( cat <<\_ASBOX
19549 ## ----------------------------------- ##
19550 ## Report this to llvmbugs@cs.uiuc.edu ##
19551 ## ----------------------------------- ##
19552 _ASBOX
19553      ) | sed "s/^/$as_me: WARNING:     /" >&2
19554     ;;
19555 esac
19556 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19557 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19558 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19559   echo $ECHO_N "(cached) $ECHO_C" >&6
19560 else
19561   eval "$as_ac_Header=\$ac_header_preproc"
19562 fi
19563 ac_res=`eval echo '${'$as_ac_Header'}'`
19564                { echo "$as_me:$LINENO: result: $ac_res" >&5
19565 echo "${ECHO_T}$ac_res" >&6; }
19566
19567 fi
19568 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19569   cat >>confdefs.h <<_ACEOF
19570 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19571 _ACEOF
19572
19573 fi
19574
19575 done
19576
19577
19578 for ac_func in getpagesize
19579 do
19580 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19581 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19582 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19583 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19584   echo $ECHO_N "(cached) $ECHO_C" >&6
19585 else
19586   cat >conftest.$ac_ext <<_ACEOF
19587 /* confdefs.h.  */
19588 _ACEOF
19589 cat confdefs.h >>conftest.$ac_ext
19590 cat >>conftest.$ac_ext <<_ACEOF
19591 /* end confdefs.h.  */
19592 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19593    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19594 #define $ac_func innocuous_$ac_func
19595
19596 /* System header to define __stub macros and hopefully few prototypes,
19597     which can conflict with char $ac_func (); below.
19598     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19599     <limits.h> exists even on freestanding compilers.  */
19600
19601 #ifdef __STDC__
19602 # include <limits.h>
19603 #else
19604 # include <assert.h>
19605 #endif
19606
19607 #undef $ac_func
19608
19609 /* Override any GCC internal prototype to avoid an error.
19610    Use char because int might match the return type of a GCC
19611    builtin and then its argument prototype would still apply.  */
19612 #ifdef __cplusplus
19613 extern "C"
19614 #endif
19615 char $ac_func ();
19616 /* The GNU C library defines this for functions which it implements
19617     to always fail with ENOSYS.  Some functions are actually named
19618     something starting with __ and the normal name is an alias.  */
19619 #if defined __stub_$ac_func || defined __stub___$ac_func
19620 choke me
19621 #endif
19622
19623 int
19624 main ()
19625 {
19626 return $ac_func ();
19627   ;
19628   return 0;
19629 }
19630 _ACEOF
19631 rm -f conftest.$ac_objext conftest$ac_exeext
19632 if { (ac_try="$ac_link"
19633 case "(($ac_try" in
19634   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19635   *) ac_try_echo=$ac_try;;
19636 esac
19637 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19638   (eval "$ac_link") 2>conftest.er1
19639   ac_status=$?
19640   grep -v '^ *+' conftest.er1 >conftest.err
19641   rm -f conftest.er1
19642   cat conftest.err >&5
19643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19644   (exit $ac_status); } &&
19645          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19646   { (case "(($ac_try" in
19647   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19648   *) ac_try_echo=$ac_try;;
19649 esac
19650 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19651   (eval "$ac_try") 2>&5
19652   ac_status=$?
19653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19654   (exit $ac_status); }; } &&
19655          { ac_try='test -s conftest$ac_exeext'
19656   { (case "(($ac_try" in
19657   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19658   *) ac_try_echo=$ac_try;;
19659 esac
19660 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19661   (eval "$ac_try") 2>&5
19662   ac_status=$?
19663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19664   (exit $ac_status); }; }; then
19665   eval "$as_ac_var=yes"
19666 else
19667   echo "$as_me: failed program was:" >&5
19668 sed 's/^/| /' conftest.$ac_ext >&5
19669
19670         eval "$as_ac_var=no"
19671 fi
19672
19673 rm -f core conftest.err conftest.$ac_objext \
19674       conftest$ac_exeext conftest.$ac_ext
19675 fi
19676 ac_res=`eval echo '${'$as_ac_var'}'`
19677                { echo "$as_me:$LINENO: result: $ac_res" >&5
19678 echo "${ECHO_T}$ac_res" >&6; }
19679 if test `eval echo '${'$as_ac_var'}'` = yes; then
19680   cat >>confdefs.h <<_ACEOF
19681 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19682 _ACEOF
19683
19684 fi
19685 done
19686
19687 { echo "$as_me:$LINENO: checking for working mmap" >&5
19688 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
19689 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
19690   echo $ECHO_N "(cached) $ECHO_C" >&6
19691 else
19692   if test "$cross_compiling" = yes; then
19693   ac_cv_func_mmap_fixed_mapped=no
19694 else
19695   cat >conftest.$ac_ext <<_ACEOF
19696 /* confdefs.h.  */
19697 _ACEOF
19698 cat confdefs.h >>conftest.$ac_ext
19699 cat >>conftest.$ac_ext <<_ACEOF
19700 /* end confdefs.h.  */
19701 $ac_includes_default
19702 /* malloc might have been renamed as rpl_malloc. */
19703 #undef malloc
19704
19705 /* Thanks to Mike Haertel and Jim Avera for this test.
19706    Here is a matrix of mmap possibilities:
19707         mmap private not fixed
19708         mmap private fixed at somewhere currently unmapped
19709         mmap private fixed at somewhere already mapped
19710         mmap shared not fixed
19711         mmap shared fixed at somewhere currently unmapped
19712         mmap shared fixed at somewhere already mapped
19713    For private mappings, we should verify that changes cannot be read()
19714    back from the file, nor mmap's back from the file at a different
19715    address.  (There have been systems where private was not correctly
19716    implemented like the infamous i386 svr4.0, and systems where the
19717    VM page cache was not coherent with the file system buffer cache
19718    like early versions of FreeBSD and possibly contemporary NetBSD.)
19719    For shared mappings, we should conversely verify that changes get
19720    propagated back to all the places they're supposed to be.
19721
19722    Grep wants private fixed already mapped.
19723    The main things grep needs to know about mmap are:
19724    * does it exist and is it safe to write into the mmap'd area
19725    * how to use it (BSD variants)  */
19726
19727 #include <fcntl.h>
19728 #include <sys/mman.h>
19729
19730 #if !STDC_HEADERS && !HAVE_STDLIB_H
19731 char *malloc ();
19732 #endif
19733
19734 /* This mess was copied from the GNU getpagesize.h.  */
19735 #if !HAVE_GETPAGESIZE
19736 /* Assume that all systems that can run configure have sys/param.h.  */
19737 # if !HAVE_SYS_PARAM_H
19738 #  define HAVE_SYS_PARAM_H 1
19739 # endif
19740
19741 # ifdef _SC_PAGESIZE
19742 #  define getpagesize() sysconf(_SC_PAGESIZE)
19743 # else /* no _SC_PAGESIZE */
19744 #  if HAVE_SYS_PARAM_H
19745 #   include <sys/param.h>
19746 #   ifdef EXEC_PAGESIZE
19747 #    define getpagesize() EXEC_PAGESIZE
19748 #   else /* no EXEC_PAGESIZE */
19749 #    ifdef NBPG
19750 #     define getpagesize() NBPG * CLSIZE
19751 #     ifndef CLSIZE
19752 #      define CLSIZE 1
19753 #     endif /* no CLSIZE */
19754 #    else /* no NBPG */
19755 #     ifdef NBPC
19756 #      define getpagesize() NBPC
19757 #     else /* no NBPC */
19758 #      ifdef PAGESIZE
19759 #       define getpagesize() PAGESIZE
19760 #      endif /* PAGESIZE */
19761 #     endif /* no NBPC */
19762 #    endif /* no NBPG */
19763 #   endif /* no EXEC_PAGESIZE */
19764 #  else /* no HAVE_SYS_PARAM_H */
19765 #   define getpagesize() 8192   /* punt totally */
19766 #  endif /* no HAVE_SYS_PARAM_H */
19767 # endif /* no _SC_PAGESIZE */
19768
19769 #endif /* no HAVE_GETPAGESIZE */
19770
19771 int
19772 main ()
19773 {
19774   char *data, *data2, *data3;
19775   int i, pagesize;
19776   int fd;
19777
19778   pagesize = getpagesize ();
19779
19780   /* First, make a file with some known garbage in it. */
19781   data = (char *) malloc (pagesize);
19782   if (!data)
19783     return 1;
19784   for (i = 0; i < pagesize; ++i)
19785     *(data + i) = rand ();
19786   umask (0);
19787   fd = creat ("conftest.mmap", 0600);
19788   if (fd < 0)
19789     return 1;
19790   if (write (fd, data, pagesize) != pagesize)
19791     return 1;
19792   close (fd);
19793
19794   /* Next, try to mmap the file at a fixed address which already has
19795      something else allocated at it.  If we can, also make sure that
19796      we see the same garbage.  */
19797   fd = open ("conftest.mmap", O_RDWR);
19798   if (fd < 0)
19799     return 1;
19800   data2 = (char *) malloc (2 * pagesize);
19801   if (!data2)
19802     return 1;
19803   data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
19804   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
19805                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
19806     return 1;
19807   for (i = 0; i < pagesize; ++i)
19808     if (*(data + i) != *(data2 + i))
19809       return 1;
19810
19811   /* Finally, make sure that changes to the mapped area do not
19812      percolate back to the file as seen by read().  (This is a bug on
19813      some variants of i386 svr4.0.)  */
19814   for (i = 0; i < pagesize; ++i)
19815     *(data2 + i) = *(data2 + i) + 1;
19816   data3 = (char *) malloc (pagesize);
19817   if (!data3)
19818     return 1;
19819   if (read (fd, data3, pagesize) != pagesize)
19820     return 1;
19821   for (i = 0; i < pagesize; ++i)
19822     if (*(data + i) != *(data3 + i))
19823       return 1;
19824   close (fd);
19825   return 0;
19826 }
19827 _ACEOF
19828 rm -f conftest$ac_exeext
19829 if { (ac_try="$ac_link"
19830 case "(($ac_try" in
19831   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19832   *) ac_try_echo=$ac_try;;
19833 esac
19834 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19835   (eval "$ac_link") 2>&5
19836   ac_status=$?
19837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19838   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19839   { (case "(($ac_try" in
19840   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19841   *) ac_try_echo=$ac_try;;
19842 esac
19843 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19844   (eval "$ac_try") 2>&5
19845   ac_status=$?
19846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19847   (exit $ac_status); }; }; then
19848   ac_cv_func_mmap_fixed_mapped=yes
19849 else
19850   echo "$as_me: program exited with status $ac_status" >&5
19851 echo "$as_me: failed program was:" >&5
19852 sed 's/^/| /' conftest.$ac_ext >&5
19853
19854 ( exit $ac_status )
19855 ac_cv_func_mmap_fixed_mapped=no
19856 fi
19857 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19858 fi
19859
19860
19861 fi
19862 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
19863 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
19864 if test $ac_cv_func_mmap_fixed_mapped = yes; then
19865
19866 cat >>confdefs.h <<\_ACEOF
19867 #define HAVE_MMAP 1
19868 _ACEOF
19869
19870 fi
19871 rm -f conftest.mmap
19872
19873   { echo "$as_me:$LINENO: checking for mmap of files" >&5
19874 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
19875 if test "${ac_cv_func_mmap_file+set}" = set; then
19876   echo $ECHO_N "(cached) $ECHO_C" >&6
19877 else
19878    ac_ext=c
19879 ac_cpp='$CPP $CPPFLAGS'
19880 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19881 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19882 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19883
19884   if test "$cross_compiling" = yes; then
19885   ac_cv_func_mmap_file=no
19886 else
19887   cat >conftest.$ac_ext <<_ACEOF
19888
19889     /* confdefs.h.  */
19890 _ACEOF
19891 cat confdefs.h >>conftest.$ac_ext
19892 cat >>conftest.$ac_ext <<_ACEOF
19893 /* end confdefs.h.  */
19894
19895 #include <sys/types.h>
19896 #include <sys/mman.h>
19897 #include <fcntl.h>
19898
19899 int
19900 main ()
19901 {
19902
19903   int fd;
19904   fd = creat ("foo",0777);
19905   fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
19906   unlink ("foo");
19907   return (fd != (int) MAP_FAILED);
19908   ;
19909   return 0;
19910 }
19911 _ACEOF
19912 rm -f conftest$ac_exeext
19913 if { (ac_try="$ac_link"
19914 case "(($ac_try" in
19915   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19916   *) ac_try_echo=$ac_try;;
19917 esac
19918 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19919   (eval "$ac_link") 2>&5
19920   ac_status=$?
19921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19922   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19923   { (case "(($ac_try" in
19924   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19925   *) ac_try_echo=$ac_try;;
19926 esac
19927 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19928   (eval "$ac_try") 2>&5
19929   ac_status=$?
19930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19931   (exit $ac_status); }; }; then
19932   ac_cv_func_mmap_file=yes
19933 else
19934   echo "$as_me: program exited with status $ac_status" >&5
19935 echo "$as_me: failed program was:" >&5
19936 sed 's/^/| /' conftest.$ac_ext >&5
19937
19938 ( exit $ac_status )
19939 ac_cv_func_mmap_file=no
19940 fi
19941 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19942 fi
19943
19944
19945   ac_ext=c
19946 ac_cpp='$CPP $CPPFLAGS'
19947 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19948 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19949 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19950
19951
19952 fi
19953 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
19954 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
19955 if test "$ac_cv_func_mmap_file" = yes; then
19956
19957 cat >>confdefs.h <<\_ACEOF
19958 #define HAVE_MMAP_FILE
19959 _ACEOF
19960
19961    MMAP_FILE=yes
19962
19963 fi
19964
19965   { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
19966 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
19967 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
19968   echo $ECHO_N "(cached) $ECHO_C" >&6
19969 else
19970   if test "$llvm_cv_os_type" = "Interix" ; then
19971    ac_cv_need_dev_zero_for_mmap=yes
19972  else
19973    ac_cv_need_dev_zero_for_mmap=no
19974  fi
19975
19976 fi
19977 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
19978 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
19979 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
19980
19981 cat >>confdefs.h <<\_ACEOF
19982 #define NEED_DEV_ZERO_FOR_MMAP 1
19983 _ACEOF
19984
19985 fi
19986
19987   if test "$ac_cv_func_mmap_fixed_mapped" = "no"
19988   then
19989     { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
19990 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
19991   fi
19992   if test "$ac_cv_func_mmap_file" = "no"
19993   then
19994     { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
19995 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
19996   fi
19997 fi
19998
19999 { echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
20000 echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
20001 ac_ext=cpp
20002 ac_cpp='$CXXCPP $CPPFLAGS'
20003 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20004 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20005 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20006
20007 cat >conftest.$ac_ext <<_ACEOF
20008 /* confdefs.h.  */
20009 _ACEOF
20010 cat confdefs.h >>conftest.$ac_ext
20011 cat >>conftest.$ac_ext <<_ACEOF
20012 /* end confdefs.h.  */
20013 int main() {
20014         volatile unsigned long val = 1;
20015         __sync_synchronize();
20016         __sync_val_compare_and_swap(&val, 1, 0);
20017         __sync_add_and_fetch(&val, 1);
20018         __sync_sub_and_fetch(&val, 1);
20019         return 0;
20020       }
20021
20022 _ACEOF
20023 rm -f conftest.$ac_objext conftest$ac_exeext
20024 if { (ac_try="$ac_link"
20025 case "(($ac_try" in
20026   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20027   *) ac_try_echo=$ac_try;;
20028 esac
20029 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20030   (eval "$ac_link") 2>conftest.er1
20031   ac_status=$?
20032   grep -v '^ *+' conftest.er1 >conftest.err
20033   rm -f conftest.er1
20034   cat conftest.err >&5
20035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20036   (exit $ac_status); } &&
20037          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20038   { (case "(($ac_try" in
20039   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20040   *) ac_try_echo=$ac_try;;
20041 esac
20042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20043   (eval "$ac_try") 2>&5
20044   ac_status=$?
20045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20046   (exit $ac_status); }; } &&
20047          { ac_try='test -s conftest$ac_exeext'
20048   { (case "(($ac_try" in
20049   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20050   *) ac_try_echo=$ac_try;;
20051 esac
20052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20053   (eval "$ac_try") 2>&5
20054   ac_status=$?
20055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20056   (exit $ac_status); }; }; then
20057   ac_ext=c
20058 ac_cpp='$CPP $CPPFLAGS'
20059 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20060 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20061 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20062
20063   { echo "$as_me:$LINENO: result: yes" >&5
20064 echo "${ECHO_T}yes" >&6; }
20065
20066 cat >>confdefs.h <<\_ACEOF
20067 #define LLVM_MULTITHREADED 1
20068 _ACEOF
20069
20070 else
20071   echo "$as_me: failed program was:" >&5
20072 sed 's/^/| /' conftest.$ac_ext >&5
20073
20074         { echo "$as_me:$LINENO: result: no" >&5
20075 echo "${ECHO_T}no" >&6; }
20076
20077 cat >>confdefs.h <<\_ACEOF
20078 #define LLVM_MULTITHREADED 0
20079 _ACEOF
20080
20081   { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
20082 echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
20083 fi
20084
20085 rm -f core conftest.err conftest.$ac_objext \
20086       conftest$ac_exeext conftest.$ac_ext
20087
20088
20089 if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
20090   { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
20091 echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
20092 if test "${llvm_cv_linux_mixed+set}" = set; then
20093   echo $ECHO_N "(cached) $ECHO_C" >&6
20094 else
20095    ac_ext=c
20096 ac_cpp='$CPP $CPPFLAGS'
20097 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20098 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20099 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20100
20101   cat >conftest.$ac_ext <<_ACEOF
20102 /* confdefs.h.  */
20103 _ACEOF
20104 cat confdefs.h >>conftest.$ac_ext
20105 cat >>conftest.$ac_ext <<_ACEOF
20106 /* end confdefs.h.  */
20107 #ifndef __x86_64__
20108        error: Not x86-64 even if uname says so!
20109       #endif
20110
20111 int
20112 main ()
20113 {
20114
20115   ;
20116   return 0;
20117 }
20118 _ACEOF
20119 rm -f conftest.$ac_objext
20120 if { (ac_try="$ac_compile"
20121 case "(($ac_try" in
20122   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20123   *) ac_try_echo=$ac_try;;
20124 esac
20125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20126   (eval "$ac_compile") 2>conftest.er1
20127   ac_status=$?
20128   grep -v '^ *+' conftest.er1 >conftest.err
20129   rm -f conftest.er1
20130   cat conftest.err >&5
20131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20132   (exit $ac_status); } &&
20133          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20134   { (case "(($ac_try" in
20135   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20136   *) ac_try_echo=$ac_try;;
20137 esac
20138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20139   (eval "$ac_try") 2>&5
20140   ac_status=$?
20141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20142   (exit $ac_status); }; } &&
20143          { ac_try='test -s conftest.$ac_objext'
20144   { (case "(($ac_try" in
20145   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20146   *) ac_try_echo=$ac_try;;
20147 esac
20148 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20149   (eval "$ac_try") 2>&5
20150   ac_status=$?
20151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20152   (exit $ac_status); }; }; then
20153   llvm_cv_linux_mixed=no
20154 else
20155   echo "$as_me: failed program was:" >&5
20156 sed 's/^/| /' conftest.$ac_ext >&5
20157
20158         llvm_cv_linux_mixed=yes
20159 fi
20160
20161 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20162   ac_ext=c
20163 ac_cpp='$CPP $CPPFLAGS'
20164 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20165 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20166 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20167
20168
20169 fi
20170 { echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
20171 echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
20172
20173   if test "$llvm_cv_linux_mixed" = "yes"; then
20174     llvm_cv_target_arch="x86"
20175     ARCH="x86"
20176   fi
20177 fi
20178
20179
20180 for ac_func in __dso_handle
20181 do
20182 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20183 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20184 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20185 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20186   echo $ECHO_N "(cached) $ECHO_C" >&6
20187 else
20188   cat >conftest.$ac_ext <<_ACEOF
20189 /* confdefs.h.  */
20190 _ACEOF
20191 cat confdefs.h >>conftest.$ac_ext
20192 cat >>conftest.$ac_ext <<_ACEOF
20193 /* end confdefs.h.  */
20194 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20195    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20196 #define $ac_func innocuous_$ac_func
20197
20198 /* System header to define __stub macros and hopefully few prototypes,
20199     which can conflict with char $ac_func (); below.
20200     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20201     <limits.h> exists even on freestanding compilers.  */
20202
20203 #ifdef __STDC__
20204 # include <limits.h>
20205 #else
20206 # include <assert.h>
20207 #endif
20208
20209 #undef $ac_func
20210
20211 /* Override any GCC internal prototype to avoid an error.
20212    Use char because int might match the return type of a GCC
20213    builtin and then its argument prototype would still apply.  */
20214 #ifdef __cplusplus
20215 extern "C"
20216 #endif
20217 char $ac_func ();
20218 /* The GNU C library defines this for functions which it implements
20219     to always fail with ENOSYS.  Some functions are actually named
20220     something starting with __ and the normal name is an alias.  */
20221 #if defined __stub_$ac_func || defined __stub___$ac_func
20222 choke me
20223 #endif
20224
20225 int
20226 main ()
20227 {
20228 return $ac_func ();
20229   ;
20230   return 0;
20231 }
20232 _ACEOF
20233 rm -f conftest.$ac_objext conftest$ac_exeext
20234 if { (ac_try="$ac_link"
20235 case "(($ac_try" in
20236   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20237   *) ac_try_echo=$ac_try;;
20238 esac
20239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20240   (eval "$ac_link") 2>conftest.er1
20241   ac_status=$?
20242   grep -v '^ *+' conftest.er1 >conftest.err
20243   rm -f conftest.er1
20244   cat conftest.err >&5
20245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20246   (exit $ac_status); } &&
20247          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20248   { (case "(($ac_try" in
20249   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20250   *) ac_try_echo=$ac_try;;
20251 esac
20252 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20253   (eval "$ac_try") 2>&5
20254   ac_status=$?
20255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20256   (exit $ac_status); }; } &&
20257          { ac_try='test -s conftest$ac_exeext'
20258   { (case "(($ac_try" in
20259   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20260   *) ac_try_echo=$ac_try;;
20261 esac
20262 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20263   (eval "$ac_try") 2>&5
20264   ac_status=$?
20265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20266   (exit $ac_status); }; }; then
20267   eval "$as_ac_var=yes"
20268 else
20269   echo "$as_me: failed program was:" >&5
20270 sed 's/^/| /' conftest.$ac_ext >&5
20271
20272         eval "$as_ac_var=no"
20273 fi
20274
20275 rm -f core conftest.err conftest.$ac_objext \
20276       conftest$ac_exeext conftest.$ac_ext
20277 fi
20278 ac_res=`eval echo '${'$as_ac_var'}'`
20279                { echo "$as_me:$LINENO: result: $ac_res" >&5
20280 echo "${ECHO_T}$ac_res" >&6; }
20281 if test `eval echo '${'$as_ac_var'}'` = yes; then
20282   cat >>confdefs.h <<_ACEOF
20283 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20284 _ACEOF
20285
20286 fi
20287 done
20288
20289
20290 { echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
20291 echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6; }
20292 if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
20293   echo $ECHO_N "(cached) $ECHO_C" >&6
20294 else
20295   llvm_cv_llvmgcc_sanity="no"
20296 if test -x "$LLVMGCC" ; then
20297   cp /dev/null conftest.c
20298   "$LLVMGCC" -emit-llvm -S -o - conftest.c | \
20299       grep 'target datalayout =' > /dev/null 2>&1
20300   if test $? -eq 0 ; then
20301     llvm_cv_llvmgcc_sanity="yes"
20302   fi
20303   rm conftest.c
20304 fi
20305 fi
20306 { echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
20307 echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6; }
20308
20309 if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
20310   { echo "$as_me:$LINENO: checking llvm-gcc component support" >&5
20311 echo $ECHO_N "checking llvm-gcc component support... $ECHO_C" >&6; }
20312   llvmcc1path=`"$LLVMGCC" --print-prog-name=cc1`
20313   LLVMCC1=$llvmcc1path
20314
20315   llvmcc1pluspath=`"$LLVMGCC" --print-prog-name=cc1plus`
20316   LLVMCC1PLUS=$llvmcc1pluspath
20317
20318   llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
20319   LLVMGCCDIR=$llvmgccdir
20320
20321   llvmgcclangs=`"$LLVMGCC" -v --help 2>&1 | grep '^Configured with:' | sed 's/^.*--enable-languages=\([^ ]*\).*/\1/'`
20322   LLVMGCC_LANGS=$llvmgcclangs
20323
20324   { echo "$as_me:$LINENO: result: ok" >&5
20325 echo "${ECHO_T}ok" >&6; }
20326 fi
20327
20328 SHLIBEXT=$libltdl_cv_shlibext
20329
20330
20331 SHLIBPATH_VAR=$libltdl_cv_shlibpath_var
20332
20333
20334 # Translate the various configuration directories and other basic
20335 # information into substitutions that will end up in Makefile.config.in
20336 # that these configured values can be used by the makefiles
20337 if test "${prefix}" = "NONE" ; then
20338   prefix="/usr/local"
20339 fi
20340 eval LLVM_PREFIX="${prefix}";
20341 eval LLVM_BINDIR="${prefix}/bin";
20342 eval LLVM_LIBDIR="${prefix}/lib";
20343 eval LLVM_DATADIR="${prefix}/share/llvm";
20344 eval LLVM_DOCSDIR="${prefix}/share/doc/llvm";
20345 eval LLVM_ETCDIR="${prefix}/etc/llvm";
20346 eval LLVM_INCLUDEDIR="${prefix}/include";
20347 eval LLVM_INFODIR="${prefix}/info";
20348 eval LLVM_MANDIR="${prefix}/man";
20349 LLVM_CONFIGTIME=`date`
20350
20351
20352
20353
20354
20355
20356
20357
20358
20359
20360
20361 # Place the various directores into the config.h file as #defines so that we
20362 # can know about the installation paths within LLVM.
20363
20364 cat >>confdefs.h <<_ACEOF
20365 #define LLVM_PREFIX "$LLVM_PREFIX"
20366 _ACEOF
20367
20368
20369 cat >>confdefs.h <<_ACEOF
20370 #define LLVM_BINDIR "$LLVM_BINDIR"
20371 _ACEOF
20372
20373
20374 cat >>confdefs.h <<_ACEOF
20375 #define LLVM_LIBDIR "$LLVM_LIBDIR"
20376 _ACEOF
20377
20378
20379 cat >>confdefs.h <<_ACEOF
20380 #define LLVM_DATADIR "$LLVM_DATADIR"
20381 _ACEOF
20382
20383
20384 cat >>confdefs.h <<_ACEOF
20385 #define LLVM_DOCSDIR "$LLVM_DOCSDIR"
20386 _ACEOF
20387
20388
20389 cat >>confdefs.h <<_ACEOF
20390 #define LLVM_ETCDIR "$LLVM_ETCDIR"
20391 _ACEOF
20392
20393
20394 cat >>confdefs.h <<_ACEOF
20395 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
20396 _ACEOF
20397
20398
20399 cat >>confdefs.h <<_ACEOF
20400 #define LLVM_INFODIR "$LLVM_INFODIR"
20401 _ACEOF
20402
20403
20404 cat >>confdefs.h <<_ACEOF
20405 #define LLVM_MANDIR "$LLVM_MANDIR"
20406 _ACEOF
20407
20408
20409 cat >>confdefs.h <<_ACEOF
20410 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
20411 _ACEOF
20412
20413
20414 cat >>confdefs.h <<_ACEOF
20415 #define LLVM_HOSTTRIPLE "$host"
20416 _ACEOF
20417
20418
20419 # Determine which bindings to build.
20420 if test "$BINDINGS_TO_BUILD" = auto ; then
20421   BINDINGS_TO_BUILD=""
20422   if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
20423     BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
20424   fi
20425 fi
20426 BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
20427
20428
20429 # This isn't really configurey, but it avoids having to repeat the list in
20430 # other files.
20431 ALL_BINDINGS=ocaml
20432
20433
20434 # Do any work necessary to ensure that bindings have what they need.
20435 binding_prereqs_failed=0
20436 for a_binding in $BINDINGS_TO_BUILD ; do
20437   case "$a_binding" in
20438   ocaml)
20439     if test "x$OCAMLC" = x ; then
20440       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
20441 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
20442       binding_prereqs_failed=1
20443     fi
20444     if test "x$OCAMLDEP" = x ; then
20445       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
20446 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
20447       binding_prereqs_failed=1
20448     fi
20449     if test "x$OCAMLOPT" = x ; then
20450       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
20451 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
20452           fi
20453     if test "x$with_ocaml_libdir" != xauto ; then
20454       OCAML_LIBDIR=$with_ocaml_libdir
20455
20456     else
20457       ocaml_stdlib="`"$OCAMLC" -where`"
20458       if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
20459       then
20460         # ocaml stdlib is beneath our prefix; use stdlib
20461         OCAML_LIBDIR=$ocaml_stdlib
20462
20463       else
20464         # ocaml stdlib is outside our prefix; use libdir/ocaml
20465         OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
20466
20467       fi
20468     fi
20469     ;;
20470   esac
20471 done
20472 if test "$binding_prereqs_failed" = 1 ; then
20473   { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
20474 echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
20475    { (exit 1); exit 1; }; }
20476 fi
20477
20478 { echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
20479 echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
20480 if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
20481   echo $ECHO_N "(cached) $ECHO_C" >&6
20482 else
20483    ac_ext=cpp
20484 ac_cpp='$CXXCPP $CPPFLAGS'
20485 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20486 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20487 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20488
20489   oldcxxflags="$CXXFLAGS"
20490   CXXFLAGS="$CXXFLAGS -fvisibility-inlines-hidden"
20491   cat >conftest.$ac_ext <<_ACEOF
20492 /* confdefs.h.  */
20493 _ACEOF
20494 cat confdefs.h >>conftest.$ac_ext
20495 cat >>conftest.$ac_ext <<_ACEOF
20496 /* end confdefs.h.  */
20497
20498 int
20499 main ()
20500 {
20501
20502   ;
20503   return 0;
20504 }
20505 _ACEOF
20506 rm -f conftest.$ac_objext
20507 if { (ac_try="$ac_compile"
20508 case "(($ac_try" in
20509   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20510   *) ac_try_echo=$ac_try;;
20511 esac
20512 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20513   (eval "$ac_compile") 2>conftest.er1
20514   ac_status=$?
20515   grep -v '^ *+' conftest.er1 >conftest.err
20516   rm -f conftest.er1
20517   cat conftest.err >&5
20518   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20519   (exit $ac_status); } &&
20520          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20521   { (case "(($ac_try" in
20522   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20523   *) ac_try_echo=$ac_try;;
20524 esac
20525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20526   (eval "$ac_try") 2>&5
20527   ac_status=$?
20528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20529   (exit $ac_status); }; } &&
20530          { ac_try='test -s conftest.$ac_objext'
20531   { (case "(($ac_try" in
20532   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20533   *) ac_try_echo=$ac_try;;
20534 esac
20535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20536   (eval "$ac_try") 2>&5
20537   ac_status=$?
20538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20539   (exit $ac_status); }; }; then
20540   llvm_cv_cxx_visibility_inlines_hidden=yes
20541 else
20542   echo "$as_me: failed program was:" >&5
20543 sed 's/^/| /' conftest.$ac_ext >&5
20544
20545         llvm_cv_cxx_visibility_inlines_hidden=no
20546 fi
20547
20548 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20549   CXXFLAGS="$oldcxxflags"
20550   ac_ext=c
20551 ac_cpp='$CPP $CPPFLAGS'
20552 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20553 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20554 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20555
20556
20557 fi
20558 { echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
20559 echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
20560 if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
20561   ENABLE_VISIBILITY_INLINES_HIDDEN=1
20562
20563 else
20564   ENABLE_VISIBILITY_INLINES_HIDDEN=0
20565
20566 fi
20567
20568
20569 if test "$llvm_cv_link_use_r" = "yes" ; then
20570   RPATH="-Wl,-R"
20571 else
20572   RPATH="-Wl,-rpath"
20573 fi
20574
20575
20576 if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
20577   RDYNAMIC="-Wl,-export-dynamic"
20578 else
20579   RDYNAMIC=""
20580 fi
20581
20582
20583
20584 ac_config_headers="$ac_config_headers include/llvm/Config/config.h include/llvm/Config/llvm-config.h"
20585
20586
20587
20588
20589
20590
20591 ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
20592
20593 ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
20594
20595 ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
20596
20597 ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def"
20598
20599 ac_config_headers="$ac_config_headers include/llvm/System/DataTypes.h"
20600
20601
20602 ac_config_files="$ac_config_files Makefile.config"
20603
20604
20605 ac_config_files="$ac_config_files llvm.spec"
20606
20607
20608 ac_config_files="$ac_config_files tools/llvmc/src/Base.td"
20609
20610
20611 ac_config_files="$ac_config_files tools/llvm-config/llvm-config.in"
20612
20613
20614 ac_config_commands="$ac_config_commands setup"
20615
20616 ac_config_commands="$ac_config_commands Makefile"
20617
20618
20619 ac_config_commands="$ac_config_commands Makefile.common"
20620
20621
20622 ac_config_commands="$ac_config_commands examples/Makefile"
20623
20624
20625 ac_config_commands="$ac_config_commands lib/Makefile"
20626
20627
20628 ac_config_commands="$ac_config_commands runtime/Makefile"
20629
20630
20631 ac_config_commands="$ac_config_commands test/Makefile"
20632
20633
20634 ac_config_commands="$ac_config_commands test/Makefile.tests"
20635
20636
20637 ac_config_commands="$ac_config_commands unittests/Makefile"
20638
20639
20640 ac_config_commands="$ac_config_commands tools/Makefile"
20641
20642
20643 ac_config_commands="$ac_config_commands utils/Makefile"
20644
20645
20646 ac_config_commands="$ac_config_commands projects/Makefile"
20647
20648
20649 ac_config_commands="$ac_config_commands bindings/Makefile"
20650
20651
20652 ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
20653
20654
20655
20656 cat >confcache <<\_ACEOF
20657 # This file is a shell script that caches the results of configure
20658 # tests run on this system so they can be shared between configure
20659 # scripts and configure runs, see configure's option --config-cache.
20660 # It is not useful on other systems.  If it contains results you don't
20661 # want to keep, you may remove or edit it.
20662 #
20663 # config.status only pays attention to the cache file if you give it
20664 # the --recheck option to rerun configure.
20665 #
20666 # `ac_cv_env_foo' variables (set or unset) will be overridden when
20667 # loading this file, other *unset* `ac_cv_foo' will be assigned the
20668 # following values.
20669
20670 _ACEOF
20671
20672 # The following way of writing the cache mishandles newlines in values,
20673 # but we know of no workaround that is simple, portable, and efficient.
20674 # So, we kill variables containing newlines.
20675 # Ultrix sh set writes to stderr and can't be redirected directly,
20676 # and sets the high bit in the cache file unless we assign to the vars.
20677 (
20678   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
20679     eval ac_val=\$$ac_var
20680     case $ac_val in #(
20681     *${as_nl}*)
20682       case $ac_var in #(
20683       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
20684 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
20685       esac
20686       case $ac_var in #(
20687       _ | IFS | as_nl) ;; #(
20688       *) $as_unset $ac_var ;;
20689       esac ;;
20690     esac
20691   done
20692
20693   (set) 2>&1 |
20694     case $as_nl`(ac_space=' '; set) 2>&1` in #(
20695     *${as_nl}ac_space=\ *)
20696       # `set' does not quote correctly, so add quotes (double-quote
20697       # substitution turns \\\\ into \\, and sed turns \\ into \).
20698       sed -n \
20699         "s/'/'\\\\''/g;
20700           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20701       ;; #(
20702     *)
20703       # `set' quotes correctly as required by POSIX, so do not add quotes.
20704       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
20705       ;;
20706     esac |
20707     sort
20708 ) |
20709   sed '
20710      /^ac_cv_env_/b end
20711      t clear
20712      :clear
20713      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20714      t end
20715      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20716      :end' >>confcache
20717 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
20718   if test -w "$cache_file"; then
20719     test "x$cache_file" != "x/dev/null" &&
20720       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
20721 echo "$as_me: updating cache $cache_file" >&6;}
20722     cat confcache >$cache_file
20723   else
20724     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
20725 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
20726   fi
20727 fi
20728 rm -f confcache
20729
20730 test "x$prefix" = xNONE && prefix=$ac_default_prefix
20731 # Let make expand exec_prefix.
20732 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20733
20734 DEFS=-DHAVE_CONFIG_H
20735
20736 ac_libobjs=
20737 ac_ltlibobjs=
20738 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20739   # 1. Remove the extension, and $U if already installed.
20740   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
20741   ac_i=`echo "$ac_i" | sed "$ac_script"`
20742   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
20743   #    will be set to the directory where LIBOBJS objects are built.
20744   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
20745   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
20746 done
20747 LIBOBJS=$ac_libobjs
20748
20749 LTLIBOBJS=$ac_ltlibobjs
20750
20751
20752 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
20753   { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
20754 Usually this means the macro was only invoked conditionally." >&5
20755 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
20756 Usually this means the macro was only invoked conditionally." >&2;}
20757    { (exit 1); exit 1; }; }
20758 fi
20759 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
20760   { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
20761 Usually this means the macro was only invoked conditionally." >&5
20762 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
20763 Usually this means the macro was only invoked conditionally." >&2;}
20764    { (exit 1); exit 1; }; }
20765 fi
20766
20767 : ${CONFIG_STATUS=./config.status}
20768 ac_clean_files_save=$ac_clean_files
20769 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20770 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
20771 echo "$as_me: creating $CONFIG_STATUS" >&6;}
20772 cat >$CONFIG_STATUS <<_ACEOF
20773 #! $SHELL
20774 # Generated by $as_me.
20775 # Run this file to recreate the current configuration.
20776 # Compiler output produced by configure, useful for debugging
20777 # configure, is in config.log if it exists.
20778
20779 debug=false
20780 ac_cs_recheck=false
20781 ac_cs_silent=false
20782 SHELL=\${CONFIG_SHELL-$SHELL}
20783 _ACEOF
20784
20785 cat >>$CONFIG_STATUS <<\_ACEOF
20786 ## --------------------- ##
20787 ## M4sh Initialization.  ##
20788 ## --------------------- ##
20789
20790 # Be Bourne compatible
20791 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20792   emulate sh
20793   NULLCMD=:
20794   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20795   # is contrary to our usage.  Disable this feature.
20796   alias -g '${1+"$@"}'='"$@"'
20797   setopt NO_GLOB_SUBST
20798 else
20799   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
20800 fi
20801 BIN_SH=xpg4; export BIN_SH # for Tru64
20802 DUALCASE=1; export DUALCASE # for MKS sh
20803
20804
20805 # PATH needs CR
20806 # Avoid depending upon Character Ranges.
20807 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20808 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20809 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20810 as_cr_digits='0123456789'
20811 as_cr_alnum=$as_cr_Letters$as_cr_digits
20812
20813 # The user is always right.
20814 if test "${PATH_SEPARATOR+set}" != set; then
20815   echo "#! /bin/sh" >conf$$.sh
20816   echo  "exit 0"   >>conf$$.sh
20817   chmod +x conf$$.sh
20818   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
20819     PATH_SEPARATOR=';'
20820   else
20821     PATH_SEPARATOR=:
20822   fi
20823   rm -f conf$$.sh
20824 fi
20825
20826 # Support unset when possible.
20827 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
20828   as_unset=unset
20829 else
20830   as_unset=false
20831 fi
20832
20833
20834 # IFS
20835 # We need space, tab and new line, in precisely that order.  Quoting is
20836 # there to prevent editors from complaining about space-tab.
20837 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
20838 # splitting by setting IFS to empty value.)
20839 as_nl='
20840 '
20841 IFS=" ""        $as_nl"
20842
20843 # Find who we are.  Look in the path if we contain no directory separator.
20844 case $0 in
20845   *[\\/]* ) as_myself=$0 ;;
20846   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20847 for as_dir in $PATH
20848 do
20849   IFS=$as_save_IFS
20850   test -z "$as_dir" && as_dir=.
20851   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20852 done
20853 IFS=$as_save_IFS
20854
20855      ;;
20856 esac
20857 # We did not find ourselves, most probably we were run as `sh COMMAND'
20858 # in which case we are not to be found in the path.
20859 if test "x$as_myself" = x; then
20860   as_myself=$0
20861 fi
20862 if test ! -f "$as_myself"; then
20863   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
20864   { (exit 1); exit 1; }
20865 fi
20866
20867 # Work around bugs in pre-3.0 UWIN ksh.
20868 for as_var in ENV MAIL MAILPATH
20869 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
20870 done
20871 PS1='$ '
20872 PS2='> '
20873 PS4='+ '
20874
20875 # NLS nuisances.
20876 for as_var in \
20877   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
20878   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
20879   LC_TELEPHONE LC_TIME
20880 do
20881   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
20882     eval $as_var=C; export $as_var
20883   else
20884     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
20885   fi
20886 done
20887
20888 # Required to use basename.
20889 if expr a : '\(a\)' >/dev/null 2>&1 &&
20890    test "X`expr 00001 : '.*\(...\)'`" = X001; then
20891   as_expr=expr
20892 else
20893   as_expr=false
20894 fi
20895
20896 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
20897   as_basename=basename
20898 else
20899   as_basename=false
20900 fi
20901
20902
20903 # Name of the executable.
20904 as_me=`$as_basename -- "$0" ||
20905 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20906          X"$0" : 'X\(//\)$' \| \
20907          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
20908 echo X/"$0" |
20909     sed '/^.*\/\([^/][^/]*\)\/*$/{
20910             s//\1/
20911             q
20912           }
20913           /^X\/\(\/\/\)$/{
20914             s//\1/
20915             q
20916           }
20917           /^X\/\(\/\).*/{
20918             s//\1/
20919             q
20920           }
20921           s/.*/./; q'`
20922
20923 # CDPATH.
20924 $as_unset CDPATH
20925
20926
20927
20928   as_lineno_1=$LINENO
20929   as_lineno_2=$LINENO
20930   test "x$as_lineno_1" != "x$as_lineno_2" &&
20931   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
20932
20933   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
20934   # uniformly replaced by the line number.  The first 'sed' inserts a
20935   # line-number line after each line using $LINENO; the second 'sed'
20936   # does the real work.  The second script uses 'N' to pair each
20937   # line-number line with the line containing $LINENO, and appends
20938   # trailing '-' during substitution so that $LINENO is not a special
20939   # case at line end.
20940   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
20941   # scripts with optimization help from Paolo Bonzini.  Blame Lee
20942   # E. McMahon (1931-1989) for sed's syntax.  :-)
20943   sed -n '
20944     p
20945     /[$]LINENO/=
20946   ' <$as_myself |
20947     sed '
20948       s/[$]LINENO.*/&-/
20949       t lineno
20950       b
20951       :lineno
20952       N
20953       :loop
20954       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
20955       t loop
20956       s/-\n.*//
20957     ' >$as_me.lineno &&
20958   chmod +x "$as_me.lineno" ||
20959     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
20960    { (exit 1); exit 1; }; }
20961
20962   # Don't try to exec as it changes $[0], causing all sort of problems
20963   # (the dirname of $[0] is not the place where we might find the
20964   # original and so on.  Autoconf is especially sensitive to this).
20965   . "./$as_me.lineno"
20966   # Exit status is that of the last command.
20967   exit
20968 }
20969
20970
20971 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
20972   as_dirname=dirname
20973 else
20974   as_dirname=false
20975 fi
20976
20977 ECHO_C= ECHO_N= ECHO_T=
20978 case `echo -n x` in
20979 -n*)
20980   case `echo 'x\c'` in
20981   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
20982   *)   ECHO_C='\c';;
20983   esac;;
20984 *)
20985   ECHO_N='-n';;
20986 esac
20987
20988 if expr a : '\(a\)' >/dev/null 2>&1 &&
20989    test "X`expr 00001 : '.*\(...\)'`" = X001; then
20990   as_expr=expr
20991 else
20992   as_expr=false
20993 fi
20994
20995 rm -f conf$$ conf$$.exe conf$$.file
20996 if test -d conf$$.dir; then
20997   rm -f conf$$.dir/conf$$.file
20998 else
20999   rm -f conf$$.dir
21000   mkdir conf$$.dir
21001 fi
21002 echo >conf$$.file
21003 if ln -s conf$$.file conf$$ 2>/dev/null; then
21004   as_ln_s='ln -s'
21005   # ... but there are two gotchas:
21006   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21007   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21008   # In both cases, we have to default to `cp -p'.
21009   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
21010     as_ln_s='cp -p'
21011 elif ln conf$$.file conf$$ 2>/dev/null; then
21012   as_ln_s=ln
21013 else
21014   as_ln_s='cp -p'
21015 fi
21016 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21017 rmdir conf$$.dir 2>/dev/null
21018
21019 if mkdir -p . 2>/dev/null; then
21020   as_mkdir_p=:
21021 else
21022   test -d ./-p && rmdir ./-p
21023   as_mkdir_p=false
21024 fi
21025
21026 # Find out whether ``test -x'' works.  Don't use a zero-byte file, as
21027 # systems may use methods other than mode bits to determine executability.
21028 cat >conf$$.file <<_ASEOF
21029 #! /bin/sh
21030 exit 0
21031 _ASEOF
21032 chmod +x conf$$.file
21033 if test -x conf$$.file >/dev/null 2>&1; then
21034   as_executable_p="test -x"
21035 else
21036   as_executable_p=:
21037 fi
21038 rm -f conf$$.file
21039
21040 # Sed expression to map a string onto a valid CPP name.
21041 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21042
21043 # Sed expression to map a string onto a valid variable name.
21044 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21045
21046
21047 exec 6>&1
21048
21049 # Save the log message, to keep $[0] and so on meaningful, and to
21050 # report actual input values of CONFIG_FILES etc. instead of their
21051 # values after options handling.
21052 ac_log="
21053 This file was extended by llvm $as_me 2.9svn, which was
21054 generated by GNU Autoconf 2.60.  Invocation command line was
21055
21056   CONFIG_FILES    = $CONFIG_FILES
21057   CONFIG_HEADERS  = $CONFIG_HEADERS
21058   CONFIG_LINKS    = $CONFIG_LINKS
21059   CONFIG_COMMANDS = $CONFIG_COMMANDS
21060   $ $0 $@
21061
21062 on `(hostname || uname -n) 2>/dev/null | sed 1q`
21063 "
21064
21065 _ACEOF
21066
21067 cat >>$CONFIG_STATUS <<_ACEOF
21068 # Files that config.status was made for.
21069 config_files="$ac_config_files"
21070 config_headers="$ac_config_headers"
21071 config_commands="$ac_config_commands"
21072
21073 _ACEOF
21074
21075 cat >>$CONFIG_STATUS <<\_ACEOF
21076 ac_cs_usage="\
21077 \`$as_me' instantiates files from templates according to the
21078 current configuration.
21079
21080 Usage: $0 [OPTIONS] [FILE]...
21081
21082   -h, --help       print this help, then exit
21083   -V, --version    print version number, then exit
21084   -q, --quiet      do not print progress messages
21085   -d, --debug      don't remove temporary files
21086       --recheck    update $as_me by reconfiguring in the same conditions
21087   --file=FILE[:TEMPLATE]
21088                    instantiate the configuration file FILE
21089   --header=FILE[:TEMPLATE]
21090                    instantiate the configuration header FILE
21091
21092 Configuration files:
21093 $config_files
21094
21095 Configuration headers:
21096 $config_headers
21097
21098 Configuration commands:
21099 $config_commands
21100
21101 Report bugs to <bug-autoconf@gnu.org>."
21102
21103 _ACEOF
21104 cat >>$CONFIG_STATUS <<_ACEOF
21105 ac_cs_version="\\
21106 llvm config.status 2.9svn
21107 configured by $0, generated by GNU Autoconf 2.60,
21108   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
21109
21110 Copyright (C) 2006 Free Software Foundation, Inc.
21111 This config.status script is free software; the Free Software Foundation
21112 gives unlimited permission to copy, distribute and modify it."
21113
21114 ac_pwd='$ac_pwd'
21115 srcdir='$srcdir'
21116 INSTALL='$INSTALL'
21117 _ACEOF
21118
21119 cat >>$CONFIG_STATUS <<\_ACEOF
21120 # If no file are specified by the user, then we need to provide default
21121 # value.  By we need to know if files were specified by the user.
21122 ac_need_defaults=:
21123 while test $# != 0
21124 do
21125   case $1 in
21126   --*=*)
21127     ac_option=`expr "X$1" : 'X\([^=]*\)='`
21128     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
21129     ac_shift=:
21130     ;;
21131   *)
21132     ac_option=$1
21133     ac_optarg=$2
21134     ac_shift=shift
21135     ;;
21136   esac
21137
21138   case $ac_option in
21139   # Handling of the options.
21140   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21141     ac_cs_recheck=: ;;
21142   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
21143     echo "$ac_cs_version"; exit ;;
21144   --debug | --debu | --deb | --de | --d | -d )
21145     debug=: ;;
21146   --file | --fil | --fi | --f )
21147     $ac_shift
21148     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
21149     ac_need_defaults=false;;
21150   --header | --heade | --head | --hea )
21151     $ac_shift
21152     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
21153     ac_need_defaults=false;;
21154   --he | --h)
21155     # Conflict between --help and --header
21156     { echo "$as_me: error: ambiguous option: $1
21157 Try \`$0 --help' for more information." >&2
21158    { (exit 1); exit 1; }; };;
21159   --help | --hel | -h )
21160     echo "$ac_cs_usage"; exit ;;
21161   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21162   | -silent | --silent | --silen | --sile | --sil | --si | --s)
21163     ac_cs_silent=: ;;
21164
21165   # This is an error.
21166   -*) { echo "$as_me: error: unrecognized option: $1
21167 Try \`$0 --help' for more information." >&2
21168    { (exit 1); exit 1; }; } ;;
21169
21170   *) ac_config_targets="$ac_config_targets $1"
21171      ac_need_defaults=false ;;
21172
21173   esac
21174   shift
21175 done
21176
21177 ac_configure_extra_args=
21178
21179 if $ac_cs_silent; then
21180   exec 6>/dev/null
21181   ac_configure_extra_args="$ac_configure_extra_args --silent"
21182 fi
21183
21184 _ACEOF
21185 cat >>$CONFIG_STATUS <<_ACEOF
21186 if \$ac_cs_recheck; then
21187   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21188   CONFIG_SHELL=$SHELL
21189   export CONFIG_SHELL
21190   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21191 fi
21192
21193 _ACEOF
21194 cat >>$CONFIG_STATUS <<\_ACEOF
21195 exec 5>>config.log
21196 {
21197   echo
21198   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21199 ## Running $as_me. ##
21200 _ASBOX
21201   echo "$ac_log"
21202 } >&5
21203
21204 _ACEOF
21205 cat >>$CONFIG_STATUS <<_ACEOF
21206 #
21207 # INIT-COMMANDS
21208 #
21209 llvm_src="${srcdir}"
21210
21211 _ACEOF
21212
21213 cat >>$CONFIG_STATUS <<\_ACEOF
21214
21215 # Handling of arguments.
21216 for ac_config_target in $ac_config_targets
21217 do
21218   case $ac_config_target in
21219     "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
21220     "include/llvm/Config/llvm-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/llvm-config.h" ;;
21221     "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
21222     "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
21223     "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
21224     "include/llvm/Config/Disassemblers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Disassemblers.def" ;;
21225     "include/llvm/System/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/System/DataTypes.h" ;;
21226     "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
21227     "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
21228     "tools/llvmc/src/Base.td") CONFIG_FILES="$CONFIG_FILES tools/llvmc/src/Base.td" ;;
21229     "tools/llvm-config/llvm-config.in") CONFIG_FILES="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;;
21230     "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
21231     "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
21232     "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
21233     "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
21234     "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
21235     "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
21236     "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
21237     "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
21238     "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
21239     "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
21240     "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
21241     "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
21242     "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
21243     "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
21244
21245   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21246 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21247    { (exit 1); exit 1; }; };;
21248   esac
21249 done
21250
21251
21252 # If the user did not use the arguments to specify the items to instantiate,
21253 # then the envvar interface is used.  Set only those that are not.
21254 # We use the long form for the default assignment because of an extremely
21255 # bizarre bug on SunOS 4.1.3.
21256 if $ac_need_defaults; then
21257   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21258   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
21259   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21260 fi
21261
21262 # Have a temporary directory for convenience.  Make it in the build tree
21263 # simply because there is no reason against having it here, and in addition,
21264 # creating and moving files from /tmp can sometimes cause problems.
21265 # Hook for its removal unless debugging.
21266 # Note that there is a small window in which the directory will not be cleaned:
21267 # after its creation but before its name has been assigned to `$tmp'.
21268 $debug ||
21269 {
21270   tmp=
21271   trap 'exit_status=$?
21272   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
21273 ' 0
21274   trap '{ (exit 1); exit 1; }' 1 2 13 15
21275 }
21276 # Create a (secure) tmp directory for tmp files.
21277
21278 {
21279   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
21280   test -n "$tmp" && test -d "$tmp"
21281 }  ||
21282 {
21283   tmp=./conf$$-$RANDOM
21284   (umask 077 && mkdir "$tmp")
21285 } ||
21286 {
21287    echo "$me: cannot create a temporary directory in ." >&2
21288    { (exit 1); exit 1; }
21289 }
21290
21291 #
21292 # Set up the sed scripts for CONFIG_FILES section.
21293 #
21294
21295 # No need to generate the scripts if there are no CONFIG_FILES.
21296 # This happens for instance when ./config.status config.h
21297 if test -n "$CONFIG_FILES"; then
21298
21299 _ACEOF
21300
21301
21302
21303 ac_delim='%!_!# '
21304 for ac_last_try in false false false false false :; do
21305   cat >conf$$subs.sed <<_ACEOF
21306 SHELL!$SHELL$ac_delim
21307 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
21308 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
21309 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
21310 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
21311 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
21312 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
21313 exec_prefix!$exec_prefix$ac_delim
21314 prefix!$prefix$ac_delim
21315 program_transform_name!$program_transform_name$ac_delim
21316 bindir!$bindir$ac_delim
21317 sbindir!$sbindir$ac_delim
21318 libexecdir!$libexecdir$ac_delim
21319 datarootdir!$datarootdir$ac_delim
21320 datadir!$datadir$ac_delim
21321 sysconfdir!$sysconfdir$ac_delim
21322 sharedstatedir!$sharedstatedir$ac_delim
21323 localstatedir!$localstatedir$ac_delim
21324 includedir!$includedir$ac_delim
21325 oldincludedir!$oldincludedir$ac_delim
21326 docdir!$docdir$ac_delim
21327 infodir!$infodir$ac_delim
21328 htmldir!$htmldir$ac_delim
21329 dvidir!$dvidir$ac_delim
21330 pdfdir!$pdfdir$ac_delim
21331 psdir!$psdir$ac_delim
21332 libdir!$libdir$ac_delim
21333 localedir!$localedir$ac_delim
21334 mandir!$mandir$ac_delim
21335 DEFS!$DEFS$ac_delim
21336 ECHO_C!$ECHO_C$ac_delim
21337 ECHO_N!$ECHO_N$ac_delim
21338 ECHO_T!$ECHO_T$ac_delim
21339 LIBS!$LIBS$ac_delim
21340 build_alias!$build_alias$ac_delim
21341 host_alias!$host_alias$ac_delim
21342 target_alias!$target_alias$ac_delim
21343 LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
21344 subdirs!$subdirs$ac_delim
21345 build!$build$ac_delim
21346 build_cpu!$build_cpu$ac_delim
21347 build_vendor!$build_vendor$ac_delim
21348 build_os!$build_os$ac_delim
21349 host!$host$ac_delim
21350 host_cpu!$host_cpu$ac_delim
21351 host_vendor!$host_vendor$ac_delim
21352 host_os!$host_os$ac_delim
21353 target!$target$ac_delim
21354 target_cpu!$target_cpu$ac_delim
21355 target_vendor!$target_vendor$ac_delim
21356 target_os!$target_os$ac_delim
21357 OS!$OS$ac_delim
21358 HOST_OS!$HOST_OS$ac_delim
21359 TARGET_OS!$TARGET_OS$ac_delim
21360 LINKALL!$LINKALL$ac_delim
21361 NOLINKALL!$NOLINKALL$ac_delim
21362 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
21363 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
21364 ARCH!$ARCH$ac_delim
21365 ENDIAN!$ENDIAN$ac_delim
21366 CC!$CC$ac_delim
21367 CFLAGS!$CFLAGS$ac_delim
21368 LDFLAGS!$LDFLAGS$ac_delim
21369 CPPFLAGS!$CPPFLAGS$ac_delim
21370 ac_ct_CC!$ac_ct_CC$ac_delim
21371 EXEEXT!$EXEEXT$ac_delim
21372 OBJEXT!$OBJEXT$ac_delim
21373 CPP!$CPP$ac_delim
21374 GREP!$GREP$ac_delim
21375 EGREP!$EGREP$ac_delim
21376 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
21377 BUILD_CC!$BUILD_CC$ac_delim
21378 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
21379 BUILD_CXX!$BUILD_CXX$ac_delim
21380 CVSBUILD!$CVSBUILD$ac_delim
21381 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
21382 ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
21383 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
21384 ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
21385 EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
21386 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
21387 DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
21388 JIT!$JIT$ac_delim
21389 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
21390 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
21391 ENABLE_THREADS!$ENABLE_THREADS$ac_delim
21392 ENABLE_PIC!$ENABLE_PIC$ac_delim
21393 ENABLE_SHARED!$ENABLE_SHARED$ac_delim
21394 ENABLE_TIMESTAMPS!$ENABLE_TIMESTAMPS$ac_delim
21395 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
21396 LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
21397 LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
21398 LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
21399 LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
21400 ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim
21401 CLANGPATH!$CLANGPATH$ac_delim
21402 CLANGXXPATH!$CLANGXXPATH$ac_delim
21403 _ACEOF
21404
21405   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
21406     break
21407   elif $ac_last_try; then
21408     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21409 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21410    { (exit 1); exit 1; }; }
21411   else
21412     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21413   fi
21414 done
21415
21416 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21417 if test -n "$ac_eof"; then
21418   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21419   ac_eof=`expr $ac_eof + 1`
21420 fi
21421
21422 cat >>$CONFIG_STATUS <<_ACEOF
21423 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
21424 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21425 _ACEOF
21426 sed '
21427 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21428 s/^/s,@/; s/!/@,|#_!!_#|/
21429 :n
21430 t n
21431 s/'"$ac_delim"'$/,g/; t
21432 s/$/\\/; p
21433 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21434 ' >>$CONFIG_STATUS <conf$$subs.sed
21435 rm -f conf$$subs.sed
21436 cat >>$CONFIG_STATUS <<_ACEOF
21437 CEOF$ac_eof
21438 _ACEOF
21439
21440
21441 ac_delim='%!_!# '
21442 for ac_last_try in false false false false false :; do
21443   cat >conf$$subs.sed <<_ACEOF
21444 ENABLE_BUILT_CLANG!$ENABLE_BUILT_CLANG$ac_delim
21445 OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
21446 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
21447 BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
21448 CXX!$CXX$ac_delim
21449 CXXFLAGS!$CXXFLAGS$ac_delim
21450 ac_ct_CXX!$ac_ct_CXX$ac_delim
21451 NM!$NM$ac_delim
21452 ifGNUmake!$ifGNUmake$ac_delim
21453 LN_S!$LN_S$ac_delim
21454 CMP!$CMP$ac_delim
21455 CP!$CP$ac_delim
21456 DATE!$DATE$ac_delim
21457 FIND!$FIND$ac_delim
21458 MKDIR!$MKDIR$ac_delim
21459 MV!$MV$ac_delim
21460 RANLIB!$RANLIB$ac_delim
21461 AR!$AR$ac_delim
21462 RM!$RM$ac_delim
21463 SED!$SED$ac_delim
21464 TAR!$TAR$ac_delim
21465 BINPWD!$BINPWD$ac_delim
21466 GRAPHVIZ!$GRAPHVIZ$ac_delim
21467 DOT!$DOT$ac_delim
21468 FDP!$FDP$ac_delim
21469 NEATO!$NEATO$ac_delim
21470 TWOPI!$TWOPI$ac_delim
21471 CIRCO!$CIRCO$ac_delim
21472 GV!$GV$ac_delim
21473 DOTTY!$DOTTY$ac_delim
21474 PERL!$PERL$ac_delim
21475 HAVE_PERL!$HAVE_PERL$ac_delim
21476 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
21477 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
21478 INSTALL_DATA!$INSTALL_DATA$ac_delim
21479 BZIP2!$BZIP2$ac_delim
21480 CAT!$CAT$ac_delim
21481 DOXYGEN!$DOXYGEN$ac_delim
21482 GROFF!$GROFF$ac_delim
21483 GZIP!$GZIP$ac_delim
21484 POD2HTML!$POD2HTML$ac_delim
21485 POD2MAN!$POD2MAN$ac_delim
21486 PDFROFF!$PDFROFF$ac_delim
21487 RUNTEST!$RUNTEST$ac_delim
21488 TCLSH!$TCLSH$ac_delim
21489 ZIP!$ZIP$ac_delim
21490 OCAMLC!$OCAMLC$ac_delim
21491 OCAMLOPT!$OCAMLOPT$ac_delim
21492 OCAMLDEP!$OCAMLDEP$ac_delim
21493 OCAMLDOC!$OCAMLDOC$ac_delim
21494 GAS!$GAS$ac_delim
21495 HAVE_LINK_VERSION_SCRIPT!$HAVE_LINK_VERSION_SCRIPT$ac_delim
21496 INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
21497 INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
21498 CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
21499 CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
21500 LIBADD_DL!$LIBADD_DL$ac_delim
21501 LLVMGCCCOMMAND!$LLVMGCCCOMMAND$ac_delim
21502 LLVMGXXCOMMAND!$LLVMGXXCOMMAND$ac_delim
21503 LLVMGCC!$LLVMGCC$ac_delim
21504 LLVMGXX!$LLVMGXX$ac_delim
21505 LLVMCC_OPTION!$LLVMCC_OPTION$ac_delim
21506 NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
21507 NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
21508 USE_UDIS86!$USE_UDIS86$ac_delim
21509 USE_OPROFILE!$USE_OPROFILE$ac_delim
21510 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
21511 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
21512 MMAP_FILE!$MMAP_FILE$ac_delim
21513 LLVMCC1!$LLVMCC1$ac_delim
21514 LLVMCC1PLUS!$LLVMCC1PLUS$ac_delim
21515 LLVMGCCDIR!$LLVMGCCDIR$ac_delim
21516 LLVMGCC_LANGS!$LLVMGCC_LANGS$ac_delim
21517 SHLIBEXT!$SHLIBEXT$ac_delim
21518 SHLIBPATH_VAR!$SHLIBPATH_VAR$ac_delim
21519 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
21520 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
21521 LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
21522 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
21523 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
21524 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
21525 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
21526 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
21527 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
21528 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
21529 BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
21530 ALL_BINDINGS!$ALL_BINDINGS$ac_delim
21531 OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
21532 ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
21533 RPATH!$RPATH$ac_delim
21534 RDYNAMIC!$RDYNAMIC$ac_delim
21535 LIBOBJS!$LIBOBJS$ac_delim
21536 LTLIBOBJS!$LTLIBOBJS$ac_delim
21537 _ACEOF
21538
21539   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 93; then
21540     break
21541   elif $ac_last_try; then
21542     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21543 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21544    { (exit 1); exit 1; }; }
21545   else
21546     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21547   fi
21548 done
21549
21550 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21551 if test -n "$ac_eof"; then
21552   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21553   ac_eof=`expr $ac_eof + 1`
21554 fi
21555
21556 cat >>$CONFIG_STATUS <<_ACEOF
21557 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
21558 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
21559 _ACEOF
21560 sed '
21561 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21562 s/^/s,@/; s/!/@,|#_!!_#|/
21563 :n
21564 t n
21565 s/'"$ac_delim"'$/,g/; t
21566 s/$/\\/; p
21567 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21568 ' >>$CONFIG_STATUS <conf$$subs.sed
21569 rm -f conf$$subs.sed
21570 cat >>$CONFIG_STATUS <<_ACEOF
21571 :end
21572 s/|#_!!_#|//g
21573 CEOF$ac_eof
21574 _ACEOF
21575
21576
21577 # VPATH may cause trouble with some makes, so we remove $(srcdir),
21578 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
21579 # trailing colons and then remove the whole line if VPATH becomes empty
21580 # (actually we leave an empty line to preserve line numbers).
21581 if test "x$srcdir" = x.; then
21582   ac_vpsub='/^[  ]*VPATH[        ]*=/{
21583 s/:*\$(srcdir):*/:/
21584 s/:*\${srcdir}:*/:/
21585 s/:*@srcdir@:*/:/
21586 s/^\([^=]*=[     ]*\):*/\1/
21587 s/:*$//
21588 s/^[^=]*=[       ]*$//
21589 }'
21590 fi
21591
21592 cat >>$CONFIG_STATUS <<\_ACEOF
21593 fi # test -n "$CONFIG_FILES"
21594
21595
21596 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
21597 do
21598   case $ac_tag in
21599   :[FHLC]) ac_mode=$ac_tag; continue;;
21600   esac
21601   case $ac_mode$ac_tag in
21602   :[FHL]*:*);;
21603   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
21604 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
21605    { (exit 1); exit 1; }; };;
21606   :[FH]-) ac_tag=-:-;;
21607   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
21608   esac
21609   ac_save_IFS=$IFS
21610   IFS=:
21611   set x $ac_tag
21612   IFS=$ac_save_IFS
21613   shift
21614   ac_file=$1
21615   shift
21616
21617   case $ac_mode in
21618   :L) ac_source=$1;;
21619   :[FH])
21620     ac_file_inputs=
21621     for ac_f
21622     do
21623       case $ac_f in
21624       -) ac_f="$tmp/stdin";;
21625       *) # Look for the file first in the build tree, then in the source tree
21626          # (if the path is not absolute).  The absolute path cannot be DOS-style,
21627          # because $ac_f cannot contain `:'.
21628          test -f "$ac_f" ||
21629            case $ac_f in
21630            [\\/$]*) false;;
21631            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
21632            esac ||
21633            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
21634 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
21635    { (exit 1); exit 1; }; };;
21636       esac
21637       ac_file_inputs="$ac_file_inputs $ac_f"
21638     done
21639
21640     # Let's still pretend it is `configure' which instantiates (i.e., don't
21641     # use $as_me), people would be surprised to read:
21642     #    /* config.h.  Generated by config.status.  */
21643     configure_input="Generated from "`IFS=:
21644           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
21645     if test x"$ac_file" != x-; then
21646       configure_input="$ac_file.  $configure_input"
21647       { echo "$as_me:$LINENO: creating $ac_file" >&5
21648 echo "$as_me: creating $ac_file" >&6;}
21649     fi
21650
21651     case $ac_tag in
21652     *:-:* | *:-) cat >"$tmp/stdin";;
21653     esac
21654     ;;
21655   esac
21656
21657   ac_dir=`$as_dirname -- "$ac_file" ||
21658 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21659          X"$ac_file" : 'X\(//\)[^/]' \| \
21660          X"$ac_file" : 'X\(//\)$' \| \
21661          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
21662 echo X"$ac_file" |
21663     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21664             s//\1/
21665             q
21666           }
21667           /^X\(\/\/\)[^/].*/{
21668             s//\1/
21669             q
21670           }
21671           /^X\(\/\/\)$/{
21672             s//\1/
21673             q
21674           }
21675           /^X\(\/\).*/{
21676             s//\1/
21677             q
21678           }
21679           s/.*/./; q'`
21680   { as_dir="$ac_dir"
21681   case $as_dir in #(
21682   -*) as_dir=./$as_dir;;
21683   esac
21684   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
21685     as_dirs=
21686     while :; do
21687       case $as_dir in #(
21688       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
21689       *) as_qdir=$as_dir;;
21690       esac
21691       as_dirs="'$as_qdir' $as_dirs"
21692       as_dir=`$as_dirname -- "$as_dir" ||
21693 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21694          X"$as_dir" : 'X\(//\)[^/]' \| \
21695          X"$as_dir" : 'X\(//\)$' \| \
21696          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21697 echo X"$as_dir" |
21698     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21699             s//\1/
21700             q
21701           }
21702           /^X\(\/\/\)[^/].*/{
21703             s//\1/
21704             q
21705           }
21706           /^X\(\/\/\)$/{
21707             s//\1/
21708             q
21709           }
21710           /^X\(\/\).*/{
21711             s//\1/
21712             q
21713           }
21714           s/.*/./; q'`
21715       test -d "$as_dir" && break
21716     done
21717     test -z "$as_dirs" || eval "mkdir $as_dirs"
21718   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
21719 echo "$as_me: error: cannot create directory $as_dir" >&2;}
21720    { (exit 1); exit 1; }; }; }
21721   ac_builddir=.
21722
21723 case "$ac_dir" in
21724 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21725 *)
21726   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21727   # A ".." for each directory in $ac_dir_suffix.
21728   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
21729   case $ac_top_builddir_sub in
21730   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21731   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21732   esac ;;
21733 esac
21734 ac_abs_top_builddir=$ac_pwd
21735 ac_abs_builddir=$ac_pwd$ac_dir_suffix
21736 # for backward compatibility:
21737 ac_top_builddir=$ac_top_build_prefix
21738
21739 case $srcdir in
21740   .)  # We are building in place.
21741     ac_srcdir=.
21742     ac_top_srcdir=$ac_top_builddir_sub
21743     ac_abs_top_srcdir=$ac_pwd ;;
21744   [\\/]* | ?:[\\/]* )  # Absolute name.
21745     ac_srcdir=$srcdir$ac_dir_suffix;
21746     ac_top_srcdir=$srcdir
21747     ac_abs_top_srcdir=$srcdir ;;
21748   *) # Relative name.
21749     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21750     ac_top_srcdir=$ac_top_build_prefix$srcdir
21751     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
21752 esac
21753 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
21754
21755
21756   case $ac_mode in
21757   :F)
21758   #
21759   # CONFIG_FILE
21760   #
21761
21762   case $INSTALL in
21763   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21764   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
21765   esac
21766 _ACEOF
21767
21768 cat >>$CONFIG_STATUS <<\_ACEOF
21769 # If the template does not know about datarootdir, expand it.
21770 # FIXME: This hack should be removed a few years after 2.60.
21771 ac_datarootdir_hack=; ac_datarootdir_seen=
21772
21773 case `sed -n '/datarootdir/ {
21774   p
21775   q
21776 }
21777 /@datadir@/p
21778 /@docdir@/p
21779 /@infodir@/p
21780 /@localedir@/p
21781 /@mandir@/p
21782 ' $ac_file_inputs` in
21783 *datarootdir*) ac_datarootdir_seen=yes;;
21784 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
21785   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
21786 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
21787 _ACEOF
21788 cat >>$CONFIG_STATUS <<_ACEOF
21789   ac_datarootdir_hack='
21790   s&@datadir@&$datadir&g
21791   s&@docdir@&$docdir&g
21792   s&@infodir@&$infodir&g
21793   s&@localedir@&$localedir&g
21794   s&@mandir@&$mandir&g
21795     s&\\\${datarootdir}&$datarootdir&g' ;;
21796 esac
21797 _ACEOF
21798
21799 # Neutralize VPATH when `$srcdir' = `.'.
21800 # Shell code in configure.ac might set extrasub.
21801 # FIXME: do we really want to maintain this feature?
21802 cat >>$CONFIG_STATUS <<_ACEOF
21803   sed "$ac_vpsub
21804 $extrasub
21805 _ACEOF
21806 cat >>$CONFIG_STATUS <<\_ACEOF
21807 :t
21808 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21809 s&@configure_input@&$configure_input&;t t
21810 s&@top_builddir@&$ac_top_builddir_sub&;t t
21811 s&@srcdir@&$ac_srcdir&;t t
21812 s&@abs_srcdir@&$ac_abs_srcdir&;t t
21813 s&@top_srcdir@&$ac_top_srcdir&;t t
21814 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
21815 s&@builddir@&$ac_builddir&;t t
21816 s&@abs_builddir@&$ac_abs_builddir&;t t
21817 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
21818 s&@INSTALL@&$ac_INSTALL&;t t
21819 $ac_datarootdir_hack
21820 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
21821
21822 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
21823   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
21824   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
21825   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21826 which seems to be undefined.  Please make sure it is defined." >&5
21827 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21828 which seems to be undefined.  Please make sure it is defined." >&2;}
21829
21830   rm -f "$tmp/stdin"
21831   case $ac_file in
21832   -) cat "$tmp/out"; rm -f "$tmp/out";;
21833   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
21834   esac
21835  ;;
21836   :H)
21837   #
21838   # CONFIG_HEADER
21839   #
21840 _ACEOF
21841
21842 # Transform confdefs.h into a sed script `conftest.defines', that
21843 # substitutes the proper values into config.h.in to produce config.h.
21844 rm -f conftest.defines conftest.tail
21845 # First, append a space to every undef/define line, to ease matching.
21846 echo 's/$/ /' >conftest.defines
21847 # Then, protect against being on the right side of a sed subst, or in
21848 # an unquoted here document, in config.status.  If some macros were
21849 # called several times there might be several #defines for the same
21850 # symbol, which is useless.  But do not sort them, since the last
21851 # AC_DEFINE must be honored.
21852 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
21853 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
21854 # NAME is the cpp macro being defined, VALUE is the value it is being given.
21855 # PARAMS is the parameter list in the macro definition--in most cases, it's
21856 # just an empty string.
21857 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
21858 ac_dB='\\)[      (].*,\\1define\\2'
21859 ac_dC=' '
21860 ac_dD=' ,'
21861
21862 uniq confdefs.h |
21863   sed -n '
21864         t rset
21865         :rset
21866         s/^[     ]*#[    ]*define[       ][      ]*//
21867         t ok
21868         d
21869         :ok
21870         s/[\\&,]/\\&/g
21871         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
21872         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
21873   ' >>conftest.defines
21874
21875 # Remove the space that was appended to ease matching.
21876 # Then replace #undef with comments.  This is necessary, for
21877 # example, in the case of _POSIX_SOURCE, which is predefined and required
21878 # on some systems where configure will not decide to define it.
21879 # (The regexp can be short, since the line contains either #define or #undef.)
21880 echo 's/ $//
21881 s,^[     #]*u.*,/* & */,' >>conftest.defines
21882
21883 # Break up conftest.defines:
21884 ac_max_sed_lines=50
21885
21886 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
21887 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
21888 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
21889 # et cetera.
21890 ac_in='$ac_file_inputs'
21891 ac_out='"$tmp/out1"'
21892 ac_nxt='"$tmp/out2"'
21893
21894 while :
21895 do
21896   # Write a here document:
21897     cat >>$CONFIG_STATUS <<_ACEOF
21898     # First, check the format of the line:
21899     cat >"\$tmp/defines.sed" <<\\CEOF
21900 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
21901 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
21902 b
21903 :def
21904 _ACEOF
21905   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
21906   echo 'CEOF
21907     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
21908   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
21909   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
21910   grep . conftest.tail >/dev/null || break
21911   rm -f conftest.defines
21912   mv conftest.tail conftest.defines
21913 done
21914 rm -f conftest.defines conftest.tail
21915
21916 echo "ac_result=$ac_in" >>$CONFIG_STATUS
21917 cat >>$CONFIG_STATUS <<\_ACEOF
21918   if test x"$ac_file" != x-; then
21919     echo "/* $configure_input  */" >"$tmp/config.h"
21920     cat "$ac_result" >>"$tmp/config.h"
21921     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
21922       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
21923 echo "$as_me: $ac_file is unchanged" >&6;}
21924     else
21925       rm -f $ac_file
21926       mv "$tmp/config.h" $ac_file
21927     fi
21928   else
21929     echo "/* $configure_input  */"
21930     cat "$ac_result"
21931   fi
21932   rm -f "$tmp/out12"
21933  ;;
21934
21935   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
21936 echo "$as_me: executing $ac_file commands" >&6;}
21937  ;;
21938   esac
21939
21940
21941   case $ac_file$ac_mode in
21942     "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
21943    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
21944     "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
21945    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;;
21946     "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
21947    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;;
21948     "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
21949    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
21950     "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
21951    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
21952     "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
21953    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;;
21954     "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
21955    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
21956     "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
21957    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
21958     "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
21959    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
21960     "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
21961    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;;
21962     "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
21963    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;;
21964     "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
21965    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
21966     "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
21967    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
21968
21969   esac
21970 done # for ac_tag
21971
21972
21973 { (exit 0); exit 0; }
21974 _ACEOF
21975 chmod +x $CONFIG_STATUS
21976 ac_clean_files=$ac_clean_files_save
21977
21978
21979 # configure is writing to config.log, and then calls config.status.
21980 # config.status does its own redirection, appending to config.log.
21981 # Unfortunately, on DOS this fails, as config.log is still kept open
21982 # by configure, so config.status won't be able to write to it; its
21983 # output is simply discarded.  So we exec the FD to /dev/null,
21984 # effectively closing config.log, so it can be properly (re)opened and
21985 # appended to by config.status.  When coming back to configure, we
21986 # need to make the FD available again.
21987 if test "$no_create" != yes; then
21988   ac_cs_success=:
21989   ac_config_status_args=
21990   test "$silent" = yes &&
21991     ac_config_status_args="$ac_config_status_args --quiet"
21992   exec 5>/dev/null
21993   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21994   exec 5>>config.log
21995   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21996   # would make configure fail if this is the last instruction.
21997   $ac_cs_success || { (exit 1); exit 1; }
21998 fi
21999
22000 #
22001 # CONFIG_SUBDIRS section.
22002 #
22003 if test "$no_recursion" != yes; then
22004
22005   # Remove --cache-file and --srcdir arguments so they do not pile up.
22006   ac_sub_configure_args=
22007   ac_prev=
22008   eval "set x $ac_configure_args"
22009   shift
22010   for ac_arg
22011   do
22012     if test -n "$ac_prev"; then
22013       ac_prev=
22014       continue
22015     fi
22016     case $ac_arg in
22017     -cache-file | --cache-file | --cache-fil | --cache-fi \
22018     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
22019       ac_prev=cache_file ;;
22020     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
22021     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
22022     | --c=*)
22023       ;;
22024     --config-cache | -C)
22025       ;;
22026     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
22027       ac_prev=srcdir ;;
22028     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
22029       ;;
22030     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
22031       ac_prev=prefix ;;
22032     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
22033       ;;
22034     *)
22035       case $ac_arg in
22036       *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
22037       esac
22038       ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
22039     esac
22040   done
22041
22042   # Always prepend --prefix to ensure using the same prefix
22043   # in subdir configurations.
22044   ac_arg="--prefix=$prefix"
22045   case $ac_arg in
22046   *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
22047   esac
22048   ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
22049
22050   ac_popdir=`pwd`
22051   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
22052
22053     # Do not complain, so a configure script can configure whichever
22054     # parts of a large source tree are present.
22055     test -d "$srcdir/$ac_dir" || continue
22056
22057     ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
22058     echo "$as_me:$LINENO: $ac_msg" >&5
22059     echo "$ac_msg" >&6
22060     { as_dir="$ac_dir"
22061   case $as_dir in #(
22062   -*) as_dir=./$as_dir;;
22063   esac
22064   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22065     as_dirs=
22066     while :; do
22067       case $as_dir in #(
22068       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22069       *) as_qdir=$as_dir;;
22070       esac
22071       as_dirs="'$as_qdir' $as_dirs"
22072       as_dir=`$as_dirname -- "$as_dir" ||
22073 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22074          X"$as_dir" : 'X\(//\)[^/]' \| \
22075          X"$as_dir" : 'X\(//\)$' \| \
22076          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22077 echo X"$as_dir" |
22078     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22079             s//\1/
22080             q
22081           }
22082           /^X\(\/\/\)[^/].*/{
22083             s//\1/
22084             q
22085           }
22086           /^X\(\/\/\)$/{
22087             s//\1/
22088             q
22089           }
22090           /^X\(\/\).*/{
22091             s//\1/
22092             q
22093           }
22094           s/.*/./; q'`
22095       test -d "$as_dir" && break
22096     done
22097     test -z "$as_dirs" || eval "mkdir $as_dirs"
22098   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22099 echo "$as_me: error: cannot create directory $as_dir" >&2;}
22100    { (exit 1); exit 1; }; }; }
22101     ac_builddir=.
22102
22103 case "$ac_dir" in
22104 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22105 *)
22106   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22107   # A ".." for each directory in $ac_dir_suffix.
22108   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
22109   case $ac_top_builddir_sub in
22110   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22111   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22112   esac ;;
22113 esac
22114 ac_abs_top_builddir=$ac_pwd
22115 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22116 # for backward compatibility:
22117 ac_top_builddir=$ac_top_build_prefix
22118
22119 case $srcdir in
22120   .)  # We are building in place.
22121     ac_srcdir=.
22122     ac_top_srcdir=$ac_top_builddir_sub
22123     ac_abs_top_srcdir=$ac_pwd ;;
22124   [\\/]* | ?:[\\/]* )  # Absolute name.
22125     ac_srcdir=$srcdir$ac_dir_suffix;
22126     ac_top_srcdir=$srcdir
22127     ac_abs_top_srcdir=$srcdir ;;
22128   *) # Relative name.
22129     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22130     ac_top_srcdir=$ac_top_build_prefix$srcdir
22131     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22132 esac
22133 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22134
22135
22136     cd "$ac_dir"
22137
22138     # Check for guested configure; otherwise get Cygnus style configure.
22139     if test -f "$ac_srcdir/configure.gnu"; then
22140       ac_sub_configure=$ac_srcdir/configure.gnu
22141     elif test -f "$ac_srcdir/configure"; then
22142       ac_sub_configure=$ac_srcdir/configure
22143     elif test -f "$ac_srcdir/configure.in"; then
22144       # This should be Cygnus configure.
22145       ac_sub_configure=$ac_aux_dir/configure
22146     else
22147       { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
22148 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
22149       ac_sub_configure=
22150     fi
22151
22152     # The recursion is here.
22153     if test -n "$ac_sub_configure"; then
22154       # Make the cache file name correct relative to the subdirectory.
22155       case $cache_file in
22156       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
22157       *) # Relative name.
22158         ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
22159       esac
22160
22161       { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
22162 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
22163       # The eval makes quoting arguments work.
22164       eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
22165            --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
22166         { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
22167 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
22168    { (exit 1); exit 1; }; }
22169     fi
22170
22171     cd "$ac_popdir"
22172   done
22173 fi
22174