autoconf: [PR7874] Add --disable-pthreads to suppress detecting pthreads on certain...
[oota-llvm.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.60 for llvm 2.9svn.
4 #
5 # Report bugs to <llvmbugs@cs.uiuc.edu>.
6 #
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 #
12 # Copyright (c) 2003-2010 University of Illinois at Urbana-Champaign.
13 ## --------------------- ##
14 ## M4sh Initialization.  ##
15 ## --------------------- ##
16
17 # Be Bourne compatible
18 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19   emulate sh
20   NULLCMD=:
21   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22   # is contrary to our usage.  Disable this feature.
23   alias -g '${1+"$@"}'='"$@"'
24   setopt NO_GLOB_SUBST
25 else
26   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
27 fi
28 BIN_SH=xpg4; export BIN_SH # for Tru64
29 DUALCASE=1; export DUALCASE # for MKS sh
30
31
32 # PATH needs CR
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
39
40 # The user is always right.
41 if test "${PATH_SEPARATOR+set}" != set; then
42   echo "#! /bin/sh" >conf$$.sh
43   echo  "exit 0"   >>conf$$.sh
44   chmod +x conf$$.sh
45   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
46     PATH_SEPARATOR=';'
47   else
48     PATH_SEPARATOR=:
49   fi
50   rm -f conf$$.sh
51 fi
52
53 # Support unset when possible.
54 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
55   as_unset=unset
56 else
57   as_unset=false
58 fi
59
60
61 # IFS
62 # We need space, tab and new line, in precisely that order.  Quoting is
63 # there to prevent editors from complaining about space-tab.
64 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
65 # splitting by setting IFS to empty value.)
66 as_nl='
67 '
68 IFS=" ""        $as_nl"
69
70 # Find who we are.  Look in the path if we contain no directory separator.
71 case $0 in
72   *[\\/]* ) as_myself=$0 ;;
73   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
74 for as_dir in $PATH
75 do
76   IFS=$as_save_IFS
77   test -z "$as_dir" && as_dir=.
78   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
79 done
80 IFS=$as_save_IFS
81
82      ;;
83 esac
84 # We did not find ourselves, most probably we were run as `sh COMMAND'
85 # in which case we are not to be found in the path.
86 if test "x$as_myself" = x; then
87   as_myself=$0
88 fi
89 if test ! -f "$as_myself"; then
90   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
91   { (exit 1); exit 1; }
92 fi
93
94 # Work around bugs in pre-3.0 UWIN ksh.
95 for as_var in ENV MAIL MAILPATH
96 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
97 done
98 PS1='$ '
99 PS2='> '
100 PS4='+ '
101
102 # NLS nuisances.
103 for as_var in \
104   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
106   LC_TELEPHONE LC_TIME
107 do
108   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109     eval $as_var=C; export $as_var
110   else
111     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
112   fi
113 done
114
115 # Required to use basename.
116 if expr a : '\(a\)' >/dev/null 2>&1 &&
117    test "X`expr 00001 : '.*\(...\)'`" = X001; then
118   as_expr=expr
119 else
120   as_expr=false
121 fi
122
123 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
124   as_basename=basename
125 else
126   as_basename=false
127 fi
128
129
130 # Name of the executable.
131 as_me=`$as_basename -- "$0" ||
132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133          X"$0" : 'X\(//\)$' \| \
134          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
135 echo X/"$0" |
136     sed '/^.*\/\([^/][^/]*\)\/*$/{
137             s//\1/
138             q
139           }
140           /^X\/\(\/\/\)$/{
141             s//\1/
142             q
143           }
144           /^X\/\(\/\).*/{
145             s//\1/
146             q
147           }
148           s/.*/./; q'`
149
150 # CDPATH.
151 $as_unset CDPATH
152
153
154 if test "x$CONFIG_SHELL" = x; then
155   if (eval ":") 2>/dev/null; then
156   as_have_required=yes
157 else
158   as_have_required=no
159 fi
160
161   if test $as_have_required = yes &&     (eval ":
162 (as_func_return () {
163   (exit \$1)
164 }
165 as_func_success () {
166   as_func_return 0
167 }
168 as_func_failure () {
169   as_func_return 1
170 }
171 as_func_ret_success () {
172   return 0
173 }
174 as_func_ret_failure () {
175   return 1
176 }
177
178 exitcode=0
179 if as_func_success; then
180   :
181 else
182   exitcode=1
183   echo as_func_success failed.
184 fi
185
186 if as_func_failure; then
187   exitcode=1
188   echo as_func_failure succeeded.
189 fi
190
191 if as_func_ret_success; then
192   :
193 else
194   exitcode=1
195   echo as_func_ret_success failed.
196 fi
197
198 if as_func_ret_failure; then
199   exitcode=1
200   echo as_func_ret_failure succeeded.
201 fi
202
203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
204   :
205 else
206   exitcode=1
207   echo positional parameters were not saved.
208 fi
209
210 test \$exitcode = 0) || { (exit 1); exit 1; }
211
212 (
213   as_lineno_1=\$LINENO
214   as_lineno_2=\$LINENO
215   test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216   test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217 ") 2> /dev/null; then
218   :
219 else
220   as_candidate_shells=
221     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222 for as_dir in /usr/bin/posix$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
223 do
224   IFS=$as_save_IFS
225   test -z "$as_dir" && as_dir=.
226   case $as_dir in
227          /*)
228            for as_base in sh bash ksh sh5; do
229              as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
230            done;;
231        esac
232 done
233 IFS=$as_save_IFS
234
235
236       for as_shell in $as_candidate_shells $SHELL; do
237          # Try only shells that exist, to save several forks.
238          if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239                 { ("$as_shell") 2> /dev/null <<\_ASEOF
240 # Be Bourne compatible
241 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
242   emulate sh
243   NULLCMD=:
244   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
245   # is contrary to our usage.  Disable this feature.
246   alias -g '${1+"$@"}'='"$@"'
247   setopt NO_GLOB_SUBST
248 else
249   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
250 fi
251 BIN_SH=xpg4; export BIN_SH # for Tru64
252 DUALCASE=1; export DUALCASE # for MKS sh
253
254 :
255 _ASEOF
256 }; then
257   CONFIG_SHELL=$as_shell
258                as_have_required=yes
259                if { "$as_shell" 2> /dev/null <<\_ASEOF
260 # Be Bourne compatible
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262   emulate sh
263   NULLCMD=:
264   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265   # is contrary to our usage.  Disable this feature.
266   alias -g '${1+"$@"}'='"$@"'
267   setopt NO_GLOB_SUBST
268 else
269   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
270 fi
271 BIN_SH=xpg4; export BIN_SH # for Tru64
272 DUALCASE=1; export DUALCASE # for MKS sh
273
274 :
275 (as_func_return () {
276   (exit $1)
277 }
278 as_func_success () {
279   as_func_return 0
280 }
281 as_func_failure () {
282   as_func_return 1
283 }
284 as_func_ret_success () {
285   return 0
286 }
287 as_func_ret_failure () {
288   return 1
289 }
290
291 exitcode=0
292 if as_func_success; then
293   :
294 else
295   exitcode=1
296   echo as_func_success failed.
297 fi
298
299 if as_func_failure; then
300   exitcode=1
301   echo as_func_failure succeeded.
302 fi
303
304 if as_func_ret_success; then
305   :
306 else
307   exitcode=1
308   echo as_func_ret_success failed.
309 fi
310
311 if as_func_ret_failure; then
312   exitcode=1
313   echo as_func_ret_failure succeeded.
314 fi
315
316 if ( set x; as_func_ret_success y && test x = "$1" ); then
317   :
318 else
319   exitcode=1
320   echo positional parameters were not saved.
321 fi
322
323 test $exitcode = 0) || { (exit 1); exit 1; }
324
325 (
326   as_lineno_1=$LINENO
327   as_lineno_2=$LINENO
328   test "x$as_lineno_1" != "x$as_lineno_2" &&
329   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
330
331 _ASEOF
332 }; then
333   break
334 fi
335
336 fi
337
338       done
339
340       if test "x$CONFIG_SHELL" != x; then
341   for as_var in BASH_ENV ENV
342         do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
343         done
344         export CONFIG_SHELL
345         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
346 fi
347
348
349     if test $as_have_required = no; then
350   echo This script requires a shell more modern than all the
351       echo shells that I found on your system.  Please install a
352       echo modern shell, or manually run the script under such a
353       echo shell if you do have one.
354       { (exit 1); exit 1; }
355 fi
356
357
358 fi
359
360 fi
361
362
363
364 (eval "as_func_return () {
365   (exit \$1)
366 }
367 as_func_success () {
368   as_func_return 0
369 }
370 as_func_failure () {
371   as_func_return 1
372 }
373 as_func_ret_success () {
374   return 0
375 }
376 as_func_ret_failure () {
377   return 1
378 }
379
380 exitcode=0
381 if as_func_success; then
382   :
383 else
384   exitcode=1
385   echo as_func_success failed.
386 fi
387
388 if as_func_failure; then
389   exitcode=1
390   echo as_func_failure succeeded.
391 fi
392
393 if as_func_ret_success; then
394   :
395 else
396   exitcode=1
397   echo as_func_ret_success failed.
398 fi
399
400 if as_func_ret_failure; then
401   exitcode=1
402   echo as_func_ret_failure succeeded.
403 fi
404
405 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
406   :
407 else
408   exitcode=1
409   echo positional parameters were not saved.
410 fi
411
412 test \$exitcode = 0") || {
413   echo No shell found that supports shell functions.
414   echo Please tell autoconf@gnu.org about your system,
415   echo including any error possibly output before this
416   echo message
417 }
418
419
420
421   as_lineno_1=$LINENO
422   as_lineno_2=$LINENO
423   test "x$as_lineno_1" != "x$as_lineno_2" &&
424   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
425
426   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
427   # uniformly replaced by the line number.  The first 'sed' inserts a
428   # line-number line after each line using $LINENO; the second 'sed'
429   # does the real work.  The second script uses 'N' to pair each
430   # line-number line with the line containing $LINENO, and appends
431   # trailing '-' during substitution so that $LINENO is not a special
432   # case at line end.
433   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
434   # scripts with optimization help from Paolo Bonzini.  Blame Lee
435   # E. McMahon (1931-1989) for sed's syntax.  :-)
436   sed -n '
437     p
438     /[$]LINENO/=
439   ' <$as_myself |
440     sed '
441       s/[$]LINENO.*/&-/
442       t lineno
443       b
444       :lineno
445       N
446       :loop
447       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
448       t loop
449       s/-\n.*//
450     ' >$as_me.lineno &&
451   chmod +x "$as_me.lineno" ||
452     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
453    { (exit 1); exit 1; }; }
454
455   # Don't try to exec as it changes $[0], causing all sort of problems
456   # (the dirname of $[0] is not the place where we might find the
457   # original and so on.  Autoconf is especially sensitive to this).
458   . "./$as_me.lineno"
459   # Exit status is that of the last command.
460   exit
461 }
462
463
464 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
465   as_dirname=dirname
466 else
467   as_dirname=false
468 fi
469
470 ECHO_C= ECHO_N= ECHO_T=
471 case `echo -n x` in
472 -n*)
473   case `echo 'x\c'` in
474   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
475   *)   ECHO_C='\c';;
476   esac;;
477 *)
478   ECHO_N='-n';;
479 esac
480
481 if expr a : '\(a\)' >/dev/null 2>&1 &&
482    test "X`expr 00001 : '.*\(...\)'`" = X001; then
483   as_expr=expr
484 else
485   as_expr=false
486 fi
487
488 rm -f conf$$ conf$$.exe conf$$.file
489 if test -d conf$$.dir; then
490   rm -f conf$$.dir/conf$$.file
491 else
492   rm -f conf$$.dir
493   mkdir conf$$.dir
494 fi
495 echo >conf$$.file
496 if ln -s conf$$.file conf$$ 2>/dev/null; then
497   as_ln_s='ln -s'
498   # ... but there are two gotchas:
499   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
500   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
501   # In both cases, we have to default to `cp -p'.
502   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
503     as_ln_s='cp -p'
504 elif ln conf$$.file conf$$ 2>/dev/null; then
505   as_ln_s=ln
506 else
507   as_ln_s='cp -p'
508 fi
509 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
510 rmdir conf$$.dir 2>/dev/null
511
512 if mkdir -p . 2>/dev/null; then
513   as_mkdir_p=:
514 else
515   test -d ./-p && rmdir ./-p
516   as_mkdir_p=false
517 fi
518
519 # Find out whether ``test -x'' works.  Don't use a zero-byte file, as
520 # systems may use methods other than mode bits to determine executability.
521 cat >conf$$.file <<_ASEOF
522 #! /bin/sh
523 exit 0
524 _ASEOF
525 chmod +x conf$$.file
526 if test -x conf$$.file >/dev/null 2>&1; then
527   as_executable_p="test -x"
528 else
529   as_executable_p=:
530 fi
531 rm -f conf$$.file
532
533 # Sed expression to map a string onto a valid CPP name.
534 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
535
536 # Sed expression to map a string onto a valid variable name.
537 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
538
539
540
541 exec 7<&0 </dev/null 6>&1
542
543 # Name of the host.
544 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
545 # so uname gets run too.
546 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
547
548 #
549 # Initializations.
550 #
551 ac_default_prefix=/usr/local
552 ac_clean_files=
553 ac_config_libobj_dir=.
554 LIBOBJS=
555 cross_compiling=no
556 subdirs=
557 MFLAGS=
558 MAKEFLAGS=
559 SHELL=${CONFIG_SHELL-/bin/sh}
560
561 # Identity of this package.
562 PACKAGE_NAME='llvm'
563 PACKAGE_TARNAME='-llvm-'
564 PACKAGE_VERSION='2.9svn'
565 PACKAGE_STRING='llvm 2.9svn'
566 PACKAGE_BUGREPORT='llvmbugs@cs.uiuc.edu'
567
568 ac_unique_file="lib/VMCore/Module.cpp"
569 # Factoring default headers for most tests.
570 ac_includes_default="\
571 #include <stdio.h>
572 #if HAVE_SYS_TYPES_H
573 # include <sys/types.h>
574 #endif
575 #if HAVE_SYS_STAT_H
576 # include <sys/stat.h>
577 #endif
578 #if STDC_HEADERS
579 # include <stdlib.h>
580 # include <stddef.h>
581 #else
582 # if HAVE_STDLIB_H
583 #  include <stdlib.h>
584 # endif
585 #endif
586 #if HAVE_STRING_H
587 # if !STDC_HEADERS && HAVE_MEMORY_H
588 #  include <memory.h>
589 # endif
590 # include <string.h>
591 #endif
592 #if HAVE_STRINGS_H
593 # include <strings.h>
594 #endif
595 #if HAVE_INTTYPES_H
596 # include <inttypes.h>
597 #endif
598 #if HAVE_STDINT_H
599 # include <stdint.h>
600 #endif
601 #if HAVE_UNISTD_H
602 # include <unistd.h>
603 #endif"
604
605 ac_subst_vars='SHELL
606 PATH_SEPARATOR
607 PACKAGE_NAME
608 PACKAGE_TARNAME
609 PACKAGE_VERSION
610 PACKAGE_STRING
611 PACKAGE_BUGREPORT
612 exec_prefix
613 prefix
614 program_transform_name
615 bindir
616 sbindir
617 libexecdir
618 datarootdir
619 datadir
620 sysconfdir
621 sharedstatedir
622 localstatedir
623 includedir
624 oldincludedir
625 docdir
626 infodir
627 htmldir
628 dvidir
629 pdfdir
630 psdir
631 libdir
632 localedir
633 mandir
634 DEFS
635 ECHO_C
636 ECHO_N
637 ECHO_T
638 LIBS
639 build_alias
640 host_alias
641 target_alias
642 LLVM_COPYRIGHT
643 subdirs
644 ENABLE_POLLY
645 LLVM_HAS_POLLY
646 build
647 build_cpu
648 build_vendor
649 build_os
650 host
651 host_cpu
652 host_vendor
653 host_os
654 target
655 target_cpu
656 target_vendor
657 target_os
658 OS
659 HOST_OS
660 TARGET_OS
661 LINKALL
662 NOLINKALL
663 LLVM_ON_UNIX
664 LLVM_ON_WIN32
665 ARCH
666 ENDIAN
667 CC
668 CFLAGS
669 LDFLAGS
670 CPPFLAGS
671 ac_ct_CC
672 EXEEXT
673 OBJEXT
674 CPP
675 GREP
676 EGREP
677 LLVM_CROSS_COMPILING
678 BUILD_CC
679 BUILD_EXEEXT
680 BUILD_CXX
681 CVSBUILD
682 ENABLE_OPTIMIZED
683 ENABLE_PROFILING
684 DISABLE_ASSERTIONS
685 ENABLE_EXPENSIVE_CHECKS
686 EXPENSIVE_CHECKS
687 DEBUG_RUNTIME
688 DEBUG_SYMBOLS
689 JIT
690 TARGET_HAS_JIT
691 ENABLE_DOCS
692 ENABLE_DOXYGEN
693 ENABLE_THREADS
694 ENABLE_PTHREADS
695 ENABLE_PIC
696 ENABLE_SHARED
697 ENABLE_TIMESTAMPS
698 TARGETS_TO_BUILD
699 LLVM_ENUM_TARGETS
700 LLVM_ENUM_ASM_PRINTERS
701 LLVM_ENUM_ASM_PARSERS
702 LLVM_ENUM_DISASSEMBLERS
703 ENABLE_CBE_PRINTF_A
704 CLANGPATH
705 CLANGXXPATH
706 ENABLE_BUILT_CLANG
707 OPTIMIZE_OPTION
708 EXTRA_OPTIONS
709 BINUTILS_INCDIR
710 CXX
711 CXXFLAGS
712 ac_ct_CXX
713 NM
714 ifGNUmake
715 LN_S
716 CMP
717 CP
718 DATE
719 FIND
720 MKDIR
721 MV
722 RANLIB
723 AR
724 RM
725 SED
726 TAR
727 BINPWD
728 GRAPHVIZ
729 DOT
730 FDP
731 NEATO
732 TWOPI
733 CIRCO
734 GV
735 DOTTY
736 XDOT_PY
737 PERL
738 HAVE_PERL
739 INSTALL_PROGRAM
740 INSTALL_SCRIPT
741 INSTALL_DATA
742 BZIP2
743 CAT
744 DOXYGEN
745 GROFF
746 GZIPBIN
747 POD2HTML
748 POD2MAN
749 PDFROFF
750 RUNTEST
751 TCLSH
752 ZIP
753 OCAMLC
754 OCAMLOPT
755 OCAMLDEP
756 OCAMLDOC
757 GAS
758 HAVE_LINK_VERSION_SCRIPT
759 INSTALL_LTDL_TRUE
760 INSTALL_LTDL_FALSE
761 CONVENIENCE_LTDL_TRUE
762 CONVENIENCE_LTDL_FALSE
763 LIBADD_DL
764 LLVMGCCCOMMAND
765 LLVMGXXCOMMAND
766 LLVMGCC
767 LLVMGXX
768 LLVMCC_OPTION
769 NO_VARIADIC_MACROS
770 NO_MISSING_FIELD_INITIALIZERS
771 USE_UDIS86
772 USE_OPROFILE
773 HAVE_PTHREAD
774 HUGE_VAL_SANITY
775 MMAP_FILE
776 LLVMCC_EMITIR_FLAG
777 LLVMCC1
778 LLVMCC1PLUS
779 LLVMGCCDIR
780 LLVMGCC_LANGS
781 LLVMGCC_DRAGONEGG
782 LLVMCC_DISABLEOPT_FLAGS
783 SHLIBEXT
784 SHLIBPATH_VAR
785 LLVM_PREFIX
786 LLVM_BINDIR
787 LLVM_LIBDIR
788 LLVM_DATADIR
789 LLVM_DOCSDIR
790 LLVM_ETCDIR
791 LLVM_INCLUDEDIR
792 LLVM_INFODIR
793 LLVM_MANDIR
794 LLVM_CONFIGTIME
795 BINDINGS_TO_BUILD
796 ALL_BINDINGS
797 OCAML_LIBDIR
798 ENABLE_VISIBILITY_INLINES_HIDDEN
799 RPATH
800 RDYNAMIC
801 LIBOBJS
802 LTLIBOBJS'
803 ac_subst_files=''
804       ac_precious_vars='build_alias
805 host_alias
806 target_alias
807 CC
808 CFLAGS
809 LDFLAGS
810 CPPFLAGS
811 CPP
812 CXX
813 CXXFLAGS
814 CCC'
815 ac_subdirs_all='projects/llvm-gcc
816 projects/test-suite
817 projects/llvm-test
818 projects/poolalloc
819 projects/llvm-poolalloc
820 projects/sample
821 projects/privbracket
822 projects/llvm-stacker
823 projects/llvm-reopt
824 projects/llvm-java
825 projects/llvm-tv
826 projects/safecode
827 projects/llvm-kernel
828 tools/polly'
829
830 # Initialize some variables set by options.
831 ac_init_help=
832 ac_init_version=false
833 # The variables have the same names as the options, with
834 # dashes changed to underlines.
835 cache_file=/dev/null
836 exec_prefix=NONE
837 no_create=
838 no_recursion=
839 prefix=NONE
840 program_prefix=NONE
841 program_suffix=NONE
842 program_transform_name=s,x,x,
843 silent=
844 site=
845 srcdir=
846 verbose=
847 x_includes=NONE
848 x_libraries=NONE
849
850 # Installation directory options.
851 # These are left unexpanded so users can "make install exec_prefix=/foo"
852 # and all the variables that are supposed to be based on exec_prefix
853 # by default will actually change.
854 # Use braces instead of parens because sh, perl, etc. also accept them.
855 # (The list follows the same order as the GNU Coding Standards.)
856 bindir='${exec_prefix}/bin'
857 sbindir='${exec_prefix}/sbin'
858 libexecdir='${exec_prefix}/libexec'
859 datarootdir='${prefix}/share'
860 datadir='${datarootdir}'
861 sysconfdir='${prefix}/etc'
862 sharedstatedir='${prefix}/com'
863 localstatedir='${prefix}/var'
864 includedir='${prefix}/include'
865 oldincludedir='/usr/include'
866 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
867 infodir='${datarootdir}/info'
868 htmldir='${docdir}'
869 dvidir='${docdir}'
870 pdfdir='${docdir}'
871 psdir='${docdir}'
872 libdir='${exec_prefix}/lib'
873 localedir='${datarootdir}/locale'
874 mandir='${datarootdir}/man'
875
876 ac_prev=
877 ac_dashdash=
878 for ac_option
879 do
880   # If the previous option needs an argument, assign it.
881   if test -n "$ac_prev"; then
882     eval $ac_prev=\$ac_option
883     ac_prev=
884     continue
885   fi
886
887   case $ac_option in
888   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
889   *)    ac_optarg=yes ;;
890   esac
891
892   # Accept the important Cygnus configure options, so we can diagnose typos.
893
894   case $ac_dashdash$ac_option in
895   --)
896     ac_dashdash=yes ;;
897
898   -bindir | --bindir | --bindi | --bind | --bin | --bi)
899     ac_prev=bindir ;;
900   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
901     bindir=$ac_optarg ;;
902
903   -build | --build | --buil | --bui | --bu)
904     ac_prev=build_alias ;;
905   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
906     build_alias=$ac_optarg ;;
907
908   -cache-file | --cache-file | --cache-fil | --cache-fi \
909   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
910     ac_prev=cache_file ;;
911   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
912   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
913     cache_file=$ac_optarg ;;
914
915   --config-cache | -C)
916     cache_file=config.cache ;;
917
918   -datadir | --datadir | --datadi | --datad)
919     ac_prev=datadir ;;
920   -datadir=* | --datadir=* | --datadi=* | --datad=*)
921     datadir=$ac_optarg ;;
922
923   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
924   | --dataroo | --dataro | --datar)
925     ac_prev=datarootdir ;;
926   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
927   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
928     datarootdir=$ac_optarg ;;
929
930   -disable-* | --disable-*)
931     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
932     # Reject names that are not valid shell variable names.
933     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
934       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
935    { (exit 1); exit 1; }; }
936     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
937     eval enable_$ac_feature=no ;;
938
939   -docdir | --docdir | --docdi | --doc | --do)
940     ac_prev=docdir ;;
941   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
942     docdir=$ac_optarg ;;
943
944   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
945     ac_prev=dvidir ;;
946   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
947     dvidir=$ac_optarg ;;
948
949   -enable-* | --enable-*)
950     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
951     # Reject names that are not valid shell variable names.
952     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
953       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
954    { (exit 1); exit 1; }; }
955     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
956     eval enable_$ac_feature=\$ac_optarg ;;
957
958   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
959   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
960   | --exec | --exe | --ex)
961     ac_prev=exec_prefix ;;
962   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
963   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
964   | --exec=* | --exe=* | --ex=*)
965     exec_prefix=$ac_optarg ;;
966
967   -gas | --gas | --ga | --g)
968     # Obsolete; use --with-gas.
969     with_gas=yes ;;
970
971   -help | --help | --hel | --he | -h)
972     ac_init_help=long ;;
973   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
974     ac_init_help=recursive ;;
975   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
976     ac_init_help=short ;;
977
978   -host | --host | --hos | --ho)
979     ac_prev=host_alias ;;
980   -host=* | --host=* | --hos=* | --ho=*)
981     host_alias=$ac_optarg ;;
982
983   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
984     ac_prev=htmldir ;;
985   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
986   | --ht=*)
987     htmldir=$ac_optarg ;;
988
989   -includedir | --includedir | --includedi | --included | --include \
990   | --includ | --inclu | --incl | --inc)
991     ac_prev=includedir ;;
992   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
993   | --includ=* | --inclu=* | --incl=* | --inc=*)
994     includedir=$ac_optarg ;;
995
996   -infodir | --infodir | --infodi | --infod | --info | --inf)
997     ac_prev=infodir ;;
998   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
999     infodir=$ac_optarg ;;
1000
1001   -libdir | --libdir | --libdi | --libd)
1002     ac_prev=libdir ;;
1003   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1004     libdir=$ac_optarg ;;
1005
1006   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1007   | --libexe | --libex | --libe)
1008     ac_prev=libexecdir ;;
1009   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1010   | --libexe=* | --libex=* | --libe=*)
1011     libexecdir=$ac_optarg ;;
1012
1013   -localedir | --localedir | --localedi | --localed | --locale)
1014     ac_prev=localedir ;;
1015   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1016     localedir=$ac_optarg ;;
1017
1018   -localstatedir | --localstatedir | --localstatedi | --localstated \
1019   | --localstate | --localstat | --localsta | --localst | --locals)
1020     ac_prev=localstatedir ;;
1021   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1022   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1023     localstatedir=$ac_optarg ;;
1024
1025   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1026     ac_prev=mandir ;;
1027   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1028     mandir=$ac_optarg ;;
1029
1030   -nfp | --nfp | --nf)
1031     # Obsolete; use --without-fp.
1032     with_fp=no ;;
1033
1034   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1035   | --no-cr | --no-c | -n)
1036     no_create=yes ;;
1037
1038   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1039   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1040     no_recursion=yes ;;
1041
1042   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1043   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1044   | --oldin | --oldi | --old | --ol | --o)
1045     ac_prev=oldincludedir ;;
1046   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1047   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1048   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1049     oldincludedir=$ac_optarg ;;
1050
1051   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1052     ac_prev=prefix ;;
1053   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1054     prefix=$ac_optarg ;;
1055
1056   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1057   | --program-pre | --program-pr | --program-p)
1058     ac_prev=program_prefix ;;
1059   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1060   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1061     program_prefix=$ac_optarg ;;
1062
1063   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1064   | --program-suf | --program-su | --program-s)
1065     ac_prev=program_suffix ;;
1066   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1067   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1068     program_suffix=$ac_optarg ;;
1069
1070   -program-transform-name | --program-transform-name \
1071   | --program-transform-nam | --program-transform-na \
1072   | --program-transform-n | --program-transform- \
1073   | --program-transform | --program-transfor \
1074   | --program-transfo | --program-transf \
1075   | --program-trans | --program-tran \
1076   | --progr-tra | --program-tr | --program-t)
1077     ac_prev=program_transform_name ;;
1078   -program-transform-name=* | --program-transform-name=* \
1079   | --program-transform-nam=* | --program-transform-na=* \
1080   | --program-transform-n=* | --program-transform-=* \
1081   | --program-transform=* | --program-transfor=* \
1082   | --program-transfo=* | --program-transf=* \
1083   | --program-trans=* | --program-tran=* \
1084   | --progr-tra=* | --program-tr=* | --program-t=*)
1085     program_transform_name=$ac_optarg ;;
1086
1087   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1088     ac_prev=pdfdir ;;
1089   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1090     pdfdir=$ac_optarg ;;
1091
1092   -psdir | --psdir | --psdi | --psd | --ps)
1093     ac_prev=psdir ;;
1094   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1095     psdir=$ac_optarg ;;
1096
1097   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1098   | -silent | --silent | --silen | --sile | --sil)
1099     silent=yes ;;
1100
1101   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1102     ac_prev=sbindir ;;
1103   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1104   | --sbi=* | --sb=*)
1105     sbindir=$ac_optarg ;;
1106
1107   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1108   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1109   | --sharedst | --shareds | --shared | --share | --shar \
1110   | --sha | --sh)
1111     ac_prev=sharedstatedir ;;
1112   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1113   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1114   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1115   | --sha=* | --sh=*)
1116     sharedstatedir=$ac_optarg ;;
1117
1118   -site | --site | --sit)
1119     ac_prev=site ;;
1120   -site=* | --site=* | --sit=*)
1121     site=$ac_optarg ;;
1122
1123   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1124     ac_prev=srcdir ;;
1125   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1126     srcdir=$ac_optarg ;;
1127
1128   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1129   | --syscon | --sysco | --sysc | --sys | --sy)
1130     ac_prev=sysconfdir ;;
1131   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1132   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1133     sysconfdir=$ac_optarg ;;
1134
1135   -target | --target | --targe | --targ | --tar | --ta | --t)
1136     ac_prev=target_alias ;;
1137   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1138     target_alias=$ac_optarg ;;
1139
1140   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1141     verbose=yes ;;
1142
1143   -version | --version | --versio | --versi | --vers | -V)
1144     ac_init_version=: ;;
1145
1146   -with-* | --with-*)
1147     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
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=\$ac_optarg ;;
1154
1155   -without-* | --without-*)
1156     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1157     # Reject names that are not valid shell variable names.
1158     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1159       { echo "$as_me: error: invalid package name: $ac_package" >&2
1160    { (exit 1); exit 1; }; }
1161     ac_package=`echo $ac_package | sed 's/-/_/g'`
1162     eval with_$ac_package=no ;;
1163
1164   --x)
1165     # Obsolete; use --with-x.
1166     with_x=yes ;;
1167
1168   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1169   | --x-incl | --x-inc | --x-in | --x-i)
1170     ac_prev=x_includes ;;
1171   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1172   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1173     x_includes=$ac_optarg ;;
1174
1175   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1176   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1177     ac_prev=x_libraries ;;
1178   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1179   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1180     x_libraries=$ac_optarg ;;
1181
1182   -*) { echo "$as_me: error: unrecognized option: $ac_option
1183 Try \`$0 --help' for more information." >&2
1184    { (exit 1); exit 1; }; }
1185     ;;
1186
1187   *=*)
1188     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1189     # Reject names that are not valid shell variable names.
1190     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1191       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1192    { (exit 1); exit 1; }; }
1193     eval $ac_envvar=\$ac_optarg
1194     export $ac_envvar ;;
1195
1196   *)
1197     # FIXME: should be removed in autoconf 3.0.
1198     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1199     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1200       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1201     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1202     ;;
1203
1204   esac
1205 done
1206
1207 if test -n "$ac_prev"; then
1208   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1209   { echo "$as_me: error: missing argument to $ac_option" >&2
1210    { (exit 1); exit 1; }; }
1211 fi
1212
1213 # Be sure to have absolute directory names.
1214 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1215                 datadir sysconfdir sharedstatedir localstatedir includedir \
1216                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1217                 libdir localedir mandir
1218 do
1219   eval ac_val=\$$ac_var
1220   case $ac_val in
1221     [\\/$]* | ?:[\\/]* )  continue;;
1222     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1223   esac
1224   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1225    { (exit 1); exit 1; }; }
1226 done
1227
1228 # There might be people who depend on the old broken behavior: `$host'
1229 # used to hold the argument of --host etc.
1230 # FIXME: To remove some day.
1231 build=$build_alias
1232 host=$host_alias
1233 target=$target_alias
1234
1235 # FIXME: To remove some day.
1236 if test "x$host_alias" != x; then
1237   if test "x$build_alias" = x; then
1238     cross_compiling=maybe
1239     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1240     If a cross compiler is detected then cross compile mode will be used." >&2
1241   elif test "x$build_alias" != "x$host_alias"; then
1242     cross_compiling=yes
1243   fi
1244 fi
1245
1246 ac_tool_prefix=
1247 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1248
1249 test "$silent" = yes && exec 6>/dev/null
1250
1251
1252 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1253 ac_ls_di=`ls -di .` &&
1254 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1255   { echo "$as_me: error: Working directory cannot be determined" >&2
1256    { (exit 1); exit 1; }; }
1257 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1258   { echo "$as_me: error: pwd does not report name of working directory" >&2
1259    { (exit 1); exit 1; }; }
1260
1261
1262 # Find the source files, if location was not specified.
1263 if test -z "$srcdir"; then
1264   ac_srcdir_defaulted=yes
1265   # Try the directory containing this script, then the parent directory.
1266   ac_confdir=`$as_dirname -- "$0" ||
1267 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1268          X"$0" : 'X\(//\)[^/]' \| \
1269          X"$0" : 'X\(//\)$' \| \
1270          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1271 echo X"$0" |
1272     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1273             s//\1/
1274             q
1275           }
1276           /^X\(\/\/\)[^/].*/{
1277             s//\1/
1278             q
1279           }
1280           /^X\(\/\/\)$/{
1281             s//\1/
1282             q
1283           }
1284           /^X\(\/\).*/{
1285             s//\1/
1286             q
1287           }
1288           s/.*/./; q'`
1289   srcdir=$ac_confdir
1290   if test ! -r "$srcdir/$ac_unique_file"; then
1291     srcdir=..
1292   fi
1293 else
1294   ac_srcdir_defaulted=no
1295 fi
1296 if test ! -r "$srcdir/$ac_unique_file"; then
1297   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1298   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1299    { (exit 1); exit 1; }; }
1300 fi
1301 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1302 ac_abs_confdir=`(
1303         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1304    { (exit 1); exit 1; }; }
1305         pwd)`
1306 # When building in place, set srcdir=.
1307 if test "$ac_abs_confdir" = "$ac_pwd"; then
1308   srcdir=.
1309 fi
1310 # Remove unnecessary trailing slashes from srcdir.
1311 # Double slashes in file names in object file debugging info
1312 # mess up M-x gdb in Emacs.
1313 case $srcdir in
1314 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1315 esac
1316 for ac_var in $ac_precious_vars; do
1317   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1318   eval ac_env_${ac_var}_value=\$${ac_var}
1319   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1320   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1321 done
1322
1323 #
1324 # Report the --help message.
1325 #
1326 if test "$ac_init_help" = "long"; then
1327   # Omit some internal or obsolete options to make the list less imposing.
1328   # This message is too long to be a string in the A/UX 3.1 sh.
1329   cat <<_ACEOF
1330 \`configure' configures llvm 2.9svn to adapt to many kinds of systems.
1331
1332 Usage: $0 [OPTION]... [VAR=VALUE]...
1333
1334 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1335 VAR=VALUE.  See below for descriptions of some of the useful variables.
1336
1337 Defaults for the options are specified in brackets.
1338
1339 Configuration:
1340   -h, --help              display this help and exit
1341       --help=short        display options specific to this package
1342       --help=recursive    display the short help of all the included packages
1343   -V, --version           display version information and exit
1344   -q, --quiet, --silent   do not print \`checking...' messages
1345       --cache-file=FILE   cache test results in FILE [disabled]
1346   -C, --config-cache      alias for \`--cache-file=config.cache'
1347   -n, --no-create         do not create output files
1348       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1349
1350 Installation directories:
1351   --prefix=PREFIX         install architecture-independent files in PREFIX
1352                           [$ac_default_prefix]
1353   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1354                           [PREFIX]
1355
1356 By default, \`make install' will install all the files in
1357 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1358 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1359 for instance \`--prefix=\$HOME'.
1360
1361 For better control, use the options below.
1362
1363 Fine tuning of the installation directories:
1364   --bindir=DIR           user executables [EPREFIX/bin]
1365   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1366   --libexecdir=DIR       program executables [EPREFIX/libexec]
1367   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1368   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1369   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1370   --libdir=DIR           object code libraries [EPREFIX/lib]
1371   --includedir=DIR       C header files [PREFIX/include]
1372   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1373   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1374   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1375   --infodir=DIR          info documentation [DATAROOTDIR/info]
1376   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1377   --mandir=DIR           man documentation [DATAROOTDIR/man]
1378   --docdir=DIR           documentation root [DATAROOTDIR/doc/-llvm-]
1379   --htmldir=DIR          html documentation [DOCDIR]
1380   --dvidir=DIR           dvi documentation [DOCDIR]
1381   --pdfdir=DIR           pdf documentation [DOCDIR]
1382   --psdir=DIR            ps documentation [DOCDIR]
1383 _ACEOF
1384
1385   cat <<\_ACEOF
1386
1387 System types:
1388   --build=BUILD     configure for building on BUILD [guessed]
1389   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1390   --target=TARGET   configure for building compilers for TARGET [HOST]
1391 _ACEOF
1392 fi
1393
1394 if test -n "$ac_init_help"; then
1395   case $ac_init_help in
1396      short | recursive ) echo "Configuration of llvm 2.9svn:";;
1397    esac
1398   cat <<\_ACEOF
1399
1400 Optional Features:
1401   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1402   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1403   --enable-polly          Use polly if available (default is YES)
1404   --enable-optimized      Compile with optimizations enabled (default is NO)
1405   --enable-profiling      Compile with profiling enabled (default is NO)
1406   --enable-assertions     Compile with assertion checks enabled (default is
1407                           YES)
1408   --enable-expensive-checks
1409                           Compile with expensive debug checks enabled (default
1410                           is NO)
1411   --enable-debug-runtime  Build runtime libs with debug symbols (default is
1412                           NO)
1413   --enable-debug-symbols  Build compiler with debug symbols (default is NO if
1414                           optimization is on and YES if it's off)
1415   --enable-jit            Enable Just In Time Compiling (default is YES)
1416   --enable-docs           Build documents (default is YES)
1417   --enable-doxygen        Build doxygen documentation (default is NO)
1418   --enable-threads        Use threads if available (default is YES)
1419   --enable-pthreads       Use pthreads if available (default is YES)
1420   --enable-pic            Build LLVM with Position Independent Code (default
1421                           is YES)
1422   --enable-shared         Build a shared library and link tools against it
1423                           (default is NO)
1424   --enable-timestamps     Enable embedding timestamp information in build
1425                           (default is YES)
1426   --enable-targets        Build specific host targets: all or
1427                           target1,target2,... Valid targets are: host, x86,
1428                           x86_64, sparc, powerpc, alpha, arm, mips, spu,
1429                           xcore, msp430, systemz, blackfin, ptx, cbe, and cpp
1430                           (default=all)
1431   --enable-cbe-printf-a   Enable C Backend output with hex floating point via
1432                           %a (default is YES)
1433   --enable-bindings       Build specific language bindings:
1434                           all,auto,none,{binding-name} (default=auto)
1435   --enable-libffi         Check for the presence of libffi (default is NO)
1436   --enable-ltdl-install   install libltdl
1437
1438 Optional Packages:
1439   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1440   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1441   --with-llvmgccdir       Specify location of llvm-gcc install dir (default
1442                           searches PATH)
1443   --with-llvmgcc          Specify location of llvm-gcc driver (default
1444                           searches PATH)
1445   --with-llvmgxx          Specify location of llvm-g++ driver (default
1446                           searches PATH)
1447   --with-clang            Specify location of clang compiler (default is
1448                           --with-built-clang)
1449   --with-built-clang      Use the compiled Clang as the LLVM compiler
1450                           (default=check)
1451   --with-optimize-option  Select the compiler options to use for optimized
1452                           builds
1453   --with-extra-options    Specify additional options to compile LLVM with
1454   --with-ocaml-libdir     Specify install location for ocaml bindings (default
1455                           is stdlib)
1456   --with-clang-resource-dir
1457                           Relative directory from the Clang binary for
1458                           resource files
1459   --with-c-include-dirs   Colon separated list of directories clang will
1460                           search for headers
1461   --with-cxx-include-root Directory with the libstdc++ headers.
1462   --with-cxx-include-arch Architecture of the libstdc++ headers.
1463   --with-cxx-include-32bit-dir
1464                           32 bit multilib dir.
1465   --with-cxx-include-64bit-dir
1466                           64 bit multilib directory.
1467   --with-binutils-include Specify path to binutils/include/ containing
1468                           plugin-api.h file for gold plugin.
1469   --with-tclinclude       directory where tcl headers are
1470   --with-llvmcc=<name>    Choose the LLVM capable compiler to use (llvm-gcc,
1471                           clang, or none; default=check)
1472   --with-udis86=<path>    Use udis86 external x86 disassembler library
1473   --with-oprofile=<prefix>
1474                           Tell OProfile >= 0.9.4 how to symbolize JIT output
1475
1476 Some influential environment variables:
1477   CC          C compiler command
1478   CFLAGS      C compiler flags
1479   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1480               nonstandard directory <lib dir>
1481   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1482               you have headers in a nonstandard directory <include dir>
1483   CPP         C preprocessor
1484   CXX         C++ compiler command
1485   CXXFLAGS    C++ compiler flags
1486
1487 Use these variables to override the choices made by `configure' or to help
1488 it to find libraries and programs with nonstandard names/locations.
1489
1490 Report bugs to <llvmbugs@cs.uiuc.edu>.
1491 _ACEOF
1492 ac_status=$?
1493 fi
1494
1495 if test "$ac_init_help" = "recursive"; then
1496   # If there are subdirs, report their specific --help.
1497   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1498     test -d "$ac_dir" || continue
1499     ac_builddir=.
1500
1501 case "$ac_dir" in
1502 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1503 *)
1504   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1505   # A ".." for each directory in $ac_dir_suffix.
1506   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1507   case $ac_top_builddir_sub in
1508   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1509   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1510   esac ;;
1511 esac
1512 ac_abs_top_builddir=$ac_pwd
1513 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1514 # for backward compatibility:
1515 ac_top_builddir=$ac_top_build_prefix
1516
1517 case $srcdir in
1518   .)  # We are building in place.
1519     ac_srcdir=.
1520     ac_top_srcdir=$ac_top_builddir_sub
1521     ac_abs_top_srcdir=$ac_pwd ;;
1522   [\\/]* | ?:[\\/]* )  # Absolute name.
1523     ac_srcdir=$srcdir$ac_dir_suffix;
1524     ac_top_srcdir=$srcdir
1525     ac_abs_top_srcdir=$srcdir ;;
1526   *) # Relative name.
1527     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1528     ac_top_srcdir=$ac_top_build_prefix$srcdir
1529     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1530 esac
1531 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1532
1533     cd "$ac_dir" || { ac_status=$?; continue; }
1534     # Check for guested configure.
1535     if test -f "$ac_srcdir/configure.gnu"; then
1536       echo &&
1537       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1538     elif test -f "$ac_srcdir/configure"; then
1539       echo &&
1540       $SHELL "$ac_srcdir/configure" --help=recursive
1541     else
1542       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1543     fi || ac_status=$?
1544     cd "$ac_pwd" || { ac_status=$?; break; }
1545   done
1546 fi
1547
1548 test -n "$ac_init_help" && exit $ac_status
1549 if $ac_init_version; then
1550   cat <<\_ACEOF
1551 llvm configure 2.9svn
1552 generated by GNU Autoconf 2.60
1553
1554 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1555 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1556 This configure script is free software; the Free Software Foundation
1557 gives unlimited permission to copy, distribute and modify it.
1558
1559 Copyright (c) 2003-2010 University of Illinois at Urbana-Champaign.
1560 _ACEOF
1561   exit
1562 fi
1563 cat >config.log <<_ACEOF
1564 This file contains any messages produced by compilers while
1565 running configure, to aid debugging if configure makes a mistake.
1566
1567 It was created by llvm $as_me 2.9svn, which was
1568 generated by GNU Autoconf 2.60.  Invocation command line was
1569
1570   $ $0 $@
1571
1572 _ACEOF
1573 exec 5>>config.log
1574 {
1575 cat <<_ASUNAME
1576 ## --------- ##
1577 ## Platform. ##
1578 ## --------- ##
1579
1580 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1581 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1582 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1583 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1584 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1585
1586 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1587 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1588
1589 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1590 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1591 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1592 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1593 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1594 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1595 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1596
1597 _ASUNAME
1598
1599 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1600 for as_dir in $PATH
1601 do
1602   IFS=$as_save_IFS
1603   test -z "$as_dir" && as_dir=.
1604   echo "PATH: $as_dir"
1605 done
1606 IFS=$as_save_IFS
1607
1608 } >&5
1609
1610 cat >&5 <<_ACEOF
1611
1612
1613 ## ----------- ##
1614 ## Core tests. ##
1615 ## ----------- ##
1616
1617 _ACEOF
1618
1619
1620 # Keep a trace of the command line.
1621 # Strip out --no-create and --no-recursion so they do not pile up.
1622 # Strip out --silent because we don't want to record it for future runs.
1623 # Also quote any args containing shell meta-characters.
1624 # Make two passes to allow for proper duplicate-argument suppression.
1625 ac_configure_args=
1626 ac_configure_args0=
1627 ac_configure_args1=
1628 ac_must_keep_next=false
1629 for ac_pass in 1 2
1630 do
1631   for ac_arg
1632   do
1633     case $ac_arg in
1634     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1635     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1636     | -silent | --silent | --silen | --sile | --sil)
1637       continue ;;
1638     *\'*)
1639       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1640     esac
1641     case $ac_pass in
1642     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1643     2)
1644       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1645       if test $ac_must_keep_next = true; then
1646         ac_must_keep_next=false # Got value, back to normal.
1647       else
1648         case $ac_arg in
1649           *=* | --config-cache | -C | -disable-* | --disable-* \
1650           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1651           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1652           | -with-* | --with-* | -without-* | --without-* | --x)
1653             case "$ac_configure_args0 " in
1654               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1655             esac
1656             ;;
1657           -* ) ac_must_keep_next=true ;;
1658         esac
1659       fi
1660       ac_configure_args="$ac_configure_args '$ac_arg'"
1661       ;;
1662     esac
1663   done
1664 done
1665 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1666 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1667
1668 # When interrupted or exit'd, cleanup temporary files, and complete
1669 # config.log.  We remove comments because anyway the quotes in there
1670 # would cause problems or look ugly.
1671 # WARNING: Use '\'' to represent an apostrophe within the trap.
1672 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1673 trap 'exit_status=$?
1674   # Save into config.log some information that might help in debugging.
1675   {
1676     echo
1677
1678     cat <<\_ASBOX
1679 ## ---------------- ##
1680 ## Cache variables. ##
1681 ## ---------------- ##
1682 _ASBOX
1683     echo
1684     # The following way of writing the cache mishandles newlines in values,
1685 (
1686   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1687     eval ac_val=\$$ac_var
1688     case $ac_val in #(
1689     *${as_nl}*)
1690       case $ac_var in #(
1691       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1692 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1693       esac
1694       case $ac_var in #(
1695       _ | IFS | as_nl) ;; #(
1696       *) $as_unset $ac_var ;;
1697       esac ;;
1698     esac
1699   done
1700   (set) 2>&1 |
1701     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1702     *${as_nl}ac_space=\ *)
1703       sed -n \
1704         "s/'\''/'\''\\\\'\'''\''/g;
1705           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1706       ;; #(
1707     *)
1708       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1709       ;;
1710     esac |
1711     sort
1712 )
1713     echo
1714
1715     cat <<\_ASBOX
1716 ## ----------------- ##
1717 ## Output variables. ##
1718 ## ----------------- ##
1719 _ASBOX
1720     echo
1721     for ac_var in $ac_subst_vars
1722     do
1723       eval ac_val=\$$ac_var
1724       case $ac_val in
1725       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1726       esac
1727       echo "$ac_var='\''$ac_val'\''"
1728     done | sort
1729     echo
1730
1731     if test -n "$ac_subst_files"; then
1732       cat <<\_ASBOX
1733 ## ------------------- ##
1734 ## File substitutions. ##
1735 ## ------------------- ##
1736 _ASBOX
1737       echo
1738       for ac_var in $ac_subst_files
1739       do
1740         eval ac_val=\$$ac_var
1741         case $ac_val in
1742         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1743         esac
1744         echo "$ac_var='\''$ac_val'\''"
1745       done | sort
1746       echo
1747     fi
1748
1749     if test -s confdefs.h; then
1750       cat <<\_ASBOX
1751 ## ----------- ##
1752 ## confdefs.h. ##
1753 ## ----------- ##
1754 _ASBOX
1755       echo
1756       cat confdefs.h
1757       echo
1758     fi
1759     test "$ac_signal" != 0 &&
1760       echo "$as_me: caught signal $ac_signal"
1761     echo "$as_me: exit $exit_status"
1762   } >&5
1763   rm -f core *.core core.conftest.* &&
1764     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1765     exit $exit_status
1766 ' 0
1767 for ac_signal in 1 2 13 15; do
1768   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1769 done
1770 ac_signal=0
1771
1772 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1773 rm -f -r conftest* confdefs.h
1774
1775 # Predefined preprocessor variables.
1776
1777 cat >>confdefs.h <<_ACEOF
1778 #define PACKAGE_NAME "$PACKAGE_NAME"
1779 _ACEOF
1780
1781
1782 cat >>confdefs.h <<_ACEOF
1783 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1784 _ACEOF
1785
1786
1787 cat >>confdefs.h <<_ACEOF
1788 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1789 _ACEOF
1790
1791
1792 cat >>confdefs.h <<_ACEOF
1793 #define PACKAGE_STRING "$PACKAGE_STRING"
1794 _ACEOF
1795
1796
1797 cat >>confdefs.h <<_ACEOF
1798 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1799 _ACEOF
1800
1801
1802 # Let the site file select an alternate cache file if it wants to.
1803 # Prefer explicitly selected file to automatically selected ones.
1804 if test -n "$CONFIG_SITE"; then
1805   set x "$CONFIG_SITE"
1806 elif test "x$prefix" != xNONE; then
1807   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1808 else
1809   set x "$ac_default_prefix/share/config.site" \
1810         "$ac_default_prefix/etc/config.site"
1811 fi
1812 shift
1813 for ac_site_file
1814 do
1815   if test -r "$ac_site_file"; then
1816     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1817 echo "$as_me: loading site script $ac_site_file" >&6;}
1818     sed 's/^/| /' "$ac_site_file" >&5
1819     . "$ac_site_file"
1820   fi
1821 done
1822
1823 if test -r "$cache_file"; then
1824   # Some versions of bash will fail to source /dev/null (special
1825   # files actually), so we avoid doing that.
1826   if test -f "$cache_file"; then
1827     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1828 echo "$as_me: loading cache $cache_file" >&6;}
1829     case $cache_file in
1830       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1831       *)                      . "./$cache_file";;
1832     esac
1833   fi
1834 else
1835   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1836 echo "$as_me: creating cache $cache_file" >&6;}
1837   >$cache_file
1838 fi
1839
1840 # Check that the precious variables saved in the cache have kept the same
1841 # value.
1842 ac_cache_corrupted=false
1843 for ac_var in $ac_precious_vars; do
1844   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1845   eval ac_new_set=\$ac_env_${ac_var}_set
1846   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1847   eval ac_new_val=\$ac_env_${ac_var}_value
1848   case $ac_old_set,$ac_new_set in
1849     set,)
1850       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1851 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1852       ac_cache_corrupted=: ;;
1853     ,set)
1854       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1855 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1856       ac_cache_corrupted=: ;;
1857     ,);;
1858     *)
1859       if test "x$ac_old_val" != "x$ac_new_val"; then
1860         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1861 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1862         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1863 echo "$as_me:   former value:  $ac_old_val" >&2;}
1864         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1865 echo "$as_me:   current value: $ac_new_val" >&2;}
1866         ac_cache_corrupted=:
1867       fi;;
1868   esac
1869   # Pass precious variables to config.status.
1870   if test "$ac_new_set" = set; then
1871     case $ac_new_val in
1872     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1873     *) ac_arg=$ac_var=$ac_new_val ;;
1874     esac
1875     case " $ac_configure_args " in
1876       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1877       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1878     esac
1879   fi
1880 done
1881 if $ac_cache_corrupted; then
1882   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1883 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1884   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1885 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1886    { (exit 1); exit 1; }; }
1887 fi
1888
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913 ac_ext=c
1914 ac_cpp='$CPP $CPPFLAGS'
1915 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1916 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1917 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1918
1919
1920
1921 LLVM_COPYRIGHT="Copyright (c) 2003-2010 University of Illinois at Urbana-Champaign."
1922
1923
1924
1925
1926
1927
1928
1929 ac_aux_dir=
1930 for ac_dir in autoconf "$srcdir"/autoconf; do
1931   if test -f "$ac_dir/install-sh"; then
1932     ac_aux_dir=$ac_dir
1933     ac_install_sh="$ac_aux_dir/install-sh -c"
1934     break
1935   elif test -f "$ac_dir/install.sh"; then
1936     ac_aux_dir=$ac_dir
1937     ac_install_sh="$ac_aux_dir/install.sh -c"
1938     break
1939   elif test -f "$ac_dir/shtool"; then
1940     ac_aux_dir=$ac_dir
1941     ac_install_sh="$ac_aux_dir/shtool install -c"
1942     break
1943   fi
1944 done
1945 if test -z "$ac_aux_dir"; then
1946   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
1947 echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
1948    { (exit 1); exit 1; }; }
1949 fi
1950
1951 # These three variables are undocumented and unsupported,
1952 # and are intended to be withdrawn in a future Autoconf release.
1953 # They can cause serious problems if a builder's source tree is in a directory
1954 # whose full name contains unusual characters.
1955 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
1956 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
1957 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
1958
1959
1960
1961 if test ${srcdir} != "." ; then
1962   if test -f ${srcdir}/include/llvm/Config/config.h ; then
1963     { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
1964 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1965    { (exit 1); exit 1; }; }
1966   fi
1967 fi
1968
1969
1970
1971 if test -d ${srcdir}/projects/llvm-gcc ; then
1972   subdirs="$subdirs projects/llvm-gcc"
1973
1974 fi
1975
1976 if test -d ${srcdir}/projects/test-suite ; then
1977   subdirs="$subdirs projects/test-suite"
1978
1979 fi
1980
1981 if test -d ${srcdir}/projects/llvm-test ; then
1982   subdirs="$subdirs projects/llvm-test"
1983
1984 fi
1985
1986 if test -d ${srcdir}/projects/poolalloc ; then
1987   subdirs="$subdirs projects/poolalloc"
1988
1989 fi
1990
1991 if test -d ${srcdir}/projects/llvm-poolalloc ; then
1992   subdirs="$subdirs projects/llvm-poolalloc"
1993
1994 fi
1995
1996 for i in `ls ${srcdir}/projects`
1997 do
1998   if test -d ${srcdir}/projects/${i} ; then
1999     case ${i} in
2000       sample)       subdirs="$subdirs projects/sample"
2001     ;;
2002       privbracket)  subdirs="$subdirs projects/privbracket"
2003  ;;
2004       llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
2005  ;;
2006       llvm-reopt)   subdirs="$subdirs projects/llvm-reopt"
2007 ;;
2008       llvm-java)    subdirs="$subdirs projects/llvm-java"
2009  ;;
2010       llvm-tv)      subdirs="$subdirs projects/llvm-tv"
2011    ;;
2012       safecode)     subdirs="$subdirs projects/safecode"
2013  ;;
2014       llvm-kernel)  subdirs="$subdirs projects/llvm-kernel"
2015  ;;
2016       llvm-gcc)       ;;
2017       test-suite)     ;;
2018       llvm-test)      ;;
2019       poolalloc)      ;;
2020       llvm-poolalloc) ;;
2021       *)
2022         { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
2023 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
2024         ;;
2025     esac
2026   fi
2027 done
2028
2029 # Check whether --enable-polly was given.
2030 if test "${enable_polly+set}" = set; then
2031   enableval=$enable_polly;
2032 else
2033   enableval=default
2034 fi
2035
2036 case "$enableval" in
2037   yes) ENABLE_POLLY=1
2038  ;;
2039   no)  ENABLE_POLLY=0
2040  ;;
2041   default) ENABLE_POLLY=1
2042  ;;
2043   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&5
2044 echo "$as_me: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&2;}
2045    { (exit 1); exit 1; }; } ;;
2046 esac
2047
2048
2049 if (test -d ${srcdir}/tools/polly) && (test $ENABLE_POLLY -eq 1) ; then
2050   LLVM_HAS_POLLY=1
2051
2052   subdirs="$subdirs tools/polly"
2053
2054 fi
2055
2056
2057 # Make sure we can run config.sub.
2058 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2059   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2060 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2061    { (exit 1); exit 1; }; }
2062
2063 { echo "$as_me:$LINENO: checking build system type" >&5
2064 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2065 if test "${ac_cv_build+set}" = set; then
2066   echo $ECHO_N "(cached) $ECHO_C" >&6
2067 else
2068   ac_build_alias=$build_alias
2069 test "x$ac_build_alias" = x &&
2070   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2071 test "x$ac_build_alias" = x &&
2072   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2073 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2074    { (exit 1); exit 1; }; }
2075 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2076   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2077 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2078    { (exit 1); exit 1; }; }
2079
2080 fi
2081 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2082 echo "${ECHO_T}$ac_cv_build" >&6; }
2083 case $ac_cv_build in
2084 *-*-*) ;;
2085 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2086 echo "$as_me: error: invalid value of canonical build" >&2;}
2087    { (exit 1); exit 1; }; };;
2088 esac
2089 build=$ac_cv_build
2090 ac_save_IFS=$IFS; IFS='-'
2091 set x $ac_cv_build
2092 shift
2093 build_cpu=$1
2094 build_vendor=$2
2095 shift; shift
2096 # Remember, the first character of IFS is used to create $*,
2097 # except with old shells:
2098 build_os=$*
2099 IFS=$ac_save_IFS
2100 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2101
2102
2103 { echo "$as_me:$LINENO: checking host system type" >&5
2104 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2105 if test "${ac_cv_host+set}" = set; then
2106   echo $ECHO_N "(cached) $ECHO_C" >&6
2107 else
2108   if test "x$host_alias" = x; then
2109   ac_cv_host=$ac_cv_build
2110 else
2111   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2112     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2113 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2114    { (exit 1); exit 1; }; }
2115 fi
2116
2117 fi
2118 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2119 echo "${ECHO_T}$ac_cv_host" >&6; }
2120 case $ac_cv_host in
2121 *-*-*) ;;
2122 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2123 echo "$as_me: error: invalid value of canonical host" >&2;}
2124    { (exit 1); exit 1; }; };;
2125 esac
2126 host=$ac_cv_host
2127 ac_save_IFS=$IFS; IFS='-'
2128 set x $ac_cv_host
2129 shift
2130 host_cpu=$1
2131 host_vendor=$2
2132 shift; shift
2133 # Remember, the first character of IFS is used to create $*,
2134 # except with old shells:
2135 host_os=$*
2136 IFS=$ac_save_IFS
2137 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2138
2139
2140 { echo "$as_me:$LINENO: checking target system type" >&5
2141 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2142 if test "${ac_cv_target+set}" = set; then
2143   echo $ECHO_N "(cached) $ECHO_C" >&6
2144 else
2145   if test "x$target_alias" = x; then
2146   ac_cv_target=$ac_cv_host
2147 else
2148   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2149     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2150 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2151    { (exit 1); exit 1; }; }
2152 fi
2153
2154 fi
2155 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2156 echo "${ECHO_T}$ac_cv_target" >&6; }
2157 case $ac_cv_target in
2158 *-*-*) ;;
2159 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2160 echo "$as_me: error: invalid value of canonical target" >&2;}
2161    { (exit 1); exit 1; }; };;
2162 esac
2163 target=$ac_cv_target
2164 ac_save_IFS=$IFS; IFS='-'
2165 set x $ac_cv_target
2166 shift
2167 target_cpu=$1
2168 target_vendor=$2
2169 shift; shift
2170 # Remember, the first character of IFS is used to create $*,
2171 # except with old shells:
2172 target_os=$*
2173 IFS=$ac_save_IFS
2174 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2175
2176
2177 # The aliases save the names the user supplied, while $host etc.
2178 # will get canonicalized.
2179 test -n "$target_alias" &&
2180   test "$program_prefix$program_suffix$program_transform_name" = \
2181     NONENONEs,x,x, &&
2182   program_prefix=${target_alias}-
2183
2184 { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
2185 echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
2186 if test "${llvm_cv_os_type+set}" = set; then
2187   echo $ECHO_N "(cached) $ECHO_C" >&6
2188 else
2189   case $host in
2190   *-*-aix*)
2191     llvm_cv_link_all_option="-Wl,--whole-archive"
2192     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2193     llvm_cv_os_type="AIX"
2194     llvm_cv_platform_type="Unix" ;;
2195   *-*-irix*)
2196     llvm_cv_link_all_option="-Wl,--whole-archive"
2197     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2198     llvm_cv_os_type="IRIX"
2199     llvm_cv_platform_type="Unix" ;;
2200   *-*-cygwin*)
2201     llvm_cv_link_all_option="-Wl,--whole-archive"
2202     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2203     llvm_cv_os_type="Cygwin"
2204     llvm_cv_platform_type="Unix" ;;
2205   *-*-darwin*)
2206     llvm_cv_link_all_option="-Wl,-all_load"
2207     llvm_cv_no_link_all_option="-Wl,-noall_load"
2208     llvm_cv_os_type="Darwin"
2209     llvm_cv_platform_type="Unix" ;;
2210   *-*-minix*)
2211     llvm_cv_link_all_option="-Wl,-all_load"
2212     llvm_cv_no_link_all_option="-Wl,-noall_load"
2213     llvm_cv_os_type="Minix"
2214     llvm_cv_platform_type="Unix" ;;
2215   *-*-freebsd*)
2216     llvm_cv_link_all_option="-Wl,--whole-archive"
2217     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2218     llvm_cv_os_type="FreeBSD"
2219     llvm_cv_platform_type="Unix" ;;
2220   *-*-openbsd*)
2221     llvm_cv_link_all_option="-Wl,--whole-archive"
2222     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2223     llvm_cv_os_type="OpenBSD"
2224     llvm_cv_platform_type="Unix" ;;
2225   *-*-netbsd*)
2226     llvm_cv_link_all_option="-Wl,--whole-archive"
2227     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2228     llvm_cv_os_type="NetBSD"
2229     llvm_cv_platform_type="Unix" ;;
2230   *-*-dragonfly*)
2231     llvm_cv_link_all_option="-Wl,--whole-archive"
2232     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2233     llvm_cv_os_type="DragonFly"
2234     llvm_cv_platform_type="Unix" ;;
2235   *-*-hpux*)
2236     llvm_cv_link_all_option="-Wl,--whole-archive"
2237     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2238     llvm_cv_os_type="HP-UX"
2239     llvm_cv_platform_type="Unix" ;;
2240   *-*-interix*)
2241     llvm_cv_link_all_option="-Wl,--whole-archive"
2242     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2243     llvm_cv_os_type="Interix"
2244     llvm_cv_platform_type="Unix" ;;
2245   *-*-linux*)
2246     llvm_cv_link_all_option="-Wl,--whole-archive"
2247     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2248     llvm_cv_os_type="Linux"
2249     llvm_cv_platform_type="Unix" ;;
2250   *-*-solaris*)
2251     llvm_cv_link_all_option="-Wl,-z,allextract"
2252     llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
2253     llvm_cv_os_type="SunOS"
2254     llvm_cv_platform_type="Unix" ;;
2255   *-*-auroraux*)
2256     llvm_cv_link_all_option="-Wl,-z,allextract"
2257     llvm_cv_link_all_option="-Wl,-z,defaultextract"
2258     llvm_cv_os_type="AuroraUX"
2259     llvm_cv_platform_type="Unix" ;;
2260   *-*-win32*)
2261     llvm_cv_link_all_option="-Wl,--whole-archive"
2262     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2263     llvm_cv_os_type="Win32"
2264     llvm_cv_platform_type="Win32" ;;
2265   *-*-mingw*)
2266     llvm_cv_link_all_option="-Wl,--whole-archive"
2267     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2268     llvm_cv_os_type="MingW"
2269     llvm_cv_platform_type="Win32" ;;
2270   *-*-haiku*)
2271     llvm_cv_link_all_option="-Wl,--whole-archive"
2272     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2273     llvm_cv_os_type="Haiku"
2274     llvm_cv_platform_type="Unix" ;;
2275   *-unknown-eabi*)
2276     llvm_cv_link_all_option="-Wl,--whole-archive"
2277     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2278     llvm_cv_os_type="Freestanding"
2279     llvm_cv_platform_type="Unix" ;;
2280   *-unknown-elf*)
2281     llvm_cv_link_all_option="-Wl,--whole-archive"
2282     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2283     llvm_cv_os_type="Freestanding"
2284     llvm_cv_platform_type="Unix" ;;
2285   *)
2286     llvm_cv_link_all_option=""
2287     llvm_cv_no_link_all_option=""
2288     llvm_cv_os_type="Unknown"
2289     llvm_cv_platform_type="Unknown" ;;
2290 esac
2291 fi
2292 { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
2293 echo "${ECHO_T}$llvm_cv_os_type" >&6; }
2294
2295 { echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
2296 echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
2297 if test "${llvm_cv_target_os_type+set}" = set; then
2298   echo $ECHO_N "(cached) $ECHO_C" >&6
2299 else
2300   case $target in
2301   *-*-aix*)
2302     llvm_cv_target_os_type="AIX" ;;
2303   *-*-irix*)
2304     llvm_cv_target_os_type="IRIX" ;;
2305   *-*-cygwin*)
2306     llvm_cv_target_os_type="Cygwin" ;;
2307   *-*-darwin*)
2308     llvm_cv_target_os_type="Darwin" ;;
2309   *-*-minix*)
2310     llvm_cv_target_os_type="Minix" ;;
2311   *-*-freebsd*)
2312     llvm_cv_target_os_type="FreeBSD" ;;
2313   *-*-openbsd*)
2314     llvm_cv_target_os_type="OpenBSD" ;;
2315   *-*-netbsd*)
2316     llvm_cv_target_os_type="NetBSD" ;;
2317   *-*-dragonfly*)
2318     llvm_cv_target_os_type="DragonFly" ;;
2319   *-*-hpux*)
2320     llvm_cv_target_os_type="HP-UX" ;;
2321   *-*-interix*)
2322     llvm_cv_target_os_type="Interix" ;;
2323   *-*-linux*)
2324     llvm_cv_target_os_type="Linux" ;;
2325   *-*-solaris*)
2326     llvm_cv_target_os_type="SunOS" ;;
2327   *-*-auroraux*)
2328     llvm_cv_target_os_type="AuroraUX" ;;
2329   *-*-win32*)
2330     llvm_cv_target_os_type="Win32" ;;
2331   *-*-mingw*)
2332     llvm_cv_target_os_type="MingW" ;;
2333   *-*-haiku*)
2334     llvm_cv_target_os_type="Haiku" ;;
2335   *-unknown-eabi*)
2336     llvm_cv_target_os_type="Freestanding" ;;
2337   *)
2338     llvm_cv_target_os_type="Unknown" ;;
2339 esac
2340 fi
2341 { echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
2342 echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
2343
2344 if test "$llvm_cv_os_type" = "Unknown" ; then
2345   { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
2346 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
2347    { (exit 1); exit 1; }; }
2348 fi
2349
2350 OS=$llvm_cv_os_type
2351
2352 HOST_OS=$llvm_cv_os_type
2353
2354 TARGET_OS=$llvm_cv_target_os_type
2355
2356
2357 LINKALL=$llvm_cv_link_all_option
2358
2359 NOLINKALL=$llvm_cv_no_link_all_option
2360
2361
2362 case $llvm_cv_platform_type in
2363   Unix)
2364
2365 cat >>confdefs.h <<\_ACEOF
2366 #define LLVM_ON_UNIX 1
2367 _ACEOF
2368
2369     LLVM_ON_UNIX=1
2370
2371     LLVM_ON_WIN32=0
2372
2373     ;;
2374   Win32)
2375
2376 cat >>confdefs.h <<\_ACEOF
2377 #define LLVM_ON_WIN32 1
2378 _ACEOF
2379
2380     LLVM_ON_UNIX=0
2381
2382     LLVM_ON_WIN32=1
2383
2384     ;;
2385 esac
2386
2387 { echo "$as_me:$LINENO: checking target architecture" >&5
2388 echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
2389 if test "${llvm_cv_target_arch+set}" = set; then
2390   echo $ECHO_N "(cached) $ECHO_C" >&6
2391 else
2392   case $target in
2393   i?86-*)                 llvm_cv_target_arch="x86" ;;
2394   amd64-* | x86_64-*)     llvm_cv_target_arch="x86_64" ;;
2395   sparc*-*)               llvm_cv_target_arch="Sparc" ;;
2396   powerpc*-*)             llvm_cv_target_arch="PowerPC" ;;
2397   alpha*-*)               llvm_cv_target_arch="Alpha" ;;
2398   arm*-*)                 llvm_cv_target_arch="ARM" ;;
2399   mips-*)                 llvm_cv_target_arch="Mips" ;;
2400   xcore-*)                llvm_cv_target_arch="XCore" ;;
2401   msp430-*)               llvm_cv_target_arch="MSP430" ;;
2402   s390x-*)                llvm_cv_target_arch="SystemZ" ;;
2403   bfin-*)                 llvm_cv_target_arch="Blackfin" ;;
2404   mblaze-*)               llvm_cv_target_arch="MBlaze" ;;
2405   ptx-*)                  llvm_cv_target_arch="PTX" ;;
2406   *)                      llvm_cv_target_arch="Unknown" ;;
2407 esac
2408 fi
2409 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
2410 echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
2411
2412 if test "$llvm_cv_target_arch" = "Unknown" ; then
2413   { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
2414 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
2415 fi
2416
2417 # Determine the LLVM native architecture for the target
2418 case "$llvm_cv_target_arch" in
2419     x86)     LLVM_NATIVE_ARCH="X86" ;;
2420     x86_64)  LLVM_NATIVE_ARCH="X86" ;;
2421     *)       LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
2422 esac
2423
2424 ARCH=$llvm_cv_target_arch
2425
2426
2427 ac_ext=c
2428 ac_cpp='$CPP $CPPFLAGS'
2429 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2430 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2431 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2432 if test -n "$ac_tool_prefix"; then
2433   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2434 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2435 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2436 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2437 if test "${ac_cv_prog_CC+set}" = set; then
2438   echo $ECHO_N "(cached) $ECHO_C" >&6
2439 else
2440   if test -n "$CC"; then
2441   ac_cv_prog_CC="$CC" # Let the user override the test.
2442 else
2443 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2444 for as_dir in $PATH
2445 do
2446   IFS=$as_save_IFS
2447   test -z "$as_dir" && as_dir=.
2448   for ac_exec_ext in '' $ac_executable_extensions; do
2449   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2450     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2451     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2452     break 2
2453   fi
2454 done
2455 done
2456 IFS=$as_save_IFS
2457
2458 fi
2459 fi
2460 CC=$ac_cv_prog_CC
2461 if test -n "$CC"; then
2462   { echo "$as_me:$LINENO: result: $CC" >&5
2463 echo "${ECHO_T}$CC" >&6; }
2464 else
2465   { echo "$as_me:$LINENO: result: no" >&5
2466 echo "${ECHO_T}no" >&6; }
2467 fi
2468
2469
2470 fi
2471 if test -z "$ac_cv_prog_CC"; then
2472   ac_ct_CC=$CC
2473   # Extract the first word of "gcc", so it can be a program name with args.
2474 set dummy gcc; ac_word=$2
2475 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2476 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2477 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2478   echo $ECHO_N "(cached) $ECHO_C" >&6
2479 else
2480   if test -n "$ac_ct_CC"; then
2481   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2482 else
2483 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2484 for as_dir in $PATH
2485 do
2486   IFS=$as_save_IFS
2487   test -z "$as_dir" && as_dir=.
2488   for ac_exec_ext in '' $ac_executable_extensions; do
2489   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2490     ac_cv_prog_ac_ct_CC="gcc"
2491     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2492     break 2
2493   fi
2494 done
2495 done
2496 IFS=$as_save_IFS
2497
2498 fi
2499 fi
2500 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2501 if test -n "$ac_ct_CC"; then
2502   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2503 echo "${ECHO_T}$ac_ct_CC" >&6; }
2504 else
2505   { echo "$as_me:$LINENO: result: no" >&5
2506 echo "${ECHO_T}no" >&6; }
2507 fi
2508
2509   if test "x$ac_ct_CC" = x; then
2510     CC=""
2511   else
2512     case $cross_compiling:$ac_tool_warned in
2513 yes:)
2514 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2515 whose name does not start with the host triplet.  If you think this
2516 configuration is useful to you, please write to autoconf@gnu.org." >&5
2517 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2518 whose name does not start with the host triplet.  If you think this
2519 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2520 ac_tool_warned=yes ;;
2521 esac
2522     CC=$ac_ct_CC
2523   fi
2524 else
2525   CC="$ac_cv_prog_CC"
2526 fi
2527
2528 if test -z "$CC"; then
2529           if test -n "$ac_tool_prefix"; then
2530     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2531 set dummy ${ac_tool_prefix}cc; ac_word=$2
2532 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2533 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2534 if test "${ac_cv_prog_CC+set}" = set; then
2535   echo $ECHO_N "(cached) $ECHO_C" >&6
2536 else
2537   if test -n "$CC"; then
2538   ac_cv_prog_CC="$CC" # Let the user override the test.
2539 else
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     ac_cv_prog_CC="${ac_tool_prefix}cc"
2548     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2549     break 2
2550   fi
2551 done
2552 done
2553 IFS=$as_save_IFS
2554
2555 fi
2556 fi
2557 CC=$ac_cv_prog_CC
2558 if test -n "$CC"; then
2559   { echo "$as_me:$LINENO: result: $CC" >&5
2560 echo "${ECHO_T}$CC" >&6; }
2561 else
2562   { echo "$as_me:$LINENO: result: no" >&5
2563 echo "${ECHO_T}no" >&6; }
2564 fi
2565
2566
2567   fi
2568 fi
2569 if test -z "$CC"; then
2570   # Extract the first word of "cc", so it can be a program name with args.
2571 set dummy cc; ac_word=$2
2572 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2573 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2574 if test "${ac_cv_prog_CC+set}" = set; then
2575   echo $ECHO_N "(cached) $ECHO_C" >&6
2576 else
2577   if test -n "$CC"; then
2578   ac_cv_prog_CC="$CC" # Let the user override the test.
2579 else
2580   ac_prog_rejected=no
2581 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2582 for as_dir in $PATH
2583 do
2584   IFS=$as_save_IFS
2585   test -z "$as_dir" && as_dir=.
2586   for ac_exec_ext in '' $ac_executable_extensions; do
2587   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2588     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2589        ac_prog_rejected=yes
2590        continue
2591      fi
2592     ac_cv_prog_CC="cc"
2593     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2594     break 2
2595   fi
2596 done
2597 done
2598 IFS=$as_save_IFS
2599
2600 if test $ac_prog_rejected = yes; then
2601   # We found a bogon in the path, so make sure we never use it.
2602   set dummy $ac_cv_prog_CC
2603   shift
2604   if test $# != 0; then
2605     # We chose a different compiler from the bogus one.
2606     # However, it has the same basename, so the bogon will be chosen
2607     # first if we set CC to just the basename; use the full file name.
2608     shift
2609     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2610   fi
2611 fi
2612 fi
2613 fi
2614 CC=$ac_cv_prog_CC
2615 if test -n "$CC"; then
2616   { echo "$as_me:$LINENO: result: $CC" >&5
2617 echo "${ECHO_T}$CC" >&6; }
2618 else
2619   { echo "$as_me:$LINENO: result: no" >&5
2620 echo "${ECHO_T}no" >&6; }
2621 fi
2622
2623
2624 fi
2625 if test -z "$CC"; then
2626   if test -n "$ac_tool_prefix"; then
2627   for ac_prog in cl.exe
2628   do
2629     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2630 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2631 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2632 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2633 if test "${ac_cv_prog_CC+set}" = set; then
2634   echo $ECHO_N "(cached) $ECHO_C" >&6
2635 else
2636   if test -n "$CC"; then
2637   ac_cv_prog_CC="$CC" # Let the user override the test.
2638 else
2639 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2640 for as_dir in $PATH
2641 do
2642   IFS=$as_save_IFS
2643   test -z "$as_dir" && as_dir=.
2644   for ac_exec_ext in '' $ac_executable_extensions; do
2645   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2646     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2647     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2648     break 2
2649   fi
2650 done
2651 done
2652 IFS=$as_save_IFS
2653
2654 fi
2655 fi
2656 CC=$ac_cv_prog_CC
2657 if test -n "$CC"; then
2658   { echo "$as_me:$LINENO: result: $CC" >&5
2659 echo "${ECHO_T}$CC" >&6; }
2660 else
2661   { echo "$as_me:$LINENO: result: no" >&5
2662 echo "${ECHO_T}no" >&6; }
2663 fi
2664
2665
2666     test -n "$CC" && break
2667   done
2668 fi
2669 if test -z "$CC"; then
2670   ac_ct_CC=$CC
2671   for ac_prog in cl.exe
2672 do
2673   # Extract the first word of "$ac_prog", so it can be a program name with args.
2674 set dummy $ac_prog; ac_word=$2
2675 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2676 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2677 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2678   echo $ECHO_N "(cached) $ECHO_C" >&6
2679 else
2680   if test -n "$ac_ct_CC"; then
2681   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2682 else
2683 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2684 for as_dir in $PATH
2685 do
2686   IFS=$as_save_IFS
2687   test -z "$as_dir" && as_dir=.
2688   for ac_exec_ext in '' $ac_executable_extensions; do
2689   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2690     ac_cv_prog_ac_ct_CC="$ac_prog"
2691     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2692     break 2
2693   fi
2694 done
2695 done
2696 IFS=$as_save_IFS
2697
2698 fi
2699 fi
2700 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2701 if test -n "$ac_ct_CC"; then
2702   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2703 echo "${ECHO_T}$ac_ct_CC" >&6; }
2704 else
2705   { echo "$as_me:$LINENO: result: no" >&5
2706 echo "${ECHO_T}no" >&6; }
2707 fi
2708
2709
2710   test -n "$ac_ct_CC" && break
2711 done
2712
2713   if test "x$ac_ct_CC" = x; then
2714     CC=""
2715   else
2716     case $cross_compiling:$ac_tool_warned in
2717 yes:)
2718 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2719 whose name does not start with the host triplet.  If you think this
2720 configuration is useful to you, please write to autoconf@gnu.org." >&5
2721 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2722 whose name does not start with the host triplet.  If you think this
2723 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2724 ac_tool_warned=yes ;;
2725 esac
2726     CC=$ac_ct_CC
2727   fi
2728 fi
2729
2730 fi
2731
2732
2733 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2734 See \`config.log' for more details." >&5
2735 echo "$as_me: error: no acceptable C compiler found in \$PATH
2736 See \`config.log' for more details." >&2;}
2737    { (exit 1); exit 1; }; }
2738
2739 # Provide some information about the compiler.
2740 echo "$as_me:$LINENO: checking for C compiler version" >&5
2741 ac_compiler=`set X $ac_compile; echo $2`
2742 { (ac_try="$ac_compiler --version >&5"
2743 case "(($ac_try" in
2744   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2745   *) ac_try_echo=$ac_try;;
2746 esac
2747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2748   (eval "$ac_compiler --version >&5") 2>&5
2749   ac_status=$?
2750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2751   (exit $ac_status); }
2752 { (ac_try="$ac_compiler -v >&5"
2753 case "(($ac_try" in
2754   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2755   *) ac_try_echo=$ac_try;;
2756 esac
2757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2758   (eval "$ac_compiler -v >&5") 2>&5
2759   ac_status=$?
2760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2761   (exit $ac_status); }
2762 { (ac_try="$ac_compiler -V >&5"
2763 case "(($ac_try" in
2764   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2765   *) ac_try_echo=$ac_try;;
2766 esac
2767 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2768   (eval "$ac_compiler -V >&5") 2>&5
2769   ac_status=$?
2770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2771   (exit $ac_status); }
2772
2773 cat >conftest.$ac_ext <<_ACEOF
2774 /* confdefs.h.  */
2775 _ACEOF
2776 cat confdefs.h >>conftest.$ac_ext
2777 cat >>conftest.$ac_ext <<_ACEOF
2778 /* end confdefs.h.  */
2779
2780 int
2781 main ()
2782 {
2783
2784   ;
2785   return 0;
2786 }
2787 _ACEOF
2788 ac_clean_files_save=$ac_clean_files
2789 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2790 # Try to create an executable without -o first, disregard a.out.
2791 # It will help us diagnose broken compilers, and finding out an intuition
2792 # of exeext.
2793 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2794 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2795 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2796 #
2797 # List of possible output files, starting from the most likely.
2798 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2799 # only as a last resort.  b.out is created by i960 compilers.
2800 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2801 #
2802 # The IRIX 6 linker writes into existing files which may not be
2803 # executable, retaining their permissions.  Remove them first so a
2804 # subsequent execution test works.
2805 ac_rmfiles=
2806 for ac_file in $ac_files
2807 do
2808   case $ac_file in
2809     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2810     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2811   esac
2812 done
2813 rm -f $ac_rmfiles
2814
2815 if { (ac_try="$ac_link_default"
2816 case "(($ac_try" in
2817   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2818   *) ac_try_echo=$ac_try;;
2819 esac
2820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2821   (eval "$ac_link_default") 2>&5
2822   ac_status=$?
2823   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2824   (exit $ac_status); }; then
2825   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2826 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2827 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2828 # so that the user can short-circuit this test for compilers unknown to
2829 # Autoconf.
2830 for ac_file in $ac_files
2831 do
2832   test -f "$ac_file" || continue
2833   case $ac_file in
2834     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2835         ;;
2836     [ab].out )
2837         # We found the default executable, but exeext='' is most
2838         # certainly right.
2839         break;;
2840     *.* )
2841         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2842         then :; else
2843            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2844         fi
2845         # We set ac_cv_exeext here because the later test for it is not
2846         # safe: cross compilers may not add the suffix if given an `-o'
2847         # argument, so we may need to know it at that point already.
2848         # Even if this section looks crufty: it has the advantage of
2849         # actually working.
2850         break;;
2851     * )
2852         break;;
2853   esac
2854 done
2855 test "$ac_cv_exeext" = no && ac_cv_exeext=
2856
2857 else
2858   echo "$as_me: failed program was:" >&5
2859 sed 's/^/| /' conftest.$ac_ext >&5
2860
2861 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2862 See \`config.log' for more details." >&5
2863 echo "$as_me: error: C compiler cannot create executables
2864 See \`config.log' for more details." >&2;}
2865    { (exit 77); exit 77; }; }
2866 fi
2867
2868 ac_exeext=$ac_cv_exeext
2869 { echo "$as_me:$LINENO: result: $ac_file" >&5
2870 echo "${ECHO_T}$ac_file" >&6; }
2871
2872 # Check that the compiler produces executables we can run.  If not, either
2873 # the compiler is broken, or we cross compile.
2874 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2875 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2876 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2877 # If not cross compiling, check that we can run a simple program.
2878 if test "$cross_compiling" != yes; then
2879   if { ac_try='./$ac_file'
2880   { (case "(($ac_try" in
2881   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2882   *) ac_try_echo=$ac_try;;
2883 esac
2884 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2885   (eval "$ac_try") 2>&5
2886   ac_status=$?
2887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2888   (exit $ac_status); }; }; then
2889     cross_compiling=no
2890   else
2891     if test "$cross_compiling" = maybe; then
2892         cross_compiling=yes
2893     else
2894         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2895 If you meant to cross compile, use \`--host'.
2896 See \`config.log' for more details." >&5
2897 echo "$as_me: error: cannot run C compiled programs.
2898 If you meant to cross compile, use \`--host'.
2899 See \`config.log' for more details." >&2;}
2900    { (exit 1); exit 1; }; }
2901     fi
2902   fi
2903 fi
2904 { echo "$as_me:$LINENO: result: yes" >&5
2905 echo "${ECHO_T}yes" >&6; }
2906
2907 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2908 ac_clean_files=$ac_clean_files_save
2909 # Check that the compiler produces executables we can run.  If not, either
2910 # the compiler is broken, or we cross compile.
2911 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2912 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2913 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2914 echo "${ECHO_T}$cross_compiling" >&6; }
2915
2916 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2917 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2918 if { (ac_try="$ac_link"
2919 case "(($ac_try" in
2920   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2921   *) ac_try_echo=$ac_try;;
2922 esac
2923 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2924   (eval "$ac_link") 2>&5
2925   ac_status=$?
2926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2927   (exit $ac_status); }; then
2928   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2929 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2930 # work properly (i.e., refer to `conftest.exe'), while it won't with
2931 # `rm'.
2932 for ac_file in conftest.exe conftest conftest.*; do
2933   test -f "$ac_file" || continue
2934   case $ac_file in
2935     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2936     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2937           break;;
2938     * ) break;;
2939   esac
2940 done
2941 else
2942   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2943 See \`config.log' for more details." >&5
2944 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2945 See \`config.log' for more details." >&2;}
2946    { (exit 1); exit 1; }; }
2947 fi
2948
2949 rm -f conftest$ac_cv_exeext
2950 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2951 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2952
2953 rm -f conftest.$ac_ext
2954 EXEEXT=$ac_cv_exeext
2955 ac_exeext=$EXEEXT
2956 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2957 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2958 if test "${ac_cv_objext+set}" = set; then
2959   echo $ECHO_N "(cached) $ECHO_C" >&6
2960 else
2961   cat >conftest.$ac_ext <<_ACEOF
2962 /* confdefs.h.  */
2963 _ACEOF
2964 cat confdefs.h >>conftest.$ac_ext
2965 cat >>conftest.$ac_ext <<_ACEOF
2966 /* end confdefs.h.  */
2967
2968 int
2969 main ()
2970 {
2971
2972   ;
2973   return 0;
2974 }
2975 _ACEOF
2976 rm -f conftest.o conftest.obj
2977 if { (ac_try="$ac_compile"
2978 case "(($ac_try" in
2979   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2980   *) ac_try_echo=$ac_try;;
2981 esac
2982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2983   (eval "$ac_compile") 2>&5
2984   ac_status=$?
2985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2986   (exit $ac_status); }; then
2987   for ac_file in conftest.o conftest.obj conftest.*; do
2988   test -f "$ac_file" || continue;
2989   case $ac_file in
2990     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2991     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2992        break;;
2993   esac
2994 done
2995 else
2996   echo "$as_me: failed program was:" >&5
2997 sed 's/^/| /' conftest.$ac_ext >&5
2998
2999 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3000 See \`config.log' for more details." >&5
3001 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3002 See \`config.log' for more details." >&2;}
3003    { (exit 1); exit 1; }; }
3004 fi
3005
3006 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3007 fi
3008 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3009 echo "${ECHO_T}$ac_cv_objext" >&6; }
3010 OBJEXT=$ac_cv_objext
3011 ac_objext=$OBJEXT
3012 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3013 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3014 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3015   echo $ECHO_N "(cached) $ECHO_C" >&6
3016 else
3017   cat >conftest.$ac_ext <<_ACEOF
3018 /* confdefs.h.  */
3019 _ACEOF
3020 cat confdefs.h >>conftest.$ac_ext
3021 cat >>conftest.$ac_ext <<_ACEOF
3022 /* end confdefs.h.  */
3023
3024 int
3025 main ()
3026 {
3027 #ifndef __GNUC__
3028        choke me
3029 #endif
3030
3031   ;
3032   return 0;
3033 }
3034 _ACEOF
3035 rm -f conftest.$ac_objext
3036 if { (ac_try="$ac_compile"
3037 case "(($ac_try" in
3038   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3039   *) ac_try_echo=$ac_try;;
3040 esac
3041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3042   (eval "$ac_compile") 2>conftest.er1
3043   ac_status=$?
3044   grep -v '^ *+' conftest.er1 >conftest.err
3045   rm -f conftest.er1
3046   cat conftest.err >&5
3047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3048   (exit $ac_status); } &&
3049          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3050   { (case "(($ac_try" in
3051   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3052   *) ac_try_echo=$ac_try;;
3053 esac
3054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3055   (eval "$ac_try") 2>&5
3056   ac_status=$?
3057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3058   (exit $ac_status); }; } &&
3059          { ac_try='test -s conftest.$ac_objext'
3060   { (case "(($ac_try" in
3061   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3062   *) ac_try_echo=$ac_try;;
3063 esac
3064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3065   (eval "$ac_try") 2>&5
3066   ac_status=$?
3067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3068   (exit $ac_status); }; }; then
3069   ac_compiler_gnu=yes
3070 else
3071   echo "$as_me: failed program was:" >&5
3072 sed 's/^/| /' conftest.$ac_ext >&5
3073
3074         ac_compiler_gnu=no
3075 fi
3076
3077 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3078 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3079
3080 fi
3081 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3082 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3083 GCC=`test $ac_compiler_gnu = yes && echo yes`
3084 ac_test_CFLAGS=${CFLAGS+set}
3085 ac_save_CFLAGS=$CFLAGS
3086 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3087 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3088 if test "${ac_cv_prog_cc_g+set}" = set; then
3089   echo $ECHO_N "(cached) $ECHO_C" >&6
3090 else
3091   ac_save_c_werror_flag=$ac_c_werror_flag
3092    ac_c_werror_flag=yes
3093    ac_cv_prog_cc_g=no
3094    CFLAGS="-g"
3095    cat >conftest.$ac_ext <<_ACEOF
3096 /* confdefs.h.  */
3097 _ACEOF
3098 cat confdefs.h >>conftest.$ac_ext
3099 cat >>conftest.$ac_ext <<_ACEOF
3100 /* end confdefs.h.  */
3101
3102 int
3103 main ()
3104 {
3105
3106   ;
3107   return 0;
3108 }
3109 _ACEOF
3110 rm -f conftest.$ac_objext
3111 if { (ac_try="$ac_compile"
3112 case "(($ac_try" in
3113   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3114   *) ac_try_echo=$ac_try;;
3115 esac
3116 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3117   (eval "$ac_compile") 2>conftest.er1
3118   ac_status=$?
3119   grep -v '^ *+' conftest.er1 >conftest.err
3120   rm -f conftest.er1
3121   cat conftest.err >&5
3122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3123   (exit $ac_status); } &&
3124          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3125   { (case "(($ac_try" in
3126   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3127   *) ac_try_echo=$ac_try;;
3128 esac
3129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3130   (eval "$ac_try") 2>&5
3131   ac_status=$?
3132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3133   (exit $ac_status); }; } &&
3134          { ac_try='test -s conftest.$ac_objext'
3135   { (case "(($ac_try" in
3136   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3137   *) ac_try_echo=$ac_try;;
3138 esac
3139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3140   (eval "$ac_try") 2>&5
3141   ac_status=$?
3142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3143   (exit $ac_status); }; }; then
3144   ac_cv_prog_cc_g=yes
3145 else
3146   echo "$as_me: failed program was:" >&5
3147 sed 's/^/| /' conftest.$ac_ext >&5
3148
3149         CFLAGS=""
3150       cat >conftest.$ac_ext <<_ACEOF
3151 /* confdefs.h.  */
3152 _ACEOF
3153 cat confdefs.h >>conftest.$ac_ext
3154 cat >>conftest.$ac_ext <<_ACEOF
3155 /* end confdefs.h.  */
3156
3157 int
3158 main ()
3159 {
3160
3161   ;
3162   return 0;
3163 }
3164 _ACEOF
3165 rm -f conftest.$ac_objext
3166 if { (ac_try="$ac_compile"
3167 case "(($ac_try" in
3168   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3169   *) ac_try_echo=$ac_try;;
3170 esac
3171 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3172   (eval "$ac_compile") 2>conftest.er1
3173   ac_status=$?
3174   grep -v '^ *+' conftest.er1 >conftest.err
3175   rm -f conftest.er1
3176   cat conftest.err >&5
3177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3178   (exit $ac_status); } &&
3179          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3180   { (case "(($ac_try" in
3181   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3182   *) ac_try_echo=$ac_try;;
3183 esac
3184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3185   (eval "$ac_try") 2>&5
3186   ac_status=$?
3187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3188   (exit $ac_status); }; } &&
3189          { ac_try='test -s conftest.$ac_objext'
3190   { (case "(($ac_try" in
3191   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3192   *) ac_try_echo=$ac_try;;
3193 esac
3194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3195   (eval "$ac_try") 2>&5
3196   ac_status=$?
3197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3198   (exit $ac_status); }; }; then
3199   :
3200 else
3201   echo "$as_me: failed program was:" >&5
3202 sed 's/^/| /' conftest.$ac_ext >&5
3203
3204         ac_c_werror_flag=$ac_save_c_werror_flag
3205          CFLAGS="-g"
3206          cat >conftest.$ac_ext <<_ACEOF
3207 /* confdefs.h.  */
3208 _ACEOF
3209 cat confdefs.h >>conftest.$ac_ext
3210 cat >>conftest.$ac_ext <<_ACEOF
3211 /* end confdefs.h.  */
3212
3213 int
3214 main ()
3215 {
3216
3217   ;
3218   return 0;
3219 }
3220 _ACEOF
3221 rm -f conftest.$ac_objext
3222 if { (ac_try="$ac_compile"
3223 case "(($ac_try" in
3224   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3225   *) ac_try_echo=$ac_try;;
3226 esac
3227 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3228   (eval "$ac_compile") 2>conftest.er1
3229   ac_status=$?
3230   grep -v '^ *+' conftest.er1 >conftest.err
3231   rm -f conftest.er1
3232   cat conftest.err >&5
3233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3234   (exit $ac_status); } &&
3235          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3236   { (case "(($ac_try" in
3237   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3238   *) ac_try_echo=$ac_try;;
3239 esac
3240 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3241   (eval "$ac_try") 2>&5
3242   ac_status=$?
3243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3244   (exit $ac_status); }; } &&
3245          { ac_try='test -s conftest.$ac_objext'
3246   { (case "(($ac_try" in
3247   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3248   *) ac_try_echo=$ac_try;;
3249 esac
3250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3251   (eval "$ac_try") 2>&5
3252   ac_status=$?
3253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3254   (exit $ac_status); }; }; then
3255   ac_cv_prog_cc_g=yes
3256 else
3257   echo "$as_me: failed program was:" >&5
3258 sed 's/^/| /' conftest.$ac_ext >&5
3259
3260
3261 fi
3262
3263 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3264 fi
3265
3266 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3267 fi
3268
3269 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3270    ac_c_werror_flag=$ac_save_c_werror_flag
3271 fi
3272 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3273 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3274 if test "$ac_test_CFLAGS" = set; then
3275   CFLAGS=$ac_save_CFLAGS
3276 elif test $ac_cv_prog_cc_g = yes; then
3277   if test "$GCC" = yes; then
3278     CFLAGS="-g -O2"
3279   else
3280     CFLAGS="-g"
3281   fi
3282 else
3283   if test "$GCC" = yes; then
3284     CFLAGS="-O2"
3285   else
3286     CFLAGS=
3287   fi
3288 fi
3289 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3290 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3291 if test "${ac_cv_prog_cc_c89+set}" = set; then
3292   echo $ECHO_N "(cached) $ECHO_C" >&6
3293 else
3294   ac_cv_prog_cc_c89=no
3295 ac_save_CC=$CC
3296 cat >conftest.$ac_ext <<_ACEOF
3297 /* confdefs.h.  */
3298 _ACEOF
3299 cat confdefs.h >>conftest.$ac_ext
3300 cat >>conftest.$ac_ext <<_ACEOF
3301 /* end confdefs.h.  */
3302 #include <stdarg.h>
3303 #include <stdio.h>
3304 #include <sys/types.h>
3305 #include <sys/stat.h>
3306 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3307 struct buf { int x; };
3308 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3309 static char *e (p, i)
3310      char **p;
3311      int i;
3312 {
3313   return p[i];
3314 }
3315 static char *f (char * (*g) (char **, int), char **p, ...)
3316 {
3317   char *s;
3318   va_list v;
3319   va_start (v,p);
3320   s = g (p, va_arg (v,int));
3321   va_end (v);
3322   return s;
3323 }
3324
3325 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3326    function prototypes and stuff, but not '\xHH' hex character constants.
3327    These don't provoke an error unfortunately, instead are silently treated
3328    as 'x'.  The following induces an error, until -std is added to get
3329    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3330    array size at least.  It's necessary to write '\x00'==0 to get something
3331    that's true only with -std.  */
3332 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3333
3334 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3335    inside strings and character constants.  */
3336 #define FOO(x) 'x'
3337 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3338
3339 int test (int i, double x);
3340 struct s1 {int (*f) (int a);};
3341 struct s2 {int (*f) (double a);};
3342 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3343 int argc;
3344 char **argv;
3345 int
3346 main ()
3347 {
3348 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3349   ;
3350   return 0;
3351 }
3352 _ACEOF
3353 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3354         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3355 do
3356   CC="$ac_save_CC $ac_arg"
3357   rm -f conftest.$ac_objext
3358 if { (ac_try="$ac_compile"
3359 case "(($ac_try" in
3360   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3361   *) ac_try_echo=$ac_try;;
3362 esac
3363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3364   (eval "$ac_compile") 2>conftest.er1
3365   ac_status=$?
3366   grep -v '^ *+' conftest.er1 >conftest.err
3367   rm -f conftest.er1
3368   cat conftest.err >&5
3369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3370   (exit $ac_status); } &&
3371          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3372   { (case "(($ac_try" in
3373   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3374   *) ac_try_echo=$ac_try;;
3375 esac
3376 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3377   (eval "$ac_try") 2>&5
3378   ac_status=$?
3379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3380   (exit $ac_status); }; } &&
3381          { ac_try='test -s conftest.$ac_objext'
3382   { (case "(($ac_try" in
3383   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3384   *) ac_try_echo=$ac_try;;
3385 esac
3386 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3387   (eval "$ac_try") 2>&5
3388   ac_status=$?
3389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3390   (exit $ac_status); }; }; then
3391   ac_cv_prog_cc_c89=$ac_arg
3392 else
3393   echo "$as_me: failed program was:" >&5
3394 sed 's/^/| /' conftest.$ac_ext >&5
3395
3396
3397 fi
3398
3399 rm -f core conftest.err conftest.$ac_objext
3400   test "x$ac_cv_prog_cc_c89" != "xno" && break
3401 done
3402 rm -f conftest.$ac_ext
3403 CC=$ac_save_CC
3404
3405 fi
3406 # AC_CACHE_VAL
3407 case "x$ac_cv_prog_cc_c89" in
3408   x)
3409     { echo "$as_me:$LINENO: result: none needed" >&5
3410 echo "${ECHO_T}none needed" >&6; } ;;
3411   xno)
3412     { echo "$as_me:$LINENO: result: unsupported" >&5
3413 echo "${ECHO_T}unsupported" >&6; } ;;
3414   *)
3415     CC="$CC $ac_cv_prog_cc_c89"
3416     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3417 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3418 esac
3419
3420
3421 ac_ext=c
3422 ac_cpp='$CPP $CPPFLAGS'
3423 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3424 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3425 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3426
3427
3428 ac_ext=c
3429 ac_cpp='$CPP $CPPFLAGS'
3430 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3431 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3432 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3433 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3434 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3435 # On Suns, sometimes $CPP names a directory.
3436 if test -n "$CPP" && test -d "$CPP"; then
3437   CPP=
3438 fi
3439 if test -z "$CPP"; then
3440   if test "${ac_cv_prog_CPP+set}" = set; then
3441   echo $ECHO_N "(cached) $ECHO_C" >&6
3442 else
3443       # Double quotes because CPP needs to be expanded
3444     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3445     do
3446       ac_preproc_ok=false
3447 for ac_c_preproc_warn_flag in '' yes
3448 do
3449   # Use a header file that comes with gcc, so configuring glibc
3450   # with a fresh cross-compiler works.
3451   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3452   # <limits.h> exists even on freestanding compilers.
3453   # On the NeXT, cc -E runs the code through the compiler's parser,
3454   # not just through cpp. "Syntax error" is here to catch this case.
3455   cat >conftest.$ac_ext <<_ACEOF
3456 /* confdefs.h.  */
3457 _ACEOF
3458 cat confdefs.h >>conftest.$ac_ext
3459 cat >>conftest.$ac_ext <<_ACEOF
3460 /* end confdefs.h.  */
3461 #ifdef __STDC__
3462 # include <limits.h>
3463 #else
3464 # include <assert.h>
3465 #endif
3466                      Syntax error
3467 _ACEOF
3468 if { (ac_try="$ac_cpp conftest.$ac_ext"
3469 case "(($ac_try" in
3470   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3471   *) ac_try_echo=$ac_try;;
3472 esac
3473 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3474   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3475   ac_status=$?
3476   grep -v '^ *+' conftest.er1 >conftest.err
3477   rm -f conftest.er1
3478   cat conftest.err >&5
3479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3480   (exit $ac_status); } >/dev/null; then
3481   if test -s conftest.err; then
3482     ac_cpp_err=$ac_c_preproc_warn_flag
3483     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3484   else
3485     ac_cpp_err=
3486   fi
3487 else
3488   ac_cpp_err=yes
3489 fi
3490 if test -z "$ac_cpp_err"; then
3491   :
3492 else
3493   echo "$as_me: failed program was:" >&5
3494 sed 's/^/| /' conftest.$ac_ext >&5
3495
3496   # Broken: fails on valid input.
3497 continue
3498 fi
3499
3500 rm -f conftest.err conftest.$ac_ext
3501
3502   # OK, works on sane cases.  Now check whether nonexistent headers
3503   # can be detected and how.
3504   cat >conftest.$ac_ext <<_ACEOF
3505 /* confdefs.h.  */
3506 _ACEOF
3507 cat confdefs.h >>conftest.$ac_ext
3508 cat >>conftest.$ac_ext <<_ACEOF
3509 /* end confdefs.h.  */
3510 #include <ac_nonexistent.h>
3511 _ACEOF
3512 if { (ac_try="$ac_cpp conftest.$ac_ext"
3513 case "(($ac_try" in
3514   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3515   *) ac_try_echo=$ac_try;;
3516 esac
3517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3518   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3519   ac_status=$?
3520   grep -v '^ *+' conftest.er1 >conftest.err
3521   rm -f conftest.er1
3522   cat conftest.err >&5
3523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3524   (exit $ac_status); } >/dev/null; then
3525   if test -s conftest.err; then
3526     ac_cpp_err=$ac_c_preproc_warn_flag
3527     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3528   else
3529     ac_cpp_err=
3530   fi
3531 else
3532   ac_cpp_err=yes
3533 fi
3534 if test -z "$ac_cpp_err"; then
3535   # Broken: success on invalid input.
3536 continue
3537 else
3538   echo "$as_me: failed program was:" >&5
3539 sed 's/^/| /' conftest.$ac_ext >&5
3540
3541   # Passes both tests.
3542 ac_preproc_ok=:
3543 break
3544 fi
3545
3546 rm -f conftest.err conftest.$ac_ext
3547
3548 done
3549 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3550 rm -f conftest.err conftest.$ac_ext
3551 if $ac_preproc_ok; then
3552   break
3553 fi
3554
3555     done
3556     ac_cv_prog_CPP=$CPP
3557
3558 fi
3559   CPP=$ac_cv_prog_CPP
3560 else
3561   ac_cv_prog_CPP=$CPP
3562 fi
3563 { echo "$as_me:$LINENO: result: $CPP" >&5
3564 echo "${ECHO_T}$CPP" >&6; }
3565 ac_preproc_ok=false
3566 for ac_c_preproc_warn_flag in '' yes
3567 do
3568   # Use a header file that comes with gcc, so configuring glibc
3569   # with a fresh cross-compiler works.
3570   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3571   # <limits.h> exists even on freestanding compilers.
3572   # On the NeXT, cc -E runs the code through the compiler's parser,
3573   # not just through cpp. "Syntax error" is here to catch this case.
3574   cat >conftest.$ac_ext <<_ACEOF
3575 /* confdefs.h.  */
3576 _ACEOF
3577 cat confdefs.h >>conftest.$ac_ext
3578 cat >>conftest.$ac_ext <<_ACEOF
3579 /* end confdefs.h.  */
3580 #ifdef __STDC__
3581 # include <limits.h>
3582 #else
3583 # include <assert.h>
3584 #endif
3585                      Syntax error
3586 _ACEOF
3587 if { (ac_try="$ac_cpp conftest.$ac_ext"
3588 case "(($ac_try" in
3589   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3590   *) ac_try_echo=$ac_try;;
3591 esac
3592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3593   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3594   ac_status=$?
3595   grep -v '^ *+' conftest.er1 >conftest.err
3596   rm -f conftest.er1
3597   cat conftest.err >&5
3598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3599   (exit $ac_status); } >/dev/null; then
3600   if test -s conftest.err; then
3601     ac_cpp_err=$ac_c_preproc_warn_flag
3602     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3603   else
3604     ac_cpp_err=
3605   fi
3606 else
3607   ac_cpp_err=yes
3608 fi
3609 if test -z "$ac_cpp_err"; then
3610   :
3611 else
3612   echo "$as_me: failed program was:" >&5
3613 sed 's/^/| /' conftest.$ac_ext >&5
3614
3615   # Broken: fails on valid input.
3616 continue
3617 fi
3618
3619 rm -f conftest.err conftest.$ac_ext
3620
3621   # OK, works on sane cases.  Now check whether nonexistent headers
3622   # can be detected and how.
3623   cat >conftest.$ac_ext <<_ACEOF
3624 /* confdefs.h.  */
3625 _ACEOF
3626 cat confdefs.h >>conftest.$ac_ext
3627 cat >>conftest.$ac_ext <<_ACEOF
3628 /* end confdefs.h.  */
3629 #include <ac_nonexistent.h>
3630 _ACEOF
3631 if { (ac_try="$ac_cpp conftest.$ac_ext"
3632 case "(($ac_try" in
3633   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3634   *) ac_try_echo=$ac_try;;
3635 esac
3636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3637   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3638   ac_status=$?
3639   grep -v '^ *+' conftest.er1 >conftest.err
3640   rm -f conftest.er1
3641   cat conftest.err >&5
3642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3643   (exit $ac_status); } >/dev/null; then
3644   if test -s conftest.err; then
3645     ac_cpp_err=$ac_c_preproc_warn_flag
3646     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3647   else
3648     ac_cpp_err=
3649   fi
3650 else
3651   ac_cpp_err=yes
3652 fi
3653 if test -z "$ac_cpp_err"; then
3654   # Broken: success on invalid input.
3655 continue
3656 else
3657   echo "$as_me: failed program was:" >&5
3658 sed 's/^/| /' conftest.$ac_ext >&5
3659
3660   # Passes both tests.
3661 ac_preproc_ok=:
3662 break
3663 fi
3664
3665 rm -f conftest.err conftest.$ac_ext
3666
3667 done
3668 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3669 rm -f conftest.err conftest.$ac_ext
3670 if $ac_preproc_ok; then
3671   :
3672 else
3673   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3674 See \`config.log' for more details." >&5
3675 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3676 See \`config.log' for more details." >&2;}
3677    { (exit 1); exit 1; }; }
3678 fi
3679
3680 ac_ext=c
3681 ac_cpp='$CPP $CPPFLAGS'
3682 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3683 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3684 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3685
3686
3687 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3688 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3689 if test "${ac_cv_path_GREP+set}" = set; then
3690   echo $ECHO_N "(cached) $ECHO_C" >&6
3691 else
3692   # Extract the first word of "grep ggrep" to use in msg output
3693 if test -z "$GREP"; then
3694 set dummy grep ggrep; ac_prog_name=$2
3695 if test "${ac_cv_path_GREP+set}" = set; then
3696   echo $ECHO_N "(cached) $ECHO_C" >&6
3697 else
3698   ac_path_GREP_found=false
3699 # Loop through the user's path and test for each of PROGNAME-LIST
3700 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3701 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3702 do
3703   IFS=$as_save_IFS
3704   test -z "$as_dir" && as_dir=.
3705   for ac_prog in grep ggrep; do
3706   for ac_exec_ext in '' $ac_executable_extensions; do
3707     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3708     { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3709     # Check for GNU ac_path_GREP and select it if it is found.
3710   # Check for GNU $ac_path_GREP
3711 case `"$ac_path_GREP" --version 2>&1` in
3712 *GNU*)
3713   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3714 *)
3715   ac_count=0
3716   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3717   while :
3718   do
3719     cat "conftest.in" "conftest.in" >"conftest.tmp"
3720     mv "conftest.tmp" "conftest.in"
3721     cp "conftest.in" "conftest.nl"
3722     echo 'GREP' >> "conftest.nl"
3723     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3724     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3725     ac_count=`expr $ac_count + 1`
3726     if test $ac_count -gt ${ac_path_GREP_max-0}; then
3727       # Best one so far, save it but keep looking for a better one
3728       ac_cv_path_GREP="$ac_path_GREP"
3729       ac_path_GREP_max=$ac_count
3730     fi
3731     # 10*(2^10) chars as input seems more than enough
3732     test $ac_count -gt 10 && break
3733   done
3734   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3735 esac
3736
3737
3738     $ac_path_GREP_found && break 3
3739   done
3740 done
3741
3742 done
3743 IFS=$as_save_IFS
3744
3745
3746 fi
3747
3748 GREP="$ac_cv_path_GREP"
3749 if test -z "$GREP"; then
3750   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3751 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3752    { (exit 1); exit 1; }; }
3753 fi
3754
3755 else
3756   ac_cv_path_GREP=$GREP
3757 fi
3758
3759
3760 fi
3761 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3762 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3763  GREP="$ac_cv_path_GREP"
3764
3765
3766 { echo "$as_me:$LINENO: checking for egrep" >&5
3767 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3768 if test "${ac_cv_path_EGREP+set}" = set; then
3769   echo $ECHO_N "(cached) $ECHO_C" >&6
3770 else
3771   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3772    then ac_cv_path_EGREP="$GREP -E"
3773    else
3774      # Extract the first word of "egrep" to use in msg output
3775 if test -z "$EGREP"; then
3776 set dummy egrep; ac_prog_name=$2
3777 if test "${ac_cv_path_EGREP+set}" = set; then
3778   echo $ECHO_N "(cached) $ECHO_C" >&6
3779 else
3780   ac_path_EGREP_found=false
3781 # Loop through the user's path and test for each of PROGNAME-LIST
3782 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3783 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3784 do
3785   IFS=$as_save_IFS
3786   test -z "$as_dir" && as_dir=.
3787   for ac_prog in egrep; do
3788   for ac_exec_ext in '' $ac_executable_extensions; do
3789     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3790     { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
3791     # Check for GNU ac_path_EGREP and select it if it is found.
3792   # Check for GNU $ac_path_EGREP
3793 case `"$ac_path_EGREP" --version 2>&1` in
3794 *GNU*)
3795   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3796 *)
3797   ac_count=0
3798   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3799   while :
3800   do
3801     cat "conftest.in" "conftest.in" >"conftest.tmp"
3802     mv "conftest.tmp" "conftest.in"
3803     cp "conftest.in" "conftest.nl"
3804     echo 'EGREP' >> "conftest.nl"
3805     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3806     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3807     ac_count=`expr $ac_count + 1`
3808     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3809       # Best one so far, save it but keep looking for a better one
3810       ac_cv_path_EGREP="$ac_path_EGREP"
3811       ac_path_EGREP_max=$ac_count
3812     fi
3813     # 10*(2^10) chars as input seems more than enough
3814     test $ac_count -gt 10 && break
3815   done
3816   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3817 esac
3818
3819
3820     $ac_path_EGREP_found && break 3
3821   done
3822 done
3823
3824 done
3825 IFS=$as_save_IFS
3826
3827
3828 fi
3829
3830 EGREP="$ac_cv_path_EGREP"
3831 if test -z "$EGREP"; then
3832   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3833 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3834    { (exit 1); exit 1; }; }
3835 fi
3836
3837 else
3838   ac_cv_path_EGREP=$EGREP
3839 fi
3840
3841
3842    fi
3843 fi
3844 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3845 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3846  EGREP="$ac_cv_path_EGREP"
3847
3848
3849 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3850 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3851 if test "${ac_cv_header_stdc+set}" = set; then
3852   echo $ECHO_N "(cached) $ECHO_C" >&6
3853 else
3854   cat >conftest.$ac_ext <<_ACEOF
3855 /* confdefs.h.  */
3856 _ACEOF
3857 cat confdefs.h >>conftest.$ac_ext
3858 cat >>conftest.$ac_ext <<_ACEOF
3859 /* end confdefs.h.  */
3860 #include <stdlib.h>
3861 #include <stdarg.h>
3862 #include <string.h>
3863 #include <float.h>
3864
3865 int
3866 main ()
3867 {
3868
3869   ;
3870   return 0;
3871 }
3872 _ACEOF
3873 rm -f conftest.$ac_objext
3874 if { (ac_try="$ac_compile"
3875 case "(($ac_try" in
3876   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3877   *) ac_try_echo=$ac_try;;
3878 esac
3879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3880   (eval "$ac_compile") 2>conftest.er1
3881   ac_status=$?
3882   grep -v '^ *+' conftest.er1 >conftest.err
3883   rm -f conftest.er1
3884   cat conftest.err >&5
3885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3886   (exit $ac_status); } &&
3887          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3888   { (case "(($ac_try" in
3889   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3890   *) ac_try_echo=$ac_try;;
3891 esac
3892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3893   (eval "$ac_try") 2>&5
3894   ac_status=$?
3895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3896   (exit $ac_status); }; } &&
3897          { ac_try='test -s conftest.$ac_objext'
3898   { (case "(($ac_try" in
3899   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3900   *) ac_try_echo=$ac_try;;
3901 esac
3902 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3903   (eval "$ac_try") 2>&5
3904   ac_status=$?
3905   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3906   (exit $ac_status); }; }; then
3907   ac_cv_header_stdc=yes
3908 else
3909   echo "$as_me: failed program was:" >&5
3910 sed 's/^/| /' conftest.$ac_ext >&5
3911
3912         ac_cv_header_stdc=no
3913 fi
3914
3915 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3916
3917 if test $ac_cv_header_stdc = yes; then
3918   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3919   cat >conftest.$ac_ext <<_ACEOF
3920 /* confdefs.h.  */
3921 _ACEOF
3922 cat confdefs.h >>conftest.$ac_ext
3923 cat >>conftest.$ac_ext <<_ACEOF
3924 /* end confdefs.h.  */
3925 #include <string.h>
3926
3927 _ACEOF
3928 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3929   $EGREP "memchr" >/dev/null 2>&1; then
3930   :
3931 else
3932   ac_cv_header_stdc=no
3933 fi
3934 rm -f conftest*
3935
3936 fi
3937
3938 if test $ac_cv_header_stdc = yes; then
3939   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3940   cat >conftest.$ac_ext <<_ACEOF
3941 /* confdefs.h.  */
3942 _ACEOF
3943 cat confdefs.h >>conftest.$ac_ext
3944 cat >>conftest.$ac_ext <<_ACEOF
3945 /* end confdefs.h.  */
3946 #include <stdlib.h>
3947
3948 _ACEOF
3949 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3950   $EGREP "free" >/dev/null 2>&1; then
3951   :
3952 else
3953   ac_cv_header_stdc=no
3954 fi
3955 rm -f conftest*
3956
3957 fi
3958
3959 if test $ac_cv_header_stdc = yes; then
3960   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3961   if test "$cross_compiling" = yes; then
3962   :
3963 else
3964   cat >conftest.$ac_ext <<_ACEOF
3965 /* confdefs.h.  */
3966 _ACEOF
3967 cat confdefs.h >>conftest.$ac_ext
3968 cat >>conftest.$ac_ext <<_ACEOF
3969 /* end confdefs.h.  */
3970 #include <ctype.h>
3971 #include <stdlib.h>
3972 #if ((' ' & 0x0FF) == 0x020)
3973 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3974 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3975 #else
3976 # define ISLOWER(c) \
3977                    (('a' <= (c) && (c) <= 'i') \
3978                      || ('j' <= (c) && (c) <= 'r') \
3979                      || ('s' <= (c) && (c) <= 'z'))
3980 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3981 #endif
3982
3983 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3984 int
3985 main ()
3986 {
3987   int i;
3988   for (i = 0; i < 256; i++)
3989     if (XOR (islower (i), ISLOWER (i))
3990         || toupper (i) != TOUPPER (i))
3991       return 2;
3992   return 0;
3993 }
3994 _ACEOF
3995 rm -f conftest$ac_exeext
3996 if { (ac_try="$ac_link"
3997 case "(($ac_try" in
3998   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3999   *) ac_try_echo=$ac_try;;
4000 esac
4001 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4002   (eval "$ac_link") 2>&5
4003   ac_status=$?
4004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4005   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4006   { (case "(($ac_try" in
4007   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4008   *) ac_try_echo=$ac_try;;
4009 esac
4010 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4011   (eval "$ac_try") 2>&5
4012   ac_status=$?
4013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4014   (exit $ac_status); }; }; then
4015   :
4016 else
4017   echo "$as_me: program exited with status $ac_status" >&5
4018 echo "$as_me: failed program was:" >&5
4019 sed 's/^/| /' conftest.$ac_ext >&5
4020
4021 ( exit $ac_status )
4022 ac_cv_header_stdc=no
4023 fi
4024 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4025 fi
4026
4027
4028 fi
4029 fi
4030 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4031 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4032 if test $ac_cv_header_stdc = yes; then
4033
4034 cat >>confdefs.h <<\_ACEOF
4035 #define STDC_HEADERS 1
4036 _ACEOF
4037
4038 fi
4039
4040 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4041
4042
4043
4044
4045
4046
4047
4048
4049
4050 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4051                   inttypes.h stdint.h unistd.h
4052 do
4053 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4054 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4055 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4056 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4057   echo $ECHO_N "(cached) $ECHO_C" >&6
4058 else
4059   cat >conftest.$ac_ext <<_ACEOF
4060 /* confdefs.h.  */
4061 _ACEOF
4062 cat confdefs.h >>conftest.$ac_ext
4063 cat >>conftest.$ac_ext <<_ACEOF
4064 /* end confdefs.h.  */
4065 $ac_includes_default
4066
4067 #include <$ac_header>
4068 _ACEOF
4069 rm -f conftest.$ac_objext
4070 if { (ac_try="$ac_compile"
4071 case "(($ac_try" in
4072   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4073   *) ac_try_echo=$ac_try;;
4074 esac
4075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4076   (eval "$ac_compile") 2>conftest.er1
4077   ac_status=$?
4078   grep -v '^ *+' conftest.er1 >conftest.err
4079   rm -f conftest.er1
4080   cat conftest.err >&5
4081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4082   (exit $ac_status); } &&
4083          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4084   { (case "(($ac_try" in
4085   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4086   *) ac_try_echo=$ac_try;;
4087 esac
4088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4089   (eval "$ac_try") 2>&5
4090   ac_status=$?
4091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4092   (exit $ac_status); }; } &&
4093          { ac_try='test -s conftest.$ac_objext'
4094   { (case "(($ac_try" in
4095   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4096   *) ac_try_echo=$ac_try;;
4097 esac
4098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4099   (eval "$ac_try") 2>&5
4100   ac_status=$?
4101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4102   (exit $ac_status); }; }; then
4103   eval "$as_ac_Header=yes"
4104 else
4105   echo "$as_me: failed program was:" >&5
4106 sed 's/^/| /' conftest.$ac_ext >&5
4107
4108         eval "$as_ac_Header=no"
4109 fi
4110
4111 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4112 fi
4113 ac_res=`eval echo '${'$as_ac_Header'}'`
4114                { echo "$as_me:$LINENO: result: $ac_res" >&5
4115 echo "${ECHO_T}$ac_res" >&6; }
4116 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4117   cat >>confdefs.h <<_ACEOF
4118 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4119 _ACEOF
4120
4121 fi
4122
4123 done
4124
4125
4126 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4127 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4128 if test "${ac_cv_c_bigendian+set}" = set; then
4129   echo $ECHO_N "(cached) $ECHO_C" >&6
4130 else
4131   # See if sys/param.h defines the BYTE_ORDER macro.
4132 cat >conftest.$ac_ext <<_ACEOF
4133 /* confdefs.h.  */
4134 _ACEOF
4135 cat confdefs.h >>conftest.$ac_ext
4136 cat >>conftest.$ac_ext <<_ACEOF
4137 /* end confdefs.h.  */
4138 #include <sys/types.h>
4139 #include <sys/param.h>
4140
4141 int
4142 main ()
4143 {
4144 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4145  bogus endian macros
4146 #endif
4147
4148   ;
4149   return 0;
4150 }
4151 _ACEOF
4152 rm -f conftest.$ac_objext
4153 if { (ac_try="$ac_compile"
4154 case "(($ac_try" in
4155   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4156   *) ac_try_echo=$ac_try;;
4157 esac
4158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4159   (eval "$ac_compile") 2>conftest.er1
4160   ac_status=$?
4161   grep -v '^ *+' conftest.er1 >conftest.err
4162   rm -f conftest.er1
4163   cat conftest.err >&5
4164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4165   (exit $ac_status); } &&
4166          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4167   { (case "(($ac_try" in
4168   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4169   *) ac_try_echo=$ac_try;;
4170 esac
4171 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4172   (eval "$ac_try") 2>&5
4173   ac_status=$?
4174   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4175   (exit $ac_status); }; } &&
4176          { ac_try='test -s conftest.$ac_objext'
4177   { (case "(($ac_try" in
4178   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4179   *) ac_try_echo=$ac_try;;
4180 esac
4181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4182   (eval "$ac_try") 2>&5
4183   ac_status=$?
4184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4185   (exit $ac_status); }; }; then
4186   # It does; now see whether it defined to BIG_ENDIAN or not.
4187 cat >conftest.$ac_ext <<_ACEOF
4188 /* confdefs.h.  */
4189 _ACEOF
4190 cat confdefs.h >>conftest.$ac_ext
4191 cat >>conftest.$ac_ext <<_ACEOF
4192 /* end confdefs.h.  */
4193 #include <sys/types.h>
4194 #include <sys/param.h>
4195
4196 int
4197 main ()
4198 {
4199 #if BYTE_ORDER != BIG_ENDIAN
4200  not big endian
4201 #endif
4202
4203   ;
4204   return 0;
4205 }
4206 _ACEOF
4207 rm -f conftest.$ac_objext
4208 if { (ac_try="$ac_compile"
4209 case "(($ac_try" in
4210   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4211   *) ac_try_echo=$ac_try;;
4212 esac
4213 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4214   (eval "$ac_compile") 2>conftest.er1
4215   ac_status=$?
4216   grep -v '^ *+' conftest.er1 >conftest.err
4217   rm -f conftest.er1
4218   cat conftest.err >&5
4219   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4220   (exit $ac_status); } &&
4221          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4222   { (case "(($ac_try" in
4223   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4224   *) ac_try_echo=$ac_try;;
4225 esac
4226 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4227   (eval "$ac_try") 2>&5
4228   ac_status=$?
4229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4230   (exit $ac_status); }; } &&
4231          { ac_try='test -s conftest.$ac_objext'
4232   { (case "(($ac_try" in
4233   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4234   *) ac_try_echo=$ac_try;;
4235 esac
4236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4237   (eval "$ac_try") 2>&5
4238   ac_status=$?
4239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4240   (exit $ac_status); }; }; then
4241   ac_cv_c_bigendian=yes
4242 else
4243   echo "$as_me: failed program was:" >&5
4244 sed 's/^/| /' conftest.$ac_ext >&5
4245
4246         ac_cv_c_bigendian=no
4247 fi
4248
4249 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4250 else
4251   echo "$as_me: failed program was:" >&5
4252 sed 's/^/| /' conftest.$ac_ext >&5
4253
4254         # It does not; compile a test program.
4255 if test "$cross_compiling" = yes; then
4256   # try to guess the endianness by grepping values into an object file
4257   ac_cv_c_bigendian=unknown
4258   cat >conftest.$ac_ext <<_ACEOF
4259 /* confdefs.h.  */
4260 _ACEOF
4261 cat confdefs.h >>conftest.$ac_ext
4262 cat >>conftest.$ac_ext <<_ACEOF
4263 /* end confdefs.h.  */
4264 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4265 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4266 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4267 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4268 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4269 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4270 int
4271 main ()
4272 {
4273  _ascii (); _ebcdic ();
4274   ;
4275   return 0;
4276 }
4277 _ACEOF
4278 rm -f conftest.$ac_objext
4279 if { (ac_try="$ac_compile"
4280 case "(($ac_try" in
4281   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4282   *) ac_try_echo=$ac_try;;
4283 esac
4284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4285   (eval "$ac_compile") 2>conftest.er1
4286   ac_status=$?
4287   grep -v '^ *+' conftest.er1 >conftest.err
4288   rm -f conftest.er1
4289   cat conftest.err >&5
4290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4291   (exit $ac_status); } &&
4292          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4293   { (case "(($ac_try" in
4294   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4295   *) ac_try_echo=$ac_try;;
4296 esac
4297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4298   (eval "$ac_try") 2>&5
4299   ac_status=$?
4300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4301   (exit $ac_status); }; } &&
4302          { ac_try='test -s conftest.$ac_objext'
4303   { (case "(($ac_try" in
4304   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4305   *) ac_try_echo=$ac_try;;
4306 esac
4307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4308   (eval "$ac_try") 2>&5
4309   ac_status=$?
4310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4311   (exit $ac_status); }; }; then
4312   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4313   ac_cv_c_bigendian=yes
4314 fi
4315 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4316   if test "$ac_cv_c_bigendian" = unknown; then
4317     ac_cv_c_bigendian=no
4318   else
4319     # finding both strings is unlikely to happen, but who knows?
4320     ac_cv_c_bigendian=unknown
4321   fi
4322 fi
4323 else
4324   echo "$as_me: failed program was:" >&5
4325 sed 's/^/| /' conftest.$ac_ext >&5
4326
4327
4328 fi
4329
4330 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4331 else
4332   cat >conftest.$ac_ext <<_ACEOF
4333 /* confdefs.h.  */
4334 _ACEOF
4335 cat confdefs.h >>conftest.$ac_ext
4336 cat >>conftest.$ac_ext <<_ACEOF
4337 /* end confdefs.h.  */
4338 $ac_includes_default
4339 int
4340 main ()
4341 {
4342
4343   /* Are we little or big endian?  From Harbison&Steele.  */
4344   union
4345   {
4346     long int l;
4347     char c[sizeof (long int)];
4348   } u;
4349   u.l = 1;
4350   return u.c[sizeof (long int) - 1] == 1;
4351
4352   ;
4353   return 0;
4354 }
4355 _ACEOF
4356 rm -f conftest$ac_exeext
4357 if { (ac_try="$ac_link"
4358 case "(($ac_try" in
4359   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4360   *) ac_try_echo=$ac_try;;
4361 esac
4362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4363   (eval "$ac_link") 2>&5
4364   ac_status=$?
4365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4366   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4367   { (case "(($ac_try" in
4368   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4369   *) ac_try_echo=$ac_try;;
4370 esac
4371 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4372   (eval "$ac_try") 2>&5
4373   ac_status=$?
4374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4375   (exit $ac_status); }; }; then
4376   ac_cv_c_bigendian=no
4377 else
4378   echo "$as_me: program exited with status $ac_status" >&5
4379 echo "$as_me: failed program was:" >&5
4380 sed 's/^/| /' conftest.$ac_ext >&5
4381
4382 ( exit $ac_status )
4383 ac_cv_c_bigendian=yes
4384 fi
4385 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4386 fi
4387
4388
4389 fi
4390
4391 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4392 fi
4393 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4394 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4395 case $ac_cv_c_bigendian in
4396   yes)
4397     ENDIAN=big
4398  ;;
4399   no)
4400     ENDIAN=little
4401  ;;
4402   *)
4403     { { echo "$as_me:$LINENO: error: unknown endianness
4404 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4405 echo "$as_me: error: unknown endianness
4406 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4407    { (exit 1); exit 1; }; } ;;
4408 esac
4409
4410
4411 if test "$cross_compiling" = yes; then
4412   LLVM_CROSS_COMPILING=1
4413
4414
4415 { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4416 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4417 if test "${ac_cv_build_exeext+set}" = set; then
4418   echo $ECHO_N "(cached) $ECHO_C" >&6
4419 else
4420   if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4421   ac_cv_build_exeext=.exe
4422 else
4423   ac_build_prefix=${build_alias}-
4424
4425   # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4426 set dummy ${ac_build_prefix}gcc; ac_word=$2
4427 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4428 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4429 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4430   echo $ECHO_N "(cached) $ECHO_C" >&6
4431 else
4432   if test -n "$BUILD_CC"; then
4433   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4434 else
4435 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4436 for as_dir in $PATH
4437 do
4438   IFS=$as_save_IFS
4439   test -z "$as_dir" && as_dir=.
4440   for ac_exec_ext in '' $ac_executable_extensions; do
4441   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4442     ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4443     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4444     break 2
4445   fi
4446 done
4447 done
4448 IFS=$as_save_IFS
4449
4450 fi
4451 fi
4452 BUILD_CC=$ac_cv_prog_BUILD_CC
4453 if test -n "$BUILD_CC"; then
4454   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4455 echo "${ECHO_T}$BUILD_CC" >&6; }
4456 else
4457   { echo "$as_me:$LINENO: result: no" >&5
4458 echo "${ECHO_T}no" >&6; }
4459 fi
4460
4461
4462   if test -z "$BUILD_CC"; then
4463      # Extract the first word of "gcc", so it can be a program name with args.
4464 set dummy gcc; ac_word=$2
4465 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4466 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4467 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4468   echo $ECHO_N "(cached) $ECHO_C" >&6
4469 else
4470   if test -n "$BUILD_CC"; then
4471   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4472 else
4473 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4474 for as_dir in $PATH
4475 do
4476   IFS=$as_save_IFS
4477   test -z "$as_dir" && as_dir=.
4478   for ac_exec_ext in '' $ac_executable_extensions; do
4479   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4480     ac_cv_prog_BUILD_CC="gcc"
4481     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4482     break 2
4483   fi
4484 done
4485 done
4486 IFS=$as_save_IFS
4487
4488 fi
4489 fi
4490 BUILD_CC=$ac_cv_prog_BUILD_CC
4491 if test -n "$BUILD_CC"; then
4492   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4493 echo "${ECHO_T}$BUILD_CC" >&6; }
4494 else
4495   { echo "$as_me:$LINENO: result: no" >&5
4496 echo "${ECHO_T}no" >&6; }
4497 fi
4498
4499
4500      if test -z "$BUILD_CC"; then
4501        # Extract the first word of "cc", so it can be a program name with args.
4502 set dummy cc; ac_word=$2
4503 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4504 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4505 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4506   echo $ECHO_N "(cached) $ECHO_C" >&6
4507 else
4508   if test -n "$BUILD_CC"; then
4509   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4510 else
4511   ac_prog_rejected=no
4512 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4513 for as_dir in $PATH
4514 do
4515   IFS=$as_save_IFS
4516   test -z "$as_dir" && as_dir=.
4517   for ac_exec_ext in '' $ac_executable_extensions; do
4518   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4519     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4520        ac_prog_rejected=yes
4521        continue
4522      fi
4523     ac_cv_prog_BUILD_CC="cc"
4524     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4525     break 2
4526   fi
4527 done
4528 done
4529 IFS=$as_save_IFS
4530
4531 if test $ac_prog_rejected = yes; then
4532   # We found a bogon in the path, so make sure we never use it.
4533   set dummy $ac_cv_prog_BUILD_CC
4534   shift
4535   if test $# != 0; then
4536     # We chose a different compiler from the bogus one.
4537     # However, it has the same basename, so the bogon will be chosen
4538     # first if we set BUILD_CC to just the basename; use the full file name.
4539     shift
4540     ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4541   fi
4542 fi
4543 fi
4544 fi
4545 BUILD_CC=$ac_cv_prog_BUILD_CC
4546 if test -n "$BUILD_CC"; then
4547   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4548 echo "${ECHO_T}$BUILD_CC" >&6; }
4549 else
4550   { echo "$as_me:$LINENO: result: no" >&5
4551 echo "${ECHO_T}no" >&6; }
4552 fi
4553
4554
4555      fi
4556   fi
4557   test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4558 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4559    { (exit 1); exit 1; }; }
4560   ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4561   rm -f conftest*
4562   echo 'int main () { return 0; }' > conftest.$ac_ext
4563   ac_cv_build_exeext=
4564   if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4565   (eval $ac_build_link) 2>&5
4566   ac_status=$?
4567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4568   (exit $ac_status); }; then
4569     for file in conftest.*; do
4570       case $file in
4571       *.c | *.o | *.obj | *.dSYM) ;;
4572       *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4573       esac
4574     done
4575   else
4576     { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4577 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4578    { (exit 1); exit 1; }; }
4579   fi
4580   rm -f conftest*
4581   test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4582 fi
4583 fi
4584
4585 BUILD_EXEEXT=""
4586 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4587 { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4588 echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4589 ac_build_exeext=$BUILD_EXEEXT
4590
4591   ac_build_prefix=${build_alias}-
4592   # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4593 set dummy ${ac_build_prefix}g++; ac_word=$2
4594 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4595 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4596 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4597   echo $ECHO_N "(cached) $ECHO_C" >&6
4598 else
4599   if test -n "$BUILD_CXX"; then
4600   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4601 else
4602 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4603 for as_dir in $PATH
4604 do
4605   IFS=$as_save_IFS
4606   test -z "$as_dir" && as_dir=.
4607   for ac_exec_ext in '' $ac_executable_extensions; do
4608   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4609     ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
4610     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4611     break 2
4612   fi
4613 done
4614 done
4615 IFS=$as_save_IFS
4616
4617 fi
4618 fi
4619 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4620 if test -n "$BUILD_CXX"; then
4621   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4622 echo "${ECHO_T}$BUILD_CXX" >&6; }
4623 else
4624   { echo "$as_me:$LINENO: result: no" >&5
4625 echo "${ECHO_T}no" >&6; }
4626 fi
4627
4628
4629   if test -z "$BUILD_CXX"; then
4630      # Extract the first word of "g++", so it can be a program name with args.
4631 set dummy g++; ac_word=$2
4632 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4633 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4634 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4635   echo $ECHO_N "(cached) $ECHO_C" >&6
4636 else
4637   if test -n "$BUILD_CXX"; then
4638   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4639 else
4640 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4641 for as_dir in $PATH
4642 do
4643   IFS=$as_save_IFS
4644   test -z "$as_dir" && as_dir=.
4645   for ac_exec_ext in '' $ac_executable_extensions; do
4646   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4647     ac_cv_prog_BUILD_CXX="g++"
4648     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4649     break 2
4650   fi
4651 done
4652 done
4653 IFS=$as_save_IFS
4654
4655 fi
4656 fi
4657 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4658 if test -n "$BUILD_CXX"; then
4659   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4660 echo "${ECHO_T}$BUILD_CXX" >&6; }
4661 else
4662   { echo "$as_me:$LINENO: result: no" >&5
4663 echo "${ECHO_T}no" >&6; }
4664 fi
4665
4666
4667      if test -z "$BUILD_CXX"; then
4668        # Extract the first word of "c++", so it can be a program name with args.
4669 set dummy c++; ac_word=$2
4670 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4671 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4672 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4673   echo $ECHO_N "(cached) $ECHO_C" >&6
4674 else
4675   if test -n "$BUILD_CXX"; then
4676   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4677 else
4678   ac_prog_rejected=no
4679 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4680 for as_dir in $PATH
4681 do
4682   IFS=$as_save_IFS
4683   test -z "$as_dir" && as_dir=.
4684   for ac_exec_ext in '' $ac_executable_extensions; do
4685   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4686     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4687        ac_prog_rejected=yes
4688        continue
4689      fi
4690     ac_cv_prog_BUILD_CXX="c++"
4691     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4692     break 2
4693   fi
4694 done
4695 done
4696 IFS=$as_save_IFS
4697
4698 if test $ac_prog_rejected = yes; then
4699   # We found a bogon in the path, so make sure we never use it.
4700   set dummy $ac_cv_prog_BUILD_CXX
4701   shift
4702   if test $# != 0; then
4703     # We chose a different compiler from the bogus one.
4704     # However, it has the same basename, so the bogon will be chosen
4705     # first if we set BUILD_CXX to just the basename; use the full file name.
4706     shift
4707     ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4708   fi
4709 fi
4710 fi
4711 fi
4712 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4713 if test -n "$BUILD_CXX"; then
4714   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4715 echo "${ECHO_T}$BUILD_CXX" >&6; }
4716 else
4717   { echo "$as_me:$LINENO: result: no" >&5
4718 echo "${ECHO_T}no" >&6; }
4719 fi
4720
4721
4722      fi
4723   fi
4724 else
4725   LLVM_CROSS_COMPILING=0
4726
4727 fi
4728
4729 if test -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
4730   cvsbuild="yes"
4731   optimize="no"
4732   CVSBUILD=CVSBUILD=1
4733
4734 else
4735   cvsbuild="no"
4736   optimize="yes"
4737 fi
4738
4739
4740 # Check whether --enable-optimized was given.
4741 if test "${enable_optimized+set}" = set; then
4742   enableval=$enable_optimized;
4743 else
4744   enableval=$optimize
4745 fi
4746
4747 if test ${enableval} = "no" ; then
4748   ENABLE_OPTIMIZED=
4749
4750 else
4751   ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4752
4753 fi
4754
4755 # Check whether --enable-profiling was given.
4756 if test "${enable_profiling+set}" = set; then
4757   enableval=$enable_profiling;
4758 else
4759   enableval="no"
4760 fi
4761
4762 if test ${enableval} = "no" ; then
4763   ENABLE_PROFILING=
4764
4765 else
4766   ENABLE_PROFILING=ENABLE_PROFILING=1
4767
4768 fi
4769
4770 # Check whether --enable-assertions was given.
4771 if test "${enable_assertions+set}" = set; then
4772   enableval=$enable_assertions;
4773 else
4774   enableval="yes"
4775 fi
4776
4777 if test ${enableval} = "yes" ; then
4778   DISABLE_ASSERTIONS=
4779
4780 else
4781   DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
4782
4783 fi
4784
4785 # Check whether --enable-expensive-checks was given.
4786 if test "${enable_expensive_checks+set}" = set; then
4787   enableval=$enable_expensive_checks;
4788 else
4789   enableval="no"
4790 fi
4791
4792 if test ${enableval} = "yes" ; then
4793   ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
4794
4795   EXPENSIVE_CHECKS=yes
4796
4797 else
4798   ENABLE_EXPENSIVE_CHECKS=
4799
4800   EXPENSIVE_CHECKS=no
4801
4802 fi
4803
4804 # Check whether --enable-debug-runtime was given.
4805 if test "${enable_debug_runtime+set}" = set; then
4806   enableval=$enable_debug_runtime;
4807 else
4808   enableval=no
4809 fi
4810
4811 if test ${enableval} = "no" ; then
4812   DEBUG_RUNTIME=
4813
4814 else
4815   DEBUG_RUNTIME=DEBUG_RUNTIME=1
4816
4817 fi
4818
4819 # Check whether --enable-debug-symbols was given.
4820 if test "${enable_debug_symbols+set}" = set; then
4821   enableval=$enable_debug_symbols;
4822 else
4823   enableval=no
4824 fi
4825
4826 if test ${enableval} = "no" ; then
4827   DEBUG_SYMBOLS=
4828
4829 else
4830   DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
4831
4832 fi
4833
4834 # Check whether --enable-jit was given.
4835 if test "${enable_jit+set}" = set; then
4836   enableval=$enable_jit;
4837 else
4838   enableval=default
4839 fi
4840
4841 if test ${enableval} = "no"
4842 then
4843   JIT=
4844
4845 else
4846   case "$llvm_cv_target_arch" in
4847     x86)         TARGET_HAS_JIT=1
4848  ;;
4849     Sparc)       TARGET_HAS_JIT=0
4850  ;;
4851     PowerPC)     TARGET_HAS_JIT=1
4852  ;;
4853     x86_64)      TARGET_HAS_JIT=1
4854  ;;
4855     Alpha)       TARGET_HAS_JIT=0
4856  ;;
4857     ARM)         TARGET_HAS_JIT=1
4858  ;;
4859     Mips)        TARGET_HAS_JIT=0
4860  ;;
4861     XCore)       TARGET_HAS_JIT=0
4862  ;;
4863     MSP430)      TARGET_HAS_JIT=0
4864  ;;
4865     SystemZ)     TARGET_HAS_JIT=0
4866  ;;
4867     Blackfin)    TARGET_HAS_JIT=0
4868  ;;
4869     MBlaze)      TARGET_HAS_JIT=0
4870  ;;
4871     PTX)         TARGET_HAS_JIT=0
4872  ;;
4873     *)           TARGET_HAS_JIT=0
4874  ;;
4875   esac
4876 fi
4877
4878 # Check whether --enable-docs was given.
4879 if test "${enable_docs+set}" = set; then
4880   enableval=$enable_docs;
4881 else
4882   enableval=default
4883 fi
4884
4885 case "$enableval" in
4886   yes) ENABLE_DOCS=1
4887  ;;
4888   no)  ENABLE_DOCS=0
4889  ;;
4890   default) ENABLE_DOCS=1
4891  ;;
4892   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&5
4893 echo "$as_me: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&2;}
4894    { (exit 1); exit 1; }; } ;;
4895 esac
4896
4897 # Check whether --enable-doxygen was given.
4898 if test "${enable_doxygen+set}" = set; then
4899   enableval=$enable_doxygen;
4900 else
4901   enableval=default
4902 fi
4903
4904 case "$enableval" in
4905   yes) ENABLE_DOXYGEN=1
4906  ;;
4907   no)  ENABLE_DOXYGEN=0
4908  ;;
4909   default) ENABLE_DOXYGEN=0
4910  ;;
4911   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
4912 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
4913    { (exit 1); exit 1; }; } ;;
4914 esac
4915
4916 # Check whether --enable-threads was given.
4917 if test "${enable_threads+set}" = set; then
4918   enableval=$enable_threads;
4919 else
4920   enableval=default
4921 fi
4922
4923 case "$enableval" in
4924   yes) ENABLE_THREADS=1
4925  ;;
4926   no)  ENABLE_THREADS=0
4927  ;;
4928   default) ENABLE_THREADS=1
4929  ;;
4930   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
4931 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
4932    { (exit 1); exit 1; }; } ;;
4933 esac
4934
4935 cat >>confdefs.h <<_ACEOF
4936 #define ENABLE_THREADS $ENABLE_THREADS
4937 _ACEOF
4938
4939
4940 # Check whether --enable-pthreads was given.
4941 if test "${enable_pthreads+set}" = set; then
4942   enableval=$enable_pthreads;
4943 else
4944   enableval=default
4945 fi
4946
4947 case "$enableval" in
4948   yes) ENABLE_PTHREADS=1
4949  ;;
4950   no)  ENABLE_PTHREADS=0
4951  ;;
4952   default) ENABLE_PTHREADS=1
4953  ;;
4954   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&5
4955 echo "$as_me: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&2;}
4956    { (exit 1); exit 1; }; } ;;
4957 esac
4958
4959 # Check whether --enable-pic was given.
4960 if test "${enable_pic+set}" = set; then
4961   enableval=$enable_pic;
4962 else
4963   enableval=default
4964 fi
4965
4966 case "$enableval" in
4967   yes) ENABLE_PIC=1
4968  ;;
4969   no)  ENABLE_PIC=0
4970  ;;
4971   default) ENABLE_PIC=1
4972  ;;
4973   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
4974 echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
4975    { (exit 1); exit 1; }; } ;;
4976 esac
4977
4978 cat >>confdefs.h <<_ACEOF
4979 #define ENABLE_PIC $ENABLE_PIC
4980 _ACEOF
4981
4982
4983 # Check whether --enable-shared was given.
4984 if test "${enable_shared+set}" = set; then
4985   enableval=$enable_shared;
4986 else
4987   enableval=default
4988 fi
4989
4990 case "$enableval" in
4991   yes) ENABLE_SHARED=1
4992  ;;
4993   no)  ENABLE_SHARED=0
4994  ;;
4995   default) ENABLE_SHARED=0
4996  ;;
4997   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5
4998 echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;}
4999    { (exit 1); exit 1; }; } ;;
5000 esac
5001
5002 # Check whether --enable-timestamps was given.
5003 if test "${enable_timestamps+set}" = set; then
5004   enableval=$enable_timestamps;
5005 else
5006   enableval=default
5007 fi
5008
5009 case "$enableval" in
5010   yes) ENABLE_TIMESTAMPS=1
5011  ;;
5012   no)  ENABLE_TIMESTAMPS=0
5013  ;;
5014   default) ENABLE_TIMESTAMPS=1
5015  ;;
5016   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&5
5017 echo "$as_me: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&2;}
5018    { (exit 1); exit 1; }; } ;;
5019 esac
5020
5021 cat >>confdefs.h <<_ACEOF
5022 #define ENABLE_TIMESTAMPS $ENABLE_TIMESTAMPS
5023 _ACEOF
5024
5025
5026 TARGETS_TO_BUILD=""
5027 # Check whether --enable-targets was given.
5028 if test "${enable_targets+set}" = set; then
5029   enableval=$enable_targets;
5030 else
5031   enableval=all
5032 fi
5033
5034 if test "$enableval" = host-only ; then
5035   enableval=host
5036 fi
5037 case "$enableval" in
5038   all) TARGETS_TO_BUILD="X86 Sparc PowerPC Alpha ARM Mips CellSPU XCore MSP430 SystemZ Blackfin CBackend CppBackend MBlaze PTX" ;;
5039   *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
5040       case "$a_target" in
5041         x86)      TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5042         x86_64)   TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5043         sparc)    TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5044         powerpc)  TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5045         alpha)    TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
5046         arm)      TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5047         mips)     TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5048         spu)      TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
5049         xcore)    TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5050         msp430)   TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5051         systemz)  TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
5052         blackfin) TARGETS_TO_BUILD="Blackfin $TARGETS_TO_BUILD" ;;
5053         cbe)      TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD" ;;
5054         cpp)      TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
5055         mblaze)   TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
5056         ptx)      TARGETS_TO_BUILD="PTX $TARGETS_TO_BUILD" ;;
5057         host) case "$llvm_cv_target_arch" in
5058             x86)         TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5059             x86_64)      TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5060             Sparc)       TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5061             PowerPC)     TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5062             Alpha)       TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
5063             ARM)         TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5064             Mips)        TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5065             MBlaze)      TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
5066             CellSPU|SPU) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
5067             XCore)       TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5068             MSP430)      TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5069             s390x)       TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
5070             Blackfin)    TARGETS_TO_BUILD="Blackfin $TARGETS_TO_BUILD" ;;
5071             PTX)         TARGETS_TO_BUILD="PTX $TARGETS_TO_BUILD" ;;
5072             *)       { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
5073 echo "$as_me: error: Can not set target to build" >&2;}
5074    { (exit 1); exit 1; }; } ;;
5075           esac ;;
5076         *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
5077 echo "$as_me: error: Unrecognized target $a_target" >&2;}
5078    { (exit 1); exit 1; }; } ;;
5079       esac
5080   done
5081   ;;
5082 esac
5083 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
5084
5085
5086 # Determine whether we are building LLVM support for the native architecture.
5087 # If so, define LLVM_NATIVE_ARCH to that LLVM target.
5088 for a_target in $TARGETS_TO_BUILD; do
5089   if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
5090
5091 cat >>confdefs.h <<_ACEOF
5092 #define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCH
5093 _ACEOF
5094
5095     LLVM_NATIVE_TARGET="LLVMInitialize${LLVM_NATIVE_ARCH}Target"
5096     LLVM_NATIVE_TARGETINFO="LLVMInitialize${LLVM_NATIVE_ARCH}TargetInfo"
5097     LLVM_NATIVE_ASMPRINTER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmPrinter"
5098
5099 cat >>confdefs.h <<_ACEOF
5100 #define LLVM_NATIVE_TARGET $LLVM_NATIVE_TARGET
5101 _ACEOF
5102
5103
5104 cat >>confdefs.h <<_ACEOF
5105 #define LLVM_NATIVE_TARGETINFO $LLVM_NATIVE_TARGETINFO
5106 _ACEOF
5107
5108
5109 cat >>confdefs.h <<_ACEOF
5110 #define LLVM_NATIVE_ASMPRINTER $LLVM_NATIVE_ASMPRINTER
5111 _ACEOF
5112
5113   fi
5114 done
5115
5116 # Build the LLVM_TARGET and LLVM_... macros for Targets.def and the individual
5117 # target feature def files.
5118 LLVM_ENUM_TARGETS=""
5119 LLVM_ENUM_ASM_PRINTERS=""
5120 LLVM_ENUM_ASM_PARSERS=""
5121 LLVM_ENUM_DISASSEMBLERS=""
5122 for target_to_build in $TARGETS_TO_BUILD; do
5123   LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
5124   if test -f ${srcdir}/lib/Target/${target_to_build}/*AsmPrinter.cpp ; then
5125     LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5126   fi
5127   if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5128     LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5129   fi
5130   if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
5131     LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
5132   fi
5133 done
5134
5135
5136
5137
5138
5139 # Check whether --enable-cbe-printf-a was given.
5140 if test "${enable_cbe_printf_a+set}" = set; then
5141   enableval=$enable_cbe_printf_a;
5142 else
5143   enableval=default
5144 fi
5145
5146 case "$enableval" in
5147   yes) ENABLE_CBE_PRINTF_A=1
5148  ;;
5149   no)  ENABLE_CBE_PRINTF_A=0
5150  ;;
5151   default)  ENABLE_CBE_PRINTF_A=1
5152  ;;
5153   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5
5154 echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;}
5155    { (exit 1); exit 1; }; } ;;
5156 esac
5157
5158 cat >>confdefs.h <<_ACEOF
5159 #define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A
5160 _ACEOF
5161
5162
5163
5164 # Check whether --with-llvmgccdir was given.
5165 if test "${with_llvmgccdir+set}" = set; then
5166   withval=$with_llvmgccdir;
5167 else
5168   withval=default
5169 fi
5170
5171 case "$withval" in
5172   default) WITH_LLVMGCCDIR=default ;;
5173   /* | [A-Za-z]:[\\/]*)      WITH_LLVMGCCDIR=$withval ;;
5174   *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5
5175 echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;}
5176    { (exit 1); exit 1; }; } ;;
5177 esac
5178
5179
5180 # Check whether --with-llvmgcc was given.
5181 if test "${with_llvmgcc+set}" = set; then
5182   withval=$with_llvmgcc; LLVMGCC=$with_llvmgcc
5183       WITH_LLVMGCCDIR=""
5184 fi
5185
5186
5187
5188 # Check whether --with-llvmgxx was given.
5189 if test "${with_llvmgxx+set}" = set; then
5190   withval=$with_llvmgxx; LLVMGXX=$with_llvmgxx
5191     WITH_LLVMGCCDIR=""
5192 fi
5193
5194
5195 if test -n "$LLVMGCC"; then
5196    LLVMGCCCOMMAND="$LLVMGCC"
5197 fi
5198
5199 if test -n "$LLVMGXX"; then
5200    LLVMGXXCOMMAND="$LLVMGXX"
5201 fi
5202
5203 if test -n "$LLVMGCC" && test -z "$LLVMGXX"; then
5204    { { echo "$as_me:$LINENO: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&5
5205 echo "$as_me: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&2;}
5206    { (exit 1); exit 1; }; };
5207 fi
5208
5209 if test -n "$LLVMGXX" && test -z "$LLVMGCC"; then
5210    { { echo "$as_me:$LINENO: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&5
5211 echo "$as_me: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&2;}
5212    { (exit 1); exit 1; }; };
5213 fi
5214
5215
5216 # Check whether --with-clang was given.
5217 if test "${with_clang+set}" = set; then
5218   withval=$with_clang;
5219 else
5220   with_clang=default
5221 fi
5222
5223
5224
5225 # Check whether --with-built-clang was given.
5226 if test "${with_built_clang+set}" = set; then
5227   withval=$with_built_clang;
5228 else
5229   with_built_clang=check
5230 fi
5231
5232
5233 { echo "$as_me:$LINENO: checking clang compiler" >&5
5234 echo $ECHO_N "checking clang compiler... $ECHO_C" >&6; }
5235 WITH_CLANGPATH=""
5236 WITH_BUILT_CLANG=0
5237 if test "$with_clang" != "default"; then
5238    WITH_CLANGPATH="$with_clang"
5239    if ! test -x "$WITH_CLANGPATH"; then
5240      { { echo "$as_me:$LINENO: error: invalid --with-clang, path does not specify an executable" >&5
5241 echo "$as_me: error: invalid --with-clang, path does not specify an executable" >&2;}
5242    { (exit 1); exit 1; }; }
5243    fi
5244 elif test "$with_built_clang" = "yes"; then
5245    WITH_BUILT_CLANG=1
5246 elif test "$with_built_clang" = "no"; then
5247    WITH_BUILT_CLANG=0
5248 else
5249    if test "$with_built_clang" != "check"; then
5250       { { echo "$as_me:$LINENO: error: invalid value for --with-built-clang." >&5
5251 echo "$as_me: error: invalid value for --with-built-clang." >&2;}
5252    { (exit 1); exit 1; }; }
5253    fi
5254
5255    if test -f ${srcdir}/tools/clang/README.txt; then
5256      WITH_BUILT_CLANG=1
5257    fi
5258 fi
5259
5260 if ! test -z "$WITH_CLANGPATH"; then
5261    { echo "$as_me:$LINENO: result: $WITH_CLANGPATH" >&5
5262 echo "${ECHO_T}$WITH_CLANGPATH" >&6; }
5263    WITH_CLANGXXPATH=`"$WITH_CLANGPATH" --print-prog-name=clang++`
5264 elif test "$WITH_BUILT_CLANG" = "1"; then
5265    { echo "$as_me:$LINENO: result: built" >&5
5266 echo "${ECHO_T}built" >&6; }
5267 else
5268    { echo "$as_me:$LINENO: result: none" >&5
5269 echo "${ECHO_T}none" >&6; }
5270 fi
5271 CLANGPATH=$WITH_CLANGPATH
5272
5273 CLANGXXPATH=$WITH_CLANGXXPATH
5274
5275 ENABLE_BUILT_CLANG=$WITH_BUILT_CLANG
5276
5277
5278
5279 # Check whether --with-optimize-option was given.
5280 if test "${with_optimize_option+set}" = set; then
5281   withval=$with_optimize_option;
5282 else
5283   withval=default
5284 fi
5285
5286 { echo "$as_me:$LINENO: checking optimization flags" >&5
5287 echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
5288 case "$withval" in
5289   default)
5290     case "$llvm_cv_os_type" in
5291     FreeBSD) optimize_option=-O2 ;;
5292     MingW) optimize_option=-O2 ;;
5293     *)     optimize_option=-O3 ;;
5294     esac ;;
5295   *) optimize_option="$withval" ;;
5296 esac
5297 OPTIMIZE_OPTION=$optimize_option
5298
5299 { echo "$as_me:$LINENO: result: $optimize_option" >&5
5300 echo "${ECHO_T}$optimize_option" >&6; }
5301
5302
5303 # Check whether --with-extra-options was given.
5304 if test "${with_extra_options+set}" = set; then
5305   withval=$with_extra_options;
5306 else
5307   withval=default
5308 fi
5309
5310 case "$withval" in
5311   default) EXTRA_OPTIONS= ;;
5312   *) EXTRA_OPTIONS=$withval ;;
5313 esac
5314 EXTRA_OPTIONS=$EXTRA_OPTIONS
5315
5316
5317 # Check whether --enable-bindings was given.
5318 if test "${enable_bindings+set}" = set; then
5319   enableval=$enable_bindings;
5320 else
5321   enableval=default
5322 fi
5323
5324 BINDINGS_TO_BUILD=""
5325 case "$enableval" in
5326   yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
5327   all ) BINDINGS_TO_BUILD="ocaml" ;;
5328   none | no) BINDINGS_TO_BUILD="" ;;
5329   *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5330       case "$a_binding" in
5331         ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5332         *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5333 echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5334    { (exit 1); exit 1; }; } ;;
5335       esac
5336   done
5337   ;;
5338 esac
5339
5340
5341 # Check whether --with-ocaml-libdir was given.
5342 if test "${with_ocaml_libdir+set}" = set; then
5343   withval=$with_ocaml_libdir;
5344 else
5345   withval=auto
5346 fi
5347
5348 case "$withval" in
5349   auto) with_ocaml_libdir="$withval" ;;
5350   /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5351   *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5352 echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5353    { (exit 1); exit 1; }; } ;;
5354 esac
5355
5356
5357 # Check whether --with-clang-resource-dir was given.
5358 if test "${with_clang_resource_dir+set}" = set; then
5359   withval=$with_clang_resource_dir;
5360 else
5361   withval=""
5362 fi
5363
5364
5365 cat >>confdefs.h <<_ACEOF
5366 #define CLANG_RESOURCE_DIR "$withval"
5367 _ACEOF
5368
5369
5370
5371 # Check whether --with-c-include-dirs was given.
5372 if test "${with_c_include_dirs+set}" = set; then
5373   withval=$with_c_include_dirs;
5374 else
5375   withval=""
5376 fi
5377
5378
5379 cat >>confdefs.h <<_ACEOF
5380 #define C_INCLUDE_DIRS "$withval"
5381 _ACEOF
5382
5383
5384
5385 # Check whether --with-cxx-include-root was given.
5386 if test "${with_cxx_include_root+set}" = set; then
5387   withval=$with_cxx_include_root;
5388 else
5389   withval=""
5390 fi
5391
5392
5393 cat >>confdefs.h <<_ACEOF
5394 #define CXX_INCLUDE_ROOT "$withval"
5395 _ACEOF
5396
5397
5398
5399 # Check whether --with-cxx-include-arch was given.
5400 if test "${with_cxx_include_arch+set}" = set; then
5401   withval=$with_cxx_include_arch;
5402 else
5403   withval=""
5404 fi
5405
5406
5407 cat >>confdefs.h <<_ACEOF
5408 #define CXX_INCLUDE_ARCH "$withval"
5409 _ACEOF
5410
5411
5412
5413 # Check whether --with-cxx-include-32bit-dir was given.
5414 if test "${with_cxx_include_32bit_dir+set}" = set; then
5415   withval=$with_cxx_include_32bit_dir;
5416 else
5417   withval=""
5418 fi
5419
5420
5421 cat >>confdefs.h <<_ACEOF
5422 #define CXX_INCLUDE_32BIT_DIR "$withval"
5423 _ACEOF
5424
5425
5426
5427 # Check whether --with-cxx-include-64bit-dir was given.
5428 if test "${with_cxx_include_64bit_dir+set}" = set; then
5429   withval=$with_cxx_include_64bit_dir;
5430 else
5431   withval=""
5432 fi
5433
5434
5435 cat >>confdefs.h <<_ACEOF
5436 #define CXX_INCLUDE_64BIT_DIR "$withval"
5437 _ACEOF
5438
5439
5440
5441 # Check whether --with-binutils-include was given.
5442 if test "${with_binutils_include+set}" = set; then
5443   withval=$with_binutils_include;
5444 else
5445   withval=default
5446 fi
5447
5448 case "$withval" in
5449   default) WITH_BINUTILS_INCDIR=default ;;
5450   /* | [A-Za-z]:[\\/]*)      WITH_BINUTILS_INCDIR=$withval ;;
5451   *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5452 echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5453    { (exit 1); exit 1; }; } ;;
5454 esac
5455 if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5456   BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5457
5458   if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5459      echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5460      { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5461 echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5462    { (exit 1); exit 1; }; };
5463   fi
5464 fi
5465
5466 # Check whether --enable-libffi was given.
5467 if test "${enable_libffi+set}" = set; then
5468   enableval=$enable_libffi; case "$enableval" in
5469     yes) llvm_cv_enable_libffi="yes" ;;
5470     no)  llvm_cv_enable_libffi="no"  ;;
5471     *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
5472 echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5473    { (exit 1); exit 1; }; } ;;
5474   esac
5475 else
5476   llvm_cv_enable_libffi=no
5477 fi
5478
5479
5480
5481 ac_ext=c
5482 ac_cpp='$CPP $CPPFLAGS'
5483 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5484 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5485 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5486 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5487 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
5488 # On Suns, sometimes $CPP names a directory.
5489 if test -n "$CPP" && test -d "$CPP"; then
5490   CPP=
5491 fi
5492 if test -z "$CPP"; then
5493   if test "${ac_cv_prog_CPP+set}" = set; then
5494   echo $ECHO_N "(cached) $ECHO_C" >&6
5495 else
5496       # Double quotes because CPP needs to be expanded
5497     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5498     do
5499       ac_preproc_ok=false
5500 for ac_c_preproc_warn_flag in '' yes
5501 do
5502   # Use a header file that comes with gcc, so configuring glibc
5503   # with a fresh cross-compiler works.
5504   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5505   # <limits.h> exists even on freestanding compilers.
5506   # On the NeXT, cc -E runs the code through the compiler's parser,
5507   # not just through cpp. "Syntax error" is here to catch this case.
5508   cat >conftest.$ac_ext <<_ACEOF
5509 /* confdefs.h.  */
5510 _ACEOF
5511 cat confdefs.h >>conftest.$ac_ext
5512 cat >>conftest.$ac_ext <<_ACEOF
5513 /* end confdefs.h.  */
5514 #ifdef __STDC__
5515 # include <limits.h>
5516 #else
5517 # include <assert.h>
5518 #endif
5519                      Syntax error
5520 _ACEOF
5521 if { (ac_try="$ac_cpp conftest.$ac_ext"
5522 case "(($ac_try" in
5523   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5524   *) ac_try_echo=$ac_try;;
5525 esac
5526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5527   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5528   ac_status=$?
5529   grep -v '^ *+' conftest.er1 >conftest.err
5530   rm -f conftest.er1
5531   cat conftest.err >&5
5532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5533   (exit $ac_status); } >/dev/null; then
5534   if test -s conftest.err; then
5535     ac_cpp_err=$ac_c_preproc_warn_flag
5536     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5537   else
5538     ac_cpp_err=
5539   fi
5540 else
5541   ac_cpp_err=yes
5542 fi
5543 if test -z "$ac_cpp_err"; then
5544   :
5545 else
5546   echo "$as_me: failed program was:" >&5
5547 sed 's/^/| /' conftest.$ac_ext >&5
5548
5549   # Broken: fails on valid input.
5550 continue
5551 fi
5552
5553 rm -f conftest.err conftest.$ac_ext
5554
5555   # OK, works on sane cases.  Now check whether nonexistent headers
5556   # can be detected and how.
5557   cat >conftest.$ac_ext <<_ACEOF
5558 /* confdefs.h.  */
5559 _ACEOF
5560 cat confdefs.h >>conftest.$ac_ext
5561 cat >>conftest.$ac_ext <<_ACEOF
5562 /* end confdefs.h.  */
5563 #include <ac_nonexistent.h>
5564 _ACEOF
5565 if { (ac_try="$ac_cpp conftest.$ac_ext"
5566 case "(($ac_try" in
5567   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5568   *) ac_try_echo=$ac_try;;
5569 esac
5570 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5571   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5572   ac_status=$?
5573   grep -v '^ *+' conftest.er1 >conftest.err
5574   rm -f conftest.er1
5575   cat conftest.err >&5
5576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5577   (exit $ac_status); } >/dev/null; then
5578   if test -s conftest.err; then
5579     ac_cpp_err=$ac_c_preproc_warn_flag
5580     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5581   else
5582     ac_cpp_err=
5583   fi
5584 else
5585   ac_cpp_err=yes
5586 fi
5587 if test -z "$ac_cpp_err"; then
5588   # Broken: success on invalid input.
5589 continue
5590 else
5591   echo "$as_me: failed program was:" >&5
5592 sed 's/^/| /' conftest.$ac_ext >&5
5593
5594   # Passes both tests.
5595 ac_preproc_ok=:
5596 break
5597 fi
5598
5599 rm -f conftest.err conftest.$ac_ext
5600
5601 done
5602 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5603 rm -f conftest.err conftest.$ac_ext
5604 if $ac_preproc_ok; then
5605   break
5606 fi
5607
5608     done
5609     ac_cv_prog_CPP=$CPP
5610
5611 fi
5612   CPP=$ac_cv_prog_CPP
5613 else
5614   ac_cv_prog_CPP=$CPP
5615 fi
5616 { echo "$as_me:$LINENO: result: $CPP" >&5
5617 echo "${ECHO_T}$CPP" >&6; }
5618 ac_preproc_ok=false
5619 for ac_c_preproc_warn_flag in '' yes
5620 do
5621   # Use a header file that comes with gcc, so configuring glibc
5622   # with a fresh cross-compiler works.
5623   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5624   # <limits.h> exists even on freestanding compilers.
5625   # On the NeXT, cc -E runs the code through the compiler's parser,
5626   # not just through cpp. "Syntax error" is here to catch this case.
5627   cat >conftest.$ac_ext <<_ACEOF
5628 /* confdefs.h.  */
5629 _ACEOF
5630 cat confdefs.h >>conftest.$ac_ext
5631 cat >>conftest.$ac_ext <<_ACEOF
5632 /* end confdefs.h.  */
5633 #ifdef __STDC__
5634 # include <limits.h>
5635 #else
5636 # include <assert.h>
5637 #endif
5638                      Syntax error
5639 _ACEOF
5640 if { (ac_try="$ac_cpp conftest.$ac_ext"
5641 case "(($ac_try" in
5642   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5643   *) ac_try_echo=$ac_try;;
5644 esac
5645 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5646   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5647   ac_status=$?
5648   grep -v '^ *+' conftest.er1 >conftest.err
5649   rm -f conftest.er1
5650   cat conftest.err >&5
5651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5652   (exit $ac_status); } >/dev/null; then
5653   if test -s conftest.err; then
5654     ac_cpp_err=$ac_c_preproc_warn_flag
5655     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5656   else
5657     ac_cpp_err=
5658   fi
5659 else
5660   ac_cpp_err=yes
5661 fi
5662 if test -z "$ac_cpp_err"; then
5663   :
5664 else
5665   echo "$as_me: failed program was:" >&5
5666 sed 's/^/| /' conftest.$ac_ext >&5
5667
5668   # Broken: fails on valid input.
5669 continue
5670 fi
5671
5672 rm -f conftest.err conftest.$ac_ext
5673
5674   # OK, works on sane cases.  Now check whether nonexistent headers
5675   # can be detected and how.
5676   cat >conftest.$ac_ext <<_ACEOF
5677 /* confdefs.h.  */
5678 _ACEOF
5679 cat confdefs.h >>conftest.$ac_ext
5680 cat >>conftest.$ac_ext <<_ACEOF
5681 /* end confdefs.h.  */
5682 #include <ac_nonexistent.h>
5683 _ACEOF
5684 if { (ac_try="$ac_cpp conftest.$ac_ext"
5685 case "(($ac_try" in
5686   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5687   *) ac_try_echo=$ac_try;;
5688 esac
5689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5690   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5691   ac_status=$?
5692   grep -v '^ *+' conftest.er1 >conftest.err
5693   rm -f conftest.er1
5694   cat conftest.err >&5
5695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5696   (exit $ac_status); } >/dev/null; then
5697   if test -s conftest.err; then
5698     ac_cpp_err=$ac_c_preproc_warn_flag
5699     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5700   else
5701     ac_cpp_err=
5702   fi
5703 else
5704   ac_cpp_err=yes
5705 fi
5706 if test -z "$ac_cpp_err"; then
5707   # Broken: success on invalid input.
5708 continue
5709 else
5710   echo "$as_me: failed program was:" >&5
5711 sed 's/^/| /' conftest.$ac_ext >&5
5712
5713   # Passes both tests.
5714 ac_preproc_ok=:
5715 break
5716 fi
5717
5718 rm -f conftest.err conftest.$ac_ext
5719
5720 done
5721 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5722 rm -f conftest.err conftest.$ac_ext
5723 if $ac_preproc_ok; then
5724   :
5725 else
5726   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5727 See \`config.log' for more details." >&5
5728 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5729 See \`config.log' for more details." >&2;}
5730    { (exit 1); exit 1; }; }
5731 fi
5732
5733 ac_ext=c
5734 ac_cpp='$CPP $CPPFLAGS'
5735 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5736 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5737 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5738
5739 ac_ext=c
5740 ac_cpp='$CPP $CPPFLAGS'
5741 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5742 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5743 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5744 if test -n "$ac_tool_prefix"; then
5745   for ac_prog in gcc
5746   do
5747     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5748 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5749 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5750 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5751 if test "${ac_cv_prog_CC+set}" = set; then
5752   echo $ECHO_N "(cached) $ECHO_C" >&6
5753 else
5754   if test -n "$CC"; then
5755   ac_cv_prog_CC="$CC" # Let the user override the test.
5756 else
5757 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5758 for as_dir in $PATH
5759 do
5760   IFS=$as_save_IFS
5761   test -z "$as_dir" && as_dir=.
5762   for ac_exec_ext in '' $ac_executable_extensions; do
5763   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5764     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5765     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5766     break 2
5767   fi
5768 done
5769 done
5770 IFS=$as_save_IFS
5771
5772 fi
5773 fi
5774 CC=$ac_cv_prog_CC
5775 if test -n "$CC"; then
5776   { echo "$as_me:$LINENO: result: $CC" >&5
5777 echo "${ECHO_T}$CC" >&6; }
5778 else
5779   { echo "$as_me:$LINENO: result: no" >&5
5780 echo "${ECHO_T}no" >&6; }
5781 fi
5782
5783
5784     test -n "$CC" && break
5785   done
5786 fi
5787 if test -z "$CC"; then
5788   ac_ct_CC=$CC
5789   for ac_prog in gcc
5790 do
5791   # Extract the first word of "$ac_prog", so it can be a program name with args.
5792 set dummy $ac_prog; ac_word=$2
5793 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5794 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5795 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5796   echo $ECHO_N "(cached) $ECHO_C" >&6
5797 else
5798   if test -n "$ac_ct_CC"; then
5799   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5800 else
5801 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5802 for as_dir in $PATH
5803 do
5804   IFS=$as_save_IFS
5805   test -z "$as_dir" && as_dir=.
5806   for ac_exec_ext in '' $ac_executable_extensions; do
5807   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5808     ac_cv_prog_ac_ct_CC="$ac_prog"
5809     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5810     break 2
5811   fi
5812 done
5813 done
5814 IFS=$as_save_IFS
5815
5816 fi
5817 fi
5818 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5819 if test -n "$ac_ct_CC"; then
5820   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5821 echo "${ECHO_T}$ac_ct_CC" >&6; }
5822 else
5823   { echo "$as_me:$LINENO: result: no" >&5
5824 echo "${ECHO_T}no" >&6; }
5825 fi
5826
5827
5828   test -n "$ac_ct_CC" && break
5829 done
5830
5831   if test "x$ac_ct_CC" = x; then
5832     CC=""
5833   else
5834     case $cross_compiling:$ac_tool_warned in
5835 yes:)
5836 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5837 whose name does not start with the host triplet.  If you think this
5838 configuration is useful to you, please write to autoconf@gnu.org." >&5
5839 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5840 whose name does not start with the host triplet.  If you think this
5841 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5842 ac_tool_warned=yes ;;
5843 esac
5844     CC=$ac_ct_CC
5845   fi
5846 fi
5847
5848
5849 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5850 See \`config.log' for more details." >&5
5851 echo "$as_me: error: no acceptable C compiler found in \$PATH
5852 See \`config.log' for more details." >&2;}
5853    { (exit 1); exit 1; }; }
5854
5855 # Provide some information about the compiler.
5856 echo "$as_me:$LINENO: checking for C compiler version" >&5
5857 ac_compiler=`set X $ac_compile; echo $2`
5858 { (ac_try="$ac_compiler --version >&5"
5859 case "(($ac_try" in
5860   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5861   *) ac_try_echo=$ac_try;;
5862 esac
5863 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5864   (eval "$ac_compiler --version >&5") 2>&5
5865   ac_status=$?
5866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5867   (exit $ac_status); }
5868 { (ac_try="$ac_compiler -v >&5"
5869 case "(($ac_try" in
5870   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5871   *) ac_try_echo=$ac_try;;
5872 esac
5873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5874   (eval "$ac_compiler -v >&5") 2>&5
5875   ac_status=$?
5876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5877   (exit $ac_status); }
5878 { (ac_try="$ac_compiler -V >&5"
5879 case "(($ac_try" in
5880   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5881   *) ac_try_echo=$ac_try;;
5882 esac
5883 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5884   (eval "$ac_compiler -V >&5") 2>&5
5885   ac_status=$?
5886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5887   (exit $ac_status); }
5888
5889 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5890 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
5891 if test "${ac_cv_c_compiler_gnu+set}" = set; then
5892   echo $ECHO_N "(cached) $ECHO_C" >&6
5893 else
5894   cat >conftest.$ac_ext <<_ACEOF
5895 /* confdefs.h.  */
5896 _ACEOF
5897 cat confdefs.h >>conftest.$ac_ext
5898 cat >>conftest.$ac_ext <<_ACEOF
5899 /* end confdefs.h.  */
5900
5901 int
5902 main ()
5903 {
5904 #ifndef __GNUC__
5905        choke me
5906 #endif
5907
5908   ;
5909   return 0;
5910 }
5911 _ACEOF
5912 rm -f conftest.$ac_objext
5913 if { (ac_try="$ac_compile"
5914 case "(($ac_try" in
5915   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5916   *) ac_try_echo=$ac_try;;
5917 esac
5918 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5919   (eval "$ac_compile") 2>conftest.er1
5920   ac_status=$?
5921   grep -v '^ *+' conftest.er1 >conftest.err
5922   rm -f conftest.er1
5923   cat conftest.err >&5
5924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5925   (exit $ac_status); } &&
5926          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5927   { (case "(($ac_try" in
5928   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5929   *) ac_try_echo=$ac_try;;
5930 esac
5931 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5932   (eval "$ac_try") 2>&5
5933   ac_status=$?
5934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5935   (exit $ac_status); }; } &&
5936          { ac_try='test -s conftest.$ac_objext'
5937   { (case "(($ac_try" in
5938   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5939   *) ac_try_echo=$ac_try;;
5940 esac
5941 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5942   (eval "$ac_try") 2>&5
5943   ac_status=$?
5944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5945   (exit $ac_status); }; }; then
5946   ac_compiler_gnu=yes
5947 else
5948   echo "$as_me: failed program was:" >&5
5949 sed 's/^/| /' conftest.$ac_ext >&5
5950
5951         ac_compiler_gnu=no
5952 fi
5953
5954 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5955 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5956
5957 fi
5958 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5959 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
5960 GCC=`test $ac_compiler_gnu = yes && echo yes`
5961 ac_test_CFLAGS=${CFLAGS+set}
5962 ac_save_CFLAGS=$CFLAGS
5963 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5964 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
5965 if test "${ac_cv_prog_cc_g+set}" = set; then
5966   echo $ECHO_N "(cached) $ECHO_C" >&6
5967 else
5968   ac_save_c_werror_flag=$ac_c_werror_flag
5969    ac_c_werror_flag=yes
5970    ac_cv_prog_cc_g=no
5971    CFLAGS="-g"
5972    cat >conftest.$ac_ext <<_ACEOF
5973 /* confdefs.h.  */
5974 _ACEOF
5975 cat confdefs.h >>conftest.$ac_ext
5976 cat >>conftest.$ac_ext <<_ACEOF
5977 /* end confdefs.h.  */
5978
5979 int
5980 main ()
5981 {
5982
5983   ;
5984   return 0;
5985 }
5986 _ACEOF
5987 rm -f conftest.$ac_objext
5988 if { (ac_try="$ac_compile"
5989 case "(($ac_try" in
5990   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5991   *) ac_try_echo=$ac_try;;
5992 esac
5993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5994   (eval "$ac_compile") 2>conftest.er1
5995   ac_status=$?
5996   grep -v '^ *+' conftest.er1 >conftest.err
5997   rm -f conftest.er1
5998   cat conftest.err >&5
5999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6000   (exit $ac_status); } &&
6001          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6002   { (case "(($ac_try" in
6003   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6004   *) ac_try_echo=$ac_try;;
6005 esac
6006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6007   (eval "$ac_try") 2>&5
6008   ac_status=$?
6009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6010   (exit $ac_status); }; } &&
6011          { ac_try='test -s conftest.$ac_objext'
6012   { (case "(($ac_try" in
6013   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6014   *) ac_try_echo=$ac_try;;
6015 esac
6016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6017   (eval "$ac_try") 2>&5
6018   ac_status=$?
6019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6020   (exit $ac_status); }; }; then
6021   ac_cv_prog_cc_g=yes
6022 else
6023   echo "$as_me: failed program was:" >&5
6024 sed 's/^/| /' conftest.$ac_ext >&5
6025
6026         CFLAGS=""
6027       cat >conftest.$ac_ext <<_ACEOF
6028 /* confdefs.h.  */
6029 _ACEOF
6030 cat confdefs.h >>conftest.$ac_ext
6031 cat >>conftest.$ac_ext <<_ACEOF
6032 /* end confdefs.h.  */
6033
6034 int
6035 main ()
6036 {
6037
6038   ;
6039   return 0;
6040 }
6041 _ACEOF
6042 rm -f conftest.$ac_objext
6043 if { (ac_try="$ac_compile"
6044 case "(($ac_try" in
6045   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6046   *) ac_try_echo=$ac_try;;
6047 esac
6048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6049   (eval "$ac_compile") 2>conftest.er1
6050   ac_status=$?
6051   grep -v '^ *+' conftest.er1 >conftest.err
6052   rm -f conftest.er1
6053   cat conftest.err >&5
6054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6055   (exit $ac_status); } &&
6056          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6057   { (case "(($ac_try" in
6058   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6059   *) ac_try_echo=$ac_try;;
6060 esac
6061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6062   (eval "$ac_try") 2>&5
6063   ac_status=$?
6064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6065   (exit $ac_status); }; } &&
6066          { ac_try='test -s conftest.$ac_objext'
6067   { (case "(($ac_try" in
6068   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6069   *) ac_try_echo=$ac_try;;
6070 esac
6071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6072   (eval "$ac_try") 2>&5
6073   ac_status=$?
6074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6075   (exit $ac_status); }; }; then
6076   :
6077 else
6078   echo "$as_me: failed program was:" >&5
6079 sed 's/^/| /' conftest.$ac_ext >&5
6080
6081         ac_c_werror_flag=$ac_save_c_werror_flag
6082          CFLAGS="-g"
6083          cat >conftest.$ac_ext <<_ACEOF
6084 /* confdefs.h.  */
6085 _ACEOF
6086 cat confdefs.h >>conftest.$ac_ext
6087 cat >>conftest.$ac_ext <<_ACEOF
6088 /* end confdefs.h.  */
6089
6090 int
6091 main ()
6092 {
6093
6094   ;
6095   return 0;
6096 }
6097 _ACEOF
6098 rm -f conftest.$ac_objext
6099 if { (ac_try="$ac_compile"
6100 case "(($ac_try" in
6101   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6102   *) ac_try_echo=$ac_try;;
6103 esac
6104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6105   (eval "$ac_compile") 2>conftest.er1
6106   ac_status=$?
6107   grep -v '^ *+' conftest.er1 >conftest.err
6108   rm -f conftest.er1
6109   cat conftest.err >&5
6110   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6111   (exit $ac_status); } &&
6112          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6113   { (case "(($ac_try" in
6114   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6115   *) ac_try_echo=$ac_try;;
6116 esac
6117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6118   (eval "$ac_try") 2>&5
6119   ac_status=$?
6120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6121   (exit $ac_status); }; } &&
6122          { ac_try='test -s conftest.$ac_objext'
6123   { (case "(($ac_try" in
6124   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6125   *) ac_try_echo=$ac_try;;
6126 esac
6127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6128   (eval "$ac_try") 2>&5
6129   ac_status=$?
6130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6131   (exit $ac_status); }; }; then
6132   ac_cv_prog_cc_g=yes
6133 else
6134   echo "$as_me: failed program was:" >&5
6135 sed 's/^/| /' conftest.$ac_ext >&5
6136
6137
6138 fi
6139
6140 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6141 fi
6142
6143 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6144 fi
6145
6146 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6147    ac_c_werror_flag=$ac_save_c_werror_flag
6148 fi
6149 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
6150 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
6151 if test "$ac_test_CFLAGS" = set; then
6152   CFLAGS=$ac_save_CFLAGS
6153 elif test $ac_cv_prog_cc_g = yes; then
6154   if test "$GCC" = yes; then
6155     CFLAGS="-g -O2"
6156   else
6157     CFLAGS="-g"
6158   fi
6159 else
6160   if test "$GCC" = yes; then
6161     CFLAGS="-O2"
6162   else
6163     CFLAGS=
6164   fi
6165 fi
6166 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
6167 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
6168 if test "${ac_cv_prog_cc_c89+set}" = set; then
6169   echo $ECHO_N "(cached) $ECHO_C" >&6
6170 else
6171   ac_cv_prog_cc_c89=no
6172 ac_save_CC=$CC
6173 cat >conftest.$ac_ext <<_ACEOF
6174 /* confdefs.h.  */
6175 _ACEOF
6176 cat confdefs.h >>conftest.$ac_ext
6177 cat >>conftest.$ac_ext <<_ACEOF
6178 /* end confdefs.h.  */
6179 #include <stdarg.h>
6180 #include <stdio.h>
6181 #include <sys/types.h>
6182 #include <sys/stat.h>
6183 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
6184 struct buf { int x; };
6185 FILE * (*rcsopen) (struct buf *, struct stat *, int);
6186 static char *e (p, i)
6187      char **p;
6188      int i;
6189 {
6190   return p[i];
6191 }
6192 static char *f (char * (*g) (char **, int), char **p, ...)
6193 {
6194   char *s;
6195   va_list v;
6196   va_start (v,p);
6197   s = g (p, va_arg (v,int));
6198   va_end (v);
6199   return s;
6200 }
6201
6202 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
6203    function prototypes and stuff, but not '\xHH' hex character constants.
6204    These don't provoke an error unfortunately, instead are silently treated
6205    as 'x'.  The following induces an error, until -std is added to get
6206    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
6207    array size at least.  It's necessary to write '\x00'==0 to get something
6208    that's true only with -std.  */
6209 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6210
6211 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6212    inside strings and character constants.  */
6213 #define FOO(x) 'x'
6214 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6215
6216 int test (int i, double x);
6217 struct s1 {int (*f) (int a);};
6218 struct s2 {int (*f) (double a);};
6219 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6220 int argc;
6221 char **argv;
6222 int
6223 main ()
6224 {
6225 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
6226   ;
6227   return 0;
6228 }
6229 _ACEOF
6230 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6231         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6232 do
6233   CC="$ac_save_CC $ac_arg"
6234   rm -f conftest.$ac_objext
6235 if { (ac_try="$ac_compile"
6236 case "(($ac_try" in
6237   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6238   *) ac_try_echo=$ac_try;;
6239 esac
6240 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6241   (eval "$ac_compile") 2>conftest.er1
6242   ac_status=$?
6243   grep -v '^ *+' conftest.er1 >conftest.err
6244   rm -f conftest.er1
6245   cat conftest.err >&5
6246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6247   (exit $ac_status); } &&
6248          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6249   { (case "(($ac_try" in
6250   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6251   *) ac_try_echo=$ac_try;;
6252 esac
6253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6254   (eval "$ac_try") 2>&5
6255   ac_status=$?
6256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6257   (exit $ac_status); }; } &&
6258          { ac_try='test -s conftest.$ac_objext'
6259   { (case "(($ac_try" in
6260   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6261   *) ac_try_echo=$ac_try;;
6262 esac
6263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6264   (eval "$ac_try") 2>&5
6265   ac_status=$?
6266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6267   (exit $ac_status); }; }; then
6268   ac_cv_prog_cc_c89=$ac_arg
6269 else
6270   echo "$as_me: failed program was:" >&5
6271 sed 's/^/| /' conftest.$ac_ext >&5
6272
6273
6274 fi
6275
6276 rm -f core conftest.err conftest.$ac_objext
6277   test "x$ac_cv_prog_cc_c89" != "xno" && break
6278 done
6279 rm -f conftest.$ac_ext
6280 CC=$ac_save_CC
6281
6282 fi
6283 # AC_CACHE_VAL
6284 case "x$ac_cv_prog_cc_c89" in
6285   x)
6286     { echo "$as_me:$LINENO: result: none needed" >&5
6287 echo "${ECHO_T}none needed" >&6; } ;;
6288   xno)
6289     { echo "$as_me:$LINENO: result: unsupported" >&5
6290 echo "${ECHO_T}unsupported" >&6; } ;;
6291   *)
6292     CC="$CC $ac_cv_prog_cc_c89"
6293     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
6294 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
6295 esac
6296
6297
6298 ac_ext=c
6299 ac_cpp='$CPP $CPPFLAGS'
6300 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6301 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6302 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6303
6304 ac_ext=cpp
6305 ac_cpp='$CXXCPP $CPPFLAGS'
6306 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6307 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6308 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6309 if test -z "$CXX"; then
6310   if test -n "$CCC"; then
6311     CXX=$CCC
6312   else
6313     if test -n "$ac_tool_prefix"; then
6314   for ac_prog in g++
6315   do
6316     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6317 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6318 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6319 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6320 if test "${ac_cv_prog_CXX+set}" = set; then
6321   echo $ECHO_N "(cached) $ECHO_C" >&6
6322 else
6323   if test -n "$CXX"; then
6324   ac_cv_prog_CXX="$CXX" # Let the user override the test.
6325 else
6326 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6327 for as_dir in $PATH
6328 do
6329   IFS=$as_save_IFS
6330   test -z "$as_dir" && as_dir=.
6331   for ac_exec_ext in '' $ac_executable_extensions; do
6332   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6333     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6334     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6335     break 2
6336   fi
6337 done
6338 done
6339 IFS=$as_save_IFS
6340
6341 fi
6342 fi
6343 CXX=$ac_cv_prog_CXX
6344 if test -n "$CXX"; then
6345   { echo "$as_me:$LINENO: result: $CXX" >&5
6346 echo "${ECHO_T}$CXX" >&6; }
6347 else
6348   { echo "$as_me:$LINENO: result: no" >&5
6349 echo "${ECHO_T}no" >&6; }
6350 fi
6351
6352
6353     test -n "$CXX" && break
6354   done
6355 fi
6356 if test -z "$CXX"; then
6357   ac_ct_CXX=$CXX
6358   for ac_prog in g++
6359 do
6360   # Extract the first word of "$ac_prog", so it can be a program name with args.
6361 set dummy $ac_prog; ac_word=$2
6362 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6363 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6364 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
6365   echo $ECHO_N "(cached) $ECHO_C" >&6
6366 else
6367   if test -n "$ac_ct_CXX"; then
6368   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6369 else
6370 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6371 for as_dir in $PATH
6372 do
6373   IFS=$as_save_IFS
6374   test -z "$as_dir" && as_dir=.
6375   for ac_exec_ext in '' $ac_executable_extensions; do
6376   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6377     ac_cv_prog_ac_ct_CXX="$ac_prog"
6378     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6379     break 2
6380   fi
6381 done
6382 done
6383 IFS=$as_save_IFS
6384
6385 fi
6386 fi
6387 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6388 if test -n "$ac_ct_CXX"; then
6389   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
6390 echo "${ECHO_T}$ac_ct_CXX" >&6; }
6391 else
6392   { echo "$as_me:$LINENO: result: no" >&5
6393 echo "${ECHO_T}no" >&6; }
6394 fi
6395
6396
6397   test -n "$ac_ct_CXX" && break
6398 done
6399
6400   if test "x$ac_ct_CXX" = x; then
6401     CXX="g++"
6402   else
6403     case $cross_compiling:$ac_tool_warned in
6404 yes:)
6405 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6406 whose name does not start with the host triplet.  If you think this
6407 configuration is useful to you, please write to autoconf@gnu.org." >&5
6408 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6409 whose name does not start with the host triplet.  If you think this
6410 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6411 ac_tool_warned=yes ;;
6412 esac
6413     CXX=$ac_ct_CXX
6414   fi
6415 fi
6416
6417   fi
6418 fi
6419 # Provide some information about the compiler.
6420 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
6421 ac_compiler=`set X $ac_compile; echo $2`
6422 { (ac_try="$ac_compiler --version >&5"
6423 case "(($ac_try" in
6424   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6425   *) ac_try_echo=$ac_try;;
6426 esac
6427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6428   (eval "$ac_compiler --version >&5") 2>&5
6429   ac_status=$?
6430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6431   (exit $ac_status); }
6432 { (ac_try="$ac_compiler -v >&5"
6433 case "(($ac_try" in
6434   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6435   *) ac_try_echo=$ac_try;;
6436 esac
6437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6438   (eval "$ac_compiler -v >&5") 2>&5
6439   ac_status=$?
6440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6441   (exit $ac_status); }
6442 { (ac_try="$ac_compiler -V >&5"
6443 case "(($ac_try" in
6444   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6445   *) ac_try_echo=$ac_try;;
6446 esac
6447 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6448   (eval "$ac_compiler -V >&5") 2>&5
6449   ac_status=$?
6450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6451   (exit $ac_status); }
6452
6453 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
6454 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
6455 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
6456   echo $ECHO_N "(cached) $ECHO_C" >&6
6457 else
6458   cat >conftest.$ac_ext <<_ACEOF
6459 /* confdefs.h.  */
6460 _ACEOF
6461 cat confdefs.h >>conftest.$ac_ext
6462 cat >>conftest.$ac_ext <<_ACEOF
6463 /* end confdefs.h.  */
6464
6465 int
6466 main ()
6467 {
6468 #ifndef __GNUC__
6469        choke me
6470 #endif
6471
6472   ;
6473   return 0;
6474 }
6475 _ACEOF
6476 rm -f conftest.$ac_objext
6477 if { (ac_try="$ac_compile"
6478 case "(($ac_try" in
6479   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6480   *) ac_try_echo=$ac_try;;
6481 esac
6482 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6483   (eval "$ac_compile") 2>conftest.er1
6484   ac_status=$?
6485   grep -v '^ *+' conftest.er1 >conftest.err
6486   rm -f conftest.er1
6487   cat conftest.err >&5
6488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6489   (exit $ac_status); } &&
6490          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6491   { (case "(($ac_try" in
6492   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6493   *) ac_try_echo=$ac_try;;
6494 esac
6495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6496   (eval "$ac_try") 2>&5
6497   ac_status=$?
6498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6499   (exit $ac_status); }; } &&
6500          { ac_try='test -s conftest.$ac_objext'
6501   { (case "(($ac_try" in
6502   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6503   *) ac_try_echo=$ac_try;;
6504 esac
6505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6506   (eval "$ac_try") 2>&5
6507   ac_status=$?
6508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6509   (exit $ac_status); }; }; then
6510   ac_compiler_gnu=yes
6511 else
6512   echo "$as_me: failed program was:" >&5
6513 sed 's/^/| /' conftest.$ac_ext >&5
6514
6515         ac_compiler_gnu=no
6516 fi
6517
6518 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6519 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6520
6521 fi
6522 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
6523 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
6524 GXX=`test $ac_compiler_gnu = yes && echo yes`
6525 ac_test_CXXFLAGS=${CXXFLAGS+set}
6526 ac_save_CXXFLAGS=$CXXFLAGS
6527 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
6528 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
6529 if test "${ac_cv_prog_cxx_g+set}" = set; then
6530   echo $ECHO_N "(cached) $ECHO_C" >&6
6531 else
6532   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6533    ac_cxx_werror_flag=yes
6534    ac_cv_prog_cxx_g=no
6535    CXXFLAGS="-g"
6536    cat >conftest.$ac_ext <<_ACEOF
6537 /* confdefs.h.  */
6538 _ACEOF
6539 cat confdefs.h >>conftest.$ac_ext
6540 cat >>conftest.$ac_ext <<_ACEOF
6541 /* end confdefs.h.  */
6542
6543 int
6544 main ()
6545 {
6546
6547   ;
6548   return 0;
6549 }
6550 _ACEOF
6551 rm -f conftest.$ac_objext
6552 if { (ac_try="$ac_compile"
6553 case "(($ac_try" in
6554   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6555   *) ac_try_echo=$ac_try;;
6556 esac
6557 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6558   (eval "$ac_compile") 2>conftest.er1
6559   ac_status=$?
6560   grep -v '^ *+' conftest.er1 >conftest.err
6561   rm -f conftest.er1
6562   cat conftest.err >&5
6563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6564   (exit $ac_status); } &&
6565          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6566   { (case "(($ac_try" in
6567   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6568   *) ac_try_echo=$ac_try;;
6569 esac
6570 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6571   (eval "$ac_try") 2>&5
6572   ac_status=$?
6573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6574   (exit $ac_status); }; } &&
6575          { ac_try='test -s conftest.$ac_objext'
6576   { (case "(($ac_try" in
6577   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6578   *) ac_try_echo=$ac_try;;
6579 esac
6580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6581   (eval "$ac_try") 2>&5
6582   ac_status=$?
6583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6584   (exit $ac_status); }; }; then
6585   ac_cv_prog_cxx_g=yes
6586 else
6587   echo "$as_me: failed program was:" >&5
6588 sed 's/^/| /' conftest.$ac_ext >&5
6589
6590         CXXFLAGS=""
6591       cat >conftest.$ac_ext <<_ACEOF
6592 /* confdefs.h.  */
6593 _ACEOF
6594 cat confdefs.h >>conftest.$ac_ext
6595 cat >>conftest.$ac_ext <<_ACEOF
6596 /* end confdefs.h.  */
6597
6598 int
6599 main ()
6600 {
6601
6602   ;
6603   return 0;
6604 }
6605 _ACEOF
6606 rm -f conftest.$ac_objext
6607 if { (ac_try="$ac_compile"
6608 case "(($ac_try" in
6609   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6610   *) ac_try_echo=$ac_try;;
6611 esac
6612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6613   (eval "$ac_compile") 2>conftest.er1
6614   ac_status=$?
6615   grep -v '^ *+' conftest.er1 >conftest.err
6616   rm -f conftest.er1
6617   cat conftest.err >&5
6618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6619   (exit $ac_status); } &&
6620          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6621   { (case "(($ac_try" in
6622   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6623   *) ac_try_echo=$ac_try;;
6624 esac
6625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6626   (eval "$ac_try") 2>&5
6627   ac_status=$?
6628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6629   (exit $ac_status); }; } &&
6630          { ac_try='test -s conftest.$ac_objext'
6631   { (case "(($ac_try" in
6632   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6633   *) ac_try_echo=$ac_try;;
6634 esac
6635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6636   (eval "$ac_try") 2>&5
6637   ac_status=$?
6638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6639   (exit $ac_status); }; }; then
6640   :
6641 else
6642   echo "$as_me: failed program was:" >&5
6643 sed 's/^/| /' conftest.$ac_ext >&5
6644
6645         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6646          CXXFLAGS="-g"
6647          cat >conftest.$ac_ext <<_ACEOF
6648 /* confdefs.h.  */
6649 _ACEOF
6650 cat confdefs.h >>conftest.$ac_ext
6651 cat >>conftest.$ac_ext <<_ACEOF
6652 /* end confdefs.h.  */
6653
6654 int
6655 main ()
6656 {
6657
6658   ;
6659   return 0;
6660 }
6661 _ACEOF
6662 rm -f conftest.$ac_objext
6663 if { (ac_try="$ac_compile"
6664 case "(($ac_try" in
6665   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6666   *) ac_try_echo=$ac_try;;
6667 esac
6668 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6669   (eval "$ac_compile") 2>conftest.er1
6670   ac_status=$?
6671   grep -v '^ *+' conftest.er1 >conftest.err
6672   rm -f conftest.er1
6673   cat conftest.err >&5
6674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6675   (exit $ac_status); } &&
6676          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6677   { (case "(($ac_try" in
6678   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6679   *) ac_try_echo=$ac_try;;
6680 esac
6681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6682   (eval "$ac_try") 2>&5
6683   ac_status=$?
6684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6685   (exit $ac_status); }; } &&
6686          { ac_try='test -s conftest.$ac_objext'
6687   { (case "(($ac_try" in
6688   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6689   *) ac_try_echo=$ac_try;;
6690 esac
6691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6692   (eval "$ac_try") 2>&5
6693   ac_status=$?
6694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6695   (exit $ac_status); }; }; then
6696   ac_cv_prog_cxx_g=yes
6697 else
6698   echo "$as_me: failed program was:" >&5
6699 sed 's/^/| /' conftest.$ac_ext >&5
6700
6701
6702 fi
6703
6704 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6705 fi
6706
6707 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6708 fi
6709
6710 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6711    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6712 fi
6713 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6714 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
6715 if test "$ac_test_CXXFLAGS" = set; then
6716   CXXFLAGS=$ac_save_CXXFLAGS
6717 elif test $ac_cv_prog_cxx_g = yes; then
6718   if test "$GXX" = yes; then
6719     CXXFLAGS="-g -O2"
6720   else
6721     CXXFLAGS="-g"
6722   fi
6723 else
6724   if test "$GXX" = yes; then
6725     CXXFLAGS="-O2"
6726   else
6727     CXXFLAGS=
6728   fi
6729 fi
6730 ac_ext=c
6731 ac_cpp='$CPP $CPPFLAGS'
6732 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6733 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6734 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6735
6736
6737 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6738 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6739 if test "${lt_cv_path_NM+set}" = set; then
6740   echo $ECHO_N "(cached) $ECHO_C" >&6
6741 else
6742   if test -n "$NM"; then
6743   # Let the user override the test.
6744   lt_cv_path_NM="$NM"
6745 else
6746   lt_nm_to_check="${ac_tool_prefix}nm"
6747   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6748     lt_nm_to_check="$lt_nm_to_check nm"
6749   fi
6750   for lt_tmp_nm in $lt_nm_to_check; do
6751     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6752     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6753       IFS="$lt_save_ifs"
6754       test -z "$ac_dir" && ac_dir=.
6755       tmp_nm="$ac_dir/$lt_tmp_nm"
6756       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6757         # Check to see if the nm accepts a BSD-compat flag.
6758         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6759         #   nm: unknown option "B" ignored
6760         # Tru64's nm complains that /dev/null is an invalid object file
6761         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6762         */dev/null* | *'Invalid file or object type'*)
6763           lt_cv_path_NM="$tmp_nm -B"
6764           break
6765           ;;
6766         *)
6767           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6768           */dev/null*)
6769             lt_cv_path_NM="$tmp_nm -p"
6770             break
6771             ;;
6772           *)
6773             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6774             continue # so that we can try to find one that supports BSD flags
6775             ;;
6776           esac
6777           ;;
6778         esac
6779       fi
6780     done
6781     IFS="$lt_save_ifs"
6782   done
6783   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6784 fi
6785 fi
6786 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6787 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
6788 NM="$lt_cv_path_NM"
6789
6790
6791
6792 { echo "$as_me:$LINENO: checking for GNU make" >&5
6793 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6794 if test "${llvm_cv_gnu_make_command+set}" = set; then
6795   echo $ECHO_N "(cached) $ECHO_C" >&6
6796 else
6797   llvm_cv_gnu_make_command=''
6798  for a in "$MAKE" make gmake gnumake ; do
6799   if test -z "$a" ; then continue ; fi ;
6800   if  ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
6801   then
6802    llvm_cv_gnu_make_command=$a ;
6803    break;
6804   fi
6805  done
6806 fi
6807 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
6808 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
6809  if test "x$llvm_cv_gnu_make_command" != "x"  ; then
6810    ifGNUmake='' ;
6811  else
6812    ifGNUmake='#' ;
6813    { echo "$as_me:$LINENO: result: \"Not found\"" >&5
6814 echo "${ECHO_T}\"Not found\"" >&6; };
6815  fi
6816
6817
6818 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
6819 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6820 LN_S=$as_ln_s
6821 if test "$LN_S" = "ln -s"; then
6822   { echo "$as_me:$LINENO: result: yes" >&5
6823 echo "${ECHO_T}yes" >&6; }
6824 else
6825   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6826 echo "${ECHO_T}no, using $LN_S" >&6; }
6827 fi
6828
6829 # Extract the first word of "cmp", so it can be a program name with args.
6830 set dummy cmp; ac_word=$2
6831 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6832 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6833 if test "${ac_cv_path_CMP+set}" = set; then
6834   echo $ECHO_N "(cached) $ECHO_C" >&6
6835 else
6836   case $CMP in
6837   [\\/]* | ?:[\\/]*)
6838   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
6839   ;;
6840   *)
6841   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6842 for as_dir in $PATH
6843 do
6844   IFS=$as_save_IFS
6845   test -z "$as_dir" && as_dir=.
6846   for ac_exec_ext in '' $ac_executable_extensions; do
6847   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6848     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
6849     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6850     break 2
6851   fi
6852 done
6853 done
6854 IFS=$as_save_IFS
6855
6856   test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
6857   ;;
6858 esac
6859 fi
6860 CMP=$ac_cv_path_CMP
6861 if test -n "$CMP"; then
6862   { echo "$as_me:$LINENO: result: $CMP" >&5
6863 echo "${ECHO_T}$CMP" >&6; }
6864 else
6865   { echo "$as_me:$LINENO: result: no" >&5
6866 echo "${ECHO_T}no" >&6; }
6867 fi
6868
6869
6870 # Extract the first word of "cp", so it can be a program name with args.
6871 set dummy cp; ac_word=$2
6872 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6873 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6874 if test "${ac_cv_path_CP+set}" = set; then
6875   echo $ECHO_N "(cached) $ECHO_C" >&6
6876 else
6877   case $CP in
6878   [\\/]* | ?:[\\/]*)
6879   ac_cv_path_CP="$CP" # Let the user override the test with a path.
6880   ;;
6881   *)
6882   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6883 for as_dir in $PATH
6884 do
6885   IFS=$as_save_IFS
6886   test -z "$as_dir" && as_dir=.
6887   for ac_exec_ext in '' $ac_executable_extensions; do
6888   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6889     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
6890     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6891     break 2
6892   fi
6893 done
6894 done
6895 IFS=$as_save_IFS
6896
6897   test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
6898   ;;
6899 esac
6900 fi
6901 CP=$ac_cv_path_CP
6902 if test -n "$CP"; then
6903   { echo "$as_me:$LINENO: result: $CP" >&5
6904 echo "${ECHO_T}$CP" >&6; }
6905 else
6906   { echo "$as_me:$LINENO: result: no" >&5
6907 echo "${ECHO_T}no" >&6; }
6908 fi
6909
6910
6911 # Extract the first word of "date", so it can be a program name with args.
6912 set dummy date; ac_word=$2
6913 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6914 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6915 if test "${ac_cv_path_DATE+set}" = set; then
6916   echo $ECHO_N "(cached) $ECHO_C" >&6
6917 else
6918   case $DATE in
6919   [\\/]* | ?:[\\/]*)
6920   ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6921   ;;
6922   *)
6923   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6924 for as_dir in $PATH
6925 do
6926   IFS=$as_save_IFS
6927   test -z "$as_dir" && as_dir=.
6928   for ac_exec_ext in '' $ac_executable_extensions; do
6929   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6930     ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6931     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6932     break 2
6933   fi
6934 done
6935 done
6936 IFS=$as_save_IFS
6937
6938   test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
6939   ;;
6940 esac
6941 fi
6942 DATE=$ac_cv_path_DATE
6943 if test -n "$DATE"; then
6944   { echo "$as_me:$LINENO: result: $DATE" >&5
6945 echo "${ECHO_T}$DATE" >&6; }
6946 else
6947   { echo "$as_me:$LINENO: result: no" >&5
6948 echo "${ECHO_T}no" >&6; }
6949 fi
6950
6951
6952 # Extract the first word of "find", so it can be a program name with args.
6953 set dummy find; ac_word=$2
6954 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6955 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6956 if test "${ac_cv_path_FIND+set}" = set; then
6957   echo $ECHO_N "(cached) $ECHO_C" >&6
6958 else
6959   case $FIND in
6960   [\\/]* | ?:[\\/]*)
6961   ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
6962   ;;
6963   *)
6964   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6965 for as_dir in $PATH
6966 do
6967   IFS=$as_save_IFS
6968   test -z "$as_dir" && as_dir=.
6969   for ac_exec_ext in '' $ac_executable_extensions; do
6970   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6971     ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
6972     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6973     break 2
6974   fi
6975 done
6976 done
6977 IFS=$as_save_IFS
6978
6979   test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
6980   ;;
6981 esac
6982 fi
6983 FIND=$ac_cv_path_FIND
6984 if test -n "$FIND"; then
6985   { echo "$as_me:$LINENO: result: $FIND" >&5
6986 echo "${ECHO_T}$FIND" >&6; }
6987 else
6988   { echo "$as_me:$LINENO: result: no" >&5
6989 echo "${ECHO_T}no" >&6; }
6990 fi
6991
6992
6993 # Extract the first word of "grep", so it can be a program name with args.
6994 set dummy grep; ac_word=$2
6995 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6996 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6997 if test "${ac_cv_path_GREP+set}" = set; then
6998   echo $ECHO_N "(cached) $ECHO_C" >&6
6999 else
7000   case $GREP in
7001   [\\/]* | ?:[\\/]*)
7002   ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
7003   ;;
7004   *)
7005   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7006 for as_dir in $PATH
7007 do
7008   IFS=$as_save_IFS
7009   test -z "$as_dir" && as_dir=.
7010   for ac_exec_ext in '' $ac_executable_extensions; do
7011   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7012     ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
7013     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7014     break 2
7015   fi
7016 done
7017 done
7018 IFS=$as_save_IFS
7019
7020   test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
7021   ;;
7022 esac
7023 fi
7024 GREP=$ac_cv_path_GREP
7025 if test -n "$GREP"; then
7026   { echo "$as_me:$LINENO: result: $GREP" >&5
7027 echo "${ECHO_T}$GREP" >&6; }
7028 else
7029   { echo "$as_me:$LINENO: result: no" >&5
7030 echo "${ECHO_T}no" >&6; }
7031 fi
7032
7033
7034 # Extract the first word of "mkdir", so it can be a program name with args.
7035 set dummy mkdir; ac_word=$2
7036 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7037 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7038 if test "${ac_cv_path_MKDIR+set}" = set; then
7039   echo $ECHO_N "(cached) $ECHO_C" >&6
7040 else
7041   case $MKDIR in
7042   [\\/]* | ?:[\\/]*)
7043   ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
7044   ;;
7045   *)
7046   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7047 for as_dir in $PATH
7048 do
7049   IFS=$as_save_IFS
7050   test -z "$as_dir" && as_dir=.
7051   for ac_exec_ext in '' $ac_executable_extensions; do
7052   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7053     ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
7054     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7055     break 2
7056   fi
7057 done
7058 done
7059 IFS=$as_save_IFS
7060
7061   test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
7062   ;;
7063 esac
7064 fi
7065 MKDIR=$ac_cv_path_MKDIR
7066 if test -n "$MKDIR"; then
7067   { echo "$as_me:$LINENO: result: $MKDIR" >&5
7068 echo "${ECHO_T}$MKDIR" >&6; }
7069 else
7070   { echo "$as_me:$LINENO: result: no" >&5
7071 echo "${ECHO_T}no" >&6; }
7072 fi
7073
7074
7075 # Extract the first word of "mv", so it can be a program name with args.
7076 set dummy mv; ac_word=$2
7077 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7078 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7079 if test "${ac_cv_path_MV+set}" = set; then
7080   echo $ECHO_N "(cached) $ECHO_C" >&6
7081 else
7082   case $MV in
7083   [\\/]* | ?:[\\/]*)
7084   ac_cv_path_MV="$MV" # Let the user override the test with a path.
7085   ;;
7086   *)
7087   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7088 for as_dir in $PATH
7089 do
7090   IFS=$as_save_IFS
7091   test -z "$as_dir" && as_dir=.
7092   for ac_exec_ext in '' $ac_executable_extensions; do
7093   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7094     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
7095     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7096     break 2
7097   fi
7098 done
7099 done
7100 IFS=$as_save_IFS
7101
7102   test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
7103   ;;
7104 esac
7105 fi
7106 MV=$ac_cv_path_MV
7107 if test -n "$MV"; then
7108   { echo "$as_me:$LINENO: result: $MV" >&5
7109 echo "${ECHO_T}$MV" >&6; }
7110 else
7111   { echo "$as_me:$LINENO: result: no" >&5
7112 echo "${ECHO_T}no" >&6; }
7113 fi
7114
7115
7116 if test -n "$ac_tool_prefix"; then
7117   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7118 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7119 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7120 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7121 if test "${ac_cv_prog_RANLIB+set}" = set; then
7122   echo $ECHO_N "(cached) $ECHO_C" >&6
7123 else
7124   if test -n "$RANLIB"; then
7125   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7126 else
7127 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7128 for as_dir in $PATH
7129 do
7130   IFS=$as_save_IFS
7131   test -z "$as_dir" && as_dir=.
7132   for ac_exec_ext in '' $ac_executable_extensions; do
7133   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7134     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7135     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7136     break 2
7137   fi
7138 done
7139 done
7140 IFS=$as_save_IFS
7141
7142 fi
7143 fi
7144 RANLIB=$ac_cv_prog_RANLIB
7145 if test -n "$RANLIB"; then
7146   { echo "$as_me:$LINENO: result: $RANLIB" >&5
7147 echo "${ECHO_T}$RANLIB" >&6; }
7148 else
7149   { echo "$as_me:$LINENO: result: no" >&5
7150 echo "${ECHO_T}no" >&6; }
7151 fi
7152
7153
7154 fi
7155 if test -z "$ac_cv_prog_RANLIB"; then
7156   ac_ct_RANLIB=$RANLIB
7157   # Extract the first word of "ranlib", so it can be a program name with args.
7158 set dummy ranlib; ac_word=$2
7159 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7160 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7161 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7162   echo $ECHO_N "(cached) $ECHO_C" >&6
7163 else
7164   if test -n "$ac_ct_RANLIB"; then
7165   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7166 else
7167 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7168 for as_dir in $PATH
7169 do
7170   IFS=$as_save_IFS
7171   test -z "$as_dir" && as_dir=.
7172   for ac_exec_ext in '' $ac_executable_extensions; do
7173   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7174     ac_cv_prog_ac_ct_RANLIB="ranlib"
7175     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7176     break 2
7177   fi
7178 done
7179 done
7180 IFS=$as_save_IFS
7181
7182 fi
7183 fi
7184 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7185 if test -n "$ac_ct_RANLIB"; then
7186   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7187 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
7188 else
7189   { echo "$as_me:$LINENO: result: no" >&5
7190 echo "${ECHO_T}no" >&6; }
7191 fi
7192
7193   if test "x$ac_ct_RANLIB" = x; then
7194     RANLIB=":"
7195   else
7196     case $cross_compiling:$ac_tool_warned in
7197 yes:)
7198 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7199 whose name does not start with the host triplet.  If you think this
7200 configuration is useful to you, please write to autoconf@gnu.org." >&5
7201 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7202 whose name does not start with the host triplet.  If you think this
7203 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7204 ac_tool_warned=yes ;;
7205 esac
7206     RANLIB=$ac_ct_RANLIB
7207   fi
7208 else
7209   RANLIB="$ac_cv_prog_RANLIB"
7210 fi
7211
7212 if test -n "$ac_tool_prefix"; then
7213   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7214 set dummy ${ac_tool_prefix}ar; ac_word=$2
7215 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7216 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7217 if test "${ac_cv_prog_AR+set}" = set; then
7218   echo $ECHO_N "(cached) $ECHO_C" >&6
7219 else
7220   if test -n "$AR"; then
7221   ac_cv_prog_AR="$AR" # Let the user override the test.
7222 else
7223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7224 for as_dir in $PATH
7225 do
7226   IFS=$as_save_IFS
7227   test -z "$as_dir" && as_dir=.
7228   for ac_exec_ext in '' $ac_executable_extensions; do
7229   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7230     ac_cv_prog_AR="${ac_tool_prefix}ar"
7231     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7232     break 2
7233   fi
7234 done
7235 done
7236 IFS=$as_save_IFS
7237
7238 fi
7239 fi
7240 AR=$ac_cv_prog_AR
7241 if test -n "$AR"; then
7242   { echo "$as_me:$LINENO: result: $AR" >&5
7243 echo "${ECHO_T}$AR" >&6; }
7244 else
7245   { echo "$as_me:$LINENO: result: no" >&5
7246 echo "${ECHO_T}no" >&6; }
7247 fi
7248
7249
7250 fi
7251 if test -z "$ac_cv_prog_AR"; then
7252   ac_ct_AR=$AR
7253   # Extract the first word of "ar", so it can be a program name with args.
7254 set dummy ar; ac_word=$2
7255 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7256 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7257 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7258   echo $ECHO_N "(cached) $ECHO_C" >&6
7259 else
7260   if test -n "$ac_ct_AR"; then
7261   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7262 else
7263 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7264 for as_dir in $PATH
7265 do
7266   IFS=$as_save_IFS
7267   test -z "$as_dir" && as_dir=.
7268   for ac_exec_ext in '' $ac_executable_extensions; do
7269   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7270     ac_cv_prog_ac_ct_AR="ar"
7271     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7272     break 2
7273   fi
7274 done
7275 done
7276 IFS=$as_save_IFS
7277
7278 fi
7279 fi
7280 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7281 if test -n "$ac_ct_AR"; then
7282   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7283 echo "${ECHO_T}$ac_ct_AR" >&6; }
7284 else
7285   { echo "$as_me:$LINENO: result: no" >&5
7286 echo "${ECHO_T}no" >&6; }
7287 fi
7288
7289   if test "x$ac_ct_AR" = x; then
7290     AR="false"
7291   else
7292     case $cross_compiling:$ac_tool_warned in
7293 yes:)
7294 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7295 whose name does not start with the host triplet.  If you think this
7296 configuration is useful to you, please write to autoconf@gnu.org." >&5
7297 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7298 whose name does not start with the host triplet.  If you think this
7299 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7300 ac_tool_warned=yes ;;
7301 esac
7302     AR=$ac_ct_AR
7303   fi
7304 else
7305   AR="$ac_cv_prog_AR"
7306 fi
7307
7308 # Extract the first word of "rm", so it can be a program name with args.
7309 set dummy rm; ac_word=$2
7310 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7311 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7312 if test "${ac_cv_path_RM+set}" = set; then
7313   echo $ECHO_N "(cached) $ECHO_C" >&6
7314 else
7315   case $RM in
7316   [\\/]* | ?:[\\/]*)
7317   ac_cv_path_RM="$RM" # Let the user override the test with a path.
7318   ;;
7319   *)
7320   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7321 for as_dir in $PATH
7322 do
7323   IFS=$as_save_IFS
7324   test -z "$as_dir" && as_dir=.
7325   for ac_exec_ext in '' $ac_executable_extensions; do
7326   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7327     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
7328     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7329     break 2
7330   fi
7331 done
7332 done
7333 IFS=$as_save_IFS
7334
7335   test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
7336   ;;
7337 esac
7338 fi
7339 RM=$ac_cv_path_RM
7340 if test -n "$RM"; then
7341   { echo "$as_me:$LINENO: result: $RM" >&5
7342 echo "${ECHO_T}$RM" >&6; }
7343 else
7344   { echo "$as_me:$LINENO: result: no" >&5
7345 echo "${ECHO_T}no" >&6; }
7346 fi
7347
7348
7349 # Extract the first word of "sed", so it can be a program name with args.
7350 set dummy sed; ac_word=$2
7351 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7352 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7353 if test "${ac_cv_path_SED+set}" = set; then
7354   echo $ECHO_N "(cached) $ECHO_C" >&6
7355 else
7356   case $SED in
7357   [\\/]* | ?:[\\/]*)
7358   ac_cv_path_SED="$SED" # Let the user override the test with a path.
7359   ;;
7360   *)
7361   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7362 for as_dir in $PATH
7363 do
7364   IFS=$as_save_IFS
7365   test -z "$as_dir" && as_dir=.
7366   for ac_exec_ext in '' $ac_executable_extensions; do
7367   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7368     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
7369     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7370     break 2
7371   fi
7372 done
7373 done
7374 IFS=$as_save_IFS
7375
7376   test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
7377   ;;
7378 esac
7379 fi
7380 SED=$ac_cv_path_SED
7381 if test -n "$SED"; then
7382   { echo "$as_me:$LINENO: result: $SED" >&5
7383 echo "${ECHO_T}$SED" >&6; }
7384 else
7385   { echo "$as_me:$LINENO: result: no" >&5
7386 echo "${ECHO_T}no" >&6; }
7387 fi
7388
7389
7390 # Extract the first word of "tar", so it can be a program name with args.
7391 set dummy tar; ac_word=$2
7392 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7393 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7394 if test "${ac_cv_path_TAR+set}" = set; then
7395   echo $ECHO_N "(cached) $ECHO_C" >&6
7396 else
7397   case $TAR in
7398   [\\/]* | ?:[\\/]*)
7399   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
7400   ;;
7401   *)
7402   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7403 for as_dir in $PATH
7404 do
7405   IFS=$as_save_IFS
7406   test -z "$as_dir" && as_dir=.
7407   for ac_exec_ext in '' $ac_executable_extensions; do
7408   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7409     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
7410     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7411     break 2
7412   fi
7413 done
7414 done
7415 IFS=$as_save_IFS
7416
7417   test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
7418   ;;
7419 esac
7420 fi
7421 TAR=$ac_cv_path_TAR
7422 if test -n "$TAR"; then
7423   { echo "$as_me:$LINENO: result: $TAR" >&5
7424 echo "${ECHO_T}$TAR" >&6; }
7425 else
7426   { echo "$as_me:$LINENO: result: no" >&5
7427 echo "${ECHO_T}no" >&6; }
7428 fi
7429
7430
7431 # Extract the first word of "pwd", so it can be a program name with args.
7432 set dummy pwd; ac_word=$2
7433 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7434 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7435 if test "${ac_cv_path_BINPWD+set}" = set; then
7436   echo $ECHO_N "(cached) $ECHO_C" >&6
7437 else
7438   case $BINPWD in
7439   [\\/]* | ?:[\\/]*)
7440   ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
7441   ;;
7442   *)
7443   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7444 for as_dir in $PATH
7445 do
7446   IFS=$as_save_IFS
7447   test -z "$as_dir" && as_dir=.
7448   for ac_exec_ext in '' $ac_executable_extensions; do
7449   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7450     ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
7451     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7452     break 2
7453   fi
7454 done
7455 done
7456 IFS=$as_save_IFS
7457
7458   test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
7459   ;;
7460 esac
7461 fi
7462 BINPWD=$ac_cv_path_BINPWD
7463 if test -n "$BINPWD"; then
7464   { echo "$as_me:$LINENO: result: $BINPWD" >&5
7465 echo "${ECHO_T}$BINPWD" >&6; }
7466 else
7467   { echo "$as_me:$LINENO: result: no" >&5
7468 echo "${ECHO_T}no" >&6; }
7469 fi
7470
7471
7472
7473 # Extract the first word of "Graphviz", so it can be a program name with args.
7474 set dummy Graphviz; ac_word=$2
7475 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7476 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7477 if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
7478   echo $ECHO_N "(cached) $ECHO_C" >&6
7479 else
7480   case $GRAPHVIZ in
7481   [\\/]* | ?:[\\/]*)
7482   ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
7483   ;;
7484   *)
7485   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7486 for as_dir in $PATH
7487 do
7488   IFS=$as_save_IFS
7489   test -z "$as_dir" && as_dir=.
7490   for ac_exec_ext in '' $ac_executable_extensions; do
7491   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7492     ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
7493     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7494     break 2
7495   fi
7496 done
7497 done
7498 IFS=$as_save_IFS
7499
7500   test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
7501   ;;
7502 esac
7503 fi
7504 GRAPHVIZ=$ac_cv_path_GRAPHVIZ
7505 if test -n "$GRAPHVIZ"; then
7506   { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
7507 echo "${ECHO_T}$GRAPHVIZ" >&6; }
7508 else
7509   { echo "$as_me:$LINENO: result: no" >&5
7510 echo "${ECHO_T}no" >&6; }
7511 fi
7512
7513
7514 if test "$GRAPHVIZ" != "echo Graphviz" ; then
7515
7516 cat >>confdefs.h <<\_ACEOF
7517 #define HAVE_GRAPHVIZ 1
7518 _ACEOF
7519
7520     if test "$llvm_cv_os_type" = "MingW" ; then
7521     GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7522   fi
7523
7524 cat >>confdefs.h <<_ACEOF
7525 #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
7526 _ACEOF
7527
7528 fi
7529 # Extract the first word of "dot", so it can be a program name with args.
7530 set dummy dot; ac_word=$2
7531 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7532 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7533 if test "${ac_cv_path_DOT+set}" = set; then
7534   echo $ECHO_N "(cached) $ECHO_C" >&6
7535 else
7536   case $DOT in
7537   [\\/]* | ?:[\\/]*)
7538   ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
7539   ;;
7540   *)
7541   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7542 for as_dir in $PATH
7543 do
7544   IFS=$as_save_IFS
7545   test -z "$as_dir" && as_dir=.
7546   for ac_exec_ext in '' $ac_executable_extensions; do
7547   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7548     ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
7549     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7550     break 2
7551   fi
7552 done
7553 done
7554 IFS=$as_save_IFS
7555
7556   test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
7557   ;;
7558 esac
7559 fi
7560 DOT=$ac_cv_path_DOT
7561 if test -n "$DOT"; then
7562   { echo "$as_me:$LINENO: result: $DOT" >&5
7563 echo "${ECHO_T}$DOT" >&6; }
7564 else
7565   { echo "$as_me:$LINENO: result: no" >&5
7566 echo "${ECHO_T}no" >&6; }
7567 fi
7568
7569
7570 if test "$DOT" != "echo dot" ; then
7571
7572 cat >>confdefs.h <<\_ACEOF
7573 #define HAVE_DOT 1
7574 _ACEOF
7575
7576     if test "$llvm_cv_os_type" = "MingW" ; then
7577     DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7578   fi
7579
7580 cat >>confdefs.h <<_ACEOF
7581 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
7582 _ACEOF
7583
7584 fi
7585 # Extract the first word of "fdp", so it can be a program name with args.
7586 set dummy fdp; ac_word=$2
7587 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7588 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7589 if test "${ac_cv_path_FDP+set}" = set; then
7590   echo $ECHO_N "(cached) $ECHO_C" >&6
7591 else
7592   case $FDP in
7593   [\\/]* | ?:[\\/]*)
7594   ac_cv_path_FDP="$FDP" # Let the user override the test with a path.
7595   ;;
7596   *)
7597   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7598 for as_dir in $PATH
7599 do
7600   IFS=$as_save_IFS
7601   test -z "$as_dir" && as_dir=.
7602   for ac_exec_ext in '' $ac_executable_extensions; do
7603   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7604     ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext"
7605     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7606     break 2
7607   fi
7608 done
7609 done
7610 IFS=$as_save_IFS
7611
7612   test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp"
7613   ;;
7614 esac
7615 fi
7616 FDP=$ac_cv_path_FDP
7617 if test -n "$FDP"; then
7618   { echo "$as_me:$LINENO: result: $FDP" >&5
7619 echo "${ECHO_T}$FDP" >&6; }
7620 else
7621   { echo "$as_me:$LINENO: result: no" >&5
7622 echo "${ECHO_T}no" >&6; }
7623 fi
7624
7625
7626 if test "$FDP" != "echo fdp" ; then
7627
7628 cat >>confdefs.h <<\_ACEOF
7629 #define HAVE_FDP 1
7630 _ACEOF
7631
7632     if test "$llvm_cv_os_type" = "MingW" ; then
7633     FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7634   fi
7635
7636 cat >>confdefs.h <<_ACEOF
7637 #define LLVM_PATH_FDP "$FDP${EXEEXT}"
7638 _ACEOF
7639
7640 fi
7641 # Extract the first word of "neato", so it can be a program name with args.
7642 set dummy neato; ac_word=$2
7643 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7644 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7645 if test "${ac_cv_path_NEATO+set}" = set; then
7646   echo $ECHO_N "(cached) $ECHO_C" >&6
7647 else
7648   case $NEATO in
7649   [\\/]* | ?:[\\/]*)
7650   ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path.
7651   ;;
7652   *)
7653   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7654 for as_dir in $PATH
7655 do
7656   IFS=$as_save_IFS
7657   test -z "$as_dir" && as_dir=.
7658   for ac_exec_ext in '' $ac_executable_extensions; do
7659   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7660     ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext"
7661     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7662     break 2
7663   fi
7664 done
7665 done
7666 IFS=$as_save_IFS
7667
7668   test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato"
7669   ;;
7670 esac
7671 fi
7672 NEATO=$ac_cv_path_NEATO
7673 if test -n "$NEATO"; then
7674   { echo "$as_me:$LINENO: result: $NEATO" >&5
7675 echo "${ECHO_T}$NEATO" >&6; }
7676 else
7677   { echo "$as_me:$LINENO: result: no" >&5
7678 echo "${ECHO_T}no" >&6; }
7679 fi
7680
7681
7682 if test "$NEATO" != "echo neato" ; then
7683
7684 cat >>confdefs.h <<\_ACEOF
7685 #define HAVE_NEATO 1
7686 _ACEOF
7687
7688     if test "$llvm_cv_os_type" = "MingW" ; then
7689     NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7690   fi
7691
7692 cat >>confdefs.h <<_ACEOF
7693 #define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
7694 _ACEOF
7695
7696 fi
7697 # Extract the first word of "twopi", so it can be a program name with args.
7698 set dummy twopi; ac_word=$2
7699 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7700 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7701 if test "${ac_cv_path_TWOPI+set}" = set; then
7702   echo $ECHO_N "(cached) $ECHO_C" >&6
7703 else
7704   case $TWOPI in
7705   [\\/]* | ?:[\\/]*)
7706   ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path.
7707   ;;
7708   *)
7709   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7710 for as_dir in $PATH
7711 do
7712   IFS=$as_save_IFS
7713   test -z "$as_dir" && as_dir=.
7714   for ac_exec_ext in '' $ac_executable_extensions; do
7715   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7716     ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext"
7717     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7718     break 2
7719   fi
7720 done
7721 done
7722 IFS=$as_save_IFS
7723
7724   test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi"
7725   ;;
7726 esac
7727 fi
7728 TWOPI=$ac_cv_path_TWOPI
7729 if test -n "$TWOPI"; then
7730   { echo "$as_me:$LINENO: result: $TWOPI" >&5
7731 echo "${ECHO_T}$TWOPI" >&6; }
7732 else
7733   { echo "$as_me:$LINENO: result: no" >&5
7734 echo "${ECHO_T}no" >&6; }
7735 fi
7736
7737
7738 if test "$TWOPI" != "echo twopi" ; then
7739
7740 cat >>confdefs.h <<\_ACEOF
7741 #define HAVE_TWOPI 1
7742 _ACEOF
7743
7744     if test "$llvm_cv_os_type" = "MingW" ; then
7745     TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7746   fi
7747
7748 cat >>confdefs.h <<_ACEOF
7749 #define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
7750 _ACEOF
7751
7752 fi
7753 # Extract the first word of "circo", so it can be a program name with args.
7754 set dummy circo; ac_word=$2
7755 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7756 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7757 if test "${ac_cv_path_CIRCO+set}" = set; then
7758   echo $ECHO_N "(cached) $ECHO_C" >&6
7759 else
7760   case $CIRCO in
7761   [\\/]* | ?:[\\/]*)
7762   ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path.
7763   ;;
7764   *)
7765   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7766 for as_dir in $PATH
7767 do
7768   IFS=$as_save_IFS
7769   test -z "$as_dir" && as_dir=.
7770   for ac_exec_ext in '' $ac_executable_extensions; do
7771   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7772     ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext"
7773     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7774     break 2
7775   fi
7776 done
7777 done
7778 IFS=$as_save_IFS
7779
7780   test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo"
7781   ;;
7782 esac
7783 fi
7784 CIRCO=$ac_cv_path_CIRCO
7785 if test -n "$CIRCO"; then
7786   { echo "$as_me:$LINENO: result: $CIRCO" >&5
7787 echo "${ECHO_T}$CIRCO" >&6; }
7788 else
7789   { echo "$as_me:$LINENO: result: no" >&5
7790 echo "${ECHO_T}no" >&6; }
7791 fi
7792
7793
7794 if test "$CIRCO" != "echo circo" ; then
7795
7796 cat >>confdefs.h <<\_ACEOF
7797 #define HAVE_CIRCO 1
7798 _ACEOF
7799
7800     if test "$llvm_cv_os_type" = "MingW" ; then
7801     CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7802   fi
7803
7804 cat >>confdefs.h <<_ACEOF
7805 #define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
7806 _ACEOF
7807
7808 fi
7809 for ac_prog in gv gsview32
7810 do
7811   # Extract the first word of "$ac_prog", so it can be a program name with args.
7812 set dummy $ac_prog; ac_word=$2
7813 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7814 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7815 if test "${ac_cv_path_GV+set}" = set; then
7816   echo $ECHO_N "(cached) $ECHO_C" >&6
7817 else
7818   case $GV in
7819   [\\/]* | ?:[\\/]*)
7820   ac_cv_path_GV="$GV" # Let the user override the test with a path.
7821   ;;
7822   *)
7823   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7824 for as_dir in $PATH
7825 do
7826   IFS=$as_save_IFS
7827   test -z "$as_dir" && as_dir=.
7828   for ac_exec_ext in '' $ac_executable_extensions; do
7829   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7830     ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
7831     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7832     break 2
7833   fi
7834 done
7835 done
7836 IFS=$as_save_IFS
7837
7838   ;;
7839 esac
7840 fi
7841 GV=$ac_cv_path_GV
7842 if test -n "$GV"; then
7843   { echo "$as_me:$LINENO: result: $GV" >&5
7844 echo "${ECHO_T}$GV" >&6; }
7845 else
7846   { echo "$as_me:$LINENO: result: no" >&5
7847 echo "${ECHO_T}no" >&6; }
7848 fi
7849
7850
7851   test -n "$GV" && break
7852 done
7853 test -n "$GV" || GV="echo gv"
7854
7855 if test "$GV" != "echo gv" ; then
7856
7857 cat >>confdefs.h <<\_ACEOF
7858 #define HAVE_GV 1
7859 _ACEOF
7860
7861     if test "$llvm_cv_os_type" = "MingW" ; then
7862     GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7863   fi
7864
7865 cat >>confdefs.h <<_ACEOF
7866 #define LLVM_PATH_GV "$GV${EXEEXT}"
7867 _ACEOF
7868
7869 fi
7870 # Extract the first word of "dotty", so it can be a program name with args.
7871 set dummy dotty; ac_word=$2
7872 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7873 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7874 if test "${ac_cv_path_DOTTY+set}" = set; then
7875   echo $ECHO_N "(cached) $ECHO_C" >&6
7876 else
7877   case $DOTTY in
7878   [\\/]* | ?:[\\/]*)
7879   ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
7880   ;;
7881   *)
7882   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7883 for as_dir in $PATH
7884 do
7885   IFS=$as_save_IFS
7886   test -z "$as_dir" && as_dir=.
7887   for ac_exec_ext in '' $ac_executable_extensions; do
7888   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7889     ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
7890     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7891     break 2
7892   fi
7893 done
7894 done
7895 IFS=$as_save_IFS
7896
7897   test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
7898   ;;
7899 esac
7900 fi
7901 DOTTY=$ac_cv_path_DOTTY
7902 if test -n "$DOTTY"; then
7903   { echo "$as_me:$LINENO: result: $DOTTY" >&5
7904 echo "${ECHO_T}$DOTTY" >&6; }
7905 else
7906   { echo "$as_me:$LINENO: result: no" >&5
7907 echo "${ECHO_T}no" >&6; }
7908 fi
7909
7910
7911 if test "$DOTTY" != "echo dotty" ; then
7912
7913 cat >>confdefs.h <<\_ACEOF
7914 #define HAVE_DOTTY 1
7915 _ACEOF
7916
7917     if test "$llvm_cv_os_type" = "MingW" ; then
7918     DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7919   fi
7920
7921 cat >>confdefs.h <<_ACEOF
7922 #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
7923 _ACEOF
7924
7925 fi
7926 # Extract the first word of "xdot.py", so it can be a program name with args.
7927 set dummy xdot.py; ac_word=$2
7928 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7929 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7930 if test "${ac_cv_path_XDOT_PY+set}" = set; then
7931   echo $ECHO_N "(cached) $ECHO_C" >&6
7932 else
7933   case $XDOT_PY in
7934   [\\/]* | ?:[\\/]*)
7935   ac_cv_path_XDOT_PY="$XDOT_PY" # Let the user override the test with a path.
7936   ;;
7937   *)
7938   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7939 for as_dir in $PATH
7940 do
7941   IFS=$as_save_IFS
7942   test -z "$as_dir" && as_dir=.
7943   for ac_exec_ext in '' $ac_executable_extensions; do
7944   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7945     ac_cv_path_XDOT_PY="$as_dir/$ac_word$ac_exec_ext"
7946     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7947     break 2
7948   fi
7949 done
7950 done
7951 IFS=$as_save_IFS
7952
7953   test -z "$ac_cv_path_XDOT_PY" && ac_cv_path_XDOT_PY="echo xdot.py"
7954   ;;
7955 esac
7956 fi
7957 XDOT_PY=$ac_cv_path_XDOT_PY
7958 if test -n "$XDOT_PY"; then
7959   { echo "$as_me:$LINENO: result: $XDOT_PY" >&5
7960 echo "${ECHO_T}$XDOT_PY" >&6; }
7961 else
7962   { echo "$as_me:$LINENO: result: no" >&5
7963 echo "${ECHO_T}no" >&6; }
7964 fi
7965
7966
7967 if test "$XDOT_PY" != "echo xdot.py" ; then
7968
7969 cat >>confdefs.h <<\_ACEOF
7970 #define HAVE_XDOT_PY 1
7971 _ACEOF
7972
7973     if test "$llvm_cv_os_type" = "MingW" ; then
7974     XDOT_PY=`echo $XDOT_PY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7975   fi
7976
7977 cat >>confdefs.h <<_ACEOF
7978 #define LLVM_PATH_XDOT_PY "$XDOT_PY${EXEEXT}"
7979 _ACEOF
7980
7981 fi
7982
7983
7984 # Extract the first word of "perl", so it can be a program name with args.
7985 set dummy perl; ac_word=$2
7986 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7987 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7988 if test "${ac_cv_path_PERL+set}" = set; then
7989   echo $ECHO_N "(cached) $ECHO_C" >&6
7990 else
7991   case $PERL in
7992   [\\/]* | ?:[\\/]*)
7993   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
7994   ;;
7995   *)
7996   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7997 for as_dir in $PATH
7998 do
7999   IFS=$as_save_IFS
8000   test -z "$as_dir" && as_dir=.
8001   for ac_exec_ext in '' $ac_executable_extensions; do
8002   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8003     ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
8004     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8005     break 2
8006   fi
8007 done
8008 done
8009 IFS=$as_save_IFS
8010
8011   test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
8012   ;;
8013 esac
8014 fi
8015 PERL=$ac_cv_path_PERL
8016 if test -n "$PERL"; then
8017   { echo "$as_me:$LINENO: result: $PERL" >&5
8018 echo "${ECHO_T}$PERL" >&6; }
8019 else
8020   { echo "$as_me:$LINENO: result: no" >&5
8021 echo "${ECHO_T}no" >&6; }
8022 fi
8023
8024
8025 if test "$PERL" != "none"; then
8026   { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
8027 echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; }
8028   if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then
8029     { echo "$as_me:$LINENO: result: yes" >&5
8030 echo "${ECHO_T}yes" >&6; }
8031   else
8032     PERL=none
8033     { echo "$as_me:$LINENO: result: not found" >&5
8034 echo "${ECHO_T}not found" >&6; }
8035   fi
8036 fi
8037
8038
8039 if test x"$PERL" = xnone; then
8040    HAVE_PERL=0
8041
8042    { { echo "$as_me:$LINENO: error: perl is required but was not found, please install it" >&5
8043 echo "$as_me: error: perl is required but was not found, please install it" >&2;}
8044    { (exit 1); exit 1; }; }
8045 else
8046    HAVE_PERL=1
8047
8048 fi
8049
8050 # Find a good install program.  We prefer a C program (faster),
8051 # so one script is as good as another.  But avoid the broken or
8052 # incompatible versions:
8053 # SysV /etc/install, /usr/sbin/install
8054 # SunOS /usr/etc/install
8055 # IRIX /sbin/install
8056 # AIX /bin/install
8057 # AmigaOS /C/install, which installs bootblocks on floppy discs
8058 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
8059 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
8060 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
8061 # OS/2's system install, which has a completely different semantic
8062 # ./install, which can be erroneously created by make from ./install.sh.
8063 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
8064 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
8065 if test -z "$INSTALL"; then
8066 if test "${ac_cv_path_install+set}" = set; then
8067   echo $ECHO_N "(cached) $ECHO_C" >&6
8068 else
8069   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8070 for as_dir in $PATH
8071 do
8072   IFS=$as_save_IFS
8073   test -z "$as_dir" && as_dir=.
8074   # Account for people who put trailing slashes in PATH elements.
8075 case $as_dir/ in
8076   ./ | .// | /cC/* | \
8077   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
8078   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
8079   /usr/ucb/* ) ;;
8080   *)
8081     # OSF1 and SCO ODT 3.0 have their own names for install.
8082     # Don't use installbsd from OSF since it installs stuff as root
8083     # by default.
8084     for ac_prog in ginstall scoinst install; do
8085       for ac_exec_ext in '' $ac_executable_extensions; do
8086         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
8087           if test $ac_prog = install &&
8088             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
8089             # AIX install.  It has an incompatible calling convention.
8090             :
8091           elif test $ac_prog = install &&
8092             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
8093             # program-specific install script used by HP pwplus--don't use.
8094             :
8095           else
8096             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
8097             break 3
8098           fi
8099         fi
8100       done
8101     done
8102     ;;
8103 esac
8104 done
8105 IFS=$as_save_IFS
8106
8107
8108 fi
8109   if test "${ac_cv_path_install+set}" = set; then
8110     INSTALL=$ac_cv_path_install
8111   else
8112     # As a last resort, use the slow shell script.  Don't cache a
8113     # value for INSTALL within a source directory, because that will
8114     # break other packages using the cache if that directory is
8115     # removed, or if the value is a relative name.
8116     INSTALL=$ac_install_sh
8117   fi
8118 fi
8119 { echo "$as_me:$LINENO: result: $INSTALL" >&5
8120 echo "${ECHO_T}$INSTALL" >&6; }
8121
8122 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
8123 # It thinks the first close brace ends the variable substitution.
8124 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
8125
8126 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
8127
8128 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
8129
8130 case "$INSTALL" in
8131  [\\/$]* | ?:[\\/]* ) ;;
8132  *)  INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
8133 esac
8134
8135 # Extract the first word of "bzip2", so it can be a program name with args.
8136 set dummy bzip2; ac_word=$2
8137 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8138 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8139 if test "${ac_cv_path_BZIP2+set}" = set; then
8140   echo $ECHO_N "(cached) $ECHO_C" >&6
8141 else
8142   case $BZIP2 in
8143   [\\/]* | ?:[\\/]*)
8144   ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
8145   ;;
8146   *)
8147   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8148 for as_dir in $PATH
8149 do
8150   IFS=$as_save_IFS
8151   test -z "$as_dir" && as_dir=.
8152   for ac_exec_ext in '' $ac_executable_extensions; do
8153   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8154     ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
8155     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8156     break 2
8157   fi
8158 done
8159 done
8160 IFS=$as_save_IFS
8161
8162   ;;
8163 esac
8164 fi
8165 BZIP2=$ac_cv_path_BZIP2
8166 if test -n "$BZIP2"; then
8167   { echo "$as_me:$LINENO: result: $BZIP2" >&5
8168 echo "${ECHO_T}$BZIP2" >&6; }
8169 else
8170   { echo "$as_me:$LINENO: result: no" >&5
8171 echo "${ECHO_T}no" >&6; }
8172 fi
8173
8174
8175 # Extract the first word of "cat", so it can be a program name with args.
8176 set dummy cat; ac_word=$2
8177 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8178 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8179 if test "${ac_cv_path_CAT+set}" = set; then
8180   echo $ECHO_N "(cached) $ECHO_C" >&6
8181 else
8182   case $CAT in
8183   [\\/]* | ?:[\\/]*)
8184   ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
8185   ;;
8186   *)
8187   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8188 for as_dir in $PATH
8189 do
8190   IFS=$as_save_IFS
8191   test -z "$as_dir" && as_dir=.
8192   for ac_exec_ext in '' $ac_executable_extensions; do
8193   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8194     ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
8195     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8196     break 2
8197   fi
8198 done
8199 done
8200 IFS=$as_save_IFS
8201
8202   ;;
8203 esac
8204 fi
8205 CAT=$ac_cv_path_CAT
8206 if test -n "$CAT"; then
8207   { echo "$as_me:$LINENO: result: $CAT" >&5
8208 echo "${ECHO_T}$CAT" >&6; }
8209 else
8210   { echo "$as_me:$LINENO: result: no" >&5
8211 echo "${ECHO_T}no" >&6; }
8212 fi
8213
8214
8215 # Extract the first word of "doxygen", so it can be a program name with args.
8216 set dummy doxygen; ac_word=$2
8217 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8218 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8219 if test "${ac_cv_path_DOXYGEN+set}" = set; then
8220   echo $ECHO_N "(cached) $ECHO_C" >&6
8221 else
8222   case $DOXYGEN in
8223   [\\/]* | ?:[\\/]*)
8224   ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
8225   ;;
8226   *)
8227   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8228 for as_dir in $PATH
8229 do
8230   IFS=$as_save_IFS
8231   test -z "$as_dir" && as_dir=.
8232   for ac_exec_ext in '' $ac_executable_extensions; do
8233   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8234     ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
8235     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8236     break 2
8237   fi
8238 done
8239 done
8240 IFS=$as_save_IFS
8241
8242   ;;
8243 esac
8244 fi
8245 DOXYGEN=$ac_cv_path_DOXYGEN
8246 if test -n "$DOXYGEN"; then
8247   { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
8248 echo "${ECHO_T}$DOXYGEN" >&6; }
8249 else
8250   { echo "$as_me:$LINENO: result: no" >&5
8251 echo "${ECHO_T}no" >&6; }
8252 fi
8253
8254
8255 # Extract the first word of "groff", so it can be a program name with args.
8256 set dummy groff; ac_word=$2
8257 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8258 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8259 if test "${ac_cv_path_GROFF+set}" = set; then
8260   echo $ECHO_N "(cached) $ECHO_C" >&6
8261 else
8262   case $GROFF in
8263   [\\/]* | ?:[\\/]*)
8264   ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
8265   ;;
8266   *)
8267   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8268 for as_dir in $PATH
8269 do
8270   IFS=$as_save_IFS
8271   test -z "$as_dir" && as_dir=.
8272   for ac_exec_ext in '' $ac_executable_extensions; do
8273   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8274     ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
8275     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8276     break 2
8277   fi
8278 done
8279 done
8280 IFS=$as_save_IFS
8281
8282   ;;
8283 esac
8284 fi
8285 GROFF=$ac_cv_path_GROFF
8286 if test -n "$GROFF"; then
8287   { echo "$as_me:$LINENO: result: $GROFF" >&5
8288 echo "${ECHO_T}$GROFF" >&6; }
8289 else
8290   { echo "$as_me:$LINENO: result: no" >&5
8291 echo "${ECHO_T}no" >&6; }
8292 fi
8293
8294
8295 # Extract the first word of "gzip", so it can be a program name with args.
8296 set dummy gzip; ac_word=$2
8297 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8298 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8299 if test "${ac_cv_path_GZIPBIN+set}" = set; then
8300   echo $ECHO_N "(cached) $ECHO_C" >&6
8301 else
8302   case $GZIPBIN in
8303   [\\/]* | ?:[\\/]*)
8304   ac_cv_path_GZIPBIN="$GZIPBIN" # Let the user override the test with a path.
8305   ;;
8306   *)
8307   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8308 for as_dir in $PATH
8309 do
8310   IFS=$as_save_IFS
8311   test -z "$as_dir" && as_dir=.
8312   for ac_exec_ext in '' $ac_executable_extensions; do
8313   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8314     ac_cv_path_GZIPBIN="$as_dir/$ac_word$ac_exec_ext"
8315     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8316     break 2
8317   fi
8318 done
8319 done
8320 IFS=$as_save_IFS
8321
8322   ;;
8323 esac
8324 fi
8325 GZIPBIN=$ac_cv_path_GZIPBIN
8326 if test -n "$GZIPBIN"; then
8327   { echo "$as_me:$LINENO: result: $GZIPBIN" >&5
8328 echo "${ECHO_T}$GZIPBIN" >&6; }
8329 else
8330   { echo "$as_me:$LINENO: result: no" >&5
8331 echo "${ECHO_T}no" >&6; }
8332 fi
8333
8334
8335 # Extract the first word of "pod2html", so it can be a program name with args.
8336 set dummy pod2html; ac_word=$2
8337 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8338 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8339 if test "${ac_cv_path_POD2HTML+set}" = set; then
8340   echo $ECHO_N "(cached) $ECHO_C" >&6
8341 else
8342   case $POD2HTML in
8343   [\\/]* | ?:[\\/]*)
8344   ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
8345   ;;
8346   *)
8347   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8348 for as_dir in $PATH
8349 do
8350   IFS=$as_save_IFS
8351   test -z "$as_dir" && as_dir=.
8352   for ac_exec_ext in '' $ac_executable_extensions; do
8353   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8354     ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
8355     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8356     break 2
8357   fi
8358 done
8359 done
8360 IFS=$as_save_IFS
8361
8362   ;;
8363 esac
8364 fi
8365 POD2HTML=$ac_cv_path_POD2HTML
8366 if test -n "$POD2HTML"; then
8367   { echo "$as_me:$LINENO: result: $POD2HTML" >&5
8368 echo "${ECHO_T}$POD2HTML" >&6; }
8369 else
8370   { echo "$as_me:$LINENO: result: no" >&5
8371 echo "${ECHO_T}no" >&6; }
8372 fi
8373
8374
8375 # Extract the first word of "pod2man", so it can be a program name with args.
8376 set dummy pod2man; ac_word=$2
8377 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8378 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8379 if test "${ac_cv_path_POD2MAN+set}" = set; then
8380   echo $ECHO_N "(cached) $ECHO_C" >&6
8381 else
8382   case $POD2MAN in
8383   [\\/]* | ?:[\\/]*)
8384   ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
8385   ;;
8386   *)
8387   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8388 for as_dir in $PATH
8389 do
8390   IFS=$as_save_IFS
8391   test -z "$as_dir" && as_dir=.
8392   for ac_exec_ext in '' $ac_executable_extensions; do
8393   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8394     ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
8395     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8396     break 2
8397   fi
8398 done
8399 done
8400 IFS=$as_save_IFS
8401
8402   ;;
8403 esac
8404 fi
8405 POD2MAN=$ac_cv_path_POD2MAN
8406 if test -n "$POD2MAN"; then
8407   { echo "$as_me:$LINENO: result: $POD2MAN" >&5
8408 echo "${ECHO_T}$POD2MAN" >&6; }
8409 else
8410   { echo "$as_me:$LINENO: result: no" >&5
8411 echo "${ECHO_T}no" >&6; }
8412 fi
8413
8414
8415 # Extract the first word of "pdfroff", so it can be a program name with args.
8416 set dummy pdfroff; ac_word=$2
8417 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8418 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8419 if test "${ac_cv_path_PDFROFF+set}" = set; then
8420   echo $ECHO_N "(cached) $ECHO_C" >&6
8421 else
8422   case $PDFROFF in
8423   [\\/]* | ?:[\\/]*)
8424   ac_cv_path_PDFROFF="$PDFROFF" # Let the user override the test with a path.
8425   ;;
8426   *)
8427   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8428 for as_dir in $PATH
8429 do
8430   IFS=$as_save_IFS
8431   test -z "$as_dir" && as_dir=.
8432   for ac_exec_ext in '' $ac_executable_extensions; do
8433   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8434     ac_cv_path_PDFROFF="$as_dir/$ac_word$ac_exec_ext"
8435     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8436     break 2
8437   fi
8438 done
8439 done
8440 IFS=$as_save_IFS
8441
8442   ;;
8443 esac
8444 fi
8445 PDFROFF=$ac_cv_path_PDFROFF
8446 if test -n "$PDFROFF"; then
8447   { echo "$as_me:$LINENO: result: $PDFROFF" >&5
8448 echo "${ECHO_T}$PDFROFF" >&6; }
8449 else
8450   { echo "$as_me:$LINENO: result: no" >&5
8451 echo "${ECHO_T}no" >&6; }
8452 fi
8453
8454
8455 # Extract the first word of "runtest", so it can be a program name with args.
8456 set dummy runtest; ac_word=$2
8457 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8458 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8459 if test "${ac_cv_path_RUNTEST+set}" = set; then
8460   echo $ECHO_N "(cached) $ECHO_C" >&6
8461 else
8462   case $RUNTEST in
8463   [\\/]* | ?:[\\/]*)
8464   ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
8465   ;;
8466   *)
8467   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8468 for as_dir in $PATH
8469 do
8470   IFS=$as_save_IFS
8471   test -z "$as_dir" && as_dir=.
8472   for ac_exec_ext in '' $ac_executable_extensions; do
8473   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8474     ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
8475     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8476     break 2
8477   fi
8478 done
8479 done
8480 IFS=$as_save_IFS
8481
8482   ;;
8483 esac
8484 fi
8485 RUNTEST=$ac_cv_path_RUNTEST
8486 if test -n "$RUNTEST"; then
8487   { echo "$as_me:$LINENO: result: $RUNTEST" >&5
8488 echo "${ECHO_T}$RUNTEST" >&6; }
8489 else
8490   { echo "$as_me:$LINENO: result: no" >&5
8491 echo "${ECHO_T}no" >&6; }
8492 fi
8493
8494
8495
8496 no_itcl=true
8497 { echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
8498 echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
8499
8500 # Check whether --with-tclinclude was given.
8501 if test "${with_tclinclude+set}" = set; then
8502   withval=$with_tclinclude; with_tclinclude=${withval}
8503 else
8504   with_tclinclude=''
8505 fi
8506
8507 if test "${ac_cv_path_tclsh+set}" = set; then
8508   echo $ECHO_N "(cached) $ECHO_C" >&6
8509 else
8510
8511 if test x"${with_tclinclude}" != x ; then
8512   if test -f ${with_tclinclude}/tclsh ; then
8513     ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
8514   elif test -f ${with_tclinclude}/src/tclsh ; then
8515     ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
8516   else
8517     { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
8518 echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
8519    { (exit 1); exit 1; }; }
8520   fi
8521 fi
8522 fi
8523
8524
8525 if test x"${ac_cv_path_tclsh}" = x ; then
8526   { echo "$as_me:$LINENO: result: none" >&5
8527 echo "${ECHO_T}none" >&6; }
8528   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
8529 do
8530   # Extract the first word of "$ac_prog", so it can be a program name with args.
8531 set dummy $ac_prog; ac_word=$2
8532 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8533 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8534 if test "${ac_cv_path_TCLSH+set}" = set; then
8535   echo $ECHO_N "(cached) $ECHO_C" >&6
8536 else
8537   case $TCLSH in
8538   [\\/]* | ?:[\\/]*)
8539   ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
8540   ;;
8541   *)
8542   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8543 for as_dir in $PATH
8544 do
8545   IFS=$as_save_IFS
8546   test -z "$as_dir" && as_dir=.
8547   for ac_exec_ext in '' $ac_executable_extensions; do
8548   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8549     ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
8550     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8551     break 2
8552   fi
8553 done
8554 done
8555 IFS=$as_save_IFS
8556
8557   ;;
8558 esac
8559 fi
8560 TCLSH=$ac_cv_path_TCLSH
8561 if test -n "$TCLSH"; then
8562   { echo "$as_me:$LINENO: result: $TCLSH" >&5
8563 echo "${ECHO_T}$TCLSH" >&6; }
8564 else
8565   { echo "$as_me:$LINENO: result: no" >&5
8566 echo "${ECHO_T}no" >&6; }
8567 fi
8568
8569
8570   test -n "$TCLSH" && break
8571 done
8572
8573   if test x"${TCLSH}" = x ; then
8574     ac_cv_path_tclsh='';
8575   else
8576     ac_cv_path_tclsh="${TCLSH}";
8577   fi
8578 else
8579   { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
8580 echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
8581   TCLSH="${ac_cv_path_tclsh}"
8582
8583 fi
8584
8585 # Extract the first word of "zip", so it can be a program name with args.
8586 set dummy zip; ac_word=$2
8587 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8588 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8589 if test "${ac_cv_path_ZIP+set}" = set; then
8590   echo $ECHO_N "(cached) $ECHO_C" >&6
8591 else
8592   case $ZIP in
8593   [\\/]* | ?:[\\/]*)
8594   ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
8595   ;;
8596   *)
8597   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8598 for as_dir in $PATH
8599 do
8600   IFS=$as_save_IFS
8601   test -z "$as_dir" && as_dir=.
8602   for ac_exec_ext in '' $ac_executable_extensions; do
8603   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8604     ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
8605     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8606     break 2
8607   fi
8608 done
8609 done
8610 IFS=$as_save_IFS
8611
8612   ;;
8613 esac
8614 fi
8615 ZIP=$ac_cv_path_ZIP
8616 if test -n "$ZIP"; then
8617   { echo "$as_me:$LINENO: result: $ZIP" >&5
8618 echo "${ECHO_T}$ZIP" >&6; }
8619 else
8620   { echo "$as_me:$LINENO: result: no" >&5
8621 echo "${ECHO_T}no" >&6; }
8622 fi
8623
8624
8625 for ac_prog in ocamlc
8626 do
8627   # Extract the first word of "$ac_prog", so it can be a program name with args.
8628 set dummy $ac_prog; ac_word=$2
8629 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8630 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8631 if test "${ac_cv_path_OCAMLC+set}" = set; then
8632   echo $ECHO_N "(cached) $ECHO_C" >&6
8633 else
8634   case $OCAMLC in
8635   [\\/]* | ?:[\\/]*)
8636   ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
8637   ;;
8638   *)
8639   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8640 for as_dir in $PATH
8641 do
8642   IFS=$as_save_IFS
8643   test -z "$as_dir" && as_dir=.
8644   for ac_exec_ext in '' $ac_executable_extensions; do
8645   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8646     ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
8647     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8648     break 2
8649   fi
8650 done
8651 done
8652 IFS=$as_save_IFS
8653
8654   ;;
8655 esac
8656 fi
8657 OCAMLC=$ac_cv_path_OCAMLC
8658 if test -n "$OCAMLC"; then
8659   { echo "$as_me:$LINENO: result: $OCAMLC" >&5
8660 echo "${ECHO_T}$OCAMLC" >&6; }
8661 else
8662   { echo "$as_me:$LINENO: result: no" >&5
8663 echo "${ECHO_T}no" >&6; }
8664 fi
8665
8666
8667   test -n "$OCAMLC" && break
8668 done
8669
8670 for ac_prog in ocamlopt
8671 do
8672   # Extract the first word of "$ac_prog", so it can be a program name with args.
8673 set dummy $ac_prog; ac_word=$2
8674 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8675 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8676 if test "${ac_cv_path_OCAMLOPT+set}" = set; then
8677   echo $ECHO_N "(cached) $ECHO_C" >&6
8678 else
8679   case $OCAMLOPT in
8680   [\\/]* | ?:[\\/]*)
8681   ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
8682   ;;
8683   *)
8684   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8685 for as_dir in $PATH
8686 do
8687   IFS=$as_save_IFS
8688   test -z "$as_dir" && as_dir=.
8689   for ac_exec_ext in '' $ac_executable_extensions; do
8690   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8691     ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
8692     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8693     break 2
8694   fi
8695 done
8696 done
8697 IFS=$as_save_IFS
8698
8699   ;;
8700 esac
8701 fi
8702 OCAMLOPT=$ac_cv_path_OCAMLOPT
8703 if test -n "$OCAMLOPT"; then
8704   { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
8705 echo "${ECHO_T}$OCAMLOPT" >&6; }
8706 else
8707   { echo "$as_me:$LINENO: result: no" >&5
8708 echo "${ECHO_T}no" >&6; }
8709 fi
8710
8711
8712   test -n "$OCAMLOPT" && break
8713 done
8714
8715 for ac_prog in ocamldep
8716 do
8717   # Extract the first word of "$ac_prog", so it can be a program name with args.
8718 set dummy $ac_prog; ac_word=$2
8719 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8720 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8721 if test "${ac_cv_path_OCAMLDEP+set}" = set; then
8722   echo $ECHO_N "(cached) $ECHO_C" >&6
8723 else
8724   case $OCAMLDEP in
8725   [\\/]* | ?:[\\/]*)
8726   ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
8727   ;;
8728   *)
8729   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8730 for as_dir in $PATH
8731 do
8732   IFS=$as_save_IFS
8733   test -z "$as_dir" && as_dir=.
8734   for ac_exec_ext in '' $ac_executable_extensions; do
8735   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8736     ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
8737     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8738     break 2
8739   fi
8740 done
8741 done
8742 IFS=$as_save_IFS
8743
8744   ;;
8745 esac
8746 fi
8747 OCAMLDEP=$ac_cv_path_OCAMLDEP
8748 if test -n "$OCAMLDEP"; then
8749   { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
8750 echo "${ECHO_T}$OCAMLDEP" >&6; }
8751 else
8752   { echo "$as_me:$LINENO: result: no" >&5
8753 echo "${ECHO_T}no" >&6; }
8754 fi
8755
8756
8757   test -n "$OCAMLDEP" && break
8758 done
8759
8760 for ac_prog in ocamldoc
8761 do
8762   # Extract the first word of "$ac_prog", so it can be a program name with args.
8763 set dummy $ac_prog; ac_word=$2
8764 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8765 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8766 if test "${ac_cv_path_OCAMLDOC+set}" = set; then
8767   echo $ECHO_N "(cached) $ECHO_C" >&6
8768 else
8769   case $OCAMLDOC in
8770   [\\/]* | ?:[\\/]*)
8771   ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
8772   ;;
8773   *)
8774   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8775 for as_dir in $PATH
8776 do
8777   IFS=$as_save_IFS
8778   test -z "$as_dir" && as_dir=.
8779   for ac_exec_ext in '' $ac_executable_extensions; do
8780   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8781     ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
8782     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8783     break 2
8784   fi
8785 done
8786 done
8787 IFS=$as_save_IFS
8788
8789   ;;
8790 esac
8791 fi
8792 OCAMLDOC=$ac_cv_path_OCAMLDOC
8793 if test -n "$OCAMLDOC"; then
8794   { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
8795 echo "${ECHO_T}$OCAMLDOC" >&6; }
8796 else
8797   { echo "$as_me:$LINENO: result: no" >&5
8798 echo "${ECHO_T}no" >&6; }
8799 fi
8800
8801
8802   test -n "$OCAMLDOC" && break
8803 done
8804
8805 for ac_prog in gas as
8806 do
8807   # Extract the first word of "$ac_prog", so it can be a program name with args.
8808 set dummy $ac_prog; ac_word=$2
8809 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8810 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8811 if test "${ac_cv_path_GAS+set}" = set; then
8812   echo $ECHO_N "(cached) $ECHO_C" >&6
8813 else
8814   case $GAS in
8815   [\\/]* | ?:[\\/]*)
8816   ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
8817   ;;
8818   *)
8819   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8820 for as_dir in $PATH
8821 do
8822   IFS=$as_save_IFS
8823   test -z "$as_dir" && as_dir=.
8824   for ac_exec_ext in '' $ac_executable_extensions; do
8825   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8826     ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
8827     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8828     break 2
8829   fi
8830 done
8831 done
8832 IFS=$as_save_IFS
8833
8834   ;;
8835 esac
8836 fi
8837 GAS=$ac_cv_path_GAS
8838 if test -n "$GAS"; then
8839   { echo "$as_me:$LINENO: result: $GAS" >&5
8840 echo "${ECHO_T}$GAS" >&6; }
8841 else
8842   { echo "$as_me:$LINENO: result: no" >&5
8843 echo "${ECHO_T}no" >&6; }
8844 fi
8845
8846
8847   test -n "$GAS" && break
8848 done
8849
8850
8851 { echo "$as_me:$LINENO: checking for linker version" >&5
8852 echo $ECHO_N "checking for linker version... $ECHO_C" >&6; }
8853 if test "${llvm_cv_link_version+set}" = set; then
8854   echo $ECHO_N "(cached) $ECHO_C" >&6
8855 else
8856
8857    version_string="$(ld -v 2>&1 | head -1)"
8858
8859    # Check for ld64.
8860    if (echo "$version_string" | grep -q "ld64"); then
8861      llvm_cv_link_version=$(echo "$version_string" | sed -e "s#.*ld64-\([^ ]*\)#\1#")
8862    else
8863      llvm_cv_link_version=$(echo "$version_string" | sed -e "s#[^0-9]*\([0-9.]*\).*#\1#")
8864    fi
8865
8866 fi
8867 { echo "$as_me:$LINENO: result: $llvm_cv_link_version" >&5
8868 echo "${ECHO_T}$llvm_cv_link_version" >&6; }
8869
8870 cat >>confdefs.h <<_ACEOF
8871 #define HOST_LINK_VERSION "$llvm_cv_link_version"
8872 _ACEOF
8873
8874
8875
8876 { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
8877 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
8878 if test "${llvm_cv_link_use_r+set}" = set; then
8879   echo $ECHO_N "(cached) $ECHO_C" >&6
8880 else
8881    ac_ext=c
8882 ac_cpp='$CPP $CPPFLAGS'
8883 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8884 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8885 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8886
8887   oldcflags="$CFLAGS"
8888   CFLAGS="$CFLAGS -Wl,-R."
8889   cat >conftest.$ac_ext <<_ACEOF
8890 /* confdefs.h.  */
8891 _ACEOF
8892 cat confdefs.h >>conftest.$ac_ext
8893 cat >>conftest.$ac_ext <<_ACEOF
8894 /* end confdefs.h.  */
8895
8896 int
8897 main ()
8898 {
8899
8900   ;
8901   return 0;
8902 }
8903 _ACEOF
8904 rm -f conftest.$ac_objext conftest$ac_exeext
8905 if { (ac_try="$ac_link"
8906 case "(($ac_try" in
8907   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8908   *) ac_try_echo=$ac_try;;
8909 esac
8910 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8911   (eval "$ac_link") 2>conftest.er1
8912   ac_status=$?
8913   grep -v '^ *+' conftest.er1 >conftest.err
8914   rm -f conftest.er1
8915   cat conftest.err >&5
8916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8917   (exit $ac_status); } &&
8918          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8919   { (case "(($ac_try" in
8920   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8921   *) ac_try_echo=$ac_try;;
8922 esac
8923 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8924   (eval "$ac_try") 2>&5
8925   ac_status=$?
8926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8927   (exit $ac_status); }; } &&
8928          { ac_try='test -s conftest$ac_exeext'
8929   { (case "(($ac_try" in
8930   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8931   *) ac_try_echo=$ac_try;;
8932 esac
8933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8934   (eval "$ac_try") 2>&5
8935   ac_status=$?
8936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8937   (exit $ac_status); }; }; then
8938   llvm_cv_link_use_r=yes
8939 else
8940   echo "$as_me: failed program was:" >&5
8941 sed 's/^/| /' conftest.$ac_ext >&5
8942
8943         llvm_cv_link_use_r=no
8944 fi
8945
8946 rm -f core conftest.err conftest.$ac_objext \
8947       conftest$ac_exeext conftest.$ac_ext
8948   CFLAGS="$oldcflags"
8949   ac_ext=c
8950 ac_cpp='$CPP $CPPFLAGS'
8951 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8952 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8953 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8954
8955
8956 fi
8957 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
8958 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
8959 if test "$llvm_cv_link_use_r" = yes ; then
8960
8961 cat >>confdefs.h <<\_ACEOF
8962 #define HAVE_LINK_R 1
8963 _ACEOF
8964
8965   fi
8966
8967
8968 { echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5
8969 echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; }
8970 if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
8971   echo $ECHO_N "(cached) $ECHO_C" >&6
8972 else
8973    ac_ext=c
8974 ac_cpp='$CPP $CPPFLAGS'
8975 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8976 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8977 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8978
8979   oldcflags="$CFLAGS"
8980   CFLAGS="$CFLAGS -Wl,-export-dynamic"
8981   cat >conftest.$ac_ext <<_ACEOF
8982 /* confdefs.h.  */
8983 _ACEOF
8984 cat confdefs.h >>conftest.$ac_ext
8985 cat >>conftest.$ac_ext <<_ACEOF
8986 /* end confdefs.h.  */
8987
8988 int
8989 main ()
8990 {
8991
8992   ;
8993   return 0;
8994 }
8995 _ACEOF
8996 rm -f conftest.$ac_objext conftest$ac_exeext
8997 if { (ac_try="$ac_link"
8998 case "(($ac_try" in
8999   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9000   *) ac_try_echo=$ac_try;;
9001 esac
9002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9003   (eval "$ac_link") 2>conftest.er1
9004   ac_status=$?
9005   grep -v '^ *+' conftest.er1 >conftest.err
9006   rm -f conftest.er1
9007   cat conftest.err >&5
9008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9009   (exit $ac_status); } &&
9010          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9011   { (case "(($ac_try" in
9012   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9013   *) ac_try_echo=$ac_try;;
9014 esac
9015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9016   (eval "$ac_try") 2>&5
9017   ac_status=$?
9018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9019   (exit $ac_status); }; } &&
9020          { ac_try='test -s conftest$ac_exeext'
9021   { (case "(($ac_try" in
9022   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9023   *) ac_try_echo=$ac_try;;
9024 esac
9025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9026   (eval "$ac_try") 2>&5
9027   ac_status=$?
9028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9029   (exit $ac_status); }; }; then
9030   llvm_cv_link_use_export_dynamic=yes
9031 else
9032   echo "$as_me: failed program was:" >&5
9033 sed 's/^/| /' conftest.$ac_ext >&5
9034
9035         llvm_cv_link_use_export_dynamic=no
9036 fi
9037
9038 rm -f core conftest.err conftest.$ac_objext \
9039       conftest$ac_exeext conftest.$ac_ext
9040   CFLAGS="$oldcflags"
9041   ac_ext=c
9042 ac_cpp='$CPP $CPPFLAGS'
9043 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9044 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9045 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9046
9047
9048 fi
9049 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
9050 echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
9051 if test "$llvm_cv_link_use_export_dynamic" = yes ; then
9052
9053 cat >>confdefs.h <<\_ACEOF
9054 #define HAVE_LINK_EXPORT_DYNAMIC 1
9055 _ACEOF
9056
9057   fi
9058
9059
9060 { echo "$as_me:$LINENO: checking for compiler -Wl,--version-script option" >&5
9061 echo $ECHO_N "checking for compiler -Wl,--version-script option... $ECHO_C" >&6; }
9062 if test "${llvm_cv_link_use_version_script+set}" = set; then
9063   echo $ECHO_N "(cached) $ECHO_C" >&6
9064 else
9065    ac_ext=c
9066 ac_cpp='$CPP $CPPFLAGS'
9067 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9068 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9069 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9070
9071   oldcflags="$CFLAGS"
9072
9073   # The following code is from the autoconf manual,
9074   # "11.13: Limitations of Usual Tools".
9075   # Create a temporary directory $tmp in $TMPDIR (default /tmp).
9076   # Use mktemp if possible; otherwise fall back on mkdir,
9077   # with $RANDOM to make collisions less likely.
9078   : ${TMPDIR=/tmp}
9079   {
9080     tmp=`
9081       (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null
9082     ` &&
9083     test -n "$tmp" && test -d "$tmp"
9084   } || {
9085     tmp=$TMPDIR/foo$$-$RANDOM
9086     (umask 077 && mkdir "$tmp")
9087   } || exit $?
9088
9089   echo "{" > "$tmp/export.map"
9090   echo "  global: main;" >> "$tmp/export.map"
9091   echo "  local: *;" >> "$tmp/export.map"
9092   echo "};" >> "$tmp/export.map"
9093
9094   CFLAGS="$CFLAGS -Wl,--version-script=$tmp/export.map"
9095   cat >conftest.$ac_ext <<_ACEOF
9096 /* confdefs.h.  */
9097 _ACEOF
9098 cat confdefs.h >>conftest.$ac_ext
9099 cat >>conftest.$ac_ext <<_ACEOF
9100 /* end confdefs.h.  */
9101
9102 int
9103 main ()
9104 {
9105
9106   ;
9107   return 0;
9108 }
9109 _ACEOF
9110 rm -f conftest.$ac_objext conftest$ac_exeext
9111 if { (ac_try="$ac_link"
9112 case "(($ac_try" in
9113   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9114   *) ac_try_echo=$ac_try;;
9115 esac
9116 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9117   (eval "$ac_link") 2>conftest.er1
9118   ac_status=$?
9119   grep -v '^ *+' conftest.er1 >conftest.err
9120   rm -f conftest.er1
9121   cat conftest.err >&5
9122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9123   (exit $ac_status); } &&
9124          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9125   { (case "(($ac_try" in
9126   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9127   *) ac_try_echo=$ac_try;;
9128 esac
9129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9130   (eval "$ac_try") 2>&5
9131   ac_status=$?
9132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9133   (exit $ac_status); }; } &&
9134          { ac_try='test -s conftest$ac_exeext'
9135   { (case "(($ac_try" in
9136   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9137   *) ac_try_echo=$ac_try;;
9138 esac
9139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9140   (eval "$ac_try") 2>&5
9141   ac_status=$?
9142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9143   (exit $ac_status); }; }; then
9144   llvm_cv_link_use_version_script=yes
9145 else
9146   echo "$as_me: failed program was:" >&5
9147 sed 's/^/| /' conftest.$ac_ext >&5
9148
9149         llvm_cv_link_use_version_script=no
9150 fi
9151
9152 rm -f core conftest.err conftest.$ac_objext \
9153       conftest$ac_exeext conftest.$ac_ext
9154   rm "$tmp/export.map"
9155   rmdir "$tmp"
9156   CFLAGS="$oldcflags"
9157   ac_ext=c
9158 ac_cpp='$CPP $CPPFLAGS'
9159 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9160 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9161 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9162
9163
9164 fi
9165 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_version_script" >&5
9166 echo "${ECHO_T}$llvm_cv_link_use_version_script" >&6; }
9167 if test "$llvm_cv_link_use_version_script" = yes ; then
9168   HAVE_LINK_VERSION_SCRIPT=1
9169
9170   fi
9171
9172
9173
9174
9175 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
9176 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
9177 if test "${ac_cv_c_const+set}" = set; then
9178   echo $ECHO_N "(cached) $ECHO_C" >&6
9179 else
9180   cat >conftest.$ac_ext <<_ACEOF
9181 /* confdefs.h.  */
9182 _ACEOF
9183 cat confdefs.h >>conftest.$ac_ext
9184 cat >>conftest.$ac_ext <<_ACEOF
9185 /* end confdefs.h.  */
9186
9187 int
9188 main ()
9189 {
9190 /* FIXME: Include the comments suggested by Paul. */
9191 #ifndef __cplusplus
9192   /* Ultrix mips cc rejects this.  */
9193   typedef int charset[2];
9194   const charset x;
9195   /* SunOS 4.1.1 cc rejects this.  */
9196   char const *const *ccp;
9197   char **p;
9198   /* NEC SVR4.0.2 mips cc rejects this.  */
9199   struct point {int x, y;};
9200   static struct point const zero = {0,0};
9201   /* AIX XL C 1.02.0.0 rejects this.
9202      It does not let you subtract one const X* pointer from another in
9203      an arm of an if-expression whose if-part is not a constant
9204      expression */
9205   const char *g = "string";
9206   ccp = &g + (g ? g-g : 0);
9207   /* HPUX 7.0 cc rejects these. */
9208   ++ccp;
9209   p = (char**) ccp;
9210   ccp = (char const *const *) p;
9211   { /* SCO 3.2v4 cc rejects this.  */
9212     char *t;
9213     char const *s = 0 ? (char *) 0 : (char const *) 0;
9214
9215     *t++ = 0;
9216     if (s) return 0;
9217   }
9218   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
9219     int x[] = {25, 17};
9220     const int *foo = &x[0];
9221     ++foo;
9222   }
9223   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
9224     typedef const int *iptr;
9225     iptr p = 0;
9226     ++p;
9227   }
9228   { /* AIX XL C 1.02.0.0 rejects this saying
9229        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
9230     struct s { int j; const int *ap[3]; };
9231     struct s *b; b->j = 5;
9232   }
9233   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
9234     const int foo = 10;
9235     if (!foo) return 0;
9236   }
9237   return !x[0] && !zero.x;
9238 #endif
9239
9240   ;
9241   return 0;
9242 }
9243 _ACEOF
9244 rm -f conftest.$ac_objext
9245 if { (ac_try="$ac_compile"
9246 case "(($ac_try" in
9247   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9248   *) ac_try_echo=$ac_try;;
9249 esac
9250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9251   (eval "$ac_compile") 2>conftest.er1
9252   ac_status=$?
9253   grep -v '^ *+' conftest.er1 >conftest.err
9254   rm -f conftest.er1
9255   cat conftest.err >&5
9256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9257   (exit $ac_status); } &&
9258          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9259   { (case "(($ac_try" in
9260   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9261   *) ac_try_echo=$ac_try;;
9262 esac
9263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9264   (eval "$ac_try") 2>&5
9265   ac_status=$?
9266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9267   (exit $ac_status); }; } &&
9268          { ac_try='test -s conftest.$ac_objext'
9269   { (case "(($ac_try" in
9270   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9271   *) ac_try_echo=$ac_try;;
9272 esac
9273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9274   (eval "$ac_try") 2>&5
9275   ac_status=$?
9276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9277   (exit $ac_status); }; }; then
9278   ac_cv_c_const=yes
9279 else
9280   echo "$as_me: failed program was:" >&5
9281 sed 's/^/| /' conftest.$ac_ext >&5
9282
9283         ac_cv_c_const=no
9284 fi
9285
9286 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9287 fi
9288 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
9289 echo "${ECHO_T}$ac_cv_c_const" >&6; }
9290 if test $ac_cv_c_const = no; then
9291
9292 cat >>confdefs.h <<\_ACEOF
9293 #define const
9294 _ACEOF
9295
9296 fi
9297
9298
9299
9300
9301
9302
9303 ac_header_dirent=no
9304 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
9305   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
9306 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
9307 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
9308 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9309   echo $ECHO_N "(cached) $ECHO_C" >&6
9310 else
9311   cat >conftest.$ac_ext <<_ACEOF
9312 /* confdefs.h.  */
9313 _ACEOF
9314 cat confdefs.h >>conftest.$ac_ext
9315 cat >>conftest.$ac_ext <<_ACEOF
9316 /* end confdefs.h.  */
9317 #include <sys/types.h>
9318 #include <$ac_hdr>
9319
9320 int
9321 main ()
9322 {
9323 if ((DIR *) 0)
9324 return 0;
9325   ;
9326   return 0;
9327 }
9328 _ACEOF
9329 rm -f conftest.$ac_objext
9330 if { (ac_try="$ac_compile"
9331 case "(($ac_try" in
9332   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9333   *) ac_try_echo=$ac_try;;
9334 esac
9335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9336   (eval "$ac_compile") 2>conftest.er1
9337   ac_status=$?
9338   grep -v '^ *+' conftest.er1 >conftest.err
9339   rm -f conftest.er1
9340   cat conftest.err >&5
9341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9342   (exit $ac_status); } &&
9343          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9344   { (case "(($ac_try" in
9345   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9346   *) ac_try_echo=$ac_try;;
9347 esac
9348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9349   (eval "$ac_try") 2>&5
9350   ac_status=$?
9351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9352   (exit $ac_status); }; } &&
9353          { ac_try='test -s conftest.$ac_objext'
9354   { (case "(($ac_try" in
9355   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9356   *) ac_try_echo=$ac_try;;
9357 esac
9358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9359   (eval "$ac_try") 2>&5
9360   ac_status=$?
9361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9362   (exit $ac_status); }; }; then
9363   eval "$as_ac_Header=yes"
9364 else
9365   echo "$as_me: failed program was:" >&5
9366 sed 's/^/| /' conftest.$ac_ext >&5
9367
9368         eval "$as_ac_Header=no"
9369 fi
9370
9371 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9372 fi
9373 ac_res=`eval echo '${'$as_ac_Header'}'`
9374                { echo "$as_me:$LINENO: result: $ac_res" >&5
9375 echo "${ECHO_T}$ac_res" >&6; }
9376 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9377   cat >>confdefs.h <<_ACEOF
9378 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
9379 _ACEOF
9380
9381 ac_header_dirent=$ac_hdr; break
9382 fi
9383
9384 done
9385 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
9386 if test $ac_header_dirent = dirent.h; then
9387   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
9388 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
9389 if test "${ac_cv_search_opendir+set}" = set; then
9390   echo $ECHO_N "(cached) $ECHO_C" >&6
9391 else
9392   ac_func_search_save_LIBS=$LIBS
9393 cat >conftest.$ac_ext <<_ACEOF
9394 /* confdefs.h.  */
9395 _ACEOF
9396 cat confdefs.h >>conftest.$ac_ext
9397 cat >>conftest.$ac_ext <<_ACEOF
9398 /* end confdefs.h.  */
9399
9400 /* Override any GCC internal prototype to avoid an error.
9401    Use char because int might match the return type of a GCC
9402    builtin and then its argument prototype would still apply.  */
9403 #ifdef __cplusplus
9404 extern "C"
9405 #endif
9406 char opendir ();
9407 int
9408 main ()
9409 {
9410 return opendir ();
9411   ;
9412   return 0;
9413 }
9414 _ACEOF
9415 for ac_lib in '' dir; do
9416   if test -z "$ac_lib"; then
9417     ac_res="none required"
9418   else
9419     ac_res=-l$ac_lib
9420     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9421   fi
9422   rm -f conftest.$ac_objext conftest$ac_exeext
9423 if { (ac_try="$ac_link"
9424 case "(($ac_try" in
9425   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9426   *) ac_try_echo=$ac_try;;
9427 esac
9428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9429   (eval "$ac_link") 2>conftest.er1
9430   ac_status=$?
9431   grep -v '^ *+' conftest.er1 >conftest.err
9432   rm -f conftest.er1
9433   cat conftest.err >&5
9434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9435   (exit $ac_status); } &&
9436          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9437   { (case "(($ac_try" in
9438   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9439   *) ac_try_echo=$ac_try;;
9440 esac
9441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9442   (eval "$ac_try") 2>&5
9443   ac_status=$?
9444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9445   (exit $ac_status); }; } &&
9446          { ac_try='test -s conftest$ac_exeext'
9447   { (case "(($ac_try" in
9448   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9449   *) ac_try_echo=$ac_try;;
9450 esac
9451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9452   (eval "$ac_try") 2>&5
9453   ac_status=$?
9454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9455   (exit $ac_status); }; }; then
9456   ac_cv_search_opendir=$ac_res
9457 else
9458   echo "$as_me: failed program was:" >&5
9459 sed 's/^/| /' conftest.$ac_ext >&5
9460
9461
9462 fi
9463
9464 rm -f core conftest.err conftest.$ac_objext \
9465       conftest$ac_exeext
9466   if test "${ac_cv_search_opendir+set}" = set; then
9467   break
9468 fi
9469 done
9470 if test "${ac_cv_search_opendir+set}" = set; then
9471   :
9472 else
9473   ac_cv_search_opendir=no
9474 fi
9475 rm conftest.$ac_ext
9476 LIBS=$ac_func_search_save_LIBS
9477 fi
9478 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9479 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
9480 ac_res=$ac_cv_search_opendir
9481 if test "$ac_res" != no; then
9482   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9483
9484 fi
9485
9486 else
9487   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
9488 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
9489 if test "${ac_cv_search_opendir+set}" = set; then
9490   echo $ECHO_N "(cached) $ECHO_C" >&6
9491 else
9492   ac_func_search_save_LIBS=$LIBS
9493 cat >conftest.$ac_ext <<_ACEOF
9494 /* confdefs.h.  */
9495 _ACEOF
9496 cat confdefs.h >>conftest.$ac_ext
9497 cat >>conftest.$ac_ext <<_ACEOF
9498 /* end confdefs.h.  */
9499
9500 /* Override any GCC internal prototype to avoid an error.
9501    Use char because int might match the return type of a GCC
9502    builtin and then its argument prototype would still apply.  */
9503 #ifdef __cplusplus
9504 extern "C"
9505 #endif
9506 char opendir ();
9507 int
9508 main ()
9509 {
9510 return opendir ();
9511   ;
9512   return 0;
9513 }
9514 _ACEOF
9515 for ac_lib in '' x; do
9516   if test -z "$ac_lib"; then
9517     ac_res="none required"
9518   else
9519     ac_res=-l$ac_lib
9520     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9521   fi
9522   rm -f conftest.$ac_objext conftest$ac_exeext
9523 if { (ac_try="$ac_link"
9524 case "(($ac_try" in
9525   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9526   *) ac_try_echo=$ac_try;;
9527 esac
9528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9529   (eval "$ac_link") 2>conftest.er1
9530   ac_status=$?
9531   grep -v '^ *+' conftest.er1 >conftest.err
9532   rm -f conftest.er1
9533   cat conftest.err >&5
9534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9535   (exit $ac_status); } &&
9536          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9537   { (case "(($ac_try" in
9538   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9539   *) ac_try_echo=$ac_try;;
9540 esac
9541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9542   (eval "$ac_try") 2>&5
9543   ac_status=$?
9544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9545   (exit $ac_status); }; } &&
9546          { ac_try='test -s conftest$ac_exeext'
9547   { (case "(($ac_try" in
9548   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9549   *) ac_try_echo=$ac_try;;
9550 esac
9551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9552   (eval "$ac_try") 2>&5
9553   ac_status=$?
9554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9555   (exit $ac_status); }; }; then
9556   ac_cv_search_opendir=$ac_res
9557 else
9558   echo "$as_me: failed program was:" >&5
9559 sed 's/^/| /' conftest.$ac_ext >&5
9560
9561
9562 fi
9563
9564 rm -f core conftest.err conftest.$ac_objext \
9565       conftest$ac_exeext
9566   if test "${ac_cv_search_opendir+set}" = set; then
9567   break
9568 fi
9569 done
9570 if test "${ac_cv_search_opendir+set}" = set; then
9571   :
9572 else
9573   ac_cv_search_opendir=no
9574 fi
9575 rm conftest.$ac_ext
9576 LIBS=$ac_func_search_save_LIBS
9577 fi
9578 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9579 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
9580 ac_res=$ac_cv_search_opendir
9581 if test "$ac_res" != no; then
9582   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9583
9584 fi
9585
9586 fi
9587
9588
9589 for ac_header in dlfcn.h
9590 do
9591 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9592 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9593   { echo "$as_me:$LINENO: checking for $ac_header" >&5
9594 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9595 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9596   echo $ECHO_N "(cached) $ECHO_C" >&6
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 else
9602   # Is the header compilable?
9603 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9604 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9605 cat >conftest.$ac_ext <<_ACEOF
9606 /* confdefs.h.  */
9607 _ACEOF
9608 cat confdefs.h >>conftest.$ac_ext
9609 cat >>conftest.$ac_ext <<_ACEOF
9610 /* end confdefs.h.  */
9611 $ac_includes_default
9612 #include <$ac_header>
9613 _ACEOF
9614 rm -f conftest.$ac_objext
9615 if { (ac_try="$ac_compile"
9616 case "(($ac_try" in
9617   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9618   *) ac_try_echo=$ac_try;;
9619 esac
9620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9621   (eval "$ac_compile") 2>conftest.er1
9622   ac_status=$?
9623   grep -v '^ *+' conftest.er1 >conftest.err
9624   rm -f conftest.er1
9625   cat conftest.err >&5
9626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9627   (exit $ac_status); } &&
9628          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9629   { (case "(($ac_try" in
9630   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9631   *) ac_try_echo=$ac_try;;
9632 esac
9633 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9634   (eval "$ac_try") 2>&5
9635   ac_status=$?
9636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9637   (exit $ac_status); }; } &&
9638          { ac_try='test -s conftest.$ac_objext'
9639   { (case "(($ac_try" in
9640   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9641   *) ac_try_echo=$ac_try;;
9642 esac
9643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9644   (eval "$ac_try") 2>&5
9645   ac_status=$?
9646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9647   (exit $ac_status); }; }; then
9648   ac_header_compiler=yes
9649 else
9650   echo "$as_me: failed program was:" >&5
9651 sed 's/^/| /' conftest.$ac_ext >&5
9652
9653         ac_header_compiler=no
9654 fi
9655
9656 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9657 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9658 echo "${ECHO_T}$ac_header_compiler" >&6; }
9659
9660 # Is the header present?
9661 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9662 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9663 cat >conftest.$ac_ext <<_ACEOF
9664 /* confdefs.h.  */
9665 _ACEOF
9666 cat confdefs.h >>conftest.$ac_ext
9667 cat >>conftest.$ac_ext <<_ACEOF
9668 /* end confdefs.h.  */
9669 #include <$ac_header>
9670 _ACEOF
9671 if { (ac_try="$ac_cpp conftest.$ac_ext"
9672 case "(($ac_try" in
9673   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9674   *) ac_try_echo=$ac_try;;
9675 esac
9676 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9677   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9678   ac_status=$?
9679   grep -v '^ *+' conftest.er1 >conftest.err
9680   rm -f conftest.er1
9681   cat conftest.err >&5
9682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9683   (exit $ac_status); } >/dev/null; then
9684   if test -s conftest.err; then
9685     ac_cpp_err=$ac_c_preproc_warn_flag
9686     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9687   else
9688     ac_cpp_err=
9689   fi
9690 else
9691   ac_cpp_err=yes
9692 fi
9693 if test -z "$ac_cpp_err"; then
9694   ac_header_preproc=yes
9695 else
9696   echo "$as_me: failed program was:" >&5
9697 sed 's/^/| /' conftest.$ac_ext >&5
9698
9699   ac_header_preproc=no
9700 fi
9701
9702 rm -f conftest.err conftest.$ac_ext
9703 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9704 echo "${ECHO_T}$ac_header_preproc" >&6; }
9705
9706 # So?  What about this header?
9707 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9708   yes:no: )
9709     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9710 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9711     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9712 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9713     ac_header_preproc=yes
9714     ;;
9715   no:yes:* )
9716     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9717 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9718     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9719 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9720     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9721 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9722     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9723 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9724     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9725 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9726     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9727 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9728     ( cat <<\_ASBOX
9729 ## ----------------------------------- ##
9730 ## Report this to llvmbugs@cs.uiuc.edu ##
9731 ## ----------------------------------- ##
9732 _ASBOX
9733      ) | sed "s/^/$as_me: WARNING:     /" >&2
9734     ;;
9735 esac
9736 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9737 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9738 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9739   echo $ECHO_N "(cached) $ECHO_C" >&6
9740 else
9741   eval "$as_ac_Header=\$ac_header_preproc"
9742 fi
9743 ac_res=`eval echo '${'$as_ac_Header'}'`
9744                { echo "$as_me:$LINENO: result: $ac_res" >&5
9745 echo "${ECHO_T}$ac_res" >&6; }
9746
9747 fi
9748 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9749   cat >>confdefs.h <<_ACEOF
9750 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9751 _ACEOF
9752
9753 fi
9754
9755 done
9756
9757 # Check whether --enable-ltdl-install was given.
9758 if test "${enable_ltdl_install+set}" = set; then
9759   enableval=$enable_ltdl_install;
9760 fi
9761
9762
9763
9764
9765 if test x"${enable_ltdl_install-no}" != xno; then
9766   INSTALL_LTDL_TRUE=
9767   INSTALL_LTDL_FALSE='#'
9768 else
9769   INSTALL_LTDL_TRUE='#'
9770   INSTALL_LTDL_FALSE=
9771 fi
9772
9773
9774
9775 if test x"${enable_ltdl_convenience-no}" != xno; then
9776   CONVENIENCE_LTDL_TRUE=
9777   CONVENIENCE_LTDL_FALSE='#'
9778 else
9779   CONVENIENCE_LTDL_TRUE='#'
9780   CONVENIENCE_LTDL_FALSE=
9781 fi
9782
9783
9784 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9785 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
9786 library_names_spec=
9787 libname_spec='lib$name'
9788 soname_spec=
9789 shrext_cmds=".so"
9790 postinstall_cmds=
9791 postuninstall_cmds=
9792 finish_cmds=
9793 finish_eval=
9794 shlibpath_var=
9795 shlibpath_overrides_runpath=unknown
9796 version_type=none
9797 dynamic_linker="$host_os ld.so"
9798 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9799 if test "$GCC" = yes; then
9800   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9801   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9802     # if the path contains ";" then we assume it to be the separator
9803     # otherwise default to the standard path separator (i.e. ":") - it is
9804     # assumed that no part of a normal pathname contains ";" but that should
9805     # okay in the real world where ";" in dirpaths is itself problematic.
9806     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9807   else
9808     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9809   fi
9810 else
9811   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9812 fi
9813 need_lib_prefix=unknown
9814 hardcode_into_libs=no
9815
9816 # when you set need_version to no, make sure it does not cause -set_version
9817 # flags to be left without arguments
9818 need_version=unknown
9819
9820 case $host_os in
9821 aix3*)
9822   version_type=linux
9823   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9824   shlibpath_var=LIBPATH
9825
9826   # AIX 3 has no versioning support, so we append a major version to the name.
9827   soname_spec='${libname}${release}${shared_ext}$major'
9828   ;;
9829
9830 aix4* | aix5*)
9831   version_type=linux
9832   need_lib_prefix=no
9833   need_version=no
9834   hardcode_into_libs=yes
9835   if test "$host_cpu" = ia64; then
9836     # AIX 5 supports IA64
9837     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9838     shlibpath_var=LD_LIBRARY_PATH
9839   else
9840     # With GCC up to 2.95.x, collect2 would create an import file
9841     # for dependence libraries.  The import file would start with
9842     # the line `#! .'.  This would cause the generated library to
9843     # depend on `.', always an invalid library.  This was fixed in
9844     # development snapshots of GCC prior to 3.0.
9845     case $host_os in
9846       aix4 | aix4.[01] | aix4.[01].*)
9847       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9848            echo ' yes '
9849            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9850         :
9851       else
9852         can_build_shared=no
9853       fi
9854       ;;
9855     esac
9856     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9857     # soname into executable. Probably we can add versioning support to
9858     # collect2, so additional links can be useful in future.
9859     if test "$aix_use_runtimelinking" = yes; then
9860       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9861       # instead of lib<name>.a to let people know that these are not
9862       # typical AIX shared libraries.
9863       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9864     else
9865       # We preserve .a as extension for shared libraries through AIX4.2
9866       # and later when we are not doing run time linking.
9867       library_names_spec='${libname}${release}.a $libname.a'
9868       soname_spec='${libname}${release}${shared_ext}$major'
9869     fi
9870     shlibpath_var=LIBPATH
9871   fi
9872   ;;
9873
9874 amigaos*)
9875   library_names_spec='$libname.ixlibrary $libname.a'
9876   # Create ${libname}_ixlibrary.a entries in /sys/libs.
9877   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'
9878   ;;
9879
9880 beos*)
9881   library_names_spec='${libname}${shared_ext}'
9882   dynamic_linker="$host_os ld.so"
9883   shlibpath_var=LIBRARY_PATH
9884   ;;
9885
9886 bsdi[45]*)
9887   version_type=linux
9888   need_version=no
9889   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9890   soname_spec='${libname}${release}${shared_ext}$major'
9891   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9892   shlibpath_var=LD_LIBRARY_PATH
9893   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9894   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9895   # the default ld.so.conf also contains /usr/contrib/lib and
9896   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9897   # libtool to hard-code these into programs
9898   ;;
9899
9900 cygwin* | mingw* | pw32*)
9901   version_type=windows
9902   shrext_cmds=".dll"
9903   need_version=no
9904   need_lib_prefix=no
9905
9906   case $GCC,$host_os in
9907   yes,cygwin* | yes,mingw* | yes,pw32*)
9908     library_names_spec='$libname.dll.a'
9909     # DLL is installed to $(libdir)/../bin by postinstall_cmds
9910     postinstall_cmds='base_file=`basename \${file}`~
9911       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9912       dldir=$destdir/`dirname \$dlpath`~
9913       test -d \$dldir || mkdir -p \$dldir~
9914       $install_prog $dir/$dlname \$dldir/$dlname~
9915       chmod a+x \$dldir/$dlname'
9916     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9917       dlpath=$dir/\$dldll~
9918        $rm \$dlpath'
9919     shlibpath_overrides_runpath=yes
9920
9921     case $host_os in
9922     cygwin*)
9923       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9924       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9925       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9926       ;;
9927     mingw*)
9928       # MinGW DLLs use traditional 'lib' prefix
9929       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9930       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9931       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9932         # It is most probably a Windows format PATH printed by
9933         # mingw gcc, but we are running on Cygwin. Gcc prints its search
9934         # path with ; separators, and with drive letters. We can handle the
9935         # drive letters (cygwin fileutils understands them), so leave them,
9936         # especially as we might pass files found there to a mingw objdump,
9937         # which wouldn't understand a cygwinified path. Ahh.
9938         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9939       else
9940         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9941       fi
9942       ;;
9943     pw32*)
9944       # pw32 DLLs use 'pw' prefix rather than 'lib'
9945       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9946       ;;
9947     esac
9948     ;;
9949
9950   *)
9951     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9952     ;;
9953   esac
9954   dynamic_linker='Win32 ld.exe'
9955   # FIXME: first we should search . and the directory the executable is in
9956   shlibpath_var=PATH
9957   ;;
9958
9959 darwin* | rhapsody*)
9960   dynamic_linker="$host_os dyld"
9961   version_type=darwin
9962   need_lib_prefix=no
9963   need_version=no
9964   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9965   soname_spec='${libname}${release}${major}$shared_ext'
9966   shlibpath_overrides_runpath=yes
9967   shlibpath_var=DYLD_LIBRARY_PATH
9968   shrext_cmds='.dylib'
9969   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9970   if test "$GCC" = yes; then
9971     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"`
9972   else
9973     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9974   fi
9975   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9976   ;;
9977
9978 dgux*)
9979   version_type=linux
9980   need_lib_prefix=no
9981   need_version=no
9982   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9983   soname_spec='${libname}${release}${shared_ext}$major'
9984   shlibpath_var=LD_LIBRARY_PATH
9985   ;;
9986
9987 freebsd1*)
9988   dynamic_linker=no
9989   ;;
9990
9991 kfreebsd*-gnu)
9992   version_type=linux
9993   need_lib_prefix=no
9994   need_version=no
9995   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9996   soname_spec='${libname}${release}${shared_ext}$major'
9997   shlibpath_var=LD_LIBRARY_PATH
9998   shlibpath_overrides_runpath=no
9999   hardcode_into_libs=yes
10000   dynamic_linker='GNU ld.so'
10001   ;;
10002
10003 freebsd* | dragonfly*)
10004   # DragonFly does not have aout.  When/if they implement a new
10005   # versioning mechanism, adjust this.
10006   if test -x /usr/bin/objformat; then
10007     objformat=`/usr/bin/objformat`
10008   else
10009     case $host_os in
10010     freebsd[123]*) objformat=aout ;;
10011     *) objformat=elf ;;
10012     esac
10013   fi
10014   version_type=freebsd-$objformat
10015   case $version_type in
10016     freebsd-elf*)
10017       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10018       need_version=no
10019       need_lib_prefix=no
10020       ;;
10021     freebsd-*)
10022       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10023       need_version=yes
10024       ;;
10025   esac
10026   shlibpath_var=LD_LIBRARY_PATH
10027   case $host_os in
10028   freebsd2*)
10029     shlibpath_overrides_runpath=yes
10030     ;;
10031   freebsd3.[01]* | freebsdelf3.[01]*)
10032     shlibpath_overrides_runpath=yes
10033     hardcode_into_libs=yes
10034     ;;
10035   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10036   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10037     shlibpath_overrides_runpath=no
10038     hardcode_into_libs=yes
10039     ;;
10040   freebsd*) # from 4.6 on
10041     shlibpath_overrides_runpath=yes
10042     hardcode_into_libs=yes
10043     ;;
10044   esac
10045   ;;
10046
10047 gnu*)
10048   version_type=linux
10049   need_lib_prefix=no
10050   need_version=no
10051   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10052   soname_spec='${libname}${release}${shared_ext}$major'
10053   shlibpath_var=LD_LIBRARY_PATH
10054   hardcode_into_libs=yes
10055   ;;
10056
10057 hpux9* | hpux10* | hpux11*)
10058   # Give a soname corresponding to the major version so that dld.sl refuses to
10059   # link against other versions.
10060   version_type=sunos
10061   need_lib_prefix=no
10062   need_version=no
10063   case $host_cpu in
10064   ia64*)
10065     shrext_cmds='.so'
10066     hardcode_into_libs=yes
10067     dynamic_linker="$host_os dld.so"
10068     shlibpath_var=LD_LIBRARY_PATH
10069     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10070     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10071     soname_spec='${libname}${release}${shared_ext}$major'
10072     if test "X$HPUX_IA64_MODE" = X32; then
10073       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10074     else
10075       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10076     fi
10077     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10078     ;;
10079    hppa*64*)
10080      shrext_cmds='.sl'
10081      hardcode_into_libs=yes
10082      dynamic_linker="$host_os dld.sl"
10083      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10084      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10085      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10086      soname_spec='${libname}${release}${shared_ext}$major'
10087      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10088      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10089      ;;
10090    *)
10091     shrext_cmds='.sl'
10092     dynamic_linker="$host_os dld.sl"
10093     shlibpath_var=SHLIB_PATH
10094     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10095     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10096     soname_spec='${libname}${release}${shared_ext}$major'
10097     ;;
10098   esac
10099   # HP-UX runs *really* slowly unless shared libraries are mode 555.
10100   postinstall_cmds='chmod 555 $lib'
10101   ;;
10102
10103 interix3*)
10104   version_type=linux
10105   need_lib_prefix=no
10106   need_version=no
10107   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10108   soname_spec='${libname}${release}${shared_ext}$major'
10109   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10110   shlibpath_var=LD_LIBRARY_PATH
10111   shlibpath_overrides_runpath=no
10112   hardcode_into_libs=yes
10113   ;;
10114
10115 irix5* | irix6* | nonstopux*)
10116   case $host_os in
10117     nonstopux*) version_type=nonstopux ;;
10118     *)
10119         if test "$lt_cv_prog_gnu_ld" = yes; then
10120                 version_type=linux
10121         else
10122                 version_type=irix
10123         fi ;;
10124   esac
10125   need_lib_prefix=no
10126   need_version=no
10127   soname_spec='${libname}${release}${shared_ext}$major'
10128   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10129   case $host_os in
10130   irix5* | nonstopux*)
10131     libsuff= shlibsuff=
10132     ;;
10133   *)
10134     case $LD in # libtool.m4 will add one of these switches to LD
10135     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10136       libsuff= shlibsuff= libmagic=32-bit;;
10137     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10138       libsuff=32 shlibsuff=N32 libmagic=N32;;
10139     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10140       libsuff=64 shlibsuff=64 libmagic=64-bit;;
10141     *) libsuff= shlibsuff= libmagic=never-match;;
10142     esac
10143     ;;
10144   esac
10145   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10146   shlibpath_overrides_runpath=no
10147   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10148   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10149   hardcode_into_libs=yes
10150   ;;
10151
10152 # No shared lib support for Linux oldld, aout, or coff.
10153 linux*oldld* | linux*aout* | linux*coff*)
10154   dynamic_linker=no
10155   ;;
10156
10157 # This must be Linux ELF.
10158 linux*)
10159   version_type=linux
10160   need_lib_prefix=no
10161   need_version=no
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   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10165   shlibpath_var=LD_LIBRARY_PATH
10166   shlibpath_overrides_runpath=no
10167   # This implies no fast_install, which is unacceptable.
10168   # Some rework will be needed to allow for fast_install
10169   # before this can be enabled.
10170   hardcode_into_libs=yes
10171
10172   # Append ld.so.conf contents to the search path
10173   if test -f /etc/ld.so.conf; then
10174     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' ' '`
10175     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10176   fi
10177
10178   # We used to test for /lib/ld.so.1 and disable shared libraries on
10179   # powerpc, because MkLinux only supported shared libraries with the
10180   # GNU dynamic linker.  Since this was broken with cross compilers,
10181   # most powerpc-linux boxes support dynamic linking these days and
10182   # people can always --disable-shared, the test was removed, and we
10183   # assume the GNU/Linux dynamic linker is in use.
10184   dynamic_linker='GNU/Linux ld.so'
10185   ;;
10186
10187 knetbsd*-gnu)
10188   version_type=linux
10189   need_lib_prefix=no
10190   need_version=no
10191   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10192   soname_spec='${libname}${release}${shared_ext}$major'
10193   shlibpath_var=LD_LIBRARY_PATH
10194   shlibpath_overrides_runpath=no
10195   hardcode_into_libs=yes
10196   dynamic_linker='GNU ld.so'
10197   ;;
10198
10199 netbsd*)
10200   version_type=sunos
10201   need_lib_prefix=no
10202   need_version=no
10203   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10204     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10205     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10206     dynamic_linker='NetBSD (a.out) ld.so'
10207   else
10208     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10209     soname_spec='${libname}${release}${shared_ext}$major'
10210     dynamic_linker='NetBSD ld.elf_so'
10211   fi
10212   shlibpath_var=LD_LIBRARY_PATH
10213   shlibpath_overrides_runpath=yes
10214   hardcode_into_libs=yes
10215   ;;
10216
10217 newsos6)
10218   version_type=linux
10219   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10220   shlibpath_var=LD_LIBRARY_PATH
10221   shlibpath_overrides_runpath=yes
10222   ;;
10223
10224 nto-qnx*)
10225   version_type=linux
10226   need_lib_prefix=no
10227   need_version=no
10228   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10229   soname_spec='${libname}${release}${shared_ext}$major'
10230   shlibpath_var=LD_LIBRARY_PATH
10231   shlibpath_overrides_runpath=yes
10232   ;;
10233
10234 openbsd*)
10235   version_type=sunos
10236   sys_lib_dlsearch_path_spec="/usr/lib"
10237   need_lib_prefix=no
10238   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10239   case $host_os in
10240     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10241     *)                         need_version=no  ;;
10242   esac
10243   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10244   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10245   shlibpath_var=LD_LIBRARY_PATH
10246   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10247     case $host_os in
10248       openbsd2.[89] | openbsd2.[89].*)
10249         shlibpath_overrides_runpath=no
10250         ;;
10251       *)
10252         shlibpath_overrides_runpath=yes
10253         ;;
10254       esac
10255   else
10256     shlibpath_overrides_runpath=yes
10257   fi
10258   ;;
10259
10260 os2*)
10261   libname_spec='$name'
10262   shrext_cmds=".dll"
10263   need_lib_prefix=no
10264   library_names_spec='$libname${shared_ext} $libname.a'
10265   dynamic_linker='OS/2 ld.exe'
10266   shlibpath_var=LIBPATH
10267   ;;
10268
10269 osf3* | osf4* | osf5*)
10270   version_type=osf
10271   need_lib_prefix=no
10272   need_version=no
10273   soname_spec='${libname}${release}${shared_ext}$major'
10274   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10275   shlibpath_var=LD_LIBRARY_PATH
10276   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10277   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10278   ;;
10279
10280 solaris*)
10281   version_type=linux
10282   need_lib_prefix=no
10283   need_version=no
10284   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10285   soname_spec='${libname}${release}${shared_ext}$major'
10286   shlibpath_var=LD_LIBRARY_PATH
10287   shlibpath_overrides_runpath=yes
10288   hardcode_into_libs=yes
10289   # ldd complains unless libraries are executable
10290   postinstall_cmds='chmod +x $lib'
10291   ;;
10292
10293 sunos4*)
10294   version_type=sunos
10295   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10296   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10297   shlibpath_var=LD_LIBRARY_PATH
10298   shlibpath_overrides_runpath=yes
10299   if test "$with_gnu_ld" = yes; then
10300     need_lib_prefix=no
10301   fi
10302   need_version=yes
10303   ;;
10304
10305 sysv4 | sysv4.3*)
10306   version_type=linux
10307   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10308   soname_spec='${libname}${release}${shared_ext}$major'
10309   shlibpath_var=LD_LIBRARY_PATH
10310   case $host_vendor in
10311     sni)
10312       shlibpath_overrides_runpath=no
10313       need_lib_prefix=no
10314       export_dynamic_flag_spec='${wl}-Blargedynsym'
10315       runpath_var=LD_RUN_PATH
10316       ;;
10317     siemens)
10318       need_lib_prefix=no
10319       ;;
10320     motorola)
10321       need_lib_prefix=no
10322       need_version=no
10323       shlibpath_overrides_runpath=no
10324       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10325       ;;
10326   esac
10327   ;;
10328
10329 sysv4*MP*)
10330   if test -d /usr/nec ;then
10331     version_type=linux
10332     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10333     soname_spec='$libname${shared_ext}.$major'
10334     shlibpath_var=LD_LIBRARY_PATH
10335   fi
10336   ;;
10337
10338 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10339   version_type=freebsd-elf
10340   need_lib_prefix=no
10341   need_version=no
10342   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10343   soname_spec='${libname}${release}${shared_ext}$major'
10344   shlibpath_var=LD_LIBRARY_PATH
10345   hardcode_into_libs=yes
10346   if test "$with_gnu_ld" = yes; then
10347     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10348     shlibpath_overrides_runpath=no
10349   else
10350     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10351     shlibpath_overrides_runpath=yes
10352     case $host_os in
10353       sco3.2v5*)
10354         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10355         ;;
10356     esac
10357   fi
10358   sys_lib_dlsearch_path_spec='/usr/lib'
10359   ;;
10360
10361 uts4*)
10362   version_type=linux
10363   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10364   soname_spec='${libname}${release}${shared_ext}$major'
10365   shlibpath_var=LD_LIBRARY_PATH
10366   ;;
10367
10368 *)
10369   dynamic_linker=no
10370   ;;
10371 esac
10372 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10373 echo "${ECHO_T}$dynamic_linker" >&6; }
10374 test "$dynamic_linker" = no && can_build_shared=no
10375
10376 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10377 if test "$GCC" = yes; then
10378   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10379 fi
10380
10381
10382 { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
10383 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
10384 if test "${libltdl_cv_shlibext+set}" = set; then
10385   echo $ECHO_N "(cached) $ECHO_C" >&6
10386 else
10387
10388 module=yes
10389 eval libltdl_cv_shlibext=$shrext_cmds
10390
10391 fi
10392 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
10393 echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
10394 if test -n "$libltdl_cv_shlibext"; then
10395
10396 cat >>confdefs.h <<_ACEOF
10397 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
10398 _ACEOF
10399
10400 fi
10401
10402
10403 { echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
10404 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
10405 if test "${libltdl_cv_shlibpath_var+set}" = set; then
10406   echo $ECHO_N "(cached) $ECHO_C" >&6
10407 else
10408   libltdl_cv_shlibpath_var="$shlibpath_var"
10409 fi
10410 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
10411 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
10412 if test -n "$libltdl_cv_shlibpath_var"; then
10413
10414 cat >>confdefs.h <<_ACEOF
10415 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
10416 _ACEOF
10417
10418 fi
10419
10420
10421 { echo "$as_me:$LINENO: checking for the default library search path" >&5
10422 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
10423 if test "${libltdl_cv_sys_search_path+set}" = set; then
10424   echo $ECHO_N "(cached) $ECHO_C" >&6
10425 else
10426   libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
10427 fi
10428 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
10429 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
10430 if test -n "$libltdl_cv_sys_search_path"; then
10431   sys_search_path=
10432   for dir in $libltdl_cv_sys_search_path; do
10433     if test -z "$sys_search_path"; then
10434       sys_search_path="$dir"
10435     else
10436       sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
10437     fi
10438   done
10439
10440 cat >>confdefs.h <<_ACEOF
10441 #define LTDL_SYSSEARCHPATH "$sys_search_path"
10442 _ACEOF
10443
10444 fi
10445
10446 { echo "$as_me:$LINENO: checking for objdir" >&5
10447 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
10448 if test "${libltdl_cv_objdir+set}" = set; then
10449   echo $ECHO_N "(cached) $ECHO_C" >&6
10450 else
10451   libltdl_cv_objdir="$objdir"
10452   if test -n "$objdir"; then
10453     :
10454   else
10455     rm -f .libs 2>/dev/null
10456     mkdir .libs 2>/dev/null
10457     if test -d .libs; then
10458       libltdl_cv_objdir=.libs
10459     else
10460       # MS-DOS does not allow filenames that begin with a dot.
10461       libltdl_cv_objdir=_libs
10462     fi
10463   rmdir .libs 2>/dev/null
10464   fi
10465
10466 fi
10467 { echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
10468 echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
10469
10470 cat >>confdefs.h <<_ACEOF
10471 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
10472 _ACEOF
10473
10474
10475
10476
10477
10478
10479 # Check for command to grab the raw symbol name followed by C symbol from nm.
10480 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
10481 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
10482 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
10483   echo $ECHO_N "(cached) $ECHO_C" >&6
10484 else
10485
10486 # These are sane defaults that work on at least a few old systems.
10487 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
10488
10489 # Character class describing NM global symbol codes.
10490 symcode='[BCDEGRST]'
10491
10492 # Regexp to match symbols that can be accessed directly from C.
10493 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
10494
10495 # Transform an extracted symbol line into a proper C declaration
10496 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
10497
10498 # Transform an extracted symbol line into symbol name and symbol address
10499 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'"
10500
10501 # Define system-specific variables.
10502 case $host_os in
10503 aix*)
10504   symcode='[BCDT]'
10505   ;;
10506 cygwin* | mingw* | pw32*)
10507   symcode='[ABCDGISTW]'
10508   ;;
10509 hpux*) # Its linker distinguishes data from code symbols
10510   if test "$host_cpu" = ia64; then
10511     symcode='[ABCDEGRST]'
10512   fi
10513   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10514   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'"
10515   ;;
10516 linux*)
10517   if test "$host_cpu" = ia64; then
10518     symcode='[ABCDGIRSTW]'
10519     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10520     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'"
10521   fi
10522   ;;
10523 irix* | nonstopux*)
10524   symcode='[BCDEGRST]'
10525   ;;
10526 osf*)
10527   symcode='[BCDEGQRST]'
10528   ;;
10529 solaris*)
10530   symcode='[BDRT]'
10531   ;;
10532 sco3.2v5*)
10533   symcode='[DT]'
10534   ;;
10535 sysv4.2uw2*)
10536   symcode='[DT]'
10537   ;;
10538 sysv5* | sco5v6* | unixware* | OpenUNIX*)
10539   symcode='[ABDT]'
10540   ;;
10541 sysv4)
10542   symcode='[DFNSTU]'
10543   ;;
10544 esac
10545
10546 # Handle CRLF in mingw tool chain
10547 opt_cr=
10548 case $build_os in
10549 mingw*)
10550   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
10551   ;;
10552 esac
10553
10554 # If we're using GNU nm, then use its standard symbol codes.
10555 case `$NM -V 2>&1` in
10556 *GNU* | *'with BFD'*)
10557   symcode='[ABCDGIRSTW]' ;;
10558 esac
10559
10560 # Try without a prefix undercore, then with it.
10561 for ac_symprfx in "" "_"; do
10562
10563   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
10564   symxfrm="\\1 $ac_symprfx\\2 \\2"
10565
10566   # Write the raw and C identifiers.
10567   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
10568
10569   # Check to see that the pipe works correctly.
10570   pipe_works=no
10571
10572   rm -f conftest*
10573   cat > conftest.$ac_ext <<EOF
10574 #ifdef __cplusplus
10575 extern "C" {
10576 #endif
10577 char nm_test_var;
10578 void nm_test_func(){}
10579 #ifdef __cplusplus
10580 }
10581 #endif
10582 int main(){nm_test_var='a';nm_test_func();return(0);}
10583 EOF
10584
10585   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10586   (eval $ac_compile) 2>&5
10587   ac_status=$?
10588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10589   (exit $ac_status); }; then
10590     # Now try to grab the symbols.
10591     nlist=conftest.nm
10592     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
10593   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
10594   ac_status=$?
10595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10596   (exit $ac_status); } && test -s "$nlist"; then
10597       # Try sorting and uniquifying the output.
10598       if sort "$nlist" | uniq > "$nlist"T; then
10599         mv -f "$nlist"T "$nlist"
10600       else
10601         rm -f "$nlist"T
10602       fi
10603
10604       # Make sure that we snagged all the symbols we need.
10605       if grep ' nm_test_var$' "$nlist" >/dev/null; then
10606         if grep ' nm_test_func$' "$nlist" >/dev/null; then
10607           cat <<EOF > conftest.$ac_ext
10608 #ifdef __cplusplus
10609 extern "C" {
10610 #endif
10611
10612 EOF
10613           # Now generate the symbol file.
10614           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
10615
10616           cat <<EOF >> conftest.$ac_ext
10617 #if defined (__STDC__) && __STDC__
10618 # define lt_ptr_t void *
10619 #else
10620 # define lt_ptr_t char *
10621 # define const
10622 #endif
10623
10624 /* The mapping between symbol names and symbols. */
10625 const struct {
10626   const char *name;
10627   lt_ptr_t address;
10628 }
10629 lt_preloaded_symbols[] =
10630 {
10631 EOF
10632           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
10633           cat <<\EOF >> conftest.$ac_ext
10634   {0, (lt_ptr_t) 0}
10635 };
10636
10637 #ifdef __cplusplus
10638 }
10639 #endif
10640 EOF
10641           # Now try linking the two files.
10642           mv conftest.$ac_objext conftstm.$ac_objext
10643           lt_save_LIBS="$LIBS"
10644           lt_save_CFLAGS="$CFLAGS"
10645           LIBS="conftstm.$ac_objext"
10646           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
10647           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10648   (eval $ac_link) 2>&5
10649   ac_status=$?
10650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10651   (exit $ac_status); } && test -s conftest${ac_exeext}; then
10652             pipe_works=yes
10653           fi
10654           LIBS="$lt_save_LIBS"
10655           CFLAGS="$lt_save_CFLAGS"
10656         else
10657           echo "cannot find nm_test_func in $nlist" >&5
10658         fi
10659       else
10660         echo "cannot find nm_test_var in $nlist" >&5
10661       fi
10662     else
10663       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
10664     fi
10665   else
10666     echo "$progname: failed program was:" >&5
10667     cat conftest.$ac_ext >&5
10668   fi
10669   rm -f conftest* conftst*
10670
10671   # Do not use the global_symbol_pipe unless it works.
10672   if test "$pipe_works" = yes; then
10673     break
10674   else
10675     lt_cv_sys_global_symbol_pipe=
10676   fi
10677 done
10678
10679 fi
10680
10681 if test -z "$lt_cv_sys_global_symbol_pipe"; then
10682   lt_cv_sys_global_symbol_to_cdecl=
10683 fi
10684 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
10685   { echo "$as_me:$LINENO: result: failed" >&5
10686 echo "${ECHO_T}failed" >&6; }
10687 else
10688   { echo "$as_me:$LINENO: result: ok" >&5
10689 echo "${ECHO_T}ok" >&6; }
10690 fi
10691
10692
10693 { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
10694 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
10695 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
10696   echo $ECHO_N "(cached) $ECHO_C" >&6
10697 else
10698   if test -n "$lt_cv_sys_global_symbol_pipe"; then
10699     libltdl_cv_preloaded_symbols=yes
10700   else
10701     libltdl_cv_preloaded_symbols=no
10702   fi
10703
10704 fi
10705 { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
10706 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
10707 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
10708
10709 cat >>confdefs.h <<\_ACEOF
10710 #define HAVE_PRELOADED_SYMBOLS 1
10711 _ACEOF
10712
10713 fi
10714
10715 LIBADD_DL=
10716
10717 ac_ext=c
10718 ac_cpp='$CPP $CPPFLAGS'
10719 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10720 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10721 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10722
10723
10724 { echo "$as_me:$LINENO: checking for shl_load" >&5
10725 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
10726 if test "${ac_cv_func_shl_load+set}" = set; then
10727   echo $ECHO_N "(cached) $ECHO_C" >&6
10728 else
10729   cat >conftest.$ac_ext <<_ACEOF
10730 /* confdefs.h.  */
10731 _ACEOF
10732 cat confdefs.h >>conftest.$ac_ext
10733 cat >>conftest.$ac_ext <<_ACEOF
10734 /* end confdefs.h.  */
10735 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10736    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10737 #define shl_load innocuous_shl_load
10738
10739 /* System header to define __stub macros and hopefully few prototypes,
10740     which can conflict with char shl_load (); below.
10741     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10742     <limits.h> exists even on freestanding compilers.  */
10743
10744 #ifdef __STDC__
10745 # include <limits.h>
10746 #else
10747 # include <assert.h>
10748 #endif
10749
10750 #undef shl_load
10751
10752 /* Override any GCC internal prototype to avoid an error.
10753    Use char because int might match the return type of a GCC
10754    builtin and then its argument prototype would still apply.  */
10755 #ifdef __cplusplus
10756 extern "C"
10757 #endif
10758 char shl_load ();
10759 /* The GNU C library defines this for functions which it implements
10760     to always fail with ENOSYS.  Some functions are actually named
10761     something starting with __ and the normal name is an alias.  */
10762 #if defined __stub_shl_load || defined __stub___shl_load
10763 choke me
10764 #endif
10765
10766 int
10767 main ()
10768 {
10769 return shl_load ();
10770   ;
10771   return 0;
10772 }
10773 _ACEOF
10774 rm -f conftest.$ac_objext conftest$ac_exeext
10775 if { (ac_try="$ac_link"
10776 case "(($ac_try" in
10777   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10778   *) ac_try_echo=$ac_try;;
10779 esac
10780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10781   (eval "$ac_link") 2>conftest.er1
10782   ac_status=$?
10783   grep -v '^ *+' conftest.er1 >conftest.err
10784   rm -f conftest.er1
10785   cat conftest.err >&5
10786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10787   (exit $ac_status); } &&
10788          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10789   { (case "(($ac_try" in
10790   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10791   *) ac_try_echo=$ac_try;;
10792 esac
10793 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10794   (eval "$ac_try") 2>&5
10795   ac_status=$?
10796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10797   (exit $ac_status); }; } &&
10798          { ac_try='test -s conftest$ac_exeext'
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_try") 2>&5
10805   ac_status=$?
10806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10807   (exit $ac_status); }; }; then
10808   ac_cv_func_shl_load=yes
10809 else
10810   echo "$as_me: failed program was:" >&5
10811 sed 's/^/| /' conftest.$ac_ext >&5
10812
10813         ac_cv_func_shl_load=no
10814 fi
10815
10816 rm -f core conftest.err conftest.$ac_objext \
10817       conftest$ac_exeext conftest.$ac_ext
10818 fi
10819 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10820 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
10821 if test $ac_cv_func_shl_load = yes; then
10822
10823 cat >>confdefs.h <<\_ACEOF
10824 #define HAVE_SHL_LOAD 1
10825 _ACEOF
10826
10827 else
10828   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10829 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
10830 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10831   echo $ECHO_N "(cached) $ECHO_C" >&6
10832 else
10833   ac_check_lib_save_LIBS=$LIBS
10834 LIBS="-ldld  $LIBS"
10835 cat >conftest.$ac_ext <<_ACEOF
10836 /* confdefs.h.  */
10837 _ACEOF
10838 cat confdefs.h >>conftest.$ac_ext
10839 cat >>conftest.$ac_ext <<_ACEOF
10840 /* end confdefs.h.  */
10841
10842 /* Override any GCC internal prototype to avoid an error.
10843    Use char because int might match the return type of a GCC
10844    builtin and then its argument prototype would still apply.  */
10845 #ifdef __cplusplus
10846 extern "C"
10847 #endif
10848 char shl_load ();
10849 int
10850 main ()
10851 {
10852 return shl_load ();
10853   ;
10854   return 0;
10855 }
10856 _ACEOF
10857 rm -f conftest.$ac_objext conftest$ac_exeext
10858 if { (ac_try="$ac_link"
10859 case "(($ac_try" in
10860   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10861   *) ac_try_echo=$ac_try;;
10862 esac
10863 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10864   (eval "$ac_link") 2>conftest.er1
10865   ac_status=$?
10866   grep -v '^ *+' conftest.er1 >conftest.err
10867   rm -f conftest.er1
10868   cat conftest.err >&5
10869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10870   (exit $ac_status); } &&
10871          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10872   { (case "(($ac_try" in
10873   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10874   *) ac_try_echo=$ac_try;;
10875 esac
10876 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10877   (eval "$ac_try") 2>&5
10878   ac_status=$?
10879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10880   (exit $ac_status); }; } &&
10881          { ac_try='test -s conftest$ac_exeext'
10882   { (case "(($ac_try" in
10883   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10884   *) ac_try_echo=$ac_try;;
10885 esac
10886 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10887   (eval "$ac_try") 2>&5
10888   ac_status=$?
10889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10890   (exit $ac_status); }; }; then
10891   ac_cv_lib_dld_shl_load=yes
10892 else
10893   echo "$as_me: failed program was:" >&5
10894 sed 's/^/| /' conftest.$ac_ext >&5
10895
10896         ac_cv_lib_dld_shl_load=no
10897 fi
10898
10899 rm -f core conftest.err conftest.$ac_objext \
10900       conftest$ac_exeext conftest.$ac_ext
10901 LIBS=$ac_check_lib_save_LIBS
10902 fi
10903 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10904 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
10905 if test $ac_cv_lib_dld_shl_load = yes; then
10906
10907 cat >>confdefs.h <<\_ACEOF
10908 #define HAVE_SHL_LOAD 1
10909 _ACEOF
10910
10911         LIBADD_DL="$LIBADD_DL -ldld"
10912 else
10913   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10914 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10915 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10916   echo $ECHO_N "(cached) $ECHO_C" >&6
10917 else
10918   ac_check_lib_save_LIBS=$LIBS
10919 LIBS="-ldl  $LIBS"
10920 cat >conftest.$ac_ext <<_ACEOF
10921 /* confdefs.h.  */
10922 _ACEOF
10923 cat confdefs.h >>conftest.$ac_ext
10924 cat >>conftest.$ac_ext <<_ACEOF
10925 /* end confdefs.h.  */
10926
10927 /* Override any GCC internal prototype to avoid an error.
10928    Use char because int might match the return type of a GCC
10929    builtin and then its argument prototype would still apply.  */
10930 #ifdef __cplusplus
10931 extern "C"
10932 #endif
10933 char dlopen ();
10934 int
10935 main ()
10936 {
10937 return dlopen ();
10938   ;
10939   return 0;
10940 }
10941 _ACEOF
10942 rm -f conftest.$ac_objext conftest$ac_exeext
10943 if { (ac_try="$ac_link"
10944 case "(($ac_try" in
10945   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10946   *) ac_try_echo=$ac_try;;
10947 esac
10948 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10949   (eval "$ac_link") 2>conftest.er1
10950   ac_status=$?
10951   grep -v '^ *+' conftest.er1 >conftest.err
10952   rm -f conftest.er1
10953   cat conftest.err >&5
10954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10955   (exit $ac_status); } &&
10956          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10957   { (case "(($ac_try" in
10958   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10959   *) ac_try_echo=$ac_try;;
10960 esac
10961 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10962   (eval "$ac_try") 2>&5
10963   ac_status=$?
10964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10965   (exit $ac_status); }; } &&
10966          { ac_try='test -s conftest$ac_exeext'
10967   { (case "(($ac_try" in
10968   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10969   *) ac_try_echo=$ac_try;;
10970 esac
10971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10972   (eval "$ac_try") 2>&5
10973   ac_status=$?
10974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10975   (exit $ac_status); }; }; then
10976   ac_cv_lib_dl_dlopen=yes
10977 else
10978   echo "$as_me: failed program was:" >&5
10979 sed 's/^/| /' conftest.$ac_ext >&5
10980
10981         ac_cv_lib_dl_dlopen=no
10982 fi
10983
10984 rm -f core conftest.err conftest.$ac_objext \
10985       conftest$ac_exeext conftest.$ac_ext
10986 LIBS=$ac_check_lib_save_LIBS
10987 fi
10988 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10989 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10990 if test $ac_cv_lib_dl_dlopen = yes; then
10991
10992 cat >>confdefs.h <<\_ACEOF
10993 #define HAVE_LIBDL 1
10994 _ACEOF
10995
10996                 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
10997 else
10998   cat >conftest.$ac_ext <<_ACEOF
10999 /* confdefs.h.  */
11000 _ACEOF
11001 cat confdefs.h >>conftest.$ac_ext
11002 cat >>conftest.$ac_ext <<_ACEOF
11003 /* end confdefs.h.  */
11004 #if HAVE_DLFCN_H
11005 #  include <dlfcn.h>
11006 #endif
11007
11008 int
11009 main ()
11010 {
11011 dlopen(0, 0);
11012   ;
11013   return 0;
11014 }
11015 _ACEOF
11016 rm -f conftest.$ac_objext conftest$ac_exeext
11017 if { (ac_try="$ac_link"
11018 case "(($ac_try" in
11019   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11020   *) ac_try_echo=$ac_try;;
11021 esac
11022 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11023   (eval "$ac_link") 2>conftest.er1
11024   ac_status=$?
11025   grep -v '^ *+' conftest.er1 >conftest.err
11026   rm -f conftest.er1
11027   cat conftest.err >&5
11028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11029   (exit $ac_status); } &&
11030          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11031   { (case "(($ac_try" in
11032   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11033   *) ac_try_echo=$ac_try;;
11034 esac
11035 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11036   (eval "$ac_try") 2>&5
11037   ac_status=$?
11038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11039   (exit $ac_status); }; } &&
11040          { ac_try='test -s conftest$ac_exeext'
11041   { (case "(($ac_try" in
11042   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11043   *) ac_try_echo=$ac_try;;
11044 esac
11045 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11046   (eval "$ac_try") 2>&5
11047   ac_status=$?
11048   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11049   (exit $ac_status); }; }; then
11050
11051 cat >>confdefs.h <<\_ACEOF
11052 #define HAVE_LIBDL 1
11053 _ACEOF
11054  libltdl_cv_func_dlopen="yes"
11055 else
11056   echo "$as_me: failed program was:" >&5
11057 sed 's/^/| /' conftest.$ac_ext >&5
11058
11059         { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
11060 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
11061 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
11062   echo $ECHO_N "(cached) $ECHO_C" >&6
11063 else
11064   ac_check_lib_save_LIBS=$LIBS
11065 LIBS="-lsvld  $LIBS"
11066 cat >conftest.$ac_ext <<_ACEOF
11067 /* confdefs.h.  */
11068 _ACEOF
11069 cat confdefs.h >>conftest.$ac_ext
11070 cat >>conftest.$ac_ext <<_ACEOF
11071 /* end confdefs.h.  */
11072
11073 /* Override any GCC internal prototype to avoid an error.
11074    Use char because int might match the return type of a GCC
11075    builtin and then its argument prototype would still apply.  */
11076 #ifdef __cplusplus
11077 extern "C"
11078 #endif
11079 char dlopen ();
11080 int
11081 main ()
11082 {
11083 return dlopen ();
11084   ;
11085   return 0;
11086 }
11087 _ACEOF
11088 rm -f conftest.$ac_objext conftest$ac_exeext
11089 if { (ac_try="$ac_link"
11090 case "(($ac_try" in
11091   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11092   *) ac_try_echo=$ac_try;;
11093 esac
11094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11095   (eval "$ac_link") 2>conftest.er1
11096   ac_status=$?
11097   grep -v '^ *+' conftest.er1 >conftest.err
11098   rm -f conftest.er1
11099   cat conftest.err >&5
11100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11101   (exit $ac_status); } &&
11102          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11103   { (case "(($ac_try" in
11104   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11105   *) ac_try_echo=$ac_try;;
11106 esac
11107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11108   (eval "$ac_try") 2>&5
11109   ac_status=$?
11110   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11111   (exit $ac_status); }; } &&
11112          { ac_try='test -s conftest$ac_exeext'
11113   { (case "(($ac_try" in
11114   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11115   *) ac_try_echo=$ac_try;;
11116 esac
11117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11118   (eval "$ac_try") 2>&5
11119   ac_status=$?
11120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11121   (exit $ac_status); }; }; then
11122   ac_cv_lib_svld_dlopen=yes
11123 else
11124   echo "$as_me: failed program was:" >&5
11125 sed 's/^/| /' conftest.$ac_ext >&5
11126
11127         ac_cv_lib_svld_dlopen=no
11128 fi
11129
11130 rm -f core conftest.err conftest.$ac_objext \
11131       conftest$ac_exeext conftest.$ac_ext
11132 LIBS=$ac_check_lib_save_LIBS
11133 fi
11134 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
11135 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
11136 if test $ac_cv_lib_svld_dlopen = yes; then
11137
11138 cat >>confdefs.h <<\_ACEOF
11139 #define HAVE_LIBDL 1
11140 _ACEOF
11141
11142                     LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
11143 else
11144   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
11145 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
11146 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
11147   echo $ECHO_N "(cached) $ECHO_C" >&6
11148 else
11149   ac_check_lib_save_LIBS=$LIBS
11150 LIBS="-ldld  $LIBS"
11151 cat >conftest.$ac_ext <<_ACEOF
11152 /* confdefs.h.  */
11153 _ACEOF
11154 cat confdefs.h >>conftest.$ac_ext
11155 cat >>conftest.$ac_ext <<_ACEOF
11156 /* end confdefs.h.  */
11157
11158 /* Override any GCC internal prototype to avoid an error.
11159    Use char because int might match the return type of a GCC
11160    builtin and then its argument prototype would still apply.  */
11161 #ifdef __cplusplus
11162 extern "C"
11163 #endif
11164 char dld_link ();
11165 int
11166 main ()
11167 {
11168 return dld_link ();
11169   ;
11170   return 0;
11171 }
11172 _ACEOF
11173 rm -f conftest.$ac_objext conftest$ac_exeext
11174 if { (ac_try="$ac_link"
11175 case "(($ac_try" in
11176   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11177   *) ac_try_echo=$ac_try;;
11178 esac
11179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11180   (eval "$ac_link") 2>conftest.er1
11181   ac_status=$?
11182   grep -v '^ *+' conftest.er1 >conftest.err
11183   rm -f conftest.er1
11184   cat conftest.err >&5
11185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11186   (exit $ac_status); } &&
11187          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11188   { (case "(($ac_try" in
11189   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11190   *) ac_try_echo=$ac_try;;
11191 esac
11192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11193   (eval "$ac_try") 2>&5
11194   ac_status=$?
11195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11196   (exit $ac_status); }; } &&
11197          { ac_try='test -s conftest$ac_exeext'
11198   { (case "(($ac_try" in
11199   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11200   *) ac_try_echo=$ac_try;;
11201 esac
11202 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11203   (eval "$ac_try") 2>&5
11204   ac_status=$?
11205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11206   (exit $ac_status); }; }; then
11207   ac_cv_lib_dld_dld_link=yes
11208 else
11209   echo "$as_me: failed program was:" >&5
11210 sed 's/^/| /' conftest.$ac_ext >&5
11211
11212         ac_cv_lib_dld_dld_link=no
11213 fi
11214
11215 rm -f core conftest.err conftest.$ac_objext \
11216       conftest$ac_exeext conftest.$ac_ext
11217 LIBS=$ac_check_lib_save_LIBS
11218 fi
11219 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11220 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
11221 if test $ac_cv_lib_dld_dld_link = yes; then
11222
11223 cat >>confdefs.h <<\_ACEOF
11224 #define HAVE_DLD 1
11225 _ACEOF
11226
11227                 LIBADD_DL="$LIBADD_DL -ldld"
11228 else
11229   { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
11230 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
11231 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
11232   echo $ECHO_N "(cached) $ECHO_C" >&6
11233 else
11234   cat >conftest.$ac_ext <<_ACEOF
11235 /* confdefs.h.  */
11236 _ACEOF
11237 cat confdefs.h >>conftest.$ac_ext
11238 cat >>conftest.$ac_ext <<_ACEOF
11239 /* end confdefs.h.  */
11240 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
11241    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11242 #define _dyld_func_lookup innocuous__dyld_func_lookup
11243
11244 /* System header to define __stub macros and hopefully few prototypes,
11245     which can conflict with char _dyld_func_lookup (); below.
11246     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11247     <limits.h> exists even on freestanding compilers.  */
11248
11249 #ifdef __STDC__
11250 # include <limits.h>
11251 #else
11252 # include <assert.h>
11253 #endif
11254
11255 #undef _dyld_func_lookup
11256
11257 /* Override any GCC internal prototype to avoid an error.
11258    Use char because int might match the return type of a GCC
11259    builtin and then its argument prototype would still apply.  */
11260 #ifdef __cplusplus
11261 extern "C"
11262 #endif
11263 char _dyld_func_lookup ();
11264 /* The GNU C library defines this for functions which it implements
11265     to always fail with ENOSYS.  Some functions are actually named
11266     something starting with __ and the normal name is an alias.  */
11267 #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
11268 choke me
11269 #endif
11270
11271 int
11272 main ()
11273 {
11274 return _dyld_func_lookup ();
11275   ;
11276   return 0;
11277 }
11278 _ACEOF
11279 rm -f conftest.$ac_objext conftest$ac_exeext
11280 if { (ac_try="$ac_link"
11281 case "(($ac_try" in
11282   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11283   *) ac_try_echo=$ac_try;;
11284 esac
11285 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11286   (eval "$ac_link") 2>conftest.er1
11287   ac_status=$?
11288   grep -v '^ *+' conftest.er1 >conftest.err
11289   rm -f conftest.er1
11290   cat conftest.err >&5
11291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11292   (exit $ac_status); } &&
11293          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11294   { (case "(($ac_try" in
11295   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11296   *) ac_try_echo=$ac_try;;
11297 esac
11298 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11299   (eval "$ac_try") 2>&5
11300   ac_status=$?
11301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11302   (exit $ac_status); }; } &&
11303          { ac_try='test -s conftest$ac_exeext'
11304   { (case "(($ac_try" in
11305   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11306   *) ac_try_echo=$ac_try;;
11307 esac
11308 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11309   (eval "$ac_try") 2>&5
11310   ac_status=$?
11311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11312   (exit $ac_status); }; }; then
11313   ac_cv_func__dyld_func_lookup=yes
11314 else
11315   echo "$as_me: failed program was:" >&5
11316 sed 's/^/| /' conftest.$ac_ext >&5
11317
11318         ac_cv_func__dyld_func_lookup=no
11319 fi
11320
11321 rm -f core conftest.err conftest.$ac_objext \
11322       conftest$ac_exeext conftest.$ac_ext
11323 fi
11324 { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
11325 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
11326 if test $ac_cv_func__dyld_func_lookup = yes; then
11327
11328 cat >>confdefs.h <<\_ACEOF
11329 #define HAVE_DYLD 1
11330 _ACEOF
11331
11332 fi
11333
11334
11335 fi
11336
11337
11338 fi
11339
11340
11341 fi
11342
11343 rm -f core conftest.err conftest.$ac_objext \
11344       conftest$ac_exeext conftest.$ac_ext
11345
11346 fi
11347
11348
11349 fi
11350
11351
11352 fi
11353
11354
11355 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
11356 then
11357   lt_save_LIBS="$LIBS"
11358   LIBS="$LIBS $LIBADD_DL"
11359
11360 for ac_func in dlerror
11361 do
11362 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11363 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11364 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11365 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11366   echo $ECHO_N "(cached) $ECHO_C" >&6
11367 else
11368   cat >conftest.$ac_ext <<_ACEOF
11369 /* confdefs.h.  */
11370 _ACEOF
11371 cat confdefs.h >>conftest.$ac_ext
11372 cat >>conftest.$ac_ext <<_ACEOF
11373 /* end confdefs.h.  */
11374 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11375    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11376 #define $ac_func innocuous_$ac_func
11377
11378 /* System header to define __stub macros and hopefully few prototypes,
11379     which can conflict with char $ac_func (); below.
11380     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11381     <limits.h> exists even on freestanding compilers.  */
11382
11383 #ifdef __STDC__
11384 # include <limits.h>
11385 #else
11386 # include <assert.h>
11387 #endif
11388
11389 #undef $ac_func
11390
11391 /* Override any GCC internal prototype to avoid an error.
11392    Use char because int might match the return type of a GCC
11393    builtin and then its argument prototype would still apply.  */
11394 #ifdef __cplusplus
11395 extern "C"
11396 #endif
11397 char $ac_func ();
11398 /* The GNU C library defines this for functions which it implements
11399     to always fail with ENOSYS.  Some functions are actually named
11400     something starting with __ and the normal name is an alias.  */
11401 #if defined __stub_$ac_func || defined __stub___$ac_func
11402 choke me
11403 #endif
11404
11405 int
11406 main ()
11407 {
11408 return $ac_func ();
11409   ;
11410   return 0;
11411 }
11412 _ACEOF
11413 rm -f conftest.$ac_objext conftest$ac_exeext
11414 if { (ac_try="$ac_link"
11415 case "(($ac_try" in
11416   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11417   *) ac_try_echo=$ac_try;;
11418 esac
11419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11420   (eval "$ac_link") 2>conftest.er1
11421   ac_status=$?
11422   grep -v '^ *+' conftest.er1 >conftest.err
11423   rm -f conftest.er1
11424   cat conftest.err >&5
11425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11426   (exit $ac_status); } &&
11427          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11428   { (case "(($ac_try" in
11429   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11430   *) ac_try_echo=$ac_try;;
11431 esac
11432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11433   (eval "$ac_try") 2>&5
11434   ac_status=$?
11435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11436   (exit $ac_status); }; } &&
11437          { ac_try='test -s conftest$ac_exeext'
11438   { (case "(($ac_try" in
11439   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11440   *) ac_try_echo=$ac_try;;
11441 esac
11442 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11443   (eval "$ac_try") 2>&5
11444   ac_status=$?
11445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11446   (exit $ac_status); }; }; then
11447   eval "$as_ac_var=yes"
11448 else
11449   echo "$as_me: failed program was:" >&5
11450 sed 's/^/| /' conftest.$ac_ext >&5
11451
11452         eval "$as_ac_var=no"
11453 fi
11454
11455 rm -f core conftest.err conftest.$ac_objext \
11456       conftest$ac_exeext conftest.$ac_ext
11457 fi
11458 ac_res=`eval echo '${'$as_ac_var'}'`
11459                { echo "$as_me:$LINENO: result: $ac_res" >&5
11460 echo "${ECHO_T}$ac_res" >&6; }
11461 if test `eval echo '${'$as_ac_var'}'` = yes; then
11462   cat >>confdefs.h <<_ACEOF
11463 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11464 _ACEOF
11465
11466 fi
11467 done
11468
11469   LIBS="$lt_save_LIBS"
11470 fi
11471 ac_ext=c
11472 ac_cpp='$CPP $CPPFLAGS'
11473 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11474 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11475 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11476
11477
11478
11479 { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
11480 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
11481 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
11482   echo $ECHO_N "(cached) $ECHO_C" >&6
11483 else
11484   ac_cv_sys_symbol_underscore=no
11485   cat > conftest.$ac_ext <<EOF
11486 void nm_test_func(){}
11487 int main(){nm_test_func;return 0;}
11488 EOF
11489   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11490   (eval $ac_compile) 2>&5
11491   ac_status=$?
11492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11493   (exit $ac_status); }; then
11494     # Now try to grab the symbols.
11495     ac_nlist=conftest.nm
11496     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
11497   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
11498   ac_status=$?
11499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11500   (exit $ac_status); } && test -s "$ac_nlist"; then
11501       # See whether the symbols have a leading underscore.
11502       if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
11503         ac_cv_sys_symbol_underscore=yes
11504       else
11505         if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
11506           :
11507         else
11508           echo "configure: cannot find nm_test_func in $ac_nlist" >&5
11509         fi
11510       fi
11511     else
11512       echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
11513     fi
11514   else
11515     echo "configure: failed program was:" >&5
11516     cat conftest.c >&5
11517   fi
11518   rm -rf conftest*
11519
11520 fi
11521 { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
11522 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
11523
11524
11525 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
11526   if test x"$libltdl_cv_func_dlopen" = xyes ||
11527      test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
11528         { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
11529 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
11530 if test "${libltdl_cv_need_uscore+set}" = set; then
11531   echo $ECHO_N "(cached) $ECHO_C" >&6
11532 else
11533   libltdl_cv_need_uscore=unknown
11534           save_LIBS="$LIBS"
11535           LIBS="$LIBS $LIBADD_DL"
11536           if test "$cross_compiling" = yes; then :
11537   libltdl_cv_need_uscore=cross
11538 else
11539   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11540   lt_status=$lt_dlunknown
11541   cat > conftest.$ac_ext <<EOF
11542 #line 11542 "configure"
11543 #include "confdefs.h"
11544
11545 #if HAVE_DLFCN_H
11546 #include <dlfcn.h>
11547 #endif
11548
11549 #include <stdio.h>
11550
11551 #ifdef RTLD_GLOBAL
11552 #  define LT_DLGLOBAL           RTLD_GLOBAL
11553 #else
11554 #  ifdef DL_GLOBAL
11555 #    define LT_DLGLOBAL         DL_GLOBAL
11556 #  else
11557 #    define LT_DLGLOBAL         0
11558 #  endif
11559 #endif
11560
11561 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11562    find out it does not work in some platform. */
11563 #ifndef LT_DLLAZY_OR_NOW
11564 #  ifdef RTLD_LAZY
11565 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11566 #  else
11567 #    ifdef DL_LAZY
11568 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11569 #    else
11570 #      ifdef RTLD_NOW
11571 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11572 #      else
11573 #        ifdef DL_NOW
11574 #          define LT_DLLAZY_OR_NOW      DL_NOW
11575 #        else
11576 #          define LT_DLLAZY_OR_NOW      0
11577 #        endif
11578 #      endif
11579 #    endif
11580 #  endif
11581 #endif
11582
11583 #ifdef __cplusplus
11584 extern "C" void exit (int);
11585 #endif
11586
11587 void fnord() { int i=42;}
11588 int main ()
11589 {
11590   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11591   int status = $lt_dlunknown;
11592
11593   if (self)
11594     {
11595       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11596       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11597       /* dlclose (self); */
11598     }
11599   else
11600     puts (dlerror ());
11601
11602     exit (status);
11603 }
11604 EOF
11605   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11606   (eval $ac_link) 2>&5
11607   ac_status=$?
11608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11609   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11610     (./conftest; exit; ) >&5 2>/dev/null
11611     lt_status=$?
11612     case x$lt_status in
11613       x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
11614       x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
11615       x$lt_dlunknown|x*)  ;;
11616     esac
11617   else :
11618     # compilation failed
11619
11620   fi
11621 fi
11622 rm -fr conftest*
11623
11624           LIBS="$save_LIBS"
11625
11626 fi
11627 { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
11628 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
11629   fi
11630 fi
11631
11632 if test x"$libltdl_cv_need_uscore" = xyes; then
11633
11634 cat >>confdefs.h <<\_ACEOF
11635 #define NEED_USCORE 1
11636 _ACEOF
11637
11638 fi
11639
11640
11641 { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
11642 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
11643 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
11644   echo $ECHO_N "(cached) $ECHO_C" >&6
11645 else
11646   # PORTME does your system automatically load deplibs for dlopen?
11647   # or its logical equivalent (e.g. shl_load for HP-UX < 11)
11648   # For now, we just catch OSes we know something about -- in the
11649   # future, we'll try test this programmatically.
11650   libltdl_cv_sys_dlopen_deplibs=unknown
11651   case "$host_os" in
11652   aix3*|aix4.1.*|aix4.2.*)
11653     # Unknown whether this is true for these versions of AIX, but
11654     # we want this `case' here to explicitly catch those versions.
11655     libltdl_cv_sys_dlopen_deplibs=unknown
11656     ;;
11657   aix[45]*)
11658     libltdl_cv_sys_dlopen_deplibs=yes
11659     ;;
11660   darwin*)
11661     # Assuming the user has installed a libdl from somewhere, this is true
11662     # If you are looking for one http://www.opendarwin.org/projects/dlcompat
11663     libltdl_cv_sys_dlopen_deplibs=yes
11664     ;;
11665   gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
11666     # GNU and its variants, using gnu ld.so (Glibc)
11667     libltdl_cv_sys_dlopen_deplibs=yes
11668     ;;
11669   hpux10*|hpux11*)
11670     libltdl_cv_sys_dlopen_deplibs=yes
11671     ;;
11672   interix*)
11673     libltdl_cv_sys_dlopen_deplibs=yes
11674     ;;
11675   irix[12345]*|irix6.[01]*)
11676     # Catch all versions of IRIX before 6.2, and indicate that we don't
11677     # know how it worked for any of those versions.
11678     libltdl_cv_sys_dlopen_deplibs=unknown
11679     ;;
11680   irix*)
11681     # The case above catches anything before 6.2, and it's known that
11682     # at 6.2 and later dlopen does load deplibs.
11683     libltdl_cv_sys_dlopen_deplibs=yes
11684     ;;
11685   netbsd*)
11686     libltdl_cv_sys_dlopen_deplibs=yes
11687     ;;
11688   openbsd*)
11689     libltdl_cv_sys_dlopen_deplibs=yes
11690     ;;
11691   osf[1234]*)
11692     # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
11693     # it did *not* use an RPATH in a shared library to find objects the
11694     # library depends on, so we explictly say `no'.
11695     libltdl_cv_sys_dlopen_deplibs=no
11696     ;;
11697   osf5.0|osf5.0a|osf5.1)
11698     # dlopen *does* load deplibs and with the right loader patch applied
11699     # it even uses RPATH in a shared library to search for shared objects
11700     # that the library depends on, but there's no easy way to know if that
11701     # patch is installed.  Since this is the case, all we can really
11702     # say is unknown -- it depends on the patch being installed.  If
11703     # it is, this changes to `yes'.  Without it, it would be `no'.
11704     libltdl_cv_sys_dlopen_deplibs=unknown
11705     ;;
11706   osf*)
11707     # the two cases above should catch all versions of osf <= 5.1.  Read
11708     # the comments above for what we know about them.
11709     # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
11710     # is used to find them so we can finally say `yes'.
11711     libltdl_cv_sys_dlopen_deplibs=yes
11712     ;;
11713   solaris*)
11714     libltdl_cv_sys_dlopen_deplibs=yes
11715     ;;
11716   sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11717     libltdl_cv_sys_dlopen_deplibs=yes
11718     ;;
11719   esac
11720
11721 fi
11722 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
11723 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
11724 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
11725
11726 cat >>confdefs.h <<\_ACEOF
11727 #define LTDL_DLOPEN_DEPLIBS 1
11728 _ACEOF
11729
11730 fi
11731
11732
11733 for ac_header in argz.h
11734 do
11735 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11736 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11737   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11738 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11739 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11740   echo $ECHO_N "(cached) $ECHO_C" >&6
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 else
11746   # Is the header compilable?
11747 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11748 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11749 cat >conftest.$ac_ext <<_ACEOF
11750 /* confdefs.h.  */
11751 _ACEOF
11752 cat confdefs.h >>conftest.$ac_ext
11753 cat >>conftest.$ac_ext <<_ACEOF
11754 /* end confdefs.h.  */
11755 $ac_includes_default
11756 #include <$ac_header>
11757 _ACEOF
11758 rm -f conftest.$ac_objext
11759 if { (ac_try="$ac_compile"
11760 case "(($ac_try" in
11761   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11762   *) ac_try_echo=$ac_try;;
11763 esac
11764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11765   (eval "$ac_compile") 2>conftest.er1
11766   ac_status=$?
11767   grep -v '^ *+' conftest.er1 >conftest.err
11768   rm -f conftest.er1
11769   cat conftest.err >&5
11770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11771   (exit $ac_status); } &&
11772          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11773   { (case "(($ac_try" in
11774   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11775   *) ac_try_echo=$ac_try;;
11776 esac
11777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11778   (eval "$ac_try") 2>&5
11779   ac_status=$?
11780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11781   (exit $ac_status); }; } &&
11782          { ac_try='test -s conftest.$ac_objext'
11783   { (case "(($ac_try" in
11784   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11785   *) ac_try_echo=$ac_try;;
11786 esac
11787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11788   (eval "$ac_try") 2>&5
11789   ac_status=$?
11790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11791   (exit $ac_status); }; }; then
11792   ac_header_compiler=yes
11793 else
11794   echo "$as_me: failed program was:" >&5
11795 sed 's/^/| /' conftest.$ac_ext >&5
11796
11797         ac_header_compiler=no
11798 fi
11799
11800 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11801 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11802 echo "${ECHO_T}$ac_header_compiler" >&6; }
11803
11804 # Is the header present?
11805 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11806 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11807 cat >conftest.$ac_ext <<_ACEOF
11808 /* confdefs.h.  */
11809 _ACEOF
11810 cat confdefs.h >>conftest.$ac_ext
11811 cat >>conftest.$ac_ext <<_ACEOF
11812 /* end confdefs.h.  */
11813 #include <$ac_header>
11814 _ACEOF
11815 if { (ac_try="$ac_cpp conftest.$ac_ext"
11816 case "(($ac_try" in
11817   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11818   *) ac_try_echo=$ac_try;;
11819 esac
11820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11821   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11822   ac_status=$?
11823   grep -v '^ *+' conftest.er1 >conftest.err
11824   rm -f conftest.er1
11825   cat conftest.err >&5
11826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11827   (exit $ac_status); } >/dev/null; then
11828   if test -s conftest.err; then
11829     ac_cpp_err=$ac_c_preproc_warn_flag
11830     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11831   else
11832     ac_cpp_err=
11833   fi
11834 else
11835   ac_cpp_err=yes
11836 fi
11837 if test -z "$ac_cpp_err"; then
11838   ac_header_preproc=yes
11839 else
11840   echo "$as_me: failed program was:" >&5
11841 sed 's/^/| /' conftest.$ac_ext >&5
11842
11843   ac_header_preproc=no
11844 fi
11845
11846 rm -f conftest.err conftest.$ac_ext
11847 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11848 echo "${ECHO_T}$ac_header_preproc" >&6; }
11849
11850 # So?  What about this header?
11851 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11852   yes:no: )
11853     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11854 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11855     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11856 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11857     ac_header_preproc=yes
11858     ;;
11859   no:yes:* )
11860     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11861 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11862     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11863 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11864     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11865 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11866     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11867 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11868     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11869 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11870     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11871 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11872     ( cat <<\_ASBOX
11873 ## ----------------------------------- ##
11874 ## Report this to llvmbugs@cs.uiuc.edu ##
11875 ## ----------------------------------- ##
11876 _ASBOX
11877      ) | sed "s/^/$as_me: WARNING:     /" >&2
11878     ;;
11879 esac
11880 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11881 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11882 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11883   echo $ECHO_N "(cached) $ECHO_C" >&6
11884 else
11885   eval "$as_ac_Header=\$ac_header_preproc"
11886 fi
11887 ac_res=`eval echo '${'$as_ac_Header'}'`
11888                { echo "$as_me:$LINENO: result: $ac_res" >&5
11889 echo "${ECHO_T}$ac_res" >&6; }
11890
11891 fi
11892 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11893   cat >>confdefs.h <<_ACEOF
11894 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11895 _ACEOF
11896
11897 fi
11898
11899 done
11900
11901
11902 { echo "$as_me:$LINENO: checking for error_t" >&5
11903 echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
11904 if test "${ac_cv_type_error_t+set}" = set; then
11905   echo $ECHO_N "(cached) $ECHO_C" >&6
11906 else
11907   cat >conftest.$ac_ext <<_ACEOF
11908 /* confdefs.h.  */
11909 _ACEOF
11910 cat confdefs.h >>conftest.$ac_ext
11911 cat >>conftest.$ac_ext <<_ACEOF
11912 /* end confdefs.h.  */
11913 #if HAVE_ARGZ_H
11914 #  include <argz.h>
11915 #endif
11916
11917 typedef error_t ac__type_new_;
11918 int
11919 main ()
11920 {
11921 if ((ac__type_new_ *) 0)
11922   return 0;
11923 if (sizeof (ac__type_new_))
11924   return 0;
11925   ;
11926   return 0;
11927 }
11928 _ACEOF
11929 rm -f conftest.$ac_objext
11930 if { (ac_try="$ac_compile"
11931 case "(($ac_try" in
11932   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11933   *) ac_try_echo=$ac_try;;
11934 esac
11935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11936   (eval "$ac_compile") 2>conftest.er1
11937   ac_status=$?
11938   grep -v '^ *+' conftest.er1 >conftest.err
11939   rm -f conftest.er1
11940   cat conftest.err >&5
11941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11942   (exit $ac_status); } &&
11943          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11944   { (case "(($ac_try" in
11945   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11946   *) ac_try_echo=$ac_try;;
11947 esac
11948 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11949   (eval "$ac_try") 2>&5
11950   ac_status=$?
11951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11952   (exit $ac_status); }; } &&
11953          { ac_try='test -s conftest.$ac_objext'
11954   { (case "(($ac_try" in
11955   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11956   *) ac_try_echo=$ac_try;;
11957 esac
11958 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11959   (eval "$ac_try") 2>&5
11960   ac_status=$?
11961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11962   (exit $ac_status); }; }; then
11963   ac_cv_type_error_t=yes
11964 else
11965   echo "$as_me: failed program was:" >&5
11966 sed 's/^/| /' conftest.$ac_ext >&5
11967
11968         ac_cv_type_error_t=no
11969 fi
11970
11971 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11972 fi
11973 { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
11974 echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
11975 if test $ac_cv_type_error_t = yes; then
11976
11977 cat >>confdefs.h <<_ACEOF
11978 #define HAVE_ERROR_T 1
11979 _ACEOF
11980
11981
11982 else
11983
11984 cat >>confdefs.h <<\_ACEOF
11985 #define error_t int
11986 _ACEOF
11987
11988 fi
11989
11990
11991
11992
11993
11994
11995
11996 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
11997 do
11998 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11999 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12000 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12001 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12002   echo $ECHO_N "(cached) $ECHO_C" >&6
12003 else
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 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12011    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12012 #define $ac_func innocuous_$ac_func
12013
12014 /* System header to define __stub macros and hopefully few prototypes,
12015     which can conflict with char $ac_func (); below.
12016     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12017     <limits.h> exists even on freestanding compilers.  */
12018
12019 #ifdef __STDC__
12020 # include <limits.h>
12021 #else
12022 # include <assert.h>
12023 #endif
12024
12025 #undef $ac_func
12026
12027 /* Override any GCC internal prototype to avoid an error.
12028    Use char because int might match the return type of a GCC
12029    builtin and then its argument prototype would still apply.  */
12030 #ifdef __cplusplus
12031 extern "C"
12032 #endif
12033 char $ac_func ();
12034 /* The GNU C library defines this for functions which it implements
12035     to always fail with ENOSYS.  Some functions are actually named
12036     something starting with __ and the normal name is an alias.  */
12037 #if defined __stub_$ac_func || defined __stub___$ac_func
12038 choke me
12039 #endif
12040
12041 int
12042 main ()
12043 {
12044 return $ac_func ();
12045   ;
12046   return 0;
12047 }
12048 _ACEOF
12049 rm -f conftest.$ac_objext conftest$ac_exeext
12050 if { (ac_try="$ac_link"
12051 case "(($ac_try" in
12052   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12053   *) ac_try_echo=$ac_try;;
12054 esac
12055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12056   (eval "$ac_link") 2>conftest.er1
12057   ac_status=$?
12058   grep -v '^ *+' conftest.er1 >conftest.err
12059   rm -f conftest.er1
12060   cat conftest.err >&5
12061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12062   (exit $ac_status); } &&
12063          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12064   { (case "(($ac_try" in
12065   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12066   *) ac_try_echo=$ac_try;;
12067 esac
12068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12069   (eval "$ac_try") 2>&5
12070   ac_status=$?
12071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12072   (exit $ac_status); }; } &&
12073          { ac_try='test -s conftest$ac_exeext'
12074   { (case "(($ac_try" in
12075   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12076   *) ac_try_echo=$ac_try;;
12077 esac
12078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12079   (eval "$ac_try") 2>&5
12080   ac_status=$?
12081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12082   (exit $ac_status); }; }; then
12083   eval "$as_ac_var=yes"
12084 else
12085   echo "$as_me: failed program was:" >&5
12086 sed 's/^/| /' conftest.$ac_ext >&5
12087
12088         eval "$as_ac_var=no"
12089 fi
12090
12091 rm -f core conftest.err conftest.$ac_objext \
12092       conftest$ac_exeext conftest.$ac_ext
12093 fi
12094 ac_res=`eval echo '${'$as_ac_var'}'`
12095                { echo "$as_me:$LINENO: result: $ac_res" >&5
12096 echo "${ECHO_T}$ac_res" >&6; }
12097 if test `eval echo '${'$as_ac_var'}'` = yes; then
12098   cat >>confdefs.h <<_ACEOF
12099 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12100 _ACEOF
12101
12102 fi
12103 done
12104
12105
12106
12107
12108
12109
12110
12111
12112
12113
12114
12115
12116
12117
12118
12119
12120
12121
12122
12123
12124
12125
12126
12127
12128
12129
12130
12131
12132 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
12133                   stdio.h unistd.h
12134 do
12135 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12136 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12137   { echo "$as_me:$LINENO: checking for $ac_header" >&5
12138 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12139 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12140   echo $ECHO_N "(cached) $ECHO_C" >&6
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 else
12146   # Is the header compilable?
12147 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12148 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12149 cat >conftest.$ac_ext <<_ACEOF
12150 /* confdefs.h.  */
12151 _ACEOF
12152 cat confdefs.h >>conftest.$ac_ext
12153 cat >>conftest.$ac_ext <<_ACEOF
12154 /* end confdefs.h.  */
12155 $ac_includes_default
12156 #include <$ac_header>
12157 _ACEOF
12158 rm -f conftest.$ac_objext
12159 if { (ac_try="$ac_compile"
12160 case "(($ac_try" in
12161   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12162   *) ac_try_echo=$ac_try;;
12163 esac
12164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12165   (eval "$ac_compile") 2>conftest.er1
12166   ac_status=$?
12167   grep -v '^ *+' conftest.er1 >conftest.err
12168   rm -f conftest.er1
12169   cat conftest.err >&5
12170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12171   (exit $ac_status); } &&
12172          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12173   { (case "(($ac_try" in
12174   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12175   *) ac_try_echo=$ac_try;;
12176 esac
12177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12178   (eval "$ac_try") 2>&5
12179   ac_status=$?
12180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12181   (exit $ac_status); }; } &&
12182          { ac_try='test -s conftest.$ac_objext'
12183   { (case "(($ac_try" in
12184   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12185   *) ac_try_echo=$ac_try;;
12186 esac
12187 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12188   (eval "$ac_try") 2>&5
12189   ac_status=$?
12190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12191   (exit $ac_status); }; }; then
12192   ac_header_compiler=yes
12193 else
12194   echo "$as_me: failed program was:" >&5
12195 sed 's/^/| /' conftest.$ac_ext >&5
12196
12197         ac_header_compiler=no
12198 fi
12199
12200 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12201 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12202 echo "${ECHO_T}$ac_header_compiler" >&6; }
12203
12204 # Is the header present?
12205 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12206 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12207 cat >conftest.$ac_ext <<_ACEOF
12208 /* confdefs.h.  */
12209 _ACEOF
12210 cat confdefs.h >>conftest.$ac_ext
12211 cat >>conftest.$ac_ext <<_ACEOF
12212 /* end confdefs.h.  */
12213 #include <$ac_header>
12214 _ACEOF
12215 if { (ac_try="$ac_cpp conftest.$ac_ext"
12216 case "(($ac_try" in
12217   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12218   *) ac_try_echo=$ac_try;;
12219 esac
12220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12221   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12222   ac_status=$?
12223   grep -v '^ *+' conftest.er1 >conftest.err
12224   rm -f conftest.er1
12225   cat conftest.err >&5
12226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12227   (exit $ac_status); } >/dev/null; then
12228   if test -s conftest.err; then
12229     ac_cpp_err=$ac_c_preproc_warn_flag
12230     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12231   else
12232     ac_cpp_err=
12233   fi
12234 else
12235   ac_cpp_err=yes
12236 fi
12237 if test -z "$ac_cpp_err"; then
12238   ac_header_preproc=yes
12239 else
12240   echo "$as_me: failed program was:" >&5
12241 sed 's/^/| /' conftest.$ac_ext >&5
12242
12243   ac_header_preproc=no
12244 fi
12245
12246 rm -f conftest.err conftest.$ac_ext
12247 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12248 echo "${ECHO_T}$ac_header_preproc" >&6; }
12249
12250 # So?  What about this header?
12251 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12252   yes:no: )
12253     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12254 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12255     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12256 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12257     ac_header_preproc=yes
12258     ;;
12259   no:yes:* )
12260     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12261 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12262     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12263 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12264     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12265 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12266     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12267 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12268     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12269 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12270     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12271 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12272     ( cat <<\_ASBOX
12273 ## ----------------------------------- ##
12274 ## Report this to llvmbugs@cs.uiuc.edu ##
12275 ## ----------------------------------- ##
12276 _ASBOX
12277      ) | sed "s/^/$as_me: WARNING:     /" >&2
12278     ;;
12279 esac
12280 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12281 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12282 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12283   echo $ECHO_N "(cached) $ECHO_C" >&6
12284 else
12285   eval "$as_ac_Header=\$ac_header_preproc"
12286 fi
12287 ac_res=`eval echo '${'$as_ac_Header'}'`
12288                { echo "$as_me:$LINENO: result: $ac_res" >&5
12289 echo "${ECHO_T}$ac_res" >&6; }
12290
12291 fi
12292 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12293   cat >>confdefs.h <<_ACEOF
12294 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12295 _ACEOF
12296
12297 fi
12298
12299 done
12300
12301
12302
12303
12304
12305 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
12306 do
12307 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12308 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12309   { echo "$as_me:$LINENO: checking for $ac_header" >&5
12310 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12311 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12312   echo $ECHO_N "(cached) $ECHO_C" >&6
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 else
12318   # Is the header compilable?
12319 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12320 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12321 cat >conftest.$ac_ext <<_ACEOF
12322 /* confdefs.h.  */
12323 _ACEOF
12324 cat confdefs.h >>conftest.$ac_ext
12325 cat >>conftest.$ac_ext <<_ACEOF
12326 /* end confdefs.h.  */
12327 $ac_includes_default
12328 #include <$ac_header>
12329 _ACEOF
12330 rm -f conftest.$ac_objext
12331 if { (ac_try="$ac_compile"
12332 case "(($ac_try" in
12333   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12334   *) ac_try_echo=$ac_try;;
12335 esac
12336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12337   (eval "$ac_compile") 2>conftest.er1
12338   ac_status=$?
12339   grep -v '^ *+' conftest.er1 >conftest.err
12340   rm -f conftest.er1
12341   cat conftest.err >&5
12342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12343   (exit $ac_status); } &&
12344          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12345   { (case "(($ac_try" in
12346   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12347   *) ac_try_echo=$ac_try;;
12348 esac
12349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12350   (eval "$ac_try") 2>&5
12351   ac_status=$?
12352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12353   (exit $ac_status); }; } &&
12354          { ac_try='test -s conftest.$ac_objext'
12355   { (case "(($ac_try" in
12356   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12357   *) ac_try_echo=$ac_try;;
12358 esac
12359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12360   (eval "$ac_try") 2>&5
12361   ac_status=$?
12362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12363   (exit $ac_status); }; }; then
12364   ac_header_compiler=yes
12365 else
12366   echo "$as_me: failed program was:" >&5
12367 sed 's/^/| /' conftest.$ac_ext >&5
12368
12369         ac_header_compiler=no
12370 fi
12371
12372 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12373 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12374 echo "${ECHO_T}$ac_header_compiler" >&6; }
12375
12376 # Is the header present?
12377 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12378 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12379 cat >conftest.$ac_ext <<_ACEOF
12380 /* confdefs.h.  */
12381 _ACEOF
12382 cat confdefs.h >>conftest.$ac_ext
12383 cat >>conftest.$ac_ext <<_ACEOF
12384 /* end confdefs.h.  */
12385 #include <$ac_header>
12386 _ACEOF
12387 if { (ac_try="$ac_cpp conftest.$ac_ext"
12388 case "(($ac_try" in
12389   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12390   *) ac_try_echo=$ac_try;;
12391 esac
12392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12393   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12394   ac_status=$?
12395   grep -v '^ *+' conftest.er1 >conftest.err
12396   rm -f conftest.er1
12397   cat conftest.err >&5
12398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12399   (exit $ac_status); } >/dev/null; then
12400   if test -s conftest.err; then
12401     ac_cpp_err=$ac_c_preproc_warn_flag
12402     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12403   else
12404     ac_cpp_err=
12405   fi
12406 else
12407   ac_cpp_err=yes
12408 fi
12409 if test -z "$ac_cpp_err"; then
12410   ac_header_preproc=yes
12411 else
12412   echo "$as_me: failed program was:" >&5
12413 sed 's/^/| /' conftest.$ac_ext >&5
12414
12415   ac_header_preproc=no
12416 fi
12417
12418 rm -f conftest.err conftest.$ac_ext
12419 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12420 echo "${ECHO_T}$ac_header_preproc" >&6; }
12421
12422 # So?  What about this header?
12423 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12424   yes:no: )
12425     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12426 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12427     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12428 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12429     ac_header_preproc=yes
12430     ;;
12431   no:yes:* )
12432     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12433 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12434     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12435 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12436     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12437 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12438     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12439 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12440     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12441 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12442     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12443 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12444     ( cat <<\_ASBOX
12445 ## ----------------------------------- ##
12446 ## Report this to llvmbugs@cs.uiuc.edu ##
12447 ## ----------------------------------- ##
12448 _ASBOX
12449      ) | sed "s/^/$as_me: WARNING:     /" >&2
12450     ;;
12451 esac
12452 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12453 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12454 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12455   echo $ECHO_N "(cached) $ECHO_C" >&6
12456 else
12457   eval "$as_ac_Header=\$ac_header_preproc"
12458 fi
12459 ac_res=`eval echo '${'$as_ac_Header'}'`
12460                { echo "$as_me:$LINENO: result: $ac_res" >&5
12461 echo "${ECHO_T}$ac_res" >&6; }
12462
12463 fi
12464 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12465   cat >>confdefs.h <<_ACEOF
12466 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12467 _ACEOF
12468
12469 fi
12470
12471 done
12472
12473
12474
12475 for ac_header in string.h strings.h
12476 do
12477 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12478 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12479   { echo "$as_me:$LINENO: checking for $ac_header" >&5
12480 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12481 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12482   echo $ECHO_N "(cached) $ECHO_C" >&6
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 else
12488   # Is the header compilable?
12489 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12490 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12491 cat >conftest.$ac_ext <<_ACEOF
12492 /* confdefs.h.  */
12493 _ACEOF
12494 cat confdefs.h >>conftest.$ac_ext
12495 cat >>conftest.$ac_ext <<_ACEOF
12496 /* end confdefs.h.  */
12497 $ac_includes_default
12498 #include <$ac_header>
12499 _ACEOF
12500 rm -f conftest.$ac_objext
12501 if { (ac_try="$ac_compile"
12502 case "(($ac_try" in
12503   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12504   *) ac_try_echo=$ac_try;;
12505 esac
12506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12507   (eval "$ac_compile") 2>conftest.er1
12508   ac_status=$?
12509   grep -v '^ *+' conftest.er1 >conftest.err
12510   rm -f conftest.er1
12511   cat conftest.err >&5
12512   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12513   (exit $ac_status); } &&
12514          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12515   { (case "(($ac_try" in
12516   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12517   *) ac_try_echo=$ac_try;;
12518 esac
12519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12520   (eval "$ac_try") 2>&5
12521   ac_status=$?
12522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12523   (exit $ac_status); }; } &&
12524          { ac_try='test -s conftest.$ac_objext'
12525   { (case "(($ac_try" in
12526   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12527   *) ac_try_echo=$ac_try;;
12528 esac
12529 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12530   (eval "$ac_try") 2>&5
12531   ac_status=$?
12532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12533   (exit $ac_status); }; }; then
12534   ac_header_compiler=yes
12535 else
12536   echo "$as_me: failed program was:" >&5
12537 sed 's/^/| /' conftest.$ac_ext >&5
12538
12539         ac_header_compiler=no
12540 fi
12541
12542 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12543 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12544 echo "${ECHO_T}$ac_header_compiler" >&6; }
12545
12546 # Is the header present?
12547 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12548 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12549 cat >conftest.$ac_ext <<_ACEOF
12550 /* confdefs.h.  */
12551 _ACEOF
12552 cat confdefs.h >>conftest.$ac_ext
12553 cat >>conftest.$ac_ext <<_ACEOF
12554 /* end confdefs.h.  */
12555 #include <$ac_header>
12556 _ACEOF
12557 if { (ac_try="$ac_cpp conftest.$ac_ext"
12558 case "(($ac_try" in
12559   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12560   *) ac_try_echo=$ac_try;;
12561 esac
12562 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12563   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12564   ac_status=$?
12565   grep -v '^ *+' conftest.er1 >conftest.err
12566   rm -f conftest.er1
12567   cat conftest.err >&5
12568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12569   (exit $ac_status); } >/dev/null; then
12570   if test -s conftest.err; then
12571     ac_cpp_err=$ac_c_preproc_warn_flag
12572     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12573   else
12574     ac_cpp_err=
12575   fi
12576 else
12577   ac_cpp_err=yes
12578 fi
12579 if test -z "$ac_cpp_err"; then
12580   ac_header_preproc=yes
12581 else
12582   echo "$as_me: failed program was:" >&5
12583 sed 's/^/| /' conftest.$ac_ext >&5
12584
12585   ac_header_preproc=no
12586 fi
12587
12588 rm -f conftest.err conftest.$ac_ext
12589 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12590 echo "${ECHO_T}$ac_header_preproc" >&6; }
12591
12592 # So?  What about this header?
12593 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12594   yes:no: )
12595     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12596 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12597     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12598 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12599     ac_header_preproc=yes
12600     ;;
12601   no:yes:* )
12602     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12603 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12604     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12605 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12606     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12607 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12608     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12609 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12610     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12611 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12612     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12613 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12614     ( cat <<\_ASBOX
12615 ## ----------------------------------- ##
12616 ## Report this to llvmbugs@cs.uiuc.edu ##
12617 ## ----------------------------------- ##
12618 _ASBOX
12619      ) | sed "s/^/$as_me: WARNING:     /" >&2
12620     ;;
12621 esac
12622 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12623 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12624 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12625   echo $ECHO_N "(cached) $ECHO_C" >&6
12626 else
12627   eval "$as_ac_Header=\$ac_header_preproc"
12628 fi
12629 ac_res=`eval echo '${'$as_ac_Header'}'`
12630                { echo "$as_me:$LINENO: result: $ac_res" >&5
12631 echo "${ECHO_T}$ac_res" >&6; }
12632
12633 fi
12634 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12635   cat >>confdefs.h <<_ACEOF
12636 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12637 _ACEOF
12638  break
12639 fi
12640
12641 done
12642
12643
12644
12645
12646 for ac_func in strchr index
12647 do
12648 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12649 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12650 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12651 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12652   echo $ECHO_N "(cached) $ECHO_C" >&6
12653 else
12654   cat >conftest.$ac_ext <<_ACEOF
12655 /* confdefs.h.  */
12656 _ACEOF
12657 cat confdefs.h >>conftest.$ac_ext
12658 cat >>conftest.$ac_ext <<_ACEOF
12659 /* end confdefs.h.  */
12660 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12661    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12662 #define $ac_func innocuous_$ac_func
12663
12664 /* System header to define __stub macros and hopefully few prototypes,
12665     which can conflict with char $ac_func (); below.
12666     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12667     <limits.h> exists even on freestanding compilers.  */
12668
12669 #ifdef __STDC__
12670 # include <limits.h>
12671 #else
12672 # include <assert.h>
12673 #endif
12674
12675 #undef $ac_func
12676
12677 /* Override any GCC internal prototype to avoid an error.
12678    Use char because int might match the return type of a GCC
12679    builtin and then its argument prototype would still apply.  */
12680 #ifdef __cplusplus
12681 extern "C"
12682 #endif
12683 char $ac_func ();
12684 /* The GNU C library defines this for functions which it implements
12685     to always fail with ENOSYS.  Some functions are actually named
12686     something starting with __ and the normal name is an alias.  */
12687 #if defined __stub_$ac_func || defined __stub___$ac_func
12688 choke me
12689 #endif
12690
12691 int
12692 main ()
12693 {
12694 return $ac_func ();
12695   ;
12696   return 0;
12697 }
12698 _ACEOF
12699 rm -f conftest.$ac_objext conftest$ac_exeext
12700 if { (ac_try="$ac_link"
12701 case "(($ac_try" in
12702   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12703   *) ac_try_echo=$ac_try;;
12704 esac
12705 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12706   (eval "$ac_link") 2>conftest.er1
12707   ac_status=$?
12708   grep -v '^ *+' conftest.er1 >conftest.err
12709   rm -f conftest.er1
12710   cat conftest.err >&5
12711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12712   (exit $ac_status); } &&
12713          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12714   { (case "(($ac_try" in
12715   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12716   *) ac_try_echo=$ac_try;;
12717 esac
12718 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12719   (eval "$ac_try") 2>&5
12720   ac_status=$?
12721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12722   (exit $ac_status); }; } &&
12723          { ac_try='test -s conftest$ac_exeext'
12724   { (case "(($ac_try" in
12725   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12726   *) ac_try_echo=$ac_try;;
12727 esac
12728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12729   (eval "$ac_try") 2>&5
12730   ac_status=$?
12731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12732   (exit $ac_status); }; }; then
12733   eval "$as_ac_var=yes"
12734 else
12735   echo "$as_me: failed program was:" >&5
12736 sed 's/^/| /' conftest.$ac_ext >&5
12737
12738         eval "$as_ac_var=no"
12739 fi
12740
12741 rm -f core conftest.err conftest.$ac_objext \
12742       conftest$ac_exeext conftest.$ac_ext
12743 fi
12744 ac_res=`eval echo '${'$as_ac_var'}'`
12745                { echo "$as_me:$LINENO: result: $ac_res" >&5
12746 echo "${ECHO_T}$ac_res" >&6; }
12747 if test `eval echo '${'$as_ac_var'}'` = yes; then
12748   cat >>confdefs.h <<_ACEOF
12749 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12750 _ACEOF
12751  break
12752 fi
12753 done
12754
12755
12756
12757 for ac_func in strrchr rindex
12758 do
12759 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12760 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12761 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12762 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12763   echo $ECHO_N "(cached) $ECHO_C" >&6
12764 else
12765   cat >conftest.$ac_ext <<_ACEOF
12766 /* confdefs.h.  */
12767 _ACEOF
12768 cat confdefs.h >>conftest.$ac_ext
12769 cat >>conftest.$ac_ext <<_ACEOF
12770 /* end confdefs.h.  */
12771 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12772    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12773 #define $ac_func innocuous_$ac_func
12774
12775 /* System header to define __stub macros and hopefully few prototypes,
12776     which can conflict with char $ac_func (); below.
12777     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12778     <limits.h> exists even on freestanding compilers.  */
12779
12780 #ifdef __STDC__
12781 # include <limits.h>
12782 #else
12783 # include <assert.h>
12784 #endif
12785
12786 #undef $ac_func
12787
12788 /* Override any GCC internal prototype to avoid an error.
12789    Use char because int might match the return type of a GCC
12790    builtin and then its argument prototype would still apply.  */
12791 #ifdef __cplusplus
12792 extern "C"
12793 #endif
12794 char $ac_func ();
12795 /* The GNU C library defines this for functions which it implements
12796     to always fail with ENOSYS.  Some functions are actually named
12797     something starting with __ and the normal name is an alias.  */
12798 #if defined __stub_$ac_func || defined __stub___$ac_func
12799 choke me
12800 #endif
12801
12802 int
12803 main ()
12804 {
12805 return $ac_func ();
12806   ;
12807   return 0;
12808 }
12809 _ACEOF
12810 rm -f conftest.$ac_objext conftest$ac_exeext
12811 if { (ac_try="$ac_link"
12812 case "(($ac_try" in
12813   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12814   *) ac_try_echo=$ac_try;;
12815 esac
12816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12817   (eval "$ac_link") 2>conftest.er1
12818   ac_status=$?
12819   grep -v '^ *+' conftest.er1 >conftest.err
12820   rm -f conftest.er1
12821   cat conftest.err >&5
12822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12823   (exit $ac_status); } &&
12824          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12825   { (case "(($ac_try" in
12826   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12827   *) ac_try_echo=$ac_try;;
12828 esac
12829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12830   (eval "$ac_try") 2>&5
12831   ac_status=$?
12832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12833   (exit $ac_status); }; } &&
12834          { ac_try='test -s conftest$ac_exeext'
12835   { (case "(($ac_try" in
12836   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12837   *) ac_try_echo=$ac_try;;
12838 esac
12839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12840   (eval "$ac_try") 2>&5
12841   ac_status=$?
12842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12843   (exit $ac_status); }; }; then
12844   eval "$as_ac_var=yes"
12845 else
12846   echo "$as_me: failed program was:" >&5
12847 sed 's/^/| /' conftest.$ac_ext >&5
12848
12849         eval "$as_ac_var=no"
12850 fi
12851
12852 rm -f core conftest.err conftest.$ac_objext \
12853       conftest$ac_exeext conftest.$ac_ext
12854 fi
12855 ac_res=`eval echo '${'$as_ac_var'}'`
12856                { echo "$as_me:$LINENO: result: $ac_res" >&5
12857 echo "${ECHO_T}$ac_res" >&6; }
12858 if test `eval echo '${'$as_ac_var'}'` = yes; then
12859   cat >>confdefs.h <<_ACEOF
12860 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12861 _ACEOF
12862  break
12863 fi
12864 done
12865
12866
12867
12868 for ac_func in memcpy bcopy
12869 do
12870 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12871 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12872 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12873 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12874   echo $ECHO_N "(cached) $ECHO_C" >&6
12875 else
12876   cat >conftest.$ac_ext <<_ACEOF
12877 /* confdefs.h.  */
12878 _ACEOF
12879 cat confdefs.h >>conftest.$ac_ext
12880 cat >>conftest.$ac_ext <<_ACEOF
12881 /* end confdefs.h.  */
12882 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12883    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12884 #define $ac_func innocuous_$ac_func
12885
12886 /* System header to define __stub macros and hopefully few prototypes,
12887     which can conflict with char $ac_func (); below.
12888     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12889     <limits.h> exists even on freestanding compilers.  */
12890
12891 #ifdef __STDC__
12892 # include <limits.h>
12893 #else
12894 # include <assert.h>
12895 #endif
12896
12897 #undef $ac_func
12898
12899 /* Override any GCC internal prototype to avoid an error.
12900    Use char because int might match the return type of a GCC
12901    builtin and then its argument prototype would still apply.  */
12902 #ifdef __cplusplus
12903 extern "C"
12904 #endif
12905 char $ac_func ();
12906 /* The GNU C library defines this for functions which it implements
12907     to always fail with ENOSYS.  Some functions are actually named
12908     something starting with __ and the normal name is an alias.  */
12909 #if defined __stub_$ac_func || defined __stub___$ac_func
12910 choke me
12911 #endif
12912
12913 int
12914 main ()
12915 {
12916 return $ac_func ();
12917   ;
12918   return 0;
12919 }
12920 _ACEOF
12921 rm -f conftest.$ac_objext conftest$ac_exeext
12922 if { (ac_try="$ac_link"
12923 case "(($ac_try" in
12924   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12925   *) ac_try_echo=$ac_try;;
12926 esac
12927 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12928   (eval "$ac_link") 2>conftest.er1
12929   ac_status=$?
12930   grep -v '^ *+' conftest.er1 >conftest.err
12931   rm -f conftest.er1
12932   cat conftest.err >&5
12933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12934   (exit $ac_status); } &&
12935          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12936   { (case "(($ac_try" in
12937   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12938   *) ac_try_echo=$ac_try;;
12939 esac
12940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12941   (eval "$ac_try") 2>&5
12942   ac_status=$?
12943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12944   (exit $ac_status); }; } &&
12945          { ac_try='test -s conftest$ac_exeext'
12946   { (case "(($ac_try" in
12947   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12948   *) ac_try_echo=$ac_try;;
12949 esac
12950 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12951   (eval "$ac_try") 2>&5
12952   ac_status=$?
12953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12954   (exit $ac_status); }; }; then
12955   eval "$as_ac_var=yes"
12956 else
12957   echo "$as_me: failed program was:" >&5
12958 sed 's/^/| /' conftest.$ac_ext >&5
12959
12960         eval "$as_ac_var=no"
12961 fi
12962
12963 rm -f core conftest.err conftest.$ac_objext \
12964       conftest$ac_exeext conftest.$ac_ext
12965 fi
12966 ac_res=`eval echo '${'$as_ac_var'}'`
12967                { echo "$as_me:$LINENO: result: $ac_res" >&5
12968 echo "${ECHO_T}$ac_res" >&6; }
12969 if test `eval echo '${'$as_ac_var'}'` = yes; then
12970   cat >>confdefs.h <<_ACEOF
12971 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12972 _ACEOF
12973  break
12974 fi
12975 done
12976
12977
12978
12979 for ac_func in memmove strcmp
12980 do
12981 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12982 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12983 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12984 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12985   echo $ECHO_N "(cached) $ECHO_C" >&6
12986 else
12987   cat >conftest.$ac_ext <<_ACEOF
12988 /* confdefs.h.  */
12989 _ACEOF
12990 cat confdefs.h >>conftest.$ac_ext
12991 cat >>conftest.$ac_ext <<_ACEOF
12992 /* end confdefs.h.  */
12993 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12994    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12995 #define $ac_func innocuous_$ac_func
12996
12997 /* System header to define __stub macros and hopefully few prototypes,
12998     which can conflict with char $ac_func (); below.
12999     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13000     <limits.h> exists even on freestanding compilers.  */
13001
13002 #ifdef __STDC__
13003 # include <limits.h>
13004 #else
13005 # include <assert.h>
13006 #endif
13007
13008 #undef $ac_func
13009
13010 /* Override any GCC internal prototype to avoid an error.
13011    Use char because int might match the return type of a GCC
13012    builtin and then its argument prototype would still apply.  */
13013 #ifdef __cplusplus
13014 extern "C"
13015 #endif
13016 char $ac_func ();
13017 /* The GNU C library defines this for functions which it implements
13018     to always fail with ENOSYS.  Some functions are actually named
13019     something starting with __ and the normal name is an alias.  */
13020 #if defined __stub_$ac_func || defined __stub___$ac_func
13021 choke me
13022 #endif
13023
13024 int
13025 main ()
13026 {
13027 return $ac_func ();
13028   ;
13029   return 0;
13030 }
13031 _ACEOF
13032 rm -f conftest.$ac_objext conftest$ac_exeext
13033 if { (ac_try="$ac_link"
13034 case "(($ac_try" in
13035   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13036   *) ac_try_echo=$ac_try;;
13037 esac
13038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13039   (eval "$ac_link") 2>conftest.er1
13040   ac_status=$?
13041   grep -v '^ *+' conftest.er1 >conftest.err
13042   rm -f conftest.er1
13043   cat conftest.err >&5
13044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13045   (exit $ac_status); } &&
13046          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13047   { (case "(($ac_try" in
13048   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13049   *) ac_try_echo=$ac_try;;
13050 esac
13051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13052   (eval "$ac_try") 2>&5
13053   ac_status=$?
13054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13055   (exit $ac_status); }; } &&
13056          { ac_try='test -s conftest$ac_exeext'
13057   { (case "(($ac_try" in
13058   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13059   *) ac_try_echo=$ac_try;;
13060 esac
13061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13062   (eval "$ac_try") 2>&5
13063   ac_status=$?
13064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13065   (exit $ac_status); }; }; then
13066   eval "$as_ac_var=yes"
13067 else
13068   echo "$as_me: failed program was:" >&5
13069 sed 's/^/| /' conftest.$ac_ext >&5
13070
13071         eval "$as_ac_var=no"
13072 fi
13073
13074 rm -f core conftest.err conftest.$ac_objext \
13075       conftest$ac_exeext conftest.$ac_ext
13076 fi
13077 ac_res=`eval echo '${'$as_ac_var'}'`
13078                { echo "$as_me:$LINENO: result: $ac_res" >&5
13079 echo "${ECHO_T}$ac_res" >&6; }
13080 if test `eval echo '${'$as_ac_var'}'` = yes; then
13081   cat >>confdefs.h <<_ACEOF
13082 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13083 _ACEOF
13084
13085 fi
13086 done
13087
13088
13089
13090
13091 for ac_func in closedir opendir readdir
13092 do
13093 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13094 { echo "$as_me:$LINENO: checking for $ac_func" >&5
13095 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
13096 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13097   echo $ECHO_N "(cached) $ECHO_C" >&6
13098 else
13099   cat >conftest.$ac_ext <<_ACEOF
13100 /* confdefs.h.  */
13101 _ACEOF
13102 cat confdefs.h >>conftest.$ac_ext
13103 cat >>conftest.$ac_ext <<_ACEOF
13104 /* end confdefs.h.  */
13105 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13106    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
13107 #define $ac_func innocuous_$ac_func
13108
13109 /* System header to define __stub macros and hopefully few prototypes,
13110     which can conflict with char $ac_func (); below.
13111     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13112     <limits.h> exists even on freestanding compilers.  */
13113
13114 #ifdef __STDC__
13115 # include <limits.h>
13116 #else
13117 # include <assert.h>
13118 #endif
13119
13120 #undef $ac_func
13121
13122 /* Override any GCC internal prototype to avoid an error.
13123    Use char because int might match the return type of a GCC
13124    builtin and then its argument prototype would still apply.  */
13125 #ifdef __cplusplus
13126 extern "C"
13127 #endif
13128 char $ac_func ();
13129 /* The GNU C library defines this for functions which it implements
13130     to always fail with ENOSYS.  Some functions are actually named
13131     something starting with __ and the normal name is an alias.  */
13132 #if defined __stub_$ac_func || defined __stub___$ac_func
13133 choke me
13134 #endif
13135
13136 int
13137 main ()
13138 {
13139 return $ac_func ();
13140   ;
13141   return 0;
13142 }
13143 _ACEOF
13144 rm -f conftest.$ac_objext conftest$ac_exeext
13145 if { (ac_try="$ac_link"
13146 case "(($ac_try" in
13147   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13148   *) ac_try_echo=$ac_try;;
13149 esac
13150 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13151   (eval "$ac_link") 2>conftest.er1
13152   ac_status=$?
13153   grep -v '^ *+' conftest.er1 >conftest.err
13154   rm -f conftest.er1
13155   cat conftest.err >&5
13156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13157   (exit $ac_status); } &&
13158          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13159   { (case "(($ac_try" in
13160   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13161   *) ac_try_echo=$ac_try;;
13162 esac
13163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13164   (eval "$ac_try") 2>&5
13165   ac_status=$?
13166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13167   (exit $ac_status); }; } &&
13168          { ac_try='test -s conftest$ac_exeext'
13169   { (case "(($ac_try" in
13170   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13171   *) ac_try_echo=$ac_try;;
13172 esac
13173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13174   (eval "$ac_try") 2>&5
13175   ac_status=$?
13176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13177   (exit $ac_status); }; }; then
13178   eval "$as_ac_var=yes"
13179 else
13180   echo "$as_me: failed program was:" >&5
13181 sed 's/^/| /' conftest.$ac_ext >&5
13182
13183         eval "$as_ac_var=no"
13184 fi
13185
13186 rm -f core conftest.err conftest.$ac_objext \
13187       conftest$ac_exeext conftest.$ac_ext
13188 fi
13189 ac_res=`eval echo '${'$as_ac_var'}'`
13190                { echo "$as_me:$LINENO: result: $ac_res" >&5
13191 echo "${ECHO_T}$ac_res" >&6; }
13192 if test `eval echo '${'$as_ac_var'}'` = yes; then
13193   cat >>confdefs.h <<_ACEOF
13194 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13195 _ACEOF
13196
13197 fi
13198 done
13199
13200
13201
13202 if test "$WITH_LLVMGCCDIR" = "default" ; then
13203   LLVMGCC="llvm-gcc${EXEEXT}"
13204   LLVMGXX="llvm-g++${EXEEXT}"
13205   LLVMGCCCOMMAND="$LLVMGCC"
13206   LLVMGXXCOMMAND="$LLVMGXX"
13207   LLVMGCCCOMMAND=$LLVMGCCCOMMAND
13208
13209   LLVMGXXCOMMAND=$LLVMGXXCOMMAND
13210
13211   # Extract the first word of "$LLVMGCC", so it can be a program name with args.
13212 set dummy $LLVMGCC; ac_word=$2
13213 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13214 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13215 if test "${ac_cv_path_LLVMGCC+set}" = set; then
13216   echo $ECHO_N "(cached) $ECHO_C" >&6
13217 else
13218   case $LLVMGCC in
13219   [\\/]* | ?:[\\/]*)
13220   ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path.
13221   ;;
13222   *)
13223   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13224 for as_dir in $PATH
13225 do
13226   IFS=$as_save_IFS
13227   test -z "$as_dir" && as_dir=.
13228   for ac_exec_ext in '' $ac_executable_extensions; do
13229   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13230     ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext"
13231     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13232     break 2
13233   fi
13234 done
13235 done
13236 IFS=$as_save_IFS
13237
13238   ;;
13239 esac
13240 fi
13241 LLVMGCC=$ac_cv_path_LLVMGCC
13242 if test -n "$LLVMGCC"; then
13243   { echo "$as_me:$LINENO: result: $LLVMGCC" >&5
13244 echo "${ECHO_T}$LLVMGCC" >&6; }
13245 else
13246   { echo "$as_me:$LINENO: result: no" >&5
13247 echo "${ECHO_T}no" >&6; }
13248 fi
13249
13250
13251   # Extract the first word of "$LLVMGXX", so it can be a program name with args.
13252 set dummy $LLVMGXX; ac_word=$2
13253 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13254 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13255 if test "${ac_cv_path_LLVMGXX+set}" = set; then
13256   echo $ECHO_N "(cached) $ECHO_C" >&6
13257 else
13258   case $LLVMGXX in
13259   [\\/]* | ?:[\\/]*)
13260   ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path.
13261   ;;
13262   *)
13263   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13264 for as_dir in $PATH
13265 do
13266   IFS=$as_save_IFS
13267   test -z "$as_dir" && as_dir=.
13268   for ac_exec_ext in '' $ac_executable_extensions; do
13269   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13270     ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext"
13271     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13272     break 2
13273   fi
13274 done
13275 done
13276 IFS=$as_save_IFS
13277
13278   ;;
13279 esac
13280 fi
13281 LLVMGXX=$ac_cv_path_LLVMGXX
13282 if test -n "$LLVMGXX"; then
13283   { echo "$as_me:$LINENO: result: $LLVMGXX" >&5
13284 echo "${ECHO_T}$LLVMGXX" >&6; }
13285 else
13286   { echo "$as_me:$LINENO: result: no" >&5
13287 echo "${ECHO_T}no" >&6; }
13288 fi
13289
13290
13291 else
13292   if test -z "$LLVMGCC"; then
13293     LLVMGCC="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}"
13294     LLVMGCCCOMMAND="$LLVMGCC"
13295   fi
13296   if test -z "$LLVMGXX"; then
13297     LLVMGXX="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}"
13298     LLVMGXXCOMMAND="$LLVMGXX"
13299   fi
13300
13301   LLVMGCC=$LLVMGCC
13302
13303   LLVMGXX=$LLVMGXX
13304
13305   LLVMGCCCOMMAND=$LLVMGCCCOMMAND
13306
13307   LLVMGXXCOMMAND=$LLVMGXXCOMMAND
13308
13309 fi
13310
13311
13312 # Check whether --with-llvmcc was given.
13313 if test "${with_llvmcc+set}" = set; then
13314   withval=$with_llvmcc;
13315 else
13316   with_llvmcc=check
13317 fi
13318
13319 { echo "$as_me:$LINENO: checking LLVM capable compiler" >&5
13320 echo $ECHO_N "checking LLVM capable compiler... $ECHO_C" >&6; }
13321 if test "$with_llvmcc" != "check"; then
13322    if (test "$with_llvmcc" != "llvm-gcc" &&
13323        test "$with_llvmcc" != "clang" &&
13324        test "$with_llvmcc" != "none"); then
13325       { { echo "$as_me:$LINENO: error: invalid value for --with-llvmcc, expected 'llvm-gcc', 'clang', or 'none'." >&5
13326 echo "$as_me: error: invalid value for --with-llvmcc, expected 'llvm-gcc', 'clang', or 'none'." >&2;}
13327    { (exit 1); exit 1; }; }
13328    fi
13329    WITH_LLVMCC="$with_llvmcc"
13330 elif test -n "$LLVMGCC"; then
13331    WITH_LLVMCC=llvm-gcc
13332 elif test -n "$WITH_CLANGPATH" || test "$WITH_BUILT_CLANG" -ne "0"; then
13333    WITH_LLVMCC=clang
13334 else
13335    WITH_LLVMCC=none
13336 fi
13337 { echo "$as_me:$LINENO: result: $WITH_LLVMCC" >&5
13338 echo "${ECHO_T}$WITH_LLVMCC" >&6; }
13339 LLVMCC_OPTION=$WITH_LLVMCC
13340
13341
13342 { echo "$as_me:$LINENO: checking tool compatibility" >&5
13343 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
13344
13345 ICC=no
13346 IXX=no
13347 case $CC in
13348   icc*|icpc*)
13349     ICC=yes
13350     IXX=yes
13351     ;;
13352    *)
13353     ;;
13354 esac
13355
13356 if test "$GCC" != "yes" && test "$ICC" != "yes"
13357 then
13358   { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
13359 echo "$as_me: error: gcc|icc required but not found" >&2;}
13360    { (exit 1); exit 1; }; }
13361 fi
13362
13363 if test "$GXX" != "yes" && test "$IXX" != "yes"
13364 then
13365   { { echo "$as_me:$LINENO: error: g++|clang++|icc required but not found" >&5
13366 echo "$as_me: error: g++|clang++|icc required but not found" >&2;}
13367    { (exit 1); exit 1; }; }
13368 fi
13369
13370 if test "$GCC" = "yes"
13371 then
13372   cat >conftest.$ac_ext <<_ACEOF
13373 #if !defined(__GNUC__) || __GNUC__ < 3
13374 #error Unsupported GCC version
13375 #endif
13376
13377 _ACEOF
13378 rm -f conftest.$ac_objext
13379 if { (ac_try="$ac_compile"
13380 case "(($ac_try" in
13381   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13382   *) ac_try_echo=$ac_try;;
13383 esac
13384 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13385   (eval "$ac_compile") 2>conftest.er1
13386   ac_status=$?
13387   grep -v '^ *+' conftest.er1 >conftest.err
13388   rm -f conftest.er1
13389   cat conftest.err >&5
13390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13391   (exit $ac_status); } &&
13392          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13393   { (case "(($ac_try" in
13394   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13395   *) ac_try_echo=$ac_try;;
13396 esac
13397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13398   (eval "$ac_try") 2>&5
13399   ac_status=$?
13400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13401   (exit $ac_status); }; } &&
13402          { ac_try='test -s conftest.$ac_objext'
13403   { (case "(($ac_try" in
13404   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13405   *) ac_try_echo=$ac_try;;
13406 esac
13407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13408   (eval "$ac_try") 2>&5
13409   ac_status=$?
13410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13411   (exit $ac_status); }; }; then
13412   :
13413 else
13414   echo "$as_me: failed program was:" >&5
13415 sed 's/^/| /' conftest.$ac_ext >&5
13416
13417         { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
13418 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
13419    { (exit 1); exit 1; }; }
13420 fi
13421
13422 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13423 fi
13424
13425 if test -z "$llvm_cv_gnu_make_command"
13426 then
13427   { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
13428 echo "$as_me: error: GNU Make required but not found" >&2;}
13429    { (exit 1); exit 1; }; }
13430 fi
13431
13432 { echo "$as_me:$LINENO: result: ok" >&5
13433 echo "${ECHO_T}ok" >&6; }
13434
13435 { echo "$as_me:$LINENO: checking optional compiler flags" >&5
13436 echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
13437 NO_VARIADIC_MACROS=`$CXX -Wno-variadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
13438
13439 NO_MISSING_FIELD_INITIALIZERS=`$CXX -Wno-missing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
13440
13441 { echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&5
13442 echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&6; }
13443
13444
13445
13446 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
13447 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
13448 if test "${ac_cv_lib_m_sin+set}" = set; then
13449   echo $ECHO_N "(cached) $ECHO_C" >&6
13450 else
13451   ac_check_lib_save_LIBS=$LIBS
13452 LIBS="-lm  $LIBS"
13453 cat >conftest.$ac_ext <<_ACEOF
13454 /* confdefs.h.  */
13455 _ACEOF
13456 cat confdefs.h >>conftest.$ac_ext
13457 cat >>conftest.$ac_ext <<_ACEOF
13458 /* end confdefs.h.  */
13459
13460 /* Override any GCC internal prototype to avoid an error.
13461    Use char because int might match the return type of a GCC
13462    builtin and then its argument prototype would still apply.  */
13463 #ifdef __cplusplus
13464 extern "C"
13465 #endif
13466 char sin ();
13467 int
13468 main ()
13469 {
13470 return sin ();
13471   ;
13472   return 0;
13473 }
13474 _ACEOF
13475 rm -f conftest.$ac_objext conftest$ac_exeext
13476 if { (ac_try="$ac_link"
13477 case "(($ac_try" in
13478   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13479   *) ac_try_echo=$ac_try;;
13480 esac
13481 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13482   (eval "$ac_link") 2>conftest.er1
13483   ac_status=$?
13484   grep -v '^ *+' conftest.er1 >conftest.err
13485   rm -f conftest.er1
13486   cat conftest.err >&5
13487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13488   (exit $ac_status); } &&
13489          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13490   { (case "(($ac_try" in
13491   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13492   *) ac_try_echo=$ac_try;;
13493 esac
13494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13495   (eval "$ac_try") 2>&5
13496   ac_status=$?
13497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13498   (exit $ac_status); }; } &&
13499          { ac_try='test -s conftest$ac_exeext'
13500   { (case "(($ac_try" in
13501   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13502   *) ac_try_echo=$ac_try;;
13503 esac
13504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13505   (eval "$ac_try") 2>&5
13506   ac_status=$?
13507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13508   (exit $ac_status); }; }; then
13509   ac_cv_lib_m_sin=yes
13510 else
13511   echo "$as_me: failed program was:" >&5
13512 sed 's/^/| /' conftest.$ac_ext >&5
13513
13514         ac_cv_lib_m_sin=no
13515 fi
13516
13517 rm -f core conftest.err conftest.$ac_objext \
13518       conftest$ac_exeext conftest.$ac_ext
13519 LIBS=$ac_check_lib_save_LIBS
13520 fi
13521 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
13522 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
13523 if test $ac_cv_lib_m_sin = yes; then
13524   cat >>confdefs.h <<_ACEOF
13525 #define HAVE_LIBM 1
13526 _ACEOF
13527
13528   LIBS="-lm $LIBS"
13529
13530 fi
13531
13532 if test "$llvm_cv_os_type" = "MingW" ; then
13533
13534 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
13535 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
13536 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
13537   echo $ECHO_N "(cached) $ECHO_C" >&6
13538 else
13539   ac_check_lib_save_LIBS=$LIBS
13540 LIBS="-limagehlp  $LIBS"
13541 cat >conftest.$ac_ext <<_ACEOF
13542 /* confdefs.h.  */
13543 _ACEOF
13544 cat confdefs.h >>conftest.$ac_ext
13545 cat >>conftest.$ac_ext <<_ACEOF
13546 /* end confdefs.h.  */
13547
13548
13549 int
13550 main ()
13551 {
13552 return main ();
13553   ;
13554   return 0;
13555 }
13556 _ACEOF
13557 rm -f conftest.$ac_objext conftest$ac_exeext
13558 if { (ac_try="$ac_link"
13559 case "(($ac_try" in
13560   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13561   *) ac_try_echo=$ac_try;;
13562 esac
13563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13564   (eval "$ac_link") 2>conftest.er1
13565   ac_status=$?
13566   grep -v '^ *+' conftest.er1 >conftest.err
13567   rm -f conftest.er1
13568   cat conftest.err >&5
13569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13570   (exit $ac_status); } &&
13571          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13572   { (case "(($ac_try" in
13573   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13574   *) ac_try_echo=$ac_try;;
13575 esac
13576 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13577   (eval "$ac_try") 2>&5
13578   ac_status=$?
13579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13580   (exit $ac_status); }; } &&
13581          { ac_try='test -s conftest$ac_exeext'
13582   { (case "(($ac_try" in
13583   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13584   *) ac_try_echo=$ac_try;;
13585 esac
13586 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13587   (eval "$ac_try") 2>&5
13588   ac_status=$?
13589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13590   (exit $ac_status); }; }; then
13591   ac_cv_lib_imagehlp_main=yes
13592 else
13593   echo "$as_me: failed program was:" >&5
13594 sed 's/^/| /' conftest.$ac_ext >&5
13595
13596         ac_cv_lib_imagehlp_main=no
13597 fi
13598
13599 rm -f core conftest.err conftest.$ac_objext \
13600       conftest$ac_exeext conftest.$ac_ext
13601 LIBS=$ac_check_lib_save_LIBS
13602 fi
13603 { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
13604 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
13605 if test $ac_cv_lib_imagehlp_main = yes; then
13606   cat >>confdefs.h <<_ACEOF
13607 #define HAVE_LIBIMAGEHLP 1
13608 _ACEOF
13609
13610   LIBS="-limagehlp $LIBS"
13611
13612 fi
13613
13614
13615 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
13616 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
13617 if test "${ac_cv_lib_psapi_main+set}" = set; then
13618   echo $ECHO_N "(cached) $ECHO_C" >&6
13619 else
13620   ac_check_lib_save_LIBS=$LIBS
13621 LIBS="-lpsapi  $LIBS"
13622 cat >conftest.$ac_ext <<_ACEOF
13623 /* confdefs.h.  */
13624 _ACEOF
13625 cat confdefs.h >>conftest.$ac_ext
13626 cat >>conftest.$ac_ext <<_ACEOF
13627 /* end confdefs.h.  */
13628
13629
13630 int
13631 main ()
13632 {
13633 return main ();
13634   ;
13635   return 0;
13636 }
13637 _ACEOF
13638 rm -f conftest.$ac_objext conftest$ac_exeext
13639 if { (ac_try="$ac_link"
13640 case "(($ac_try" in
13641   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13642   *) ac_try_echo=$ac_try;;
13643 esac
13644 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13645   (eval "$ac_link") 2>conftest.er1
13646   ac_status=$?
13647   grep -v '^ *+' conftest.er1 >conftest.err
13648   rm -f conftest.er1
13649   cat conftest.err >&5
13650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13651   (exit $ac_status); } &&
13652          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13653   { (case "(($ac_try" in
13654   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13655   *) ac_try_echo=$ac_try;;
13656 esac
13657 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13658   (eval "$ac_try") 2>&5
13659   ac_status=$?
13660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13661   (exit $ac_status); }; } &&
13662          { ac_try='test -s conftest$ac_exeext'
13663   { (case "(($ac_try" in
13664   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13665   *) ac_try_echo=$ac_try;;
13666 esac
13667 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13668   (eval "$ac_try") 2>&5
13669   ac_status=$?
13670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13671   (exit $ac_status); }; }; then
13672   ac_cv_lib_psapi_main=yes
13673 else
13674   echo "$as_me: failed program was:" >&5
13675 sed 's/^/| /' conftest.$ac_ext >&5
13676
13677         ac_cv_lib_psapi_main=no
13678 fi
13679
13680 rm -f core conftest.err conftest.$ac_objext \
13681       conftest$ac_exeext conftest.$ac_ext
13682 LIBS=$ac_check_lib_save_LIBS
13683 fi
13684 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
13685 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
13686 if test $ac_cv_lib_psapi_main = yes; then
13687   cat >>confdefs.h <<_ACEOF
13688 #define HAVE_LIBPSAPI 1
13689 _ACEOF
13690
13691   LIBS="-lpsapi $LIBS"
13692
13693 fi
13694
13695 fi
13696
13697 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
13698 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
13699 if test "${ac_cv_search_dlopen+set}" = set; then
13700   echo $ECHO_N "(cached) $ECHO_C" >&6
13701 else
13702   ac_func_search_save_LIBS=$LIBS
13703 cat >conftest.$ac_ext <<_ACEOF
13704 /* confdefs.h.  */
13705 _ACEOF
13706 cat confdefs.h >>conftest.$ac_ext
13707 cat >>conftest.$ac_ext <<_ACEOF
13708 /* end confdefs.h.  */
13709
13710 /* Override any GCC internal prototype to avoid an error.
13711    Use char because int might match the return type of a GCC
13712    builtin and then its argument prototype would still apply.  */
13713 #ifdef __cplusplus
13714 extern "C"
13715 #endif
13716 char dlopen ();
13717 int
13718 main ()
13719 {
13720 return dlopen ();
13721   ;
13722   return 0;
13723 }
13724 _ACEOF
13725 for ac_lib in '' dl; do
13726   if test -z "$ac_lib"; then
13727     ac_res="none required"
13728   else
13729     ac_res=-l$ac_lib
13730     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13731   fi
13732   rm -f conftest.$ac_objext conftest$ac_exeext
13733 if { (ac_try="$ac_link"
13734 case "(($ac_try" in
13735   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13736   *) ac_try_echo=$ac_try;;
13737 esac
13738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13739   (eval "$ac_link") 2>conftest.er1
13740   ac_status=$?
13741   grep -v '^ *+' conftest.er1 >conftest.err
13742   rm -f conftest.er1
13743   cat conftest.err >&5
13744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13745   (exit $ac_status); } &&
13746          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13747   { (case "(($ac_try" in
13748   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13749   *) ac_try_echo=$ac_try;;
13750 esac
13751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13752   (eval "$ac_try") 2>&5
13753   ac_status=$?
13754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13755   (exit $ac_status); }; } &&
13756          { ac_try='test -s conftest$ac_exeext'
13757   { (case "(($ac_try" in
13758   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13759   *) ac_try_echo=$ac_try;;
13760 esac
13761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13762   (eval "$ac_try") 2>&5
13763   ac_status=$?
13764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13765   (exit $ac_status); }; }; then
13766   ac_cv_search_dlopen=$ac_res
13767 else
13768   echo "$as_me: failed program was:" >&5
13769 sed 's/^/| /' conftest.$ac_ext >&5
13770
13771
13772 fi
13773
13774 rm -f core conftest.err conftest.$ac_objext \
13775       conftest$ac_exeext
13776   if test "${ac_cv_search_dlopen+set}" = set; then
13777   break
13778 fi
13779 done
13780 if test "${ac_cv_search_dlopen+set}" = set; then
13781   :
13782 else
13783   ac_cv_search_dlopen=no
13784 fi
13785 rm conftest.$ac_ext
13786 LIBS=$ac_func_search_save_LIBS
13787 fi
13788 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
13789 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
13790 ac_res=$ac_cv_search_dlopen
13791 if test "$ac_res" != no; then
13792   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13793
13794 cat >>confdefs.h <<\_ACEOF
13795 #define HAVE_DLOPEN 1
13796 _ACEOF
13797
13798 else
13799   { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
13800 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
13801 fi
13802
13803
13804 if test "$llvm_cv_enable_libffi" = "yes" ; then
13805   { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
13806 echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
13807 if test "${ac_cv_search_ffi_call+set}" = set; then
13808   echo $ECHO_N "(cached) $ECHO_C" >&6
13809 else
13810   ac_func_search_save_LIBS=$LIBS
13811 cat >conftest.$ac_ext <<_ACEOF
13812 /* confdefs.h.  */
13813 _ACEOF
13814 cat confdefs.h >>conftest.$ac_ext
13815 cat >>conftest.$ac_ext <<_ACEOF
13816 /* end confdefs.h.  */
13817
13818 /* Override any GCC internal prototype to avoid an error.
13819    Use char because int might match the return type of a GCC
13820    builtin and then its argument prototype would still apply.  */
13821 #ifdef __cplusplus
13822 extern "C"
13823 #endif
13824 char ffi_call ();
13825 int
13826 main ()
13827 {
13828 return ffi_call ();
13829   ;
13830   return 0;
13831 }
13832 _ACEOF
13833 for ac_lib in '' ffi; do
13834   if test -z "$ac_lib"; then
13835     ac_res="none required"
13836   else
13837     ac_res=-l$ac_lib
13838     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13839   fi
13840   rm -f conftest.$ac_objext conftest$ac_exeext
13841 if { (ac_try="$ac_link"
13842 case "(($ac_try" in
13843   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13844   *) ac_try_echo=$ac_try;;
13845 esac
13846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13847   (eval "$ac_link") 2>conftest.er1
13848   ac_status=$?
13849   grep -v '^ *+' conftest.er1 >conftest.err
13850   rm -f conftest.er1
13851   cat conftest.err >&5
13852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13853   (exit $ac_status); } &&
13854          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13855   { (case "(($ac_try" in
13856   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13857   *) ac_try_echo=$ac_try;;
13858 esac
13859 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13860   (eval "$ac_try") 2>&5
13861   ac_status=$?
13862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13863   (exit $ac_status); }; } &&
13864          { ac_try='test -s conftest$ac_exeext'
13865   { (case "(($ac_try" in
13866   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13867   *) ac_try_echo=$ac_try;;
13868 esac
13869 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13870   (eval "$ac_try") 2>&5
13871   ac_status=$?
13872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13873   (exit $ac_status); }; }; then
13874   ac_cv_search_ffi_call=$ac_res
13875 else
13876   echo "$as_me: failed program was:" >&5
13877 sed 's/^/| /' conftest.$ac_ext >&5
13878
13879
13880 fi
13881
13882 rm -f core conftest.err conftest.$ac_objext \
13883       conftest$ac_exeext
13884   if test "${ac_cv_search_ffi_call+set}" = set; then
13885   break
13886 fi
13887 done
13888 if test "${ac_cv_search_ffi_call+set}" = set; then
13889   :
13890 else
13891   ac_cv_search_ffi_call=no
13892 fi
13893 rm conftest.$ac_ext
13894 LIBS=$ac_func_search_save_LIBS
13895 fi
13896 { echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
13897 echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
13898 ac_res=$ac_cv_search_ffi_call
13899 if test "$ac_res" != no; then
13900   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13901
13902 cat >>confdefs.h <<\_ACEOF
13903 #define HAVE_FFI_CALL 1
13904 _ACEOF
13905
13906 else
13907   { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
13908 echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
13909    { (exit 1); exit 1; }; }
13910 fi
13911
13912 fi
13913
13914 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
13915 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
13916 if test "${ac_cv_search_mallinfo+set}" = set; then
13917   echo $ECHO_N "(cached) $ECHO_C" >&6
13918 else
13919   ac_func_search_save_LIBS=$LIBS
13920 cat >conftest.$ac_ext <<_ACEOF
13921 /* confdefs.h.  */
13922 _ACEOF
13923 cat confdefs.h >>conftest.$ac_ext
13924 cat >>conftest.$ac_ext <<_ACEOF
13925 /* end confdefs.h.  */
13926
13927 /* Override any GCC internal prototype to avoid an error.
13928    Use char because int might match the return type of a GCC
13929    builtin and then its argument prototype would still apply.  */
13930 #ifdef __cplusplus
13931 extern "C"
13932 #endif
13933 char mallinfo ();
13934 int
13935 main ()
13936 {
13937 return mallinfo ();
13938   ;
13939   return 0;
13940 }
13941 _ACEOF
13942 for ac_lib in '' malloc; do
13943   if test -z "$ac_lib"; then
13944     ac_res="none required"
13945   else
13946     ac_res=-l$ac_lib
13947     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13948   fi
13949   rm -f conftest.$ac_objext conftest$ac_exeext
13950 if { (ac_try="$ac_link"
13951 case "(($ac_try" in
13952   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13953   *) ac_try_echo=$ac_try;;
13954 esac
13955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13956   (eval "$ac_link") 2>conftest.er1
13957   ac_status=$?
13958   grep -v '^ *+' conftest.er1 >conftest.err
13959   rm -f conftest.er1
13960   cat conftest.err >&5
13961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13962   (exit $ac_status); } &&
13963          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13964   { (case "(($ac_try" in
13965   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13966   *) ac_try_echo=$ac_try;;
13967 esac
13968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13969   (eval "$ac_try") 2>&5
13970   ac_status=$?
13971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13972   (exit $ac_status); }; } &&
13973          { ac_try='test -s conftest$ac_exeext'
13974   { (case "(($ac_try" in
13975   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13976   *) ac_try_echo=$ac_try;;
13977 esac
13978 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13979   (eval "$ac_try") 2>&5
13980   ac_status=$?
13981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13982   (exit $ac_status); }; }; then
13983   ac_cv_search_mallinfo=$ac_res
13984 else
13985   echo "$as_me: failed program was:" >&5
13986 sed 's/^/| /' conftest.$ac_ext >&5
13987
13988
13989 fi
13990
13991 rm -f core conftest.err conftest.$ac_objext \
13992       conftest$ac_exeext
13993   if test "${ac_cv_search_mallinfo+set}" = set; then
13994   break
13995 fi
13996 done
13997 if test "${ac_cv_search_mallinfo+set}" = set; then
13998   :
13999 else
14000   ac_cv_search_mallinfo=no
14001 fi
14002 rm conftest.$ac_ext
14003 LIBS=$ac_func_search_save_LIBS
14004 fi
14005 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
14006 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
14007 ac_res=$ac_cv_search_mallinfo
14008 if test "$ac_res" != no; then
14009   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14010
14011 cat >>confdefs.h <<\_ACEOF
14012 #define HAVE_MALLINFO 1
14013 _ACEOF
14014
14015 fi
14016
14017
14018 if test "$ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
14019
14020 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
14021 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
14022 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
14023   echo $ECHO_N "(cached) $ECHO_C" >&6
14024 else
14025   ac_check_lib_save_LIBS=$LIBS
14026 LIBS="-lpthread  $LIBS"
14027 cat >conftest.$ac_ext <<_ACEOF
14028 /* confdefs.h.  */
14029 _ACEOF
14030 cat confdefs.h >>conftest.$ac_ext
14031 cat >>conftest.$ac_ext <<_ACEOF
14032 /* end confdefs.h.  */
14033
14034 /* Override any GCC internal prototype to avoid an error.
14035    Use char because int might match the return type of a GCC
14036    builtin and then its argument prototype would still apply.  */
14037 #ifdef __cplusplus
14038 extern "C"
14039 #endif
14040 char pthread_mutex_init ();
14041 int
14042 main ()
14043 {
14044 return pthread_mutex_init ();
14045   ;
14046   return 0;
14047 }
14048 _ACEOF
14049 rm -f conftest.$ac_objext conftest$ac_exeext
14050 if { (ac_try="$ac_link"
14051 case "(($ac_try" in
14052   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14053   *) ac_try_echo=$ac_try;;
14054 esac
14055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14056   (eval "$ac_link") 2>conftest.er1
14057   ac_status=$?
14058   grep -v '^ *+' conftest.er1 >conftest.err
14059   rm -f conftest.er1
14060   cat conftest.err >&5
14061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14062   (exit $ac_status); } &&
14063          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14064   { (case "(($ac_try" in
14065   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14066   *) ac_try_echo=$ac_try;;
14067 esac
14068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14069   (eval "$ac_try") 2>&5
14070   ac_status=$?
14071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14072   (exit $ac_status); }; } &&
14073          { ac_try='test -s conftest$ac_exeext'
14074   { (case "(($ac_try" in
14075   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14076   *) ac_try_echo=$ac_try;;
14077 esac
14078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14079   (eval "$ac_try") 2>&5
14080   ac_status=$?
14081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14082   (exit $ac_status); }; }; then
14083   ac_cv_lib_pthread_pthread_mutex_init=yes
14084 else
14085   echo "$as_me: failed program was:" >&5
14086 sed 's/^/| /' conftest.$ac_ext >&5
14087
14088         ac_cv_lib_pthread_pthread_mutex_init=no
14089 fi
14090
14091 rm -f core conftest.err conftest.$ac_objext \
14092       conftest$ac_exeext conftest.$ac_ext
14093 LIBS=$ac_check_lib_save_LIBS
14094 fi
14095 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
14096 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
14097 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
14098   cat >>confdefs.h <<_ACEOF
14099 #define HAVE_LIBPTHREAD 1
14100 _ACEOF
14101
14102   LIBS="-lpthread $LIBS"
14103
14104 fi
14105
14106   { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
14107 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
14108 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
14109   echo $ECHO_N "(cached) $ECHO_C" >&6
14110 else
14111   ac_func_search_save_LIBS=$LIBS
14112 cat >conftest.$ac_ext <<_ACEOF
14113 /* confdefs.h.  */
14114 _ACEOF
14115 cat confdefs.h >>conftest.$ac_ext
14116 cat >>conftest.$ac_ext <<_ACEOF
14117 /* end confdefs.h.  */
14118
14119 /* Override any GCC internal prototype to avoid an error.
14120    Use char because int might match the return type of a GCC
14121    builtin and then its argument prototype would still apply.  */
14122 #ifdef __cplusplus
14123 extern "C"
14124 #endif
14125 char pthread_mutex_lock ();
14126 int
14127 main ()
14128 {
14129 return pthread_mutex_lock ();
14130   ;
14131   return 0;
14132 }
14133 _ACEOF
14134 for ac_lib in '' pthread; do
14135   if test -z "$ac_lib"; then
14136     ac_res="none required"
14137   else
14138     ac_res=-l$ac_lib
14139     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14140   fi
14141   rm -f conftest.$ac_objext conftest$ac_exeext
14142 if { (ac_try="$ac_link"
14143 case "(($ac_try" in
14144   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14145   *) ac_try_echo=$ac_try;;
14146 esac
14147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14148   (eval "$ac_link") 2>conftest.er1
14149   ac_status=$?
14150   grep -v '^ *+' conftest.er1 >conftest.err
14151   rm -f conftest.er1
14152   cat conftest.err >&5
14153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14154   (exit $ac_status); } &&
14155          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14156   { (case "(($ac_try" in
14157   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14158   *) ac_try_echo=$ac_try;;
14159 esac
14160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14161   (eval "$ac_try") 2>&5
14162   ac_status=$?
14163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14164   (exit $ac_status); }; } &&
14165          { ac_try='test -s conftest$ac_exeext'
14166   { (case "(($ac_try" in
14167   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14168   *) ac_try_echo=$ac_try;;
14169 esac
14170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14171   (eval "$ac_try") 2>&5
14172   ac_status=$?
14173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14174   (exit $ac_status); }; }; then
14175   ac_cv_search_pthread_mutex_lock=$ac_res
14176 else
14177   echo "$as_me: failed program was:" >&5
14178 sed 's/^/| /' conftest.$ac_ext >&5
14179
14180
14181 fi
14182
14183 rm -f core conftest.err conftest.$ac_objext \
14184       conftest$ac_exeext
14185   if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
14186   break
14187 fi
14188 done
14189 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
14190   :
14191 else
14192   ac_cv_search_pthread_mutex_lock=no
14193 fi
14194 rm conftest.$ac_ext
14195 LIBS=$ac_func_search_save_LIBS
14196 fi
14197 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
14198 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
14199 ac_res=$ac_cv_search_pthread_mutex_lock
14200 if test "$ac_res" != no; then
14201   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14202
14203 cat >>confdefs.h <<\_ACEOF
14204 #define HAVE_PTHREAD_MUTEX_LOCK 1
14205 _ACEOF
14206
14207 fi
14208
14209   { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
14210 echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
14211 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
14212   echo $ECHO_N "(cached) $ECHO_C" >&6
14213 else
14214   ac_func_search_save_LIBS=$LIBS
14215 cat >conftest.$ac_ext <<_ACEOF
14216 /* confdefs.h.  */
14217 _ACEOF
14218 cat confdefs.h >>conftest.$ac_ext
14219 cat >>conftest.$ac_ext <<_ACEOF
14220 /* end confdefs.h.  */
14221
14222 /* Override any GCC internal prototype to avoid an error.
14223    Use char because int might match the return type of a GCC
14224    builtin and then its argument prototype would still apply.  */
14225 #ifdef __cplusplus
14226 extern "C"
14227 #endif
14228 char pthread_rwlock_init ();
14229 int
14230 main ()
14231 {
14232 return pthread_rwlock_init ();
14233   ;
14234   return 0;
14235 }
14236 _ACEOF
14237 for ac_lib in '' pthread; do
14238   if test -z "$ac_lib"; then
14239     ac_res="none required"
14240   else
14241     ac_res=-l$ac_lib
14242     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14243   fi
14244   rm -f conftest.$ac_objext conftest$ac_exeext
14245 if { (ac_try="$ac_link"
14246 case "(($ac_try" in
14247   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14248   *) ac_try_echo=$ac_try;;
14249 esac
14250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14251   (eval "$ac_link") 2>conftest.er1
14252   ac_status=$?
14253   grep -v '^ *+' conftest.er1 >conftest.err
14254   rm -f conftest.er1
14255   cat conftest.err >&5
14256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14257   (exit $ac_status); } &&
14258          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14259   { (case "(($ac_try" in
14260   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14261   *) ac_try_echo=$ac_try;;
14262 esac
14263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14264   (eval "$ac_try") 2>&5
14265   ac_status=$?
14266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14267   (exit $ac_status); }; } &&
14268          { ac_try='test -s conftest$ac_exeext'
14269   { (case "(($ac_try" in
14270   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14271   *) ac_try_echo=$ac_try;;
14272 esac
14273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14274   (eval "$ac_try") 2>&5
14275   ac_status=$?
14276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14277   (exit $ac_status); }; }; then
14278   ac_cv_search_pthread_rwlock_init=$ac_res
14279 else
14280   echo "$as_me: failed program was:" >&5
14281 sed 's/^/| /' conftest.$ac_ext >&5
14282
14283
14284 fi
14285
14286 rm -f core conftest.err conftest.$ac_objext \
14287       conftest$ac_exeext
14288   if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
14289   break
14290 fi
14291 done
14292 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
14293   :
14294 else
14295   ac_cv_search_pthread_rwlock_init=no
14296 fi
14297 rm conftest.$ac_ext
14298 LIBS=$ac_func_search_save_LIBS
14299 fi
14300 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
14301 echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
14302 ac_res=$ac_cv_search_pthread_rwlock_init
14303 if test "$ac_res" != no; then
14304   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14305
14306 cat >>confdefs.h <<\_ACEOF
14307 #define HAVE_PTHREAD_RWLOCK_INIT 1
14308 _ACEOF
14309
14310 fi
14311
14312   { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
14313 echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
14314 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
14315   echo $ECHO_N "(cached) $ECHO_C" >&6
14316 else
14317   ac_func_search_save_LIBS=$LIBS
14318 cat >conftest.$ac_ext <<_ACEOF
14319 /* confdefs.h.  */
14320 _ACEOF
14321 cat confdefs.h >>conftest.$ac_ext
14322 cat >>conftest.$ac_ext <<_ACEOF
14323 /* end confdefs.h.  */
14324
14325 /* Override any GCC internal prototype to avoid an error.
14326    Use char because int might match the return type of a GCC
14327    builtin and then its argument prototype would still apply.  */
14328 #ifdef __cplusplus
14329 extern "C"
14330 #endif
14331 char pthread_getspecific ();
14332 int
14333 main ()
14334 {
14335 return pthread_getspecific ();
14336   ;
14337   return 0;
14338 }
14339 _ACEOF
14340 for ac_lib in '' pthread; do
14341   if test -z "$ac_lib"; then
14342     ac_res="none required"
14343   else
14344     ac_res=-l$ac_lib
14345     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14346   fi
14347   rm -f conftest.$ac_objext conftest$ac_exeext
14348 if { (ac_try="$ac_link"
14349 case "(($ac_try" in
14350   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14351   *) ac_try_echo=$ac_try;;
14352 esac
14353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14354   (eval "$ac_link") 2>conftest.er1
14355   ac_status=$?
14356   grep -v '^ *+' conftest.er1 >conftest.err
14357   rm -f conftest.er1
14358   cat conftest.err >&5
14359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14360   (exit $ac_status); } &&
14361          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14362   { (case "(($ac_try" in
14363   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14364   *) ac_try_echo=$ac_try;;
14365 esac
14366 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14367   (eval "$ac_try") 2>&5
14368   ac_status=$?
14369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14370   (exit $ac_status); }; } &&
14371          { ac_try='test -s conftest$ac_exeext'
14372   { (case "(($ac_try" in
14373   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14374   *) ac_try_echo=$ac_try;;
14375 esac
14376 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14377   (eval "$ac_try") 2>&5
14378   ac_status=$?
14379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14380   (exit $ac_status); }; }; then
14381   ac_cv_search_pthread_getspecific=$ac_res
14382 else
14383   echo "$as_me: failed program was:" >&5
14384 sed 's/^/| /' conftest.$ac_ext >&5
14385
14386
14387 fi
14388
14389 rm -f core conftest.err conftest.$ac_objext \
14390       conftest$ac_exeext
14391   if test "${ac_cv_search_pthread_getspecific+set}" = set; then
14392   break
14393 fi
14394 done
14395 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
14396   :
14397 else
14398   ac_cv_search_pthread_getspecific=no
14399 fi
14400 rm conftest.$ac_ext
14401 LIBS=$ac_func_search_save_LIBS
14402 fi
14403 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
14404 echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
14405 ac_res=$ac_cv_search_pthread_getspecific
14406 if test "$ac_res" != no; then
14407   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14408
14409 cat >>confdefs.h <<\_ACEOF
14410 #define HAVE_PTHREAD_GETSPECIFIC 1
14411 _ACEOF
14412
14413 fi
14414
14415 fi
14416
14417
14418 # Check whether --with-udis86 was given.
14419 if test "${with_udis86+set}" = set; then
14420   withval=$with_udis86;
14421       USE_UDIS86=1
14422
14423       case "$withval" in
14424         /usr/lib|yes) ;;
14425         *) LDFLAGS="$LDFLAGS -L${withval}" ;;
14426       esac
14427
14428 { echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
14429 echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
14430 if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
14431   echo $ECHO_N "(cached) $ECHO_C" >&6
14432 else
14433   ac_check_lib_save_LIBS=$LIBS
14434 LIBS="-ludis86  $LIBS"
14435 cat >conftest.$ac_ext <<_ACEOF
14436 /* confdefs.h.  */
14437 _ACEOF
14438 cat confdefs.h >>conftest.$ac_ext
14439 cat >>conftest.$ac_ext <<_ACEOF
14440 /* end confdefs.h.  */
14441
14442 /* Override any GCC internal prototype to avoid an error.
14443    Use char because int might match the return type of a GCC
14444    builtin and then its argument prototype would still apply.  */
14445 #ifdef __cplusplus
14446 extern "C"
14447 #endif
14448 char ud_init ();
14449 int
14450 main ()
14451 {
14452 return ud_init ();
14453   ;
14454   return 0;
14455 }
14456 _ACEOF
14457 rm -f conftest.$ac_objext conftest$ac_exeext
14458 if { (ac_try="$ac_link"
14459 case "(($ac_try" in
14460   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14461   *) ac_try_echo=$ac_try;;
14462 esac
14463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14464   (eval "$ac_link") 2>conftest.er1
14465   ac_status=$?
14466   grep -v '^ *+' conftest.er1 >conftest.err
14467   rm -f conftest.er1
14468   cat conftest.err >&5
14469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14470   (exit $ac_status); } &&
14471          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14472   { (case "(($ac_try" in
14473   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14474   *) ac_try_echo=$ac_try;;
14475 esac
14476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14477   (eval "$ac_try") 2>&5
14478   ac_status=$?
14479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14480   (exit $ac_status); }; } &&
14481          { ac_try='test -s conftest$ac_exeext'
14482   { (case "(($ac_try" in
14483   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14484   *) ac_try_echo=$ac_try;;
14485 esac
14486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14487   (eval "$ac_try") 2>&5
14488   ac_status=$?
14489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14490   (exit $ac_status); }; }; then
14491   ac_cv_lib_udis86_ud_init=yes
14492 else
14493   echo "$as_me: failed program was:" >&5
14494 sed 's/^/| /' conftest.$ac_ext >&5
14495
14496         ac_cv_lib_udis86_ud_init=no
14497 fi
14498
14499 rm -f core conftest.err conftest.$ac_objext \
14500       conftest$ac_exeext conftest.$ac_ext
14501 LIBS=$ac_check_lib_save_LIBS
14502 fi
14503 { echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
14504 echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
14505 if test $ac_cv_lib_udis86_ud_init = yes; then
14506   cat >>confdefs.h <<_ACEOF
14507 #define HAVE_LIBUDIS86 1
14508 _ACEOF
14509
14510   LIBS="-ludis86 $LIBS"
14511
14512 else
14513
14514         echo "Error! You need to have libudis86 around."
14515         exit -1
14516
14517 fi
14518
14519
14520 else
14521   USE_UDIS86=0
14522
14523 fi
14524
14525
14526 cat >>confdefs.h <<_ACEOF
14527 #define USE_UDIS86 $USE_UDIS86
14528 _ACEOF
14529
14530
14531
14532 # Check whether --with-oprofile was given.
14533 if test "${with_oprofile+set}" = set; then
14534   withval=$with_oprofile;
14535       USE_OPROFILE=1
14536
14537       case "$withval" in
14538         /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
14539         no) llvm_cv_oppath=
14540             USE_OPROFILE=0
14541  ;;
14542         *) llvm_cv_oppath="${withval}/lib/oprofile"
14543            CPPFLAGS="-I${withval}/include";;
14544       esac
14545       if test -n "$llvm_cv_oppath" ; then
14546         LIBS="$LIBS -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
14547                                         { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
14548 echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
14549 if test "${ac_cv_search_bfd_init+set}" = set; then
14550   echo $ECHO_N "(cached) $ECHO_C" >&6
14551 else
14552   ac_func_search_save_LIBS=$LIBS
14553 cat >conftest.$ac_ext <<_ACEOF
14554 /* confdefs.h.  */
14555 _ACEOF
14556 cat confdefs.h >>conftest.$ac_ext
14557 cat >>conftest.$ac_ext <<_ACEOF
14558 /* end confdefs.h.  */
14559
14560 /* Override any GCC internal prototype to avoid an error.
14561    Use char because int might match the return type of a GCC
14562    builtin and then its argument prototype would still apply.  */
14563 #ifdef __cplusplus
14564 extern "C"
14565 #endif
14566 char bfd_init ();
14567 int
14568 main ()
14569 {
14570 return bfd_init ();
14571   ;
14572   return 0;
14573 }
14574 _ACEOF
14575 for ac_lib in '' bfd; do
14576   if test -z "$ac_lib"; then
14577     ac_res="none required"
14578   else
14579     ac_res=-l$ac_lib
14580     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14581   fi
14582   rm -f conftest.$ac_objext conftest$ac_exeext
14583 if { (ac_try="$ac_link"
14584 case "(($ac_try" in
14585   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14586   *) ac_try_echo=$ac_try;;
14587 esac
14588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14589   (eval "$ac_link") 2>conftest.er1
14590   ac_status=$?
14591   grep -v '^ *+' conftest.er1 >conftest.err
14592   rm -f conftest.er1
14593   cat conftest.err >&5
14594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14595   (exit $ac_status); } &&
14596          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14597   { (case "(($ac_try" in
14598   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14599   *) ac_try_echo=$ac_try;;
14600 esac
14601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14602   (eval "$ac_try") 2>&5
14603   ac_status=$?
14604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14605   (exit $ac_status); }; } &&
14606          { ac_try='test -s conftest$ac_exeext'
14607   { (case "(($ac_try" in
14608   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14609   *) ac_try_echo=$ac_try;;
14610 esac
14611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14612   (eval "$ac_try") 2>&5
14613   ac_status=$?
14614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14615   (exit $ac_status); }; }; then
14616   ac_cv_search_bfd_init=$ac_res
14617 else
14618   echo "$as_me: failed program was:" >&5
14619 sed 's/^/| /' conftest.$ac_ext >&5
14620
14621
14622 fi
14623
14624 rm -f core conftest.err conftest.$ac_objext \
14625       conftest$ac_exeext
14626   if test "${ac_cv_search_bfd_init+set}" = set; then
14627   break
14628 fi
14629 done
14630 if test "${ac_cv_search_bfd_init+set}" = set; then
14631   :
14632 else
14633   ac_cv_search_bfd_init=no
14634 fi
14635 rm conftest.$ac_ext
14636 LIBS=$ac_func_search_save_LIBS
14637 fi
14638 { echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
14639 echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
14640 ac_res=$ac_cv_search_bfd_init
14641 if test "$ac_res" != no; then
14642   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14643
14644 fi
14645
14646         { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
14647 echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
14648 if test "${ac_cv_search_op_open_agent+set}" = set; then
14649   echo $ECHO_N "(cached) $ECHO_C" >&6
14650 else
14651   ac_func_search_save_LIBS=$LIBS
14652 cat >conftest.$ac_ext <<_ACEOF
14653 /* confdefs.h.  */
14654 _ACEOF
14655 cat confdefs.h >>conftest.$ac_ext
14656 cat >>conftest.$ac_ext <<_ACEOF
14657 /* end confdefs.h.  */
14658
14659 /* Override any GCC internal prototype to avoid an error.
14660    Use char because int might match the return type of a GCC
14661    builtin and then its argument prototype would still apply.  */
14662 #ifdef __cplusplus
14663 extern "C"
14664 #endif
14665 char op_open_agent ();
14666 int
14667 main ()
14668 {
14669 return op_open_agent ();
14670   ;
14671   return 0;
14672 }
14673 _ACEOF
14674 for ac_lib in '' opagent; do
14675   if test -z "$ac_lib"; then
14676     ac_res="none required"
14677   else
14678     ac_res=-l$ac_lib
14679     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14680   fi
14681   rm -f conftest.$ac_objext conftest$ac_exeext
14682 if { (ac_try="$ac_link"
14683 case "(($ac_try" in
14684   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14685   *) ac_try_echo=$ac_try;;
14686 esac
14687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14688   (eval "$ac_link") 2>conftest.er1
14689   ac_status=$?
14690   grep -v '^ *+' conftest.er1 >conftest.err
14691   rm -f conftest.er1
14692   cat conftest.err >&5
14693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14694   (exit $ac_status); } &&
14695          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14696   { (case "(($ac_try" in
14697   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14698   *) ac_try_echo=$ac_try;;
14699 esac
14700 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14701   (eval "$ac_try") 2>&5
14702   ac_status=$?
14703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14704   (exit $ac_status); }; } &&
14705          { ac_try='test -s conftest$ac_exeext'
14706   { (case "(($ac_try" in
14707   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14708   *) ac_try_echo=$ac_try;;
14709 esac
14710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14711   (eval "$ac_try") 2>&5
14712   ac_status=$?
14713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14714   (exit $ac_status); }; }; then
14715   ac_cv_search_op_open_agent=$ac_res
14716 else
14717   echo "$as_me: failed program was:" >&5
14718 sed 's/^/| /' conftest.$ac_ext >&5
14719
14720
14721 fi
14722
14723 rm -f core conftest.err conftest.$ac_objext \
14724       conftest$ac_exeext
14725   if test "${ac_cv_search_op_open_agent+set}" = set; then
14726   break
14727 fi
14728 done
14729 if test "${ac_cv_search_op_open_agent+set}" = set; then
14730   :
14731 else
14732   ac_cv_search_op_open_agent=no
14733 fi
14734 rm conftest.$ac_ext
14735 LIBS=$ac_func_search_save_LIBS
14736 fi
14737 { echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
14738 echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
14739 ac_res=$ac_cv_search_op_open_agent
14740 if test "$ac_res" != no; then
14741   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14742
14743 else
14744
14745           echo "Error! You need to have libopagent around."
14746           exit -1
14747
14748 fi
14749
14750         if test "${ac_cv_header_opagent_h+set}" = set; then
14751   { echo "$as_me:$LINENO: checking for opagent.h" >&5
14752 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
14753 if test "${ac_cv_header_opagent_h+set}" = set; then
14754   echo $ECHO_N "(cached) $ECHO_C" >&6
14755 fi
14756 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
14757 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
14758 else
14759   # Is the header compilable?
14760 { echo "$as_me:$LINENO: checking opagent.h usability" >&5
14761 echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
14762 cat >conftest.$ac_ext <<_ACEOF
14763 /* confdefs.h.  */
14764 _ACEOF
14765 cat confdefs.h >>conftest.$ac_ext
14766 cat >>conftest.$ac_ext <<_ACEOF
14767 /* end confdefs.h.  */
14768 $ac_includes_default
14769 #include <opagent.h>
14770 _ACEOF
14771 rm -f conftest.$ac_objext
14772 if { (ac_try="$ac_compile"
14773 case "(($ac_try" in
14774   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14775   *) ac_try_echo=$ac_try;;
14776 esac
14777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14778   (eval "$ac_compile") 2>conftest.er1
14779   ac_status=$?
14780   grep -v '^ *+' conftest.er1 >conftest.err
14781   rm -f conftest.er1
14782   cat conftest.err >&5
14783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14784   (exit $ac_status); } &&
14785          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14786   { (case "(($ac_try" in
14787   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14788   *) ac_try_echo=$ac_try;;
14789 esac
14790 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14791   (eval "$ac_try") 2>&5
14792   ac_status=$?
14793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14794   (exit $ac_status); }; } &&
14795          { ac_try='test -s conftest.$ac_objext'
14796   { (case "(($ac_try" in
14797   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14798   *) ac_try_echo=$ac_try;;
14799 esac
14800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14801   (eval "$ac_try") 2>&5
14802   ac_status=$?
14803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14804   (exit $ac_status); }; }; then
14805   ac_header_compiler=yes
14806 else
14807   echo "$as_me: failed program was:" >&5
14808 sed 's/^/| /' conftest.$ac_ext >&5
14809
14810         ac_header_compiler=no
14811 fi
14812
14813 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14814 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14815 echo "${ECHO_T}$ac_header_compiler" >&6; }
14816
14817 # Is the header present?
14818 { echo "$as_me:$LINENO: checking opagent.h presence" >&5
14819 echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
14820 cat >conftest.$ac_ext <<_ACEOF
14821 /* confdefs.h.  */
14822 _ACEOF
14823 cat confdefs.h >>conftest.$ac_ext
14824 cat >>conftest.$ac_ext <<_ACEOF
14825 /* end confdefs.h.  */
14826 #include <opagent.h>
14827 _ACEOF
14828 if { (ac_try="$ac_cpp conftest.$ac_ext"
14829 case "(($ac_try" in
14830   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14831   *) ac_try_echo=$ac_try;;
14832 esac
14833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14834   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14835   ac_status=$?
14836   grep -v '^ *+' conftest.er1 >conftest.err
14837   rm -f conftest.er1
14838   cat conftest.err >&5
14839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14840   (exit $ac_status); } >/dev/null; then
14841   if test -s conftest.err; then
14842     ac_cpp_err=$ac_c_preproc_warn_flag
14843     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14844   else
14845     ac_cpp_err=
14846   fi
14847 else
14848   ac_cpp_err=yes
14849 fi
14850 if test -z "$ac_cpp_err"; then
14851   ac_header_preproc=yes
14852 else
14853   echo "$as_me: failed program was:" >&5
14854 sed 's/^/| /' conftest.$ac_ext >&5
14855
14856   ac_header_preproc=no
14857 fi
14858
14859 rm -f conftest.err conftest.$ac_ext
14860 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14861 echo "${ECHO_T}$ac_header_preproc" >&6; }
14862
14863 # So?  What about this header?
14864 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14865   yes:no: )
14866     { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
14867 echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14868     { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
14869 echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
14870     ac_header_preproc=yes
14871     ;;
14872   no:yes:* )
14873     { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
14874 echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
14875     { echo "$as_me:$LINENO: WARNING: opagent.h:     check for missing prerequisite headers?" >&5
14876 echo "$as_me: WARNING: opagent.h:     check for missing prerequisite headers?" >&2;}
14877     { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
14878 echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
14879     { echo "$as_me:$LINENO: WARNING: opagent.h:     section \"Present But Cannot Be Compiled\"" >&5
14880 echo "$as_me: WARNING: opagent.h:     section \"Present But Cannot Be Compiled\"" >&2;}
14881     { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
14882 echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
14883     { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
14884 echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
14885     ( cat <<\_ASBOX
14886 ## ----------------------------------- ##
14887 ## Report this to llvmbugs@cs.uiuc.edu ##
14888 ## ----------------------------------- ##
14889 _ASBOX
14890      ) | sed "s/^/$as_me: WARNING:     /" >&2
14891     ;;
14892 esac
14893 { echo "$as_me:$LINENO: checking for opagent.h" >&5
14894 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
14895 if test "${ac_cv_header_opagent_h+set}" = set; then
14896   echo $ECHO_N "(cached) $ECHO_C" >&6
14897 else
14898   ac_cv_header_opagent_h=$ac_header_preproc
14899 fi
14900 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
14901 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
14902
14903 fi
14904 if test $ac_cv_header_opagent_h = yes; then
14905   :
14906 else
14907
14908           echo "Error! You need to have opagent.h around."
14909           exit -1
14910
14911 fi
14912
14913
14914       fi
14915
14916 else
14917
14918       USE_OPROFILE=0
14919
14920
14921 fi
14922
14923
14924 cat >>confdefs.h <<_ACEOF
14925 #define USE_OPROFILE $USE_OPROFILE
14926 _ACEOF
14927
14928
14929
14930
14931
14932
14933
14934
14935 ac_header_dirent=no
14936 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
14937   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
14938 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
14939 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
14940 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14941   echo $ECHO_N "(cached) $ECHO_C" >&6
14942 else
14943   cat >conftest.$ac_ext <<_ACEOF
14944 /* confdefs.h.  */
14945 _ACEOF
14946 cat confdefs.h >>conftest.$ac_ext
14947 cat >>conftest.$ac_ext <<_ACEOF
14948 /* end confdefs.h.  */
14949 #include <sys/types.h>
14950 #include <$ac_hdr>
14951
14952 int
14953 main ()
14954 {
14955 if ((DIR *) 0)
14956 return 0;
14957   ;
14958   return 0;
14959 }
14960 _ACEOF
14961 rm -f conftest.$ac_objext
14962 if { (ac_try="$ac_compile"
14963 case "(($ac_try" in
14964   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14965   *) ac_try_echo=$ac_try;;
14966 esac
14967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14968   (eval "$ac_compile") 2>conftest.er1
14969   ac_status=$?
14970   grep -v '^ *+' conftest.er1 >conftest.err
14971   rm -f conftest.er1
14972   cat conftest.err >&5
14973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14974   (exit $ac_status); } &&
14975          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14976   { (case "(($ac_try" in
14977   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14978   *) ac_try_echo=$ac_try;;
14979 esac
14980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14981   (eval "$ac_try") 2>&5
14982   ac_status=$?
14983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14984   (exit $ac_status); }; } &&
14985          { ac_try='test -s conftest.$ac_objext'
14986   { (case "(($ac_try" in
14987   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14988   *) ac_try_echo=$ac_try;;
14989 esac
14990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14991   (eval "$ac_try") 2>&5
14992   ac_status=$?
14993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14994   (exit $ac_status); }; }; then
14995   eval "$as_ac_Header=yes"
14996 else
14997   echo "$as_me: failed program was:" >&5
14998 sed 's/^/| /' conftest.$ac_ext >&5
14999
15000         eval "$as_ac_Header=no"
15001 fi
15002
15003 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15004 fi
15005 ac_res=`eval echo '${'$as_ac_Header'}'`
15006                { echo "$as_me:$LINENO: result: $ac_res" >&5
15007 echo "${ECHO_T}$ac_res" >&6; }
15008 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15009   cat >>confdefs.h <<_ACEOF
15010 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
15011 _ACEOF
15012
15013 ac_header_dirent=$ac_hdr; break
15014 fi
15015
15016 done
15017 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
15018 if test $ac_header_dirent = dirent.h; then
15019   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
15020 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
15021 if test "${ac_cv_search_opendir+set}" = set; then
15022   echo $ECHO_N "(cached) $ECHO_C" >&6
15023 else
15024   ac_func_search_save_LIBS=$LIBS
15025 cat >conftest.$ac_ext <<_ACEOF
15026 /* confdefs.h.  */
15027 _ACEOF
15028 cat confdefs.h >>conftest.$ac_ext
15029 cat >>conftest.$ac_ext <<_ACEOF
15030 /* end confdefs.h.  */
15031
15032 /* Override any GCC internal prototype to avoid an error.
15033    Use char because int might match the return type of a GCC
15034    builtin and then its argument prototype would still apply.  */
15035 #ifdef __cplusplus
15036 extern "C"
15037 #endif
15038 char opendir ();
15039 int
15040 main ()
15041 {
15042 return opendir ();
15043   ;
15044   return 0;
15045 }
15046 _ACEOF
15047 for ac_lib in '' dir; do
15048   if test -z "$ac_lib"; then
15049     ac_res="none required"
15050   else
15051     ac_res=-l$ac_lib
15052     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
15053   fi
15054   rm -f conftest.$ac_objext conftest$ac_exeext
15055 if { (ac_try="$ac_link"
15056 case "(($ac_try" in
15057   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15058   *) ac_try_echo=$ac_try;;
15059 esac
15060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15061   (eval "$ac_link") 2>conftest.er1
15062   ac_status=$?
15063   grep -v '^ *+' conftest.er1 >conftest.err
15064   rm -f conftest.er1
15065   cat conftest.err >&5
15066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15067   (exit $ac_status); } &&
15068          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15069   { (case "(($ac_try" in
15070   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15071   *) ac_try_echo=$ac_try;;
15072 esac
15073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15074   (eval "$ac_try") 2>&5
15075   ac_status=$?
15076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15077   (exit $ac_status); }; } &&
15078          { ac_try='test -s conftest$ac_exeext'
15079   { (case "(($ac_try" in
15080   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15081   *) ac_try_echo=$ac_try;;
15082 esac
15083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15084   (eval "$ac_try") 2>&5
15085   ac_status=$?
15086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15087   (exit $ac_status); }; }; then
15088   ac_cv_search_opendir=$ac_res
15089 else
15090   echo "$as_me: failed program was:" >&5
15091 sed 's/^/| /' conftest.$ac_ext >&5
15092
15093
15094 fi
15095
15096 rm -f core conftest.err conftest.$ac_objext \
15097       conftest$ac_exeext
15098   if test "${ac_cv_search_opendir+set}" = set; then
15099   break
15100 fi
15101 done
15102 if test "${ac_cv_search_opendir+set}" = set; then
15103   :
15104 else
15105   ac_cv_search_opendir=no
15106 fi
15107 rm conftest.$ac_ext
15108 LIBS=$ac_func_search_save_LIBS
15109 fi
15110 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
15111 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
15112 ac_res=$ac_cv_search_opendir
15113 if test "$ac_res" != no; then
15114   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15115
15116 fi
15117
15118 else
15119   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
15120 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
15121 if test "${ac_cv_search_opendir+set}" = set; then
15122   echo $ECHO_N "(cached) $ECHO_C" >&6
15123 else
15124   ac_func_search_save_LIBS=$LIBS
15125 cat >conftest.$ac_ext <<_ACEOF
15126 /* confdefs.h.  */
15127 _ACEOF
15128 cat confdefs.h >>conftest.$ac_ext
15129 cat >>conftest.$ac_ext <<_ACEOF
15130 /* end confdefs.h.  */
15131
15132 /* Override any GCC internal prototype to avoid an error.
15133    Use char because int might match the return type of a GCC
15134    builtin and then its argument prototype would still apply.  */
15135 #ifdef __cplusplus
15136 extern "C"
15137 #endif
15138 char opendir ();
15139 int
15140 main ()
15141 {
15142 return opendir ();
15143   ;
15144   return 0;
15145 }
15146 _ACEOF
15147 for ac_lib in '' x; do
15148   if test -z "$ac_lib"; then
15149     ac_res="none required"
15150   else
15151     ac_res=-l$ac_lib
15152     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
15153   fi
15154   rm -f conftest.$ac_objext conftest$ac_exeext
15155 if { (ac_try="$ac_link"
15156 case "(($ac_try" in
15157   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15158   *) ac_try_echo=$ac_try;;
15159 esac
15160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15161   (eval "$ac_link") 2>conftest.er1
15162   ac_status=$?
15163   grep -v '^ *+' conftest.er1 >conftest.err
15164   rm -f conftest.er1
15165   cat conftest.err >&5
15166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15167   (exit $ac_status); } &&
15168          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15169   { (case "(($ac_try" in
15170   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15171   *) ac_try_echo=$ac_try;;
15172 esac
15173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15174   (eval "$ac_try") 2>&5
15175   ac_status=$?
15176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15177   (exit $ac_status); }; } &&
15178          { ac_try='test -s conftest$ac_exeext'
15179   { (case "(($ac_try" in
15180   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15181   *) ac_try_echo=$ac_try;;
15182 esac
15183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15184   (eval "$ac_try") 2>&5
15185   ac_status=$?
15186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15187   (exit $ac_status); }; }; then
15188   ac_cv_search_opendir=$ac_res
15189 else
15190   echo "$as_me: failed program was:" >&5
15191 sed 's/^/| /' conftest.$ac_ext >&5
15192
15193
15194 fi
15195
15196 rm -f core conftest.err conftest.$ac_objext \
15197       conftest$ac_exeext
15198   if test "${ac_cv_search_opendir+set}" = set; then
15199   break
15200 fi
15201 done
15202 if test "${ac_cv_search_opendir+set}" = set; then
15203   :
15204 else
15205   ac_cv_search_opendir=no
15206 fi
15207 rm conftest.$ac_ext
15208 LIBS=$ac_func_search_save_LIBS
15209 fi
15210 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
15211 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
15212 ac_res=$ac_cv_search_opendir
15213 if test "$ac_res" != no; then
15214   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15215
15216 fi
15217
15218 fi
15219
15220 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
15221 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
15222 if test "${ac_cv_header_mmap_anon+set}" = set; then
15223   echo $ECHO_N "(cached) $ECHO_C" >&6
15224 else
15225    ac_ext=c
15226 ac_cpp='$CPP $CPPFLAGS'
15227 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15228 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15229 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15230
15231   cat >conftest.$ac_ext <<_ACEOF
15232 /* confdefs.h.  */
15233 _ACEOF
15234 cat confdefs.h >>conftest.$ac_ext
15235 cat >>conftest.$ac_ext <<_ACEOF
15236 /* end confdefs.h.  */
15237 #include <sys/mman.h>
15238 #include <unistd.h>
15239 #include <fcntl.h>
15240 int
15241 main ()
15242 {
15243 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
15244   ;
15245   return 0;
15246 }
15247 _ACEOF
15248 rm -f conftest.$ac_objext
15249 if { (ac_try="$ac_compile"
15250 case "(($ac_try" in
15251   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15252   *) ac_try_echo=$ac_try;;
15253 esac
15254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15255   (eval "$ac_compile") 2>conftest.er1
15256   ac_status=$?
15257   grep -v '^ *+' conftest.er1 >conftest.err
15258   rm -f conftest.er1
15259   cat conftest.err >&5
15260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15261   (exit $ac_status); } &&
15262          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15263   { (case "(($ac_try" in
15264   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15265   *) ac_try_echo=$ac_try;;
15266 esac
15267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15268   (eval "$ac_try") 2>&5
15269   ac_status=$?
15270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15271   (exit $ac_status); }; } &&
15272          { ac_try='test -s conftest.$ac_objext'
15273   { (case "(($ac_try" in
15274   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15275   *) ac_try_echo=$ac_try;;
15276 esac
15277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15278   (eval "$ac_try") 2>&5
15279   ac_status=$?
15280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15281   (exit $ac_status); }; }; then
15282   ac_cv_header_mmap_anon=yes
15283 else
15284   echo "$as_me: failed program was:" >&5
15285 sed 's/^/| /' conftest.$ac_ext >&5
15286
15287         ac_cv_header_mmap_anon=no
15288 fi
15289
15290 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15291   ac_ext=c
15292 ac_cpp='$CPP $CPPFLAGS'
15293 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15294 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15295 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15296
15297
15298 fi
15299 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
15300 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
15301 if test "$ac_cv_header_mmap_anon" = yes; then
15302
15303 cat >>confdefs.h <<\_ACEOF
15304 #define HAVE_MMAP_ANONYMOUS 1
15305 _ACEOF
15306
15307 fi
15308
15309 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
15310 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
15311 if test "${ac_cv_header_stat_broken+set}" = set; then
15312   echo $ECHO_N "(cached) $ECHO_C" >&6
15313 else
15314   cat >conftest.$ac_ext <<_ACEOF
15315 /* confdefs.h.  */
15316 _ACEOF
15317 cat confdefs.h >>conftest.$ac_ext
15318 cat >>conftest.$ac_ext <<_ACEOF
15319 /* end confdefs.h.  */
15320 #include <sys/types.h>
15321 #include <sys/stat.h>
15322
15323 #if defined S_ISBLK && defined S_IFDIR
15324 # if S_ISBLK (S_IFDIR)
15325 You lose.
15326 # endif
15327 #endif
15328
15329 #if defined S_ISBLK && defined S_IFCHR
15330 # if S_ISBLK (S_IFCHR)
15331 You lose.
15332 # endif
15333 #endif
15334
15335 #if defined S_ISLNK && defined S_IFREG
15336 # if S_ISLNK (S_IFREG)
15337 You lose.
15338 # endif
15339 #endif
15340
15341 #if defined S_ISSOCK && defined S_IFREG
15342 # if S_ISSOCK (S_IFREG)
15343 You lose.
15344 # endif
15345 #endif
15346
15347 _ACEOF
15348 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15349   $EGREP "You lose" >/dev/null 2>&1; then
15350   ac_cv_header_stat_broken=yes
15351 else
15352   ac_cv_header_stat_broken=no
15353 fi
15354 rm -f conftest*
15355
15356 fi
15357 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
15358 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
15359 if test $ac_cv_header_stat_broken = yes; then
15360
15361 cat >>confdefs.h <<\_ACEOF
15362 #define STAT_MACROS_BROKEN 1
15363 _ACEOF
15364
15365 fi
15366
15367 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
15368 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
15369 if test "${ac_cv_header_stdc+set}" = set; then
15370   echo $ECHO_N "(cached) $ECHO_C" >&6
15371 else
15372   cat >conftest.$ac_ext <<_ACEOF
15373 /* confdefs.h.  */
15374 _ACEOF
15375 cat confdefs.h >>conftest.$ac_ext
15376 cat >>conftest.$ac_ext <<_ACEOF
15377 /* end confdefs.h.  */
15378 #include <stdlib.h>
15379 #include <stdarg.h>
15380 #include <string.h>
15381 #include <float.h>
15382
15383 int
15384 main ()
15385 {
15386
15387   ;
15388   return 0;
15389 }
15390 _ACEOF
15391 rm -f conftest.$ac_objext
15392 if { (ac_try="$ac_compile"
15393 case "(($ac_try" in
15394   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15395   *) ac_try_echo=$ac_try;;
15396 esac
15397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15398   (eval "$ac_compile") 2>conftest.er1
15399   ac_status=$?
15400   grep -v '^ *+' conftest.er1 >conftest.err
15401   rm -f conftest.er1
15402   cat conftest.err >&5
15403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15404   (exit $ac_status); } &&
15405          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15406   { (case "(($ac_try" in
15407   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15408   *) ac_try_echo=$ac_try;;
15409 esac
15410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15411   (eval "$ac_try") 2>&5
15412   ac_status=$?
15413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15414   (exit $ac_status); }; } &&
15415          { ac_try='test -s conftest.$ac_objext'
15416   { (case "(($ac_try" in
15417   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15418   *) ac_try_echo=$ac_try;;
15419 esac
15420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15421   (eval "$ac_try") 2>&5
15422   ac_status=$?
15423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15424   (exit $ac_status); }; }; then
15425   ac_cv_header_stdc=yes
15426 else
15427   echo "$as_me: failed program was:" >&5
15428 sed 's/^/| /' conftest.$ac_ext >&5
15429
15430         ac_cv_header_stdc=no
15431 fi
15432
15433 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15434
15435 if test $ac_cv_header_stdc = yes; then
15436   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
15437   cat >conftest.$ac_ext <<_ACEOF
15438 /* confdefs.h.  */
15439 _ACEOF
15440 cat confdefs.h >>conftest.$ac_ext
15441 cat >>conftest.$ac_ext <<_ACEOF
15442 /* end confdefs.h.  */
15443 #include <string.h>
15444
15445 _ACEOF
15446 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15447   $EGREP "memchr" >/dev/null 2>&1; then
15448   :
15449 else
15450   ac_cv_header_stdc=no
15451 fi
15452 rm -f conftest*
15453
15454 fi
15455
15456 if test $ac_cv_header_stdc = yes; then
15457   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
15458   cat >conftest.$ac_ext <<_ACEOF
15459 /* confdefs.h.  */
15460 _ACEOF
15461 cat confdefs.h >>conftest.$ac_ext
15462 cat >>conftest.$ac_ext <<_ACEOF
15463 /* end confdefs.h.  */
15464 #include <stdlib.h>
15465
15466 _ACEOF
15467 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15468   $EGREP "free" >/dev/null 2>&1; then
15469   :
15470 else
15471   ac_cv_header_stdc=no
15472 fi
15473 rm -f conftest*
15474
15475 fi
15476
15477 if test $ac_cv_header_stdc = yes; then
15478   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
15479   if test "$cross_compiling" = yes; then
15480   :
15481 else
15482   cat >conftest.$ac_ext <<_ACEOF
15483 /* confdefs.h.  */
15484 _ACEOF
15485 cat confdefs.h >>conftest.$ac_ext
15486 cat >>conftest.$ac_ext <<_ACEOF
15487 /* end confdefs.h.  */
15488 #include <ctype.h>
15489 #include <stdlib.h>
15490 #if ((' ' & 0x0FF) == 0x020)
15491 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
15492 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
15493 #else
15494 # define ISLOWER(c) \
15495                    (('a' <= (c) && (c) <= 'i') \
15496                      || ('j' <= (c) && (c) <= 'r') \
15497                      || ('s' <= (c) && (c) <= 'z'))
15498 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
15499 #endif
15500
15501 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
15502 int
15503 main ()
15504 {
15505   int i;
15506   for (i = 0; i < 256; i++)
15507     if (XOR (islower (i), ISLOWER (i))
15508         || toupper (i) != TOUPPER (i))
15509       return 2;
15510   return 0;
15511 }
15512 _ACEOF
15513 rm -f conftest$ac_exeext
15514 if { (ac_try="$ac_link"
15515 case "(($ac_try" in
15516   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15517   *) ac_try_echo=$ac_try;;
15518 esac
15519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15520   (eval "$ac_link") 2>&5
15521   ac_status=$?
15522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15523   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15524   { (case "(($ac_try" in
15525   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15526   *) ac_try_echo=$ac_try;;
15527 esac
15528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15529   (eval "$ac_try") 2>&5
15530   ac_status=$?
15531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15532   (exit $ac_status); }; }; then
15533   :
15534 else
15535   echo "$as_me: program exited with status $ac_status" >&5
15536 echo "$as_me: failed program was:" >&5
15537 sed 's/^/| /' conftest.$ac_ext >&5
15538
15539 ( exit $ac_status )
15540 ac_cv_header_stdc=no
15541 fi
15542 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15543 fi
15544
15545
15546 fi
15547 fi
15548 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
15549 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
15550 if test $ac_cv_header_stdc = yes; then
15551
15552 cat >>confdefs.h <<\_ACEOF
15553 #define STDC_HEADERS 1
15554 _ACEOF
15555
15556 fi
15557
15558 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
15559 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
15560 if test "${ac_cv_header_sys_wait_h+set}" = set; then
15561   echo $ECHO_N "(cached) $ECHO_C" >&6
15562 else
15563   cat >conftest.$ac_ext <<_ACEOF
15564 /* confdefs.h.  */
15565 _ACEOF
15566 cat confdefs.h >>conftest.$ac_ext
15567 cat >>conftest.$ac_ext <<_ACEOF
15568 /* end confdefs.h.  */
15569 #include <sys/types.h>
15570 #include <sys/wait.h>
15571 #ifndef WEXITSTATUS
15572 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
15573 #endif
15574 #ifndef WIFEXITED
15575 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
15576 #endif
15577
15578 int
15579 main ()
15580 {
15581   int s;
15582   wait (&s);
15583   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
15584   ;
15585   return 0;
15586 }
15587 _ACEOF
15588 rm -f conftest.$ac_objext
15589 if { (ac_try="$ac_compile"
15590 case "(($ac_try" in
15591   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15592   *) ac_try_echo=$ac_try;;
15593 esac
15594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15595   (eval "$ac_compile") 2>conftest.er1
15596   ac_status=$?
15597   grep -v '^ *+' conftest.er1 >conftest.err
15598   rm -f conftest.er1
15599   cat conftest.err >&5
15600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15601   (exit $ac_status); } &&
15602          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15603   { (case "(($ac_try" in
15604   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15605   *) ac_try_echo=$ac_try;;
15606 esac
15607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15608   (eval "$ac_try") 2>&5
15609   ac_status=$?
15610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15611   (exit $ac_status); }; } &&
15612          { ac_try='test -s conftest.$ac_objext'
15613   { (case "(($ac_try" in
15614   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15615   *) ac_try_echo=$ac_try;;
15616 esac
15617 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15618   (eval "$ac_try") 2>&5
15619   ac_status=$?
15620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15621   (exit $ac_status); }; }; then
15622   ac_cv_header_sys_wait_h=yes
15623 else
15624   echo "$as_me: failed program was:" >&5
15625 sed 's/^/| /' conftest.$ac_ext >&5
15626
15627         ac_cv_header_sys_wait_h=no
15628 fi
15629
15630 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15631 fi
15632 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
15633 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
15634 if test $ac_cv_header_sys_wait_h = yes; then
15635
15636 cat >>confdefs.h <<\_ACEOF
15637 #define HAVE_SYS_WAIT_H 1
15638 _ACEOF
15639
15640 fi
15641
15642 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
15643 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
15644 if test "${ac_cv_header_time+set}" = set; then
15645   echo $ECHO_N "(cached) $ECHO_C" >&6
15646 else
15647   cat >conftest.$ac_ext <<_ACEOF
15648 /* confdefs.h.  */
15649 _ACEOF
15650 cat confdefs.h >>conftest.$ac_ext
15651 cat >>conftest.$ac_ext <<_ACEOF
15652 /* end confdefs.h.  */
15653 #include <sys/types.h>
15654 #include <sys/time.h>
15655 #include <time.h>
15656
15657 int
15658 main ()
15659 {
15660 if ((struct tm *) 0)
15661 return 0;
15662   ;
15663   return 0;
15664 }
15665 _ACEOF
15666 rm -f conftest.$ac_objext
15667 if { (ac_try="$ac_compile"
15668 case "(($ac_try" in
15669   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15670   *) ac_try_echo=$ac_try;;
15671 esac
15672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15673   (eval "$ac_compile") 2>conftest.er1
15674   ac_status=$?
15675   grep -v '^ *+' conftest.er1 >conftest.err
15676   rm -f conftest.er1
15677   cat conftest.err >&5
15678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15679   (exit $ac_status); } &&
15680          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15681   { (case "(($ac_try" in
15682   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15683   *) ac_try_echo=$ac_try;;
15684 esac
15685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15686   (eval "$ac_try") 2>&5
15687   ac_status=$?
15688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15689   (exit $ac_status); }; } &&
15690          { ac_try='test -s conftest.$ac_objext'
15691   { (case "(($ac_try" in
15692   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15693   *) ac_try_echo=$ac_try;;
15694 esac
15695 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15696   (eval "$ac_try") 2>&5
15697   ac_status=$?
15698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15699   (exit $ac_status); }; }; then
15700   ac_cv_header_time=yes
15701 else
15702   echo "$as_me: failed program was:" >&5
15703 sed 's/^/| /' conftest.$ac_ext >&5
15704
15705         ac_cv_header_time=no
15706 fi
15707
15708 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15709 fi
15710 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
15711 echo "${ECHO_T}$ac_cv_header_time" >&6; }
15712 if test $ac_cv_header_time = yes; then
15713
15714 cat >>confdefs.h <<\_ACEOF
15715 #define TIME_WITH_SYS_TIME 1
15716 _ACEOF
15717
15718 fi
15719
15720
15721
15722
15723
15724
15725
15726
15727 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
15728 do
15729 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15730 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15731   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15732 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15733 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15734   echo $ECHO_N "(cached) $ECHO_C" >&6
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 else
15740   # Is the header compilable?
15741 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15742 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15743 cat >conftest.$ac_ext <<_ACEOF
15744 /* confdefs.h.  */
15745 _ACEOF
15746 cat confdefs.h >>conftest.$ac_ext
15747 cat >>conftest.$ac_ext <<_ACEOF
15748 /* end confdefs.h.  */
15749 $ac_includes_default
15750 #include <$ac_header>
15751 _ACEOF
15752 rm -f conftest.$ac_objext
15753 if { (ac_try="$ac_compile"
15754 case "(($ac_try" in
15755   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15756   *) ac_try_echo=$ac_try;;
15757 esac
15758 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15759   (eval "$ac_compile") 2>conftest.er1
15760   ac_status=$?
15761   grep -v '^ *+' conftest.er1 >conftest.err
15762   rm -f conftest.er1
15763   cat conftest.err >&5
15764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15765   (exit $ac_status); } &&
15766          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15767   { (case "(($ac_try" in
15768   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15769   *) ac_try_echo=$ac_try;;
15770 esac
15771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15772   (eval "$ac_try") 2>&5
15773   ac_status=$?
15774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15775   (exit $ac_status); }; } &&
15776          { ac_try='test -s conftest.$ac_objext'
15777   { (case "(($ac_try" in
15778   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15779   *) ac_try_echo=$ac_try;;
15780 esac
15781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15782   (eval "$ac_try") 2>&5
15783   ac_status=$?
15784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15785   (exit $ac_status); }; }; then
15786   ac_header_compiler=yes
15787 else
15788   echo "$as_me: failed program was:" >&5
15789 sed 's/^/| /' conftest.$ac_ext >&5
15790
15791         ac_header_compiler=no
15792 fi
15793
15794 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15795 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15796 echo "${ECHO_T}$ac_header_compiler" >&6; }
15797
15798 # Is the header present?
15799 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15800 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15801 cat >conftest.$ac_ext <<_ACEOF
15802 /* confdefs.h.  */
15803 _ACEOF
15804 cat confdefs.h >>conftest.$ac_ext
15805 cat >>conftest.$ac_ext <<_ACEOF
15806 /* end confdefs.h.  */
15807 #include <$ac_header>
15808 _ACEOF
15809 if { (ac_try="$ac_cpp conftest.$ac_ext"
15810 case "(($ac_try" in
15811   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15812   *) ac_try_echo=$ac_try;;
15813 esac
15814 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15815   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15816   ac_status=$?
15817   grep -v '^ *+' conftest.er1 >conftest.err
15818   rm -f conftest.er1
15819   cat conftest.err >&5
15820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15821   (exit $ac_status); } >/dev/null; then
15822   if test -s conftest.err; then
15823     ac_cpp_err=$ac_c_preproc_warn_flag
15824     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15825   else
15826     ac_cpp_err=
15827   fi
15828 else
15829   ac_cpp_err=yes
15830 fi
15831 if test -z "$ac_cpp_err"; then
15832   ac_header_preproc=yes
15833 else
15834   echo "$as_me: failed program was:" >&5
15835 sed 's/^/| /' conftest.$ac_ext >&5
15836
15837   ac_header_preproc=no
15838 fi
15839
15840 rm -f conftest.err conftest.$ac_ext
15841 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15842 echo "${ECHO_T}$ac_header_preproc" >&6; }
15843
15844 # So?  What about this header?
15845 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15846   yes:no: )
15847     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15848 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15849     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15850 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15851     ac_header_preproc=yes
15852     ;;
15853   no:yes:* )
15854     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15855 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15856     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15857 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15858     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15859 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15860     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15861 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15862     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15863 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15864     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15865 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15866     ( cat <<\_ASBOX
15867 ## ----------------------------------- ##
15868 ## Report this to llvmbugs@cs.uiuc.edu ##
15869 ## ----------------------------------- ##
15870 _ASBOX
15871      ) | sed "s/^/$as_me: WARNING:     /" >&2
15872     ;;
15873 esac
15874 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15875 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15876 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15877   echo $ECHO_N "(cached) $ECHO_C" >&6
15878 else
15879   eval "$as_ac_Header=\$ac_header_preproc"
15880 fi
15881 ac_res=`eval echo '${'$as_ac_Header'}'`
15882                { echo "$as_me:$LINENO: result: $ac_res" >&5
15883 echo "${ECHO_T}$ac_res" >&6; }
15884
15885 fi
15886 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15887   cat >>confdefs.h <<_ACEOF
15888 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15889 _ACEOF
15890
15891 fi
15892
15893 done
15894
15895
15896
15897
15898
15899
15900
15901 for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
15902 do
15903 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15904 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15905   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15906 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15907 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15908   echo $ECHO_N "(cached) $ECHO_C" >&6
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 else
15914   # Is the header compilable?
15915 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15916 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15917 cat >conftest.$ac_ext <<_ACEOF
15918 /* confdefs.h.  */
15919 _ACEOF
15920 cat confdefs.h >>conftest.$ac_ext
15921 cat >>conftest.$ac_ext <<_ACEOF
15922 /* end confdefs.h.  */
15923 $ac_includes_default
15924 #include <$ac_header>
15925 _ACEOF
15926 rm -f conftest.$ac_objext
15927 if { (ac_try="$ac_compile"
15928 case "(($ac_try" in
15929   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15930   *) ac_try_echo=$ac_try;;
15931 esac
15932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15933   (eval "$ac_compile") 2>conftest.er1
15934   ac_status=$?
15935   grep -v '^ *+' conftest.er1 >conftest.err
15936   rm -f conftest.er1
15937   cat conftest.err >&5
15938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15939   (exit $ac_status); } &&
15940          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15941   { (case "(($ac_try" in
15942   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15943   *) ac_try_echo=$ac_try;;
15944 esac
15945 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15946   (eval "$ac_try") 2>&5
15947   ac_status=$?
15948   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15949   (exit $ac_status); }; } &&
15950          { ac_try='test -s conftest.$ac_objext'
15951   { (case "(($ac_try" in
15952   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15953   *) ac_try_echo=$ac_try;;
15954 esac
15955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15956   (eval "$ac_try") 2>&5
15957   ac_status=$?
15958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15959   (exit $ac_status); }; }; then
15960   ac_header_compiler=yes
15961 else
15962   echo "$as_me: failed program was:" >&5
15963 sed 's/^/| /' conftest.$ac_ext >&5
15964
15965         ac_header_compiler=no
15966 fi
15967
15968 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15969 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15970 echo "${ECHO_T}$ac_header_compiler" >&6; }
15971
15972 # Is the header present?
15973 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15974 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15975 cat >conftest.$ac_ext <<_ACEOF
15976 /* confdefs.h.  */
15977 _ACEOF
15978 cat confdefs.h >>conftest.$ac_ext
15979 cat >>conftest.$ac_ext <<_ACEOF
15980 /* end confdefs.h.  */
15981 #include <$ac_header>
15982 _ACEOF
15983 if { (ac_try="$ac_cpp conftest.$ac_ext"
15984 case "(($ac_try" in
15985   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15986   *) ac_try_echo=$ac_try;;
15987 esac
15988 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15989   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15990   ac_status=$?
15991   grep -v '^ *+' conftest.er1 >conftest.err
15992   rm -f conftest.er1
15993   cat conftest.err >&5
15994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15995   (exit $ac_status); } >/dev/null; then
15996   if test -s conftest.err; then
15997     ac_cpp_err=$ac_c_preproc_warn_flag
15998     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15999   else
16000     ac_cpp_err=
16001   fi
16002 else
16003   ac_cpp_err=yes
16004 fi
16005 if test -z "$ac_cpp_err"; then
16006   ac_header_preproc=yes
16007 else
16008   echo "$as_me: failed program was:" >&5
16009 sed 's/^/| /' conftest.$ac_ext >&5
16010
16011   ac_header_preproc=no
16012 fi
16013
16014 rm -f conftest.err conftest.$ac_ext
16015 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16016 echo "${ECHO_T}$ac_header_preproc" >&6; }
16017
16018 # So?  What about this header?
16019 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16020   yes:no: )
16021     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16022 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16023     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16024 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16025     ac_header_preproc=yes
16026     ;;
16027   no:yes:* )
16028     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16029 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16030     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16031 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16032     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16033 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16034     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16035 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16036     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16037 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16038     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16039 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16040     ( cat <<\_ASBOX
16041 ## ----------------------------------- ##
16042 ## Report this to llvmbugs@cs.uiuc.edu ##
16043 ## ----------------------------------- ##
16044 _ASBOX
16045      ) | sed "s/^/$as_me: WARNING:     /" >&2
16046     ;;
16047 esac
16048 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16049 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16050 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16051   echo $ECHO_N "(cached) $ECHO_C" >&6
16052 else
16053   eval "$as_ac_Header=\$ac_header_preproc"
16054 fi
16055 ac_res=`eval echo '${'$as_ac_Header'}'`
16056                { echo "$as_me:$LINENO: result: $ac_res" >&5
16057 echo "${ECHO_T}$ac_res" >&6; }
16058
16059 fi
16060 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16061   cat >>confdefs.h <<_ACEOF
16062 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16063 _ACEOF
16064
16065 fi
16066
16067 done
16068
16069
16070
16071 for ac_header in utime.h windows.h
16072 do
16073 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16074 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16075   { echo "$as_me:$LINENO: checking for $ac_header" >&5
16076 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16077 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16078   echo $ECHO_N "(cached) $ECHO_C" >&6
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 else
16084   # Is the header compilable?
16085 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16086 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16087 cat >conftest.$ac_ext <<_ACEOF
16088 /* confdefs.h.  */
16089 _ACEOF
16090 cat confdefs.h >>conftest.$ac_ext
16091 cat >>conftest.$ac_ext <<_ACEOF
16092 /* end confdefs.h.  */
16093 $ac_includes_default
16094 #include <$ac_header>
16095 _ACEOF
16096 rm -f conftest.$ac_objext
16097 if { (ac_try="$ac_compile"
16098 case "(($ac_try" in
16099   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16100   *) ac_try_echo=$ac_try;;
16101 esac
16102 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16103   (eval "$ac_compile") 2>conftest.er1
16104   ac_status=$?
16105   grep -v '^ *+' conftest.er1 >conftest.err
16106   rm -f conftest.er1
16107   cat conftest.err >&5
16108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16109   (exit $ac_status); } &&
16110          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16111   { (case "(($ac_try" in
16112   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16113   *) ac_try_echo=$ac_try;;
16114 esac
16115 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16116   (eval "$ac_try") 2>&5
16117   ac_status=$?
16118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16119   (exit $ac_status); }; } &&
16120          { ac_try='test -s conftest.$ac_objext'
16121   { (case "(($ac_try" in
16122   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16123   *) ac_try_echo=$ac_try;;
16124 esac
16125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16126   (eval "$ac_try") 2>&5
16127   ac_status=$?
16128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16129   (exit $ac_status); }; }; then
16130   ac_header_compiler=yes
16131 else
16132   echo "$as_me: failed program was:" >&5
16133 sed 's/^/| /' conftest.$ac_ext >&5
16134
16135         ac_header_compiler=no
16136 fi
16137
16138 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16139 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16140 echo "${ECHO_T}$ac_header_compiler" >&6; }
16141
16142 # Is the header present?
16143 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16144 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16145 cat >conftest.$ac_ext <<_ACEOF
16146 /* confdefs.h.  */
16147 _ACEOF
16148 cat confdefs.h >>conftest.$ac_ext
16149 cat >>conftest.$ac_ext <<_ACEOF
16150 /* end confdefs.h.  */
16151 #include <$ac_header>
16152 _ACEOF
16153 if { (ac_try="$ac_cpp conftest.$ac_ext"
16154 case "(($ac_try" in
16155   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16156   *) ac_try_echo=$ac_try;;
16157 esac
16158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16159   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16160   ac_status=$?
16161   grep -v '^ *+' conftest.er1 >conftest.err
16162   rm -f conftest.er1
16163   cat conftest.err >&5
16164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16165   (exit $ac_status); } >/dev/null; then
16166   if test -s conftest.err; then
16167     ac_cpp_err=$ac_c_preproc_warn_flag
16168     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16169   else
16170     ac_cpp_err=
16171   fi
16172 else
16173   ac_cpp_err=yes
16174 fi
16175 if test -z "$ac_cpp_err"; then
16176   ac_header_preproc=yes
16177 else
16178   echo "$as_me: failed program was:" >&5
16179 sed 's/^/| /' conftest.$ac_ext >&5
16180
16181   ac_header_preproc=no
16182 fi
16183
16184 rm -f conftest.err conftest.$ac_ext
16185 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16186 echo "${ECHO_T}$ac_header_preproc" >&6; }
16187
16188 # So?  What about this header?
16189 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16190   yes:no: )
16191     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16192 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16193     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16194 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16195     ac_header_preproc=yes
16196     ;;
16197   no:yes:* )
16198     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16199 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16200     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16201 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16202     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16203 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16204     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16205 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16206     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16207 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16208     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16209 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16210     ( cat <<\_ASBOX
16211 ## ----------------------------------- ##
16212 ## Report this to llvmbugs@cs.uiuc.edu ##
16213 ## ----------------------------------- ##
16214 _ASBOX
16215      ) | sed "s/^/$as_me: WARNING:     /" >&2
16216     ;;
16217 esac
16218 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16219 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16220 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16221   echo $ECHO_N "(cached) $ECHO_C" >&6
16222 else
16223   eval "$as_ac_Header=\$ac_header_preproc"
16224 fi
16225 ac_res=`eval echo '${'$as_ac_Header'}'`
16226                { echo "$as_me:$LINENO: result: $ac_res" >&5
16227 echo "${ECHO_T}$ac_res" >&6; }
16228
16229 fi
16230 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16231   cat >>confdefs.h <<_ACEOF
16232 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16233 _ACEOF
16234
16235 fi
16236
16237 done
16238
16239
16240
16241
16242
16243 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h
16244 do
16245 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16246 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16247   { echo "$as_me:$LINENO: checking for $ac_header" >&5
16248 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16249 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16250   echo $ECHO_N "(cached) $ECHO_C" >&6
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 else
16256   # Is the header compilable?
16257 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16258 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16259 cat >conftest.$ac_ext <<_ACEOF
16260 /* confdefs.h.  */
16261 _ACEOF
16262 cat confdefs.h >>conftest.$ac_ext
16263 cat >>conftest.$ac_ext <<_ACEOF
16264 /* end confdefs.h.  */
16265 $ac_includes_default
16266 #include <$ac_header>
16267 _ACEOF
16268 rm -f conftest.$ac_objext
16269 if { (ac_try="$ac_compile"
16270 case "(($ac_try" in
16271   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16272   *) ac_try_echo=$ac_try;;
16273 esac
16274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16275   (eval "$ac_compile") 2>conftest.er1
16276   ac_status=$?
16277   grep -v '^ *+' conftest.er1 >conftest.err
16278   rm -f conftest.er1
16279   cat conftest.err >&5
16280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16281   (exit $ac_status); } &&
16282          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16283   { (case "(($ac_try" in
16284   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16285   *) ac_try_echo=$ac_try;;
16286 esac
16287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16288   (eval "$ac_try") 2>&5
16289   ac_status=$?
16290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16291   (exit $ac_status); }; } &&
16292          { ac_try='test -s conftest.$ac_objext'
16293   { (case "(($ac_try" in
16294   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16295   *) ac_try_echo=$ac_try;;
16296 esac
16297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16298   (eval "$ac_try") 2>&5
16299   ac_status=$?
16300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16301   (exit $ac_status); }; }; then
16302   ac_header_compiler=yes
16303 else
16304   echo "$as_me: failed program was:" >&5
16305 sed 's/^/| /' conftest.$ac_ext >&5
16306
16307         ac_header_compiler=no
16308 fi
16309
16310 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16311 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16312 echo "${ECHO_T}$ac_header_compiler" >&6; }
16313
16314 # Is the header present?
16315 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16316 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16317 cat >conftest.$ac_ext <<_ACEOF
16318 /* confdefs.h.  */
16319 _ACEOF
16320 cat confdefs.h >>conftest.$ac_ext
16321 cat >>conftest.$ac_ext <<_ACEOF
16322 /* end confdefs.h.  */
16323 #include <$ac_header>
16324 _ACEOF
16325 if { (ac_try="$ac_cpp conftest.$ac_ext"
16326 case "(($ac_try" in
16327   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16328   *) ac_try_echo=$ac_try;;
16329 esac
16330 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16331   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16332   ac_status=$?
16333   grep -v '^ *+' conftest.er1 >conftest.err
16334   rm -f conftest.er1
16335   cat conftest.err >&5
16336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16337   (exit $ac_status); } >/dev/null; then
16338   if test -s conftest.err; then
16339     ac_cpp_err=$ac_c_preproc_warn_flag
16340     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16341   else
16342     ac_cpp_err=
16343   fi
16344 else
16345   ac_cpp_err=yes
16346 fi
16347 if test -z "$ac_cpp_err"; then
16348   ac_header_preproc=yes
16349 else
16350   echo "$as_me: failed program was:" >&5
16351 sed 's/^/| /' conftest.$ac_ext >&5
16352
16353   ac_header_preproc=no
16354 fi
16355
16356 rm -f conftest.err conftest.$ac_ext
16357 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16358 echo "${ECHO_T}$ac_header_preproc" >&6; }
16359
16360 # So?  What about this header?
16361 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16362   yes:no: )
16363     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16364 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16365     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16366 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16367     ac_header_preproc=yes
16368     ;;
16369   no:yes:* )
16370     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16371 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16372     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16373 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16374     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16375 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16376     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16377 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16378     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16379 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16380     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16381 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16382     ( cat <<\_ASBOX
16383 ## ----------------------------------- ##
16384 ## Report this to llvmbugs@cs.uiuc.edu ##
16385 ## ----------------------------------- ##
16386 _ASBOX
16387      ) | sed "s/^/$as_me: WARNING:     /" >&2
16388     ;;
16389 esac
16390 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16391 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16392 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16393   echo $ECHO_N "(cached) $ECHO_C" >&6
16394 else
16395   eval "$as_ac_Header=\$ac_header_preproc"
16396 fi
16397 ac_res=`eval echo '${'$as_ac_Header'}'`
16398                { echo "$as_me:$LINENO: result: $ac_res" >&5
16399 echo "${ECHO_T}$ac_res" >&6; }
16400
16401 fi
16402 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16403   cat >>confdefs.h <<_ACEOF
16404 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16405 _ACEOF
16406
16407 fi
16408
16409 done
16410
16411
16412
16413
16414
16415 for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h
16416 do
16417 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16418 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16419   { echo "$as_me:$LINENO: checking for $ac_header" >&5
16420 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16421 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16422   echo $ECHO_N "(cached) $ECHO_C" >&6
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 else
16428   # Is the header compilable?
16429 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16430 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16431 cat >conftest.$ac_ext <<_ACEOF
16432 /* confdefs.h.  */
16433 _ACEOF
16434 cat confdefs.h >>conftest.$ac_ext
16435 cat >>conftest.$ac_ext <<_ACEOF
16436 /* end confdefs.h.  */
16437 $ac_includes_default
16438 #include <$ac_header>
16439 _ACEOF
16440 rm -f conftest.$ac_objext
16441 if { (ac_try="$ac_compile"
16442 case "(($ac_try" in
16443   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16444   *) ac_try_echo=$ac_try;;
16445 esac
16446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16447   (eval "$ac_compile") 2>conftest.er1
16448   ac_status=$?
16449   grep -v '^ *+' conftest.er1 >conftest.err
16450   rm -f conftest.er1
16451   cat conftest.err >&5
16452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16453   (exit $ac_status); } &&
16454          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16455   { (case "(($ac_try" in
16456   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16457   *) ac_try_echo=$ac_try;;
16458 esac
16459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16460   (eval "$ac_try") 2>&5
16461   ac_status=$?
16462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16463   (exit $ac_status); }; } &&
16464          { ac_try='test -s conftest.$ac_objext'
16465   { (case "(($ac_try" in
16466   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16467   *) ac_try_echo=$ac_try;;
16468 esac
16469 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16470   (eval "$ac_try") 2>&5
16471   ac_status=$?
16472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16473   (exit $ac_status); }; }; then
16474   ac_header_compiler=yes
16475 else
16476   echo "$as_me: failed program was:" >&5
16477 sed 's/^/| /' conftest.$ac_ext >&5
16478
16479         ac_header_compiler=no
16480 fi
16481
16482 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16483 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16484 echo "${ECHO_T}$ac_header_compiler" >&6; }
16485
16486 # Is the header present?
16487 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16488 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16489 cat >conftest.$ac_ext <<_ACEOF
16490 /* confdefs.h.  */
16491 _ACEOF
16492 cat confdefs.h >>conftest.$ac_ext
16493 cat >>conftest.$ac_ext <<_ACEOF
16494 /* end confdefs.h.  */
16495 #include <$ac_header>
16496 _ACEOF
16497 if { (ac_try="$ac_cpp conftest.$ac_ext"
16498 case "(($ac_try" in
16499   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16500   *) ac_try_echo=$ac_try;;
16501 esac
16502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16503   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16504   ac_status=$?
16505   grep -v '^ *+' conftest.er1 >conftest.err
16506   rm -f conftest.er1
16507   cat conftest.err >&5
16508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16509   (exit $ac_status); } >/dev/null; then
16510   if test -s conftest.err; then
16511     ac_cpp_err=$ac_c_preproc_warn_flag
16512     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16513   else
16514     ac_cpp_err=
16515   fi
16516 else
16517   ac_cpp_err=yes
16518 fi
16519 if test -z "$ac_cpp_err"; then
16520   ac_header_preproc=yes
16521 else
16522   echo "$as_me: failed program was:" >&5
16523 sed 's/^/| /' conftest.$ac_ext >&5
16524
16525   ac_header_preproc=no
16526 fi
16527
16528 rm -f conftest.err conftest.$ac_ext
16529 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16530 echo "${ECHO_T}$ac_header_preproc" >&6; }
16531
16532 # So?  What about this header?
16533 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16534   yes:no: )
16535     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16536 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16537     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16538 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16539     ac_header_preproc=yes
16540     ;;
16541   no:yes:* )
16542     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16543 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16544     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16545 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16546     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16547 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16548     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16549 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16550     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16551 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16552     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16553 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16554     ( cat <<\_ASBOX
16555 ## ----------------------------------- ##
16556 ## Report this to llvmbugs@cs.uiuc.edu ##
16557 ## ----------------------------------- ##
16558 _ASBOX
16559      ) | sed "s/^/$as_me: WARNING:     /" >&2
16560     ;;
16561 esac
16562 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16563 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16564 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16565   echo $ECHO_N "(cached) $ECHO_C" >&6
16566 else
16567   eval "$as_ac_Header=\$ac_header_preproc"
16568 fi
16569 ac_res=`eval echo '${'$as_ac_Header'}'`
16570                { echo "$as_me:$LINENO: result: $ac_res" >&5
16571 echo "${ECHO_T}$ac_res" >&6; }
16572
16573 fi
16574 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16575   cat >>confdefs.h <<_ACEOF
16576 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16577 _ACEOF
16578
16579 fi
16580
16581 done
16582
16583
16584 for ac_header in valgrind/valgrind.h
16585 do
16586 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16587 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16588   { echo "$as_me:$LINENO: checking for $ac_header" >&5
16589 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16590 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16591   echo $ECHO_N "(cached) $ECHO_C" >&6
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 else
16597   # Is the header compilable?
16598 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16599 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16600 cat >conftest.$ac_ext <<_ACEOF
16601 /* confdefs.h.  */
16602 _ACEOF
16603 cat confdefs.h >>conftest.$ac_ext
16604 cat >>conftest.$ac_ext <<_ACEOF
16605 /* end confdefs.h.  */
16606 $ac_includes_default
16607 #include <$ac_header>
16608 _ACEOF
16609 rm -f conftest.$ac_objext
16610 if { (ac_try="$ac_compile"
16611 case "(($ac_try" in
16612   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16613   *) ac_try_echo=$ac_try;;
16614 esac
16615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16616   (eval "$ac_compile") 2>conftest.er1
16617   ac_status=$?
16618   grep -v '^ *+' conftest.er1 >conftest.err
16619   rm -f conftest.er1
16620   cat conftest.err >&5
16621   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16622   (exit $ac_status); } &&
16623          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16624   { (case "(($ac_try" in
16625   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16626   *) ac_try_echo=$ac_try;;
16627 esac
16628 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16629   (eval "$ac_try") 2>&5
16630   ac_status=$?
16631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16632   (exit $ac_status); }; } &&
16633          { ac_try='test -s conftest.$ac_objext'
16634   { (case "(($ac_try" in
16635   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16636   *) ac_try_echo=$ac_try;;
16637 esac
16638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16639   (eval "$ac_try") 2>&5
16640   ac_status=$?
16641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16642   (exit $ac_status); }; }; then
16643   ac_header_compiler=yes
16644 else
16645   echo "$as_me: failed program was:" >&5
16646 sed 's/^/| /' conftest.$ac_ext >&5
16647
16648         ac_header_compiler=no
16649 fi
16650
16651 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16652 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16653 echo "${ECHO_T}$ac_header_compiler" >&6; }
16654
16655 # Is the header present?
16656 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16657 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16658 cat >conftest.$ac_ext <<_ACEOF
16659 /* confdefs.h.  */
16660 _ACEOF
16661 cat confdefs.h >>conftest.$ac_ext
16662 cat >>conftest.$ac_ext <<_ACEOF
16663 /* end confdefs.h.  */
16664 #include <$ac_header>
16665 _ACEOF
16666 if { (ac_try="$ac_cpp conftest.$ac_ext"
16667 case "(($ac_try" in
16668   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16669   *) ac_try_echo=$ac_try;;
16670 esac
16671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16672   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16673   ac_status=$?
16674   grep -v '^ *+' conftest.er1 >conftest.err
16675   rm -f conftest.er1
16676   cat conftest.err >&5
16677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16678   (exit $ac_status); } >/dev/null; then
16679   if test -s conftest.err; then
16680     ac_cpp_err=$ac_c_preproc_warn_flag
16681     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16682   else
16683     ac_cpp_err=
16684   fi
16685 else
16686   ac_cpp_err=yes
16687 fi
16688 if test -z "$ac_cpp_err"; then
16689   ac_header_preproc=yes
16690 else
16691   echo "$as_me: failed program was:" >&5
16692 sed 's/^/| /' conftest.$ac_ext >&5
16693
16694   ac_header_preproc=no
16695 fi
16696
16697 rm -f conftest.err conftest.$ac_ext
16698 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16699 echo "${ECHO_T}$ac_header_preproc" >&6; }
16700
16701 # So?  What about this header?
16702 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16703   yes:no: )
16704     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16705 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16706     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16707 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16708     ac_header_preproc=yes
16709     ;;
16710   no:yes:* )
16711     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16712 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16713     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16714 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16715     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16716 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16717     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16718 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16719     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16720 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16721     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16722 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16723     ( cat <<\_ASBOX
16724 ## ----------------------------------- ##
16725 ## Report this to llvmbugs@cs.uiuc.edu ##
16726 ## ----------------------------------- ##
16727 _ASBOX
16728      ) | sed "s/^/$as_me: WARNING:     /" >&2
16729     ;;
16730 esac
16731 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16732 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16733 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16734   echo $ECHO_N "(cached) $ECHO_C" >&6
16735 else
16736   eval "$as_ac_Header=\$ac_header_preproc"
16737 fi
16738 ac_res=`eval echo '${'$as_ac_Header'}'`
16739                { echo "$as_me:$LINENO: result: $ac_res" >&5
16740 echo "${ECHO_T}$ac_res" >&6; }
16741
16742 fi
16743 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16744   cat >>confdefs.h <<_ACEOF
16745 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16746 _ACEOF
16747
16748 fi
16749
16750 done
16751
16752
16753 for ac_header in fenv.h
16754 do
16755 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16756 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16757   { echo "$as_me:$LINENO: checking for $ac_header" >&5
16758 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16759 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16760   echo $ECHO_N "(cached) $ECHO_C" >&6
16761 fi
16762 ac_res=`eval echo '${'$as_ac_Header'}'`
16763                { echo "$as_me:$LINENO: result: $ac_res" >&5
16764 echo "${ECHO_T}$ac_res" >&6; }
16765 else
16766   # Is the header compilable?
16767 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16768 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16769 cat >conftest.$ac_ext <<_ACEOF
16770 /* confdefs.h.  */
16771 _ACEOF
16772 cat confdefs.h >>conftest.$ac_ext
16773 cat >>conftest.$ac_ext <<_ACEOF
16774 /* end confdefs.h.  */
16775 $ac_includes_default
16776 #include <$ac_header>
16777 _ACEOF
16778 rm -f conftest.$ac_objext
16779 if { (ac_try="$ac_compile"
16780 case "(($ac_try" in
16781   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16782   *) ac_try_echo=$ac_try;;
16783 esac
16784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16785   (eval "$ac_compile") 2>conftest.er1
16786   ac_status=$?
16787   grep -v '^ *+' conftest.er1 >conftest.err
16788   rm -f conftest.er1
16789   cat conftest.err >&5
16790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16791   (exit $ac_status); } &&
16792          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16793   { (case "(($ac_try" in
16794   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16795   *) ac_try_echo=$ac_try;;
16796 esac
16797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16798   (eval "$ac_try") 2>&5
16799   ac_status=$?
16800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16801   (exit $ac_status); }; } &&
16802          { ac_try='test -s conftest.$ac_objext'
16803   { (case "(($ac_try" in
16804   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16805   *) ac_try_echo=$ac_try;;
16806 esac
16807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16808   (eval "$ac_try") 2>&5
16809   ac_status=$?
16810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16811   (exit $ac_status); }; }; then
16812   ac_header_compiler=yes
16813 else
16814   echo "$as_me: failed program was:" >&5
16815 sed 's/^/| /' conftest.$ac_ext >&5
16816
16817         ac_header_compiler=no
16818 fi
16819
16820 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16821 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16822 echo "${ECHO_T}$ac_header_compiler" >&6; }
16823
16824 # Is the header present?
16825 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16826 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16827 cat >conftest.$ac_ext <<_ACEOF
16828 /* confdefs.h.  */
16829 _ACEOF
16830 cat confdefs.h >>conftest.$ac_ext
16831 cat >>conftest.$ac_ext <<_ACEOF
16832 /* end confdefs.h.  */
16833 #include <$ac_header>
16834 _ACEOF
16835 if { (ac_try="$ac_cpp conftest.$ac_ext"
16836 case "(($ac_try" in
16837   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16838   *) ac_try_echo=$ac_try;;
16839 esac
16840 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16841   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16842   ac_status=$?
16843   grep -v '^ *+' conftest.er1 >conftest.err
16844   rm -f conftest.er1
16845   cat conftest.err >&5
16846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16847   (exit $ac_status); } >/dev/null; then
16848   if test -s conftest.err; then
16849     ac_cpp_err=$ac_c_preproc_warn_flag
16850     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16851   else
16852     ac_cpp_err=
16853   fi
16854 else
16855   ac_cpp_err=yes
16856 fi
16857 if test -z "$ac_cpp_err"; then
16858   ac_header_preproc=yes
16859 else
16860   echo "$as_me: failed program was:" >&5
16861 sed 's/^/| /' conftest.$ac_ext >&5
16862
16863   ac_header_preproc=no
16864 fi
16865
16866 rm -f conftest.err conftest.$ac_ext
16867 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16868 echo "${ECHO_T}$ac_header_preproc" >&6; }
16869
16870 # So?  What about this header?
16871 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16872   yes:no: )
16873     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16874 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16875     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16876 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16877     ac_header_preproc=yes
16878     ;;
16879   no:yes:* )
16880     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16881 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16882     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16883 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16884     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16885 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16886     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16887 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16888     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16889 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16890     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16891 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16892     ( cat <<\_ASBOX
16893 ## ----------------------------------- ##
16894 ## Report this to llvmbugs@cs.uiuc.edu ##
16895 ## ----------------------------------- ##
16896 _ASBOX
16897      ) | sed "s/^/$as_me: WARNING:     /" >&2
16898     ;;
16899 esac
16900 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16901 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16902 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16903   echo $ECHO_N "(cached) $ECHO_C" >&6
16904 else
16905   eval "$as_ac_Header=\$ac_header_preproc"
16906 fi
16907 ac_res=`eval echo '${'$as_ac_Header'}'`
16908                { echo "$as_me:$LINENO: result: $ac_res" >&5
16909 echo "${ECHO_T}$ac_res" >&6; }
16910
16911 fi
16912 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16913   cat >>confdefs.h <<_ACEOF
16914 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16915 _ACEOF
16916
16917 fi
16918
16919 done
16920
16921 if test "$ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
16922
16923 for ac_header in pthread.h
16924 do
16925 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16926 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16927   { echo "$as_me:$LINENO: checking for $ac_header" >&5
16928 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16929 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16930   echo $ECHO_N "(cached) $ECHO_C" >&6
16931 fi
16932 ac_res=`eval echo '${'$as_ac_Header'}'`
16933                { echo "$as_me:$LINENO: result: $ac_res" >&5
16934 echo "${ECHO_T}$ac_res" >&6; }
16935 else
16936   # Is the header compilable?
16937 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16938 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16939 cat >conftest.$ac_ext <<_ACEOF
16940 /* confdefs.h.  */
16941 _ACEOF
16942 cat confdefs.h >>conftest.$ac_ext
16943 cat >>conftest.$ac_ext <<_ACEOF
16944 /* end confdefs.h.  */
16945 $ac_includes_default
16946 #include <$ac_header>
16947 _ACEOF
16948 rm -f conftest.$ac_objext
16949 if { (ac_try="$ac_compile"
16950 case "(($ac_try" in
16951   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16952   *) ac_try_echo=$ac_try;;
16953 esac
16954 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16955   (eval "$ac_compile") 2>conftest.er1
16956   ac_status=$?
16957   grep -v '^ *+' conftest.er1 >conftest.err
16958   rm -f conftest.er1
16959   cat conftest.err >&5
16960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16961   (exit $ac_status); } &&
16962          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16963   { (case "(($ac_try" in
16964   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16965   *) ac_try_echo=$ac_try;;
16966 esac
16967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16968   (eval "$ac_try") 2>&5
16969   ac_status=$?
16970   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16971   (exit $ac_status); }; } &&
16972          { ac_try='test -s conftest.$ac_objext'
16973   { (case "(($ac_try" in
16974   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16975   *) ac_try_echo=$ac_try;;
16976 esac
16977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16978   (eval "$ac_try") 2>&5
16979   ac_status=$?
16980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16981   (exit $ac_status); }; }; then
16982   ac_header_compiler=yes
16983 else
16984   echo "$as_me: failed program was:" >&5
16985 sed 's/^/| /' conftest.$ac_ext >&5
16986
16987         ac_header_compiler=no
16988 fi
16989
16990 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16991 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16992 echo "${ECHO_T}$ac_header_compiler" >&6; }
16993
16994 # Is the header present?
16995 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16996 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16997 cat >conftest.$ac_ext <<_ACEOF
16998 /* confdefs.h.  */
16999 _ACEOF
17000 cat confdefs.h >>conftest.$ac_ext
17001 cat >>conftest.$ac_ext <<_ACEOF
17002 /* end confdefs.h.  */
17003 #include <$ac_header>
17004 _ACEOF
17005 if { (ac_try="$ac_cpp conftest.$ac_ext"
17006 case "(($ac_try" in
17007   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17008   *) ac_try_echo=$ac_try;;
17009 esac
17010 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17011   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17012   ac_status=$?
17013   grep -v '^ *+' conftest.er1 >conftest.err
17014   rm -f conftest.er1
17015   cat conftest.err >&5
17016   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17017   (exit $ac_status); } >/dev/null; then
17018   if test -s conftest.err; then
17019     ac_cpp_err=$ac_c_preproc_warn_flag
17020     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17021   else
17022     ac_cpp_err=
17023   fi
17024 else
17025   ac_cpp_err=yes
17026 fi
17027 if test -z "$ac_cpp_err"; then
17028   ac_header_preproc=yes
17029 else
17030   echo "$as_me: failed program was:" >&5
17031 sed 's/^/| /' conftest.$ac_ext >&5
17032
17033   ac_header_preproc=no
17034 fi
17035
17036 rm -f conftest.err conftest.$ac_ext
17037 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17038 echo "${ECHO_T}$ac_header_preproc" >&6; }
17039
17040 # So?  What about this header?
17041 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17042   yes:no: )
17043     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17044 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17045     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17046 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17047     ac_header_preproc=yes
17048     ;;
17049   no:yes:* )
17050     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17051 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17052     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
17053 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
17054     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17055 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17056     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
17057 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
17058     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17059 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17060     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17061 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17062     ( cat <<\_ASBOX
17063 ## ----------------------------------- ##
17064 ## Report this to llvmbugs@cs.uiuc.edu ##
17065 ## ----------------------------------- ##
17066 _ASBOX
17067      ) | sed "s/^/$as_me: WARNING:     /" >&2
17068     ;;
17069 esac
17070 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17071 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17072 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17073   echo $ECHO_N "(cached) $ECHO_C" >&6
17074 else
17075   eval "$as_ac_Header=\$ac_header_preproc"
17076 fi
17077 ac_res=`eval echo '${'$as_ac_Header'}'`
17078                { echo "$as_me:$LINENO: result: $ac_res" >&5
17079 echo "${ECHO_T}$ac_res" >&6; }
17080
17081 fi
17082 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17083   cat >>confdefs.h <<_ACEOF
17084 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17085 _ACEOF
17086  HAVE_PTHREAD=1
17087
17088 else
17089   HAVE_PTHREAD=0
17090
17091 fi
17092
17093 done
17094
17095 else
17096   HAVE_PTHREAD=0
17097
17098 fi
17099
17100 if test "$llvm_cv_enable_libffi" = "yes" ; then
17101
17102
17103 for ac_header in ffi.h ffi/ffi.h
17104 do
17105 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17106 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
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 fi
17112 ac_res=`eval echo '${'$as_ac_Header'}'`
17113                { echo "$as_me:$LINENO: result: $ac_res" >&5
17114 echo "${ECHO_T}$ac_res" >&6; }
17115 else
17116   # Is the header compilable?
17117 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
17118 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
17119 cat >conftest.$ac_ext <<_ACEOF
17120 /* confdefs.h.  */
17121 _ACEOF
17122 cat confdefs.h >>conftest.$ac_ext
17123 cat >>conftest.$ac_ext <<_ACEOF
17124 /* end confdefs.h.  */
17125 $ac_includes_default
17126 #include <$ac_header>
17127 _ACEOF
17128 rm -f conftest.$ac_objext
17129 if { (ac_try="$ac_compile"
17130 case "(($ac_try" in
17131   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17132   *) ac_try_echo=$ac_try;;
17133 esac
17134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17135   (eval "$ac_compile") 2>conftest.er1
17136   ac_status=$?
17137   grep -v '^ *+' conftest.er1 >conftest.err
17138   rm -f conftest.er1
17139   cat conftest.err >&5
17140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17141   (exit $ac_status); } &&
17142          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17143   { (case "(($ac_try" in
17144   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17145   *) ac_try_echo=$ac_try;;
17146 esac
17147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17148   (eval "$ac_try") 2>&5
17149   ac_status=$?
17150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17151   (exit $ac_status); }; } &&
17152          { ac_try='test -s conftest.$ac_objext'
17153   { (case "(($ac_try" in
17154   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17155   *) ac_try_echo=$ac_try;;
17156 esac
17157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17158   (eval "$ac_try") 2>&5
17159   ac_status=$?
17160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17161   (exit $ac_status); }; }; then
17162   ac_header_compiler=yes
17163 else
17164   echo "$as_me: failed program was:" >&5
17165 sed 's/^/| /' conftest.$ac_ext >&5
17166
17167         ac_header_compiler=no
17168 fi
17169
17170 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17171 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17172 echo "${ECHO_T}$ac_header_compiler" >&6; }
17173
17174 # Is the header present?
17175 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
17176 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
17177 cat >conftest.$ac_ext <<_ACEOF
17178 /* confdefs.h.  */
17179 _ACEOF
17180 cat confdefs.h >>conftest.$ac_ext
17181 cat >>conftest.$ac_ext <<_ACEOF
17182 /* end confdefs.h.  */
17183 #include <$ac_header>
17184 _ACEOF
17185 if { (ac_try="$ac_cpp conftest.$ac_ext"
17186 case "(($ac_try" in
17187   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17188   *) ac_try_echo=$ac_try;;
17189 esac
17190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17191   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17192   ac_status=$?
17193   grep -v '^ *+' conftest.er1 >conftest.err
17194   rm -f conftest.er1
17195   cat conftest.err >&5
17196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17197   (exit $ac_status); } >/dev/null; then
17198   if test -s conftest.err; then
17199     ac_cpp_err=$ac_c_preproc_warn_flag
17200     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17201   else
17202     ac_cpp_err=
17203   fi
17204 else
17205   ac_cpp_err=yes
17206 fi
17207 if test -z "$ac_cpp_err"; then
17208   ac_header_preproc=yes
17209 else
17210   echo "$as_me: failed program was:" >&5
17211 sed 's/^/| /' conftest.$ac_ext >&5
17212
17213   ac_header_preproc=no
17214 fi
17215
17216 rm -f conftest.err conftest.$ac_ext
17217 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17218 echo "${ECHO_T}$ac_header_preproc" >&6; }
17219
17220 # So?  What about this header?
17221 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17222   yes:no: )
17223     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17224 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17225     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17226 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17227     ac_header_preproc=yes
17228     ;;
17229   no:yes:* )
17230     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17231 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17232     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
17233 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
17234     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17235 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17236     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
17237 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
17238     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17239 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17240     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17241 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17242     ( cat <<\_ASBOX
17243 ## ----------------------------------- ##
17244 ## Report this to llvmbugs@cs.uiuc.edu ##
17245 ## ----------------------------------- ##
17246 _ASBOX
17247      ) | sed "s/^/$as_me: WARNING:     /" >&2
17248     ;;
17249 esac
17250 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17251 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17252 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17253   echo $ECHO_N "(cached) $ECHO_C" >&6
17254 else
17255   eval "$as_ac_Header=\$ac_header_preproc"
17256 fi
17257 ac_res=`eval echo '${'$as_ac_Header'}'`
17258                { echo "$as_me:$LINENO: result: $ac_res" >&5
17259 echo "${ECHO_T}$ac_res" >&6; }
17260
17261 fi
17262 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17263   cat >>confdefs.h <<_ACEOF
17264 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17265 _ACEOF
17266
17267 fi
17268
17269 done
17270
17271 fi
17272
17273
17274 for ac_header in CrashReporterClient.h
17275 do
17276 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17277 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17278   { echo "$as_me:$LINENO: checking for $ac_header" >&5
17279 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17280 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17281   echo $ECHO_N "(cached) $ECHO_C" >&6
17282 fi
17283 ac_res=`eval echo '${'$as_ac_Header'}'`
17284                { echo "$as_me:$LINENO: result: $ac_res" >&5
17285 echo "${ECHO_T}$ac_res" >&6; }
17286 else
17287   # Is the header compilable?
17288 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
17289 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
17290 cat >conftest.$ac_ext <<_ACEOF
17291 /* confdefs.h.  */
17292 _ACEOF
17293 cat confdefs.h >>conftest.$ac_ext
17294 cat >>conftest.$ac_ext <<_ACEOF
17295 /* end confdefs.h.  */
17296 $ac_includes_default
17297 #include <$ac_header>
17298 _ACEOF
17299 rm -f conftest.$ac_objext
17300 if { (ac_try="$ac_compile"
17301 case "(($ac_try" in
17302   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17303   *) ac_try_echo=$ac_try;;
17304 esac
17305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17306   (eval "$ac_compile") 2>conftest.er1
17307   ac_status=$?
17308   grep -v '^ *+' conftest.er1 >conftest.err
17309   rm -f conftest.er1
17310   cat conftest.err >&5
17311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17312   (exit $ac_status); } &&
17313          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17314   { (case "(($ac_try" in
17315   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17316   *) ac_try_echo=$ac_try;;
17317 esac
17318 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17319   (eval "$ac_try") 2>&5
17320   ac_status=$?
17321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17322   (exit $ac_status); }; } &&
17323          { ac_try='test -s conftest.$ac_objext'
17324   { (case "(($ac_try" in
17325   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17326   *) ac_try_echo=$ac_try;;
17327 esac
17328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17329   (eval "$ac_try") 2>&5
17330   ac_status=$?
17331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17332   (exit $ac_status); }; }; then
17333   ac_header_compiler=yes
17334 else
17335   echo "$as_me: failed program was:" >&5
17336 sed 's/^/| /' conftest.$ac_ext >&5
17337
17338         ac_header_compiler=no
17339 fi
17340
17341 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17342 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17343 echo "${ECHO_T}$ac_header_compiler" >&6; }
17344
17345 # Is the header present?
17346 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
17347 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
17348 cat >conftest.$ac_ext <<_ACEOF
17349 /* confdefs.h.  */
17350 _ACEOF
17351 cat confdefs.h >>conftest.$ac_ext
17352 cat >>conftest.$ac_ext <<_ACEOF
17353 /* end confdefs.h.  */
17354 #include <$ac_header>
17355 _ACEOF
17356 if { (ac_try="$ac_cpp conftest.$ac_ext"
17357 case "(($ac_try" in
17358   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17359   *) ac_try_echo=$ac_try;;
17360 esac
17361 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17362   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17363   ac_status=$?
17364   grep -v '^ *+' conftest.er1 >conftest.err
17365   rm -f conftest.er1
17366   cat conftest.err >&5
17367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17368   (exit $ac_status); } >/dev/null; then
17369   if test -s conftest.err; then
17370     ac_cpp_err=$ac_c_preproc_warn_flag
17371     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17372   else
17373     ac_cpp_err=
17374   fi
17375 else
17376   ac_cpp_err=yes
17377 fi
17378 if test -z "$ac_cpp_err"; then
17379   ac_header_preproc=yes
17380 else
17381   echo "$as_me: failed program was:" >&5
17382 sed 's/^/| /' conftest.$ac_ext >&5
17383
17384   ac_header_preproc=no
17385 fi
17386
17387 rm -f conftest.err conftest.$ac_ext
17388 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17389 echo "${ECHO_T}$ac_header_preproc" >&6; }
17390
17391 # So?  What about this header?
17392 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17393   yes:no: )
17394     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17395 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17396     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17397 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17398     ac_header_preproc=yes
17399     ;;
17400   no:yes:* )
17401     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17402 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17403     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
17404 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
17405     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17406 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17407     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
17408 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
17409     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17410 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17411     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17412 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17413     ( cat <<\_ASBOX
17414 ## ----------------------------------- ##
17415 ## Report this to llvmbugs@cs.uiuc.edu ##
17416 ## ----------------------------------- ##
17417 _ASBOX
17418      ) | sed "s/^/$as_me: WARNING:     /" >&2
17419     ;;
17420 esac
17421 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17422 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17423 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17424   echo $ECHO_N "(cached) $ECHO_C" >&6
17425 else
17426   eval "$as_ac_Header=\$ac_header_preproc"
17427 fi
17428 ac_res=`eval echo '${'$as_ac_Header'}'`
17429                { echo "$as_me:$LINENO: result: $ac_res" >&5
17430 echo "${ECHO_T}$ac_res" >&6; }
17431
17432 fi
17433 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17434   cat >>confdefs.h <<_ACEOF
17435 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17436 _ACEOF
17437
17438 fi
17439
17440 done
17441
17442
17443 { echo "$as_me:$LINENO: checking __crashreporter_info__" >&5
17444 echo $ECHO_N "checking __crashreporter_info__... $ECHO_C" >&6; }
17445 cat >conftest.$ac_ext <<_ACEOF
17446 /* confdefs.h.  */
17447 _ACEOF
17448 cat confdefs.h >>conftest.$ac_ext
17449 cat >>conftest.$ac_ext <<_ACEOF
17450 /* end confdefs.h.  */
17451 extern const char *__crashreporter_info__;
17452       int main() {
17453         __crashreporter_info__ = "test";
17454         return 0;
17455       }
17456
17457 _ACEOF
17458 rm -f conftest.$ac_objext conftest$ac_exeext
17459 if { (ac_try="$ac_link"
17460 case "(($ac_try" in
17461   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17462   *) ac_try_echo=$ac_try;;
17463 esac
17464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17465   (eval "$ac_link") 2>conftest.er1
17466   ac_status=$?
17467   grep -v '^ *+' conftest.er1 >conftest.err
17468   rm -f conftest.er1
17469   cat conftest.err >&5
17470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17471   (exit $ac_status); } &&
17472          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17473   { (case "(($ac_try" in
17474   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17475   *) ac_try_echo=$ac_try;;
17476 esac
17477 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17478   (eval "$ac_try") 2>&5
17479   ac_status=$?
17480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17481   (exit $ac_status); }; } &&
17482          { ac_try='test -s conftest$ac_exeext'
17483   { (case "(($ac_try" in
17484   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17485   *) ac_try_echo=$ac_try;;
17486 esac
17487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17488   (eval "$ac_try") 2>&5
17489   ac_status=$?
17490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17491   (exit $ac_status); }; }; then
17492   { echo "$as_me:$LINENO: result: yes" >&5
17493 echo "${ECHO_T}yes" >&6; }
17494
17495 cat >>confdefs.h <<\_ACEOF
17496 #define HAVE_CRASHREPORTER_INFO 1
17497 _ACEOF
17498
17499 else
17500   echo "$as_me: failed program was:" >&5
17501 sed 's/^/| /' conftest.$ac_ext >&5
17502
17503         { echo "$as_me:$LINENO: result: no" >&5
17504 echo "${ECHO_T}no" >&6; }
17505
17506 cat >>confdefs.h <<\_ACEOF
17507 #define HAVE_CRASHREPORTER_INFO 0
17508 _ACEOF
17509
17510 fi
17511
17512 rm -f core conftest.err conftest.$ac_objext \
17513       conftest$ac_exeext conftest.$ac_ext
17514
17515
17516
17517
17518   { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
17519 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
17520 if test "${ac_cv_huge_val_sanity+set}" = set; then
17521   echo $ECHO_N "(cached) $ECHO_C" >&6
17522 else
17523
17524     ac_ext=cpp
17525 ac_cpp='$CXXCPP $CPPFLAGS'
17526 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17527 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17528 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17529
17530     ac_save_CXXFLAGS=$CXXFLAGS
17531     CXXFLAGS=-pedantic
17532     if test "$cross_compiling" = yes; then
17533   ac_cv_huge_val_sanity=yes
17534 else
17535   cat >conftest.$ac_ext <<_ACEOF
17536 /* confdefs.h.  */
17537 _ACEOF
17538 cat confdefs.h >>conftest.$ac_ext
17539 cat >>conftest.$ac_ext <<_ACEOF
17540 /* end confdefs.h.  */
17541 #include <math.h>
17542 int
17543 main ()
17544 {
17545 double x = HUGE_VAL; return x != x;
17546   ;
17547   return 0;
17548 }
17549 _ACEOF
17550 rm -f conftest$ac_exeext
17551 if { (ac_try="$ac_link"
17552 case "(($ac_try" in
17553   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17554   *) ac_try_echo=$ac_try;;
17555 esac
17556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17557   (eval "$ac_link") 2>&5
17558   ac_status=$?
17559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17560   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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_try") 2>&5
17567   ac_status=$?
17568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17569   (exit $ac_status); }; }; then
17570   ac_cv_huge_val_sanity=yes
17571 else
17572   echo "$as_me: program exited with status $ac_status" >&5
17573 echo "$as_me: failed program was:" >&5
17574 sed 's/^/| /' conftest.$ac_ext >&5
17575
17576 ( exit $ac_status )
17577 ac_cv_huge_val_sanity=no
17578 fi
17579 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17580 fi
17581
17582
17583     CXXFLAGS=$ac_save_CXXFLAGS
17584     ac_ext=c
17585 ac_cpp='$CPP $CPPFLAGS'
17586 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17587 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17588 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17589
17590
17591 fi
17592 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
17593 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
17594   HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
17595
17596
17597 { echo "$as_me:$LINENO: checking for pid_t" >&5
17598 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
17599 if test "${ac_cv_type_pid_t+set}" = set; then
17600   echo $ECHO_N "(cached) $ECHO_C" >&6
17601 else
17602   cat >conftest.$ac_ext <<_ACEOF
17603 /* confdefs.h.  */
17604 _ACEOF
17605 cat confdefs.h >>conftest.$ac_ext
17606 cat >>conftest.$ac_ext <<_ACEOF
17607 /* end confdefs.h.  */
17608 $ac_includes_default
17609 typedef pid_t ac__type_new_;
17610 int
17611 main ()
17612 {
17613 if ((ac__type_new_ *) 0)
17614   return 0;
17615 if (sizeof (ac__type_new_))
17616   return 0;
17617   ;
17618   return 0;
17619 }
17620 _ACEOF
17621 rm -f conftest.$ac_objext
17622 if { (ac_try="$ac_compile"
17623 case "(($ac_try" in
17624   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17625   *) ac_try_echo=$ac_try;;
17626 esac
17627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17628   (eval "$ac_compile") 2>conftest.er1
17629   ac_status=$?
17630   grep -v '^ *+' conftest.er1 >conftest.err
17631   rm -f conftest.er1
17632   cat conftest.err >&5
17633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17634   (exit $ac_status); } &&
17635          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17636   { (case "(($ac_try" in
17637   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17638   *) ac_try_echo=$ac_try;;
17639 esac
17640 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17641   (eval "$ac_try") 2>&5
17642   ac_status=$?
17643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17644   (exit $ac_status); }; } &&
17645          { ac_try='test -s conftest.$ac_objext'
17646   { (case "(($ac_try" in
17647   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17648   *) ac_try_echo=$ac_try;;
17649 esac
17650 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17651   (eval "$ac_try") 2>&5
17652   ac_status=$?
17653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17654   (exit $ac_status); }; }; then
17655   ac_cv_type_pid_t=yes
17656 else
17657   echo "$as_me: failed program was:" >&5
17658 sed 's/^/| /' conftest.$ac_ext >&5
17659
17660         ac_cv_type_pid_t=no
17661 fi
17662
17663 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17664 fi
17665 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
17666 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
17667 if test $ac_cv_type_pid_t = yes; then
17668   :
17669 else
17670
17671 cat >>confdefs.h <<_ACEOF
17672 #define pid_t int
17673 _ACEOF
17674
17675 fi
17676
17677 { echo "$as_me:$LINENO: checking for size_t" >&5
17678 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
17679 if test "${ac_cv_type_size_t+set}" = set; then
17680   echo $ECHO_N "(cached) $ECHO_C" >&6
17681 else
17682   cat >conftest.$ac_ext <<_ACEOF
17683 /* confdefs.h.  */
17684 _ACEOF
17685 cat confdefs.h >>conftest.$ac_ext
17686 cat >>conftest.$ac_ext <<_ACEOF
17687 /* end confdefs.h.  */
17688 $ac_includes_default
17689 typedef size_t ac__type_new_;
17690 int
17691 main ()
17692 {
17693 if ((ac__type_new_ *) 0)
17694   return 0;
17695 if (sizeof (ac__type_new_))
17696   return 0;
17697   ;
17698   return 0;
17699 }
17700 _ACEOF
17701 rm -f conftest.$ac_objext
17702 if { (ac_try="$ac_compile"
17703 case "(($ac_try" in
17704   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17705   *) ac_try_echo=$ac_try;;
17706 esac
17707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17708   (eval "$ac_compile") 2>conftest.er1
17709   ac_status=$?
17710   grep -v '^ *+' conftest.er1 >conftest.err
17711   rm -f conftest.er1
17712   cat conftest.err >&5
17713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17714   (exit $ac_status); } &&
17715          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17716   { (case "(($ac_try" in
17717   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17718   *) ac_try_echo=$ac_try;;
17719 esac
17720 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17721   (eval "$ac_try") 2>&5
17722   ac_status=$?
17723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17724   (exit $ac_status); }; } &&
17725          { ac_try='test -s conftest.$ac_objext'
17726   { (case "(($ac_try" in
17727   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17728   *) ac_try_echo=$ac_try;;
17729 esac
17730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17731   (eval "$ac_try") 2>&5
17732   ac_status=$?
17733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17734   (exit $ac_status); }; }; then
17735   ac_cv_type_size_t=yes
17736 else
17737   echo "$as_me: failed program was:" >&5
17738 sed 's/^/| /' conftest.$ac_ext >&5
17739
17740         ac_cv_type_size_t=no
17741 fi
17742
17743 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17744 fi
17745 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
17746 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
17747 if test $ac_cv_type_size_t = yes; then
17748   :
17749 else
17750
17751 cat >>confdefs.h <<_ACEOF
17752 #define size_t unsigned int
17753 _ACEOF
17754
17755 fi
17756
17757
17758 cat >>confdefs.h <<_ACEOF
17759 #define RETSIGTYPE void
17760 _ACEOF
17761
17762 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
17763 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
17764 if test "${ac_cv_struct_tm+set}" = set; then
17765   echo $ECHO_N "(cached) $ECHO_C" >&6
17766 else
17767   cat >conftest.$ac_ext <<_ACEOF
17768 /* confdefs.h.  */
17769 _ACEOF
17770 cat confdefs.h >>conftest.$ac_ext
17771 cat >>conftest.$ac_ext <<_ACEOF
17772 /* end confdefs.h.  */
17773 #include <sys/types.h>
17774 #include <time.h>
17775
17776 int
17777 main ()
17778 {
17779 struct tm *tp; tp->tm_sec;
17780   ;
17781   return 0;
17782 }
17783 _ACEOF
17784 rm -f conftest.$ac_objext
17785 if { (ac_try="$ac_compile"
17786 case "(($ac_try" in
17787   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17788   *) ac_try_echo=$ac_try;;
17789 esac
17790 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17791   (eval "$ac_compile") 2>conftest.er1
17792   ac_status=$?
17793   grep -v '^ *+' conftest.er1 >conftest.err
17794   rm -f conftest.er1
17795   cat conftest.err >&5
17796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17797   (exit $ac_status); } &&
17798          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17799   { (case "(($ac_try" in
17800   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17801   *) ac_try_echo=$ac_try;;
17802 esac
17803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17804   (eval "$ac_try") 2>&5
17805   ac_status=$?
17806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17807   (exit $ac_status); }; } &&
17808          { ac_try='test -s conftest.$ac_objext'
17809   { (case "(($ac_try" in
17810   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17811   *) ac_try_echo=$ac_try;;
17812 esac
17813 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17814   (eval "$ac_try") 2>&5
17815   ac_status=$?
17816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17817   (exit $ac_status); }; }; then
17818   ac_cv_struct_tm=time.h
17819 else
17820   echo "$as_me: failed program was:" >&5
17821 sed 's/^/| /' conftest.$ac_ext >&5
17822
17823         ac_cv_struct_tm=sys/time.h
17824 fi
17825
17826 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17827 fi
17828 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
17829 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
17830 if test $ac_cv_struct_tm = sys/time.h; then
17831
17832 cat >>confdefs.h <<\_ACEOF
17833 #define TM_IN_SYS_TIME 1
17834 _ACEOF
17835
17836 fi
17837
17838 { echo "$as_me:$LINENO: checking for int64_t" >&5
17839 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
17840 if test "${ac_cv_type_int64_t+set}" = set; then
17841   echo $ECHO_N "(cached) $ECHO_C" >&6
17842 else
17843   cat >conftest.$ac_ext <<_ACEOF
17844 /* confdefs.h.  */
17845 _ACEOF
17846 cat confdefs.h >>conftest.$ac_ext
17847 cat >>conftest.$ac_ext <<_ACEOF
17848 /* end confdefs.h.  */
17849 $ac_includes_default
17850 typedef int64_t ac__type_new_;
17851 int
17852 main ()
17853 {
17854 if ((ac__type_new_ *) 0)
17855   return 0;
17856 if (sizeof (ac__type_new_))
17857   return 0;
17858   ;
17859   return 0;
17860 }
17861 _ACEOF
17862 rm -f conftest.$ac_objext
17863 if { (ac_try="$ac_compile"
17864 case "(($ac_try" in
17865   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17866   *) ac_try_echo=$ac_try;;
17867 esac
17868 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17869   (eval "$ac_compile") 2>conftest.er1
17870   ac_status=$?
17871   grep -v '^ *+' conftest.er1 >conftest.err
17872   rm -f conftest.er1
17873   cat conftest.err >&5
17874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17875   (exit $ac_status); } &&
17876          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17877   { (case "(($ac_try" in
17878   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17879   *) ac_try_echo=$ac_try;;
17880 esac
17881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17882   (eval "$ac_try") 2>&5
17883   ac_status=$?
17884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17885   (exit $ac_status); }; } &&
17886          { ac_try='test -s conftest.$ac_objext'
17887   { (case "(($ac_try" in
17888   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17889   *) ac_try_echo=$ac_try;;
17890 esac
17891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17892   (eval "$ac_try") 2>&5
17893   ac_status=$?
17894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17895   (exit $ac_status); }; }; then
17896   ac_cv_type_int64_t=yes
17897 else
17898   echo "$as_me: failed program was:" >&5
17899 sed 's/^/| /' conftest.$ac_ext >&5
17900
17901         ac_cv_type_int64_t=no
17902 fi
17903
17904 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17905 fi
17906 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
17907 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
17908 if test $ac_cv_type_int64_t = yes; then
17909
17910 cat >>confdefs.h <<_ACEOF
17911 #define HAVE_INT64_T 1
17912 _ACEOF
17913
17914
17915 else
17916   { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
17917 echo "$as_me: error: Type int64_t required but not found" >&2;}
17918    { (exit 1); exit 1; }; }
17919 fi
17920
17921 { echo "$as_me:$LINENO: checking for uint64_t" >&5
17922 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
17923 if test "${ac_cv_type_uint64_t+set}" = set; then
17924   echo $ECHO_N "(cached) $ECHO_C" >&6
17925 else
17926   cat >conftest.$ac_ext <<_ACEOF
17927 /* confdefs.h.  */
17928 _ACEOF
17929 cat confdefs.h >>conftest.$ac_ext
17930 cat >>conftest.$ac_ext <<_ACEOF
17931 /* end confdefs.h.  */
17932 $ac_includes_default
17933 typedef uint64_t ac__type_new_;
17934 int
17935 main ()
17936 {
17937 if ((ac__type_new_ *) 0)
17938   return 0;
17939 if (sizeof (ac__type_new_))
17940   return 0;
17941   ;
17942   return 0;
17943 }
17944 _ACEOF
17945 rm -f conftest.$ac_objext
17946 if { (ac_try="$ac_compile"
17947 case "(($ac_try" in
17948   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17949   *) ac_try_echo=$ac_try;;
17950 esac
17951 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17952   (eval "$ac_compile") 2>conftest.er1
17953   ac_status=$?
17954   grep -v '^ *+' conftest.er1 >conftest.err
17955   rm -f conftest.er1
17956   cat conftest.err >&5
17957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17958   (exit $ac_status); } &&
17959          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17960   { (case "(($ac_try" in
17961   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17962   *) ac_try_echo=$ac_try;;
17963 esac
17964 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17965   (eval "$ac_try") 2>&5
17966   ac_status=$?
17967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17968   (exit $ac_status); }; } &&
17969          { ac_try='test -s conftest.$ac_objext'
17970   { (case "(($ac_try" in
17971   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17972   *) ac_try_echo=$ac_try;;
17973 esac
17974 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17975   (eval "$ac_try") 2>&5
17976   ac_status=$?
17977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17978   (exit $ac_status); }; }; then
17979   ac_cv_type_uint64_t=yes
17980 else
17981   echo "$as_me: failed program was:" >&5
17982 sed 's/^/| /' conftest.$ac_ext >&5
17983
17984         ac_cv_type_uint64_t=no
17985 fi
17986
17987 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17988 fi
17989 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
17990 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
17991 if test $ac_cv_type_uint64_t = yes; then
17992
17993 cat >>confdefs.h <<_ACEOF
17994 #define HAVE_UINT64_T 1
17995 _ACEOF
17996
17997
17998 else
17999   { echo "$as_me:$LINENO: checking for u_int64_t" >&5
18000 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
18001 if test "${ac_cv_type_u_int64_t+set}" = set; then
18002   echo $ECHO_N "(cached) $ECHO_C" >&6
18003 else
18004   cat >conftest.$ac_ext <<_ACEOF
18005 /* confdefs.h.  */
18006 _ACEOF
18007 cat confdefs.h >>conftest.$ac_ext
18008 cat >>conftest.$ac_ext <<_ACEOF
18009 /* end confdefs.h.  */
18010 $ac_includes_default
18011 typedef u_int64_t ac__type_new_;
18012 int
18013 main ()
18014 {
18015 if ((ac__type_new_ *) 0)
18016   return 0;
18017 if (sizeof (ac__type_new_))
18018   return 0;
18019   ;
18020   return 0;
18021 }
18022 _ACEOF
18023 rm -f conftest.$ac_objext
18024 if { (ac_try="$ac_compile"
18025 case "(($ac_try" in
18026   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18027   *) ac_try_echo=$ac_try;;
18028 esac
18029 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18030   (eval "$ac_compile") 2>conftest.er1
18031   ac_status=$?
18032   grep -v '^ *+' conftest.er1 >conftest.err
18033   rm -f conftest.er1
18034   cat conftest.err >&5
18035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18036   (exit $ac_status); } &&
18037          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18038   { (case "(($ac_try" in
18039   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18040   *) ac_try_echo=$ac_try;;
18041 esac
18042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18043   (eval "$ac_try") 2>&5
18044   ac_status=$?
18045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18046   (exit $ac_status); }; } &&
18047          { ac_try='test -s conftest.$ac_objext'
18048   { (case "(($ac_try" in
18049   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18050   *) ac_try_echo=$ac_try;;
18051 esac
18052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18053   (eval "$ac_try") 2>&5
18054   ac_status=$?
18055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18056   (exit $ac_status); }; }; then
18057   ac_cv_type_u_int64_t=yes
18058 else
18059   echo "$as_me: failed program was:" >&5
18060 sed 's/^/| /' conftest.$ac_ext >&5
18061
18062         ac_cv_type_u_int64_t=no
18063 fi
18064
18065 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18066 fi
18067 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
18068 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
18069 if test $ac_cv_type_u_int64_t = yes; then
18070
18071 cat >>confdefs.h <<_ACEOF
18072 #define HAVE_U_INT64_T 1
18073 _ACEOF
18074
18075
18076 else
18077   { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
18078 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
18079    { (exit 1); exit 1; }; }
18080 fi
18081
18082 fi
18083
18084
18085
18086
18087
18088
18089
18090
18091
18092
18093 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
18094 do
18095 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18096 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18097 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18098 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18099   echo $ECHO_N "(cached) $ECHO_C" >&6
18100 else
18101   cat >conftest.$ac_ext <<_ACEOF
18102 /* confdefs.h.  */
18103 _ACEOF
18104 cat confdefs.h >>conftest.$ac_ext
18105 cat >>conftest.$ac_ext <<_ACEOF
18106 /* end confdefs.h.  */
18107 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18108    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18109 #define $ac_func innocuous_$ac_func
18110
18111 /* System header to define __stub macros and hopefully few prototypes,
18112     which can conflict with char $ac_func (); below.
18113     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18114     <limits.h> exists even on freestanding compilers.  */
18115
18116 #ifdef __STDC__
18117 # include <limits.h>
18118 #else
18119 # include <assert.h>
18120 #endif
18121
18122 #undef $ac_func
18123
18124 /* Override any GCC internal prototype to avoid an error.
18125    Use char because int might match the return type of a GCC
18126    builtin and then its argument prototype would still apply.  */
18127 #ifdef __cplusplus
18128 extern "C"
18129 #endif
18130 char $ac_func ();
18131 /* The GNU C library defines this for functions which it implements
18132     to always fail with ENOSYS.  Some functions are actually named
18133     something starting with __ and the normal name is an alias.  */
18134 #if defined __stub_$ac_func || defined __stub___$ac_func
18135 choke me
18136 #endif
18137
18138 int
18139 main ()
18140 {
18141 return $ac_func ();
18142   ;
18143   return 0;
18144 }
18145 _ACEOF
18146 rm -f conftest.$ac_objext conftest$ac_exeext
18147 if { (ac_try="$ac_link"
18148 case "(($ac_try" in
18149   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18150   *) ac_try_echo=$ac_try;;
18151 esac
18152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18153   (eval "$ac_link") 2>conftest.er1
18154   ac_status=$?
18155   grep -v '^ *+' conftest.er1 >conftest.err
18156   rm -f conftest.er1
18157   cat conftest.err >&5
18158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18159   (exit $ac_status); } &&
18160          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18161   { (case "(($ac_try" in
18162   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18163   *) ac_try_echo=$ac_try;;
18164 esac
18165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18166   (eval "$ac_try") 2>&5
18167   ac_status=$?
18168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18169   (exit $ac_status); }; } &&
18170          { ac_try='test -s conftest$ac_exeext'
18171   { (case "(($ac_try" in
18172   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18173   *) ac_try_echo=$ac_try;;
18174 esac
18175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18176   (eval "$ac_try") 2>&5
18177   ac_status=$?
18178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18179   (exit $ac_status); }; }; then
18180   eval "$as_ac_var=yes"
18181 else
18182   echo "$as_me: failed program was:" >&5
18183 sed 's/^/| /' conftest.$ac_ext >&5
18184
18185         eval "$as_ac_var=no"
18186 fi
18187
18188 rm -f core conftest.err conftest.$ac_objext \
18189       conftest$ac_exeext conftest.$ac_ext
18190 fi
18191 ac_res=`eval echo '${'$as_ac_var'}'`
18192                { echo "$as_me:$LINENO: result: $ac_res" >&5
18193 echo "${ECHO_T}$ac_res" >&6; }
18194 if test `eval echo '${'$as_ac_var'}'` = yes; then
18195   cat >>confdefs.h <<_ACEOF
18196 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18197 _ACEOF
18198
18199 fi
18200 done
18201
18202
18203
18204
18205
18206 for ac_func in powf fmodf strtof round
18207 do
18208 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18209 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18210 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18211 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18212   echo $ECHO_N "(cached) $ECHO_C" >&6
18213 else
18214   cat >conftest.$ac_ext <<_ACEOF
18215 /* confdefs.h.  */
18216 _ACEOF
18217 cat confdefs.h >>conftest.$ac_ext
18218 cat >>conftest.$ac_ext <<_ACEOF
18219 /* end confdefs.h.  */
18220 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18221    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18222 #define $ac_func innocuous_$ac_func
18223
18224 /* System header to define __stub macros and hopefully few prototypes,
18225     which can conflict with char $ac_func (); below.
18226     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18227     <limits.h> exists even on freestanding compilers.  */
18228
18229 #ifdef __STDC__
18230 # include <limits.h>
18231 #else
18232 # include <assert.h>
18233 #endif
18234
18235 #undef $ac_func
18236
18237 /* Override any GCC internal prototype to avoid an error.
18238    Use char because int might match the return type of a GCC
18239    builtin and then its argument prototype would still apply.  */
18240 #ifdef __cplusplus
18241 extern "C"
18242 #endif
18243 char $ac_func ();
18244 /* The GNU C library defines this for functions which it implements
18245     to always fail with ENOSYS.  Some functions are actually named
18246     something starting with __ and the normal name is an alias.  */
18247 #if defined __stub_$ac_func || defined __stub___$ac_func
18248 choke me
18249 #endif
18250
18251 int
18252 main ()
18253 {
18254 return $ac_func ();
18255   ;
18256   return 0;
18257 }
18258 _ACEOF
18259 rm -f conftest.$ac_objext conftest$ac_exeext
18260 if { (ac_try="$ac_link"
18261 case "(($ac_try" in
18262   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18263   *) ac_try_echo=$ac_try;;
18264 esac
18265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18266   (eval "$ac_link") 2>conftest.er1
18267   ac_status=$?
18268   grep -v '^ *+' conftest.er1 >conftest.err
18269   rm -f conftest.er1
18270   cat conftest.err >&5
18271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18272   (exit $ac_status); } &&
18273          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18274   { (case "(($ac_try" in
18275   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18276   *) ac_try_echo=$ac_try;;
18277 esac
18278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18279   (eval "$ac_try") 2>&5
18280   ac_status=$?
18281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18282   (exit $ac_status); }; } &&
18283          { ac_try='test -s conftest$ac_exeext'
18284   { (case "(($ac_try" in
18285   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18286   *) ac_try_echo=$ac_try;;
18287 esac
18288 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18289   (eval "$ac_try") 2>&5
18290   ac_status=$?
18291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18292   (exit $ac_status); }; }; then
18293   eval "$as_ac_var=yes"
18294 else
18295   echo "$as_me: failed program was:" >&5
18296 sed 's/^/| /' conftest.$ac_ext >&5
18297
18298         eval "$as_ac_var=no"
18299 fi
18300
18301 rm -f core conftest.err conftest.$ac_objext \
18302       conftest$ac_exeext conftest.$ac_ext
18303 fi
18304 ac_res=`eval echo '${'$as_ac_var'}'`
18305                { echo "$as_me:$LINENO: result: $ac_res" >&5
18306 echo "${ECHO_T}$ac_res" >&6; }
18307 if test `eval echo '${'$as_ac_var'}'` = yes; then
18308   cat >>confdefs.h <<_ACEOF
18309 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18310 _ACEOF
18311
18312 fi
18313 done
18314
18315
18316
18317
18318
18319
18320 for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
18321 do
18322 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18323 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18324 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18325 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18326   echo $ECHO_N "(cached) $ECHO_C" >&6
18327 else
18328   cat >conftest.$ac_ext <<_ACEOF
18329 /* confdefs.h.  */
18330 _ACEOF
18331 cat confdefs.h >>conftest.$ac_ext
18332 cat >>conftest.$ac_ext <<_ACEOF
18333 /* end confdefs.h.  */
18334 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18335    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18336 #define $ac_func innocuous_$ac_func
18337
18338 /* System header to define __stub macros and hopefully few prototypes,
18339     which can conflict with char $ac_func (); below.
18340     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18341     <limits.h> exists even on freestanding compilers.  */
18342
18343 #ifdef __STDC__
18344 # include <limits.h>
18345 #else
18346 # include <assert.h>
18347 #endif
18348
18349 #undef $ac_func
18350
18351 /* Override any GCC internal prototype to avoid an error.
18352    Use char because int might match the return type of a GCC
18353    builtin and then its argument prototype would still apply.  */
18354 #ifdef __cplusplus
18355 extern "C"
18356 #endif
18357 char $ac_func ();
18358 /* The GNU C library defines this for functions which it implements
18359     to always fail with ENOSYS.  Some functions are actually named
18360     something starting with __ and the normal name is an alias.  */
18361 #if defined __stub_$ac_func || defined __stub___$ac_func
18362 choke me
18363 #endif
18364
18365 int
18366 main ()
18367 {
18368 return $ac_func ();
18369   ;
18370   return 0;
18371 }
18372 _ACEOF
18373 rm -f conftest.$ac_objext conftest$ac_exeext
18374 if { (ac_try="$ac_link"
18375 case "(($ac_try" in
18376   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18377   *) ac_try_echo=$ac_try;;
18378 esac
18379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18380   (eval "$ac_link") 2>conftest.er1
18381   ac_status=$?
18382   grep -v '^ *+' conftest.er1 >conftest.err
18383   rm -f conftest.er1
18384   cat conftest.err >&5
18385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18386   (exit $ac_status); } &&
18387          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18388   { (case "(($ac_try" in
18389   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18390   *) ac_try_echo=$ac_try;;
18391 esac
18392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18393   (eval "$ac_try") 2>&5
18394   ac_status=$?
18395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18396   (exit $ac_status); }; } &&
18397          { ac_try='test -s conftest$ac_exeext'
18398   { (case "(($ac_try" in
18399   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18400   *) ac_try_echo=$ac_try;;
18401 esac
18402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18403   (eval "$ac_try") 2>&5
18404   ac_status=$?
18405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18406   (exit $ac_status); }; }; then
18407   eval "$as_ac_var=yes"
18408 else
18409   echo "$as_me: failed program was:" >&5
18410 sed 's/^/| /' conftest.$ac_ext >&5
18411
18412         eval "$as_ac_var=no"
18413 fi
18414
18415 rm -f core conftest.err conftest.$ac_objext \
18416       conftest$ac_exeext conftest.$ac_ext
18417 fi
18418 ac_res=`eval echo '${'$as_ac_var'}'`
18419                { echo "$as_me:$LINENO: result: $ac_res" >&5
18420 echo "${ECHO_T}$ac_res" >&6; }
18421 if test `eval echo '${'$as_ac_var'}'` = yes; then
18422   cat >>confdefs.h <<_ACEOF
18423 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18424 _ACEOF
18425
18426 fi
18427 done
18428
18429
18430
18431
18432 for ac_func in isatty mkdtemp mkstemp
18433 do
18434 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18435 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18436 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18437 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18438   echo $ECHO_N "(cached) $ECHO_C" >&6
18439 else
18440   cat >conftest.$ac_ext <<_ACEOF
18441 /* confdefs.h.  */
18442 _ACEOF
18443 cat confdefs.h >>conftest.$ac_ext
18444 cat >>conftest.$ac_ext <<_ACEOF
18445 /* end confdefs.h.  */
18446 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18447    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18448 #define $ac_func innocuous_$ac_func
18449
18450 /* System header to define __stub macros and hopefully few prototypes,
18451     which can conflict with char $ac_func (); below.
18452     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18453     <limits.h> exists even on freestanding compilers.  */
18454
18455 #ifdef __STDC__
18456 # include <limits.h>
18457 #else
18458 # include <assert.h>
18459 #endif
18460
18461 #undef $ac_func
18462
18463 /* Override any GCC internal prototype to avoid an error.
18464    Use char because int might match the return type of a GCC
18465    builtin and then its argument prototype would still apply.  */
18466 #ifdef __cplusplus
18467 extern "C"
18468 #endif
18469 char $ac_func ();
18470 /* The GNU C library defines this for functions which it implements
18471     to always fail with ENOSYS.  Some functions are actually named
18472     something starting with __ and the normal name is an alias.  */
18473 #if defined __stub_$ac_func || defined __stub___$ac_func
18474 choke me
18475 #endif
18476
18477 int
18478 main ()
18479 {
18480 return $ac_func ();
18481   ;
18482   return 0;
18483 }
18484 _ACEOF
18485 rm -f conftest.$ac_objext conftest$ac_exeext
18486 if { (ac_try="$ac_link"
18487 case "(($ac_try" in
18488   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18489   *) ac_try_echo=$ac_try;;
18490 esac
18491 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18492   (eval "$ac_link") 2>conftest.er1
18493   ac_status=$?
18494   grep -v '^ *+' conftest.er1 >conftest.err
18495   rm -f conftest.er1
18496   cat conftest.err >&5
18497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18498   (exit $ac_status); } &&
18499          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18500   { (case "(($ac_try" in
18501   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18502   *) ac_try_echo=$ac_try;;
18503 esac
18504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18505   (eval "$ac_try") 2>&5
18506   ac_status=$?
18507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18508   (exit $ac_status); }; } &&
18509          { ac_try='test -s conftest$ac_exeext'
18510   { (case "(($ac_try" in
18511   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18512   *) ac_try_echo=$ac_try;;
18513 esac
18514 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18515   (eval "$ac_try") 2>&5
18516   ac_status=$?
18517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18518   (exit $ac_status); }; }; then
18519   eval "$as_ac_var=yes"
18520 else
18521   echo "$as_me: failed program was:" >&5
18522 sed 's/^/| /' conftest.$ac_ext >&5
18523
18524         eval "$as_ac_var=no"
18525 fi
18526
18527 rm -f core conftest.err conftest.$ac_objext \
18528       conftest$ac_exeext conftest.$ac_ext
18529 fi
18530 ac_res=`eval echo '${'$as_ac_var'}'`
18531                { echo "$as_me:$LINENO: result: $ac_res" >&5
18532 echo "${ECHO_T}$ac_res" >&6; }
18533 if test `eval echo '${'$as_ac_var'}'` = yes; then
18534   cat >>confdefs.h <<_ACEOF
18535 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18536 _ACEOF
18537
18538 fi
18539 done
18540
18541
18542
18543
18544
18545
18546
18547 for ac_func in mktemp posix_spawn realpath sbrk setrlimit strdup
18548 do
18549 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18550 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18551 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18552 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18553   echo $ECHO_N "(cached) $ECHO_C" >&6
18554 else
18555   cat >conftest.$ac_ext <<_ACEOF
18556 /* confdefs.h.  */
18557 _ACEOF
18558 cat confdefs.h >>conftest.$ac_ext
18559 cat >>conftest.$ac_ext <<_ACEOF
18560 /* end confdefs.h.  */
18561 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18562    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18563 #define $ac_func innocuous_$ac_func
18564
18565 /* System header to define __stub macros and hopefully few prototypes,
18566     which can conflict with char $ac_func (); below.
18567     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18568     <limits.h> exists even on freestanding compilers.  */
18569
18570 #ifdef __STDC__
18571 # include <limits.h>
18572 #else
18573 # include <assert.h>
18574 #endif
18575
18576 #undef $ac_func
18577
18578 /* Override any GCC internal prototype to avoid an error.
18579    Use char because int might match the return type of a GCC
18580    builtin and then its argument prototype would still apply.  */
18581 #ifdef __cplusplus
18582 extern "C"
18583 #endif
18584 char $ac_func ();
18585 /* The GNU C library defines this for functions which it implements
18586     to always fail with ENOSYS.  Some functions are actually named
18587     something starting with __ and the normal name is an alias.  */
18588 #if defined __stub_$ac_func || defined __stub___$ac_func
18589 choke me
18590 #endif
18591
18592 int
18593 main ()
18594 {
18595 return $ac_func ();
18596   ;
18597   return 0;
18598 }
18599 _ACEOF
18600 rm -f conftest.$ac_objext conftest$ac_exeext
18601 if { (ac_try="$ac_link"
18602 case "(($ac_try" in
18603   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18604   *) ac_try_echo=$ac_try;;
18605 esac
18606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18607   (eval "$ac_link") 2>conftest.er1
18608   ac_status=$?
18609   grep -v '^ *+' conftest.er1 >conftest.err
18610   rm -f conftest.er1
18611   cat conftest.err >&5
18612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18613   (exit $ac_status); } &&
18614          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18615   { (case "(($ac_try" in
18616   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18617   *) ac_try_echo=$ac_try;;
18618 esac
18619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18620   (eval "$ac_try") 2>&5
18621   ac_status=$?
18622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18623   (exit $ac_status); }; } &&
18624          { ac_try='test -s conftest$ac_exeext'
18625   { (case "(($ac_try" in
18626   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18627   *) ac_try_echo=$ac_try;;
18628 esac
18629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18630   (eval "$ac_try") 2>&5
18631   ac_status=$?
18632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18633   (exit $ac_status); }; }; then
18634   eval "$as_ac_var=yes"
18635 else
18636   echo "$as_me: failed program was:" >&5
18637 sed 's/^/| /' conftest.$ac_ext >&5
18638
18639         eval "$as_ac_var=no"
18640 fi
18641
18642 rm -f core conftest.err conftest.$ac_objext \
18643       conftest$ac_exeext conftest.$ac_ext
18644 fi
18645 ac_res=`eval echo '${'$as_ac_var'}'`
18646                { echo "$as_me:$LINENO: result: $ac_res" >&5
18647 echo "${ECHO_T}$ac_res" >&6; }
18648 if test `eval echo '${'$as_ac_var'}'` = yes; then
18649   cat >>confdefs.h <<_ACEOF
18650 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18651 _ACEOF
18652
18653 fi
18654 done
18655
18656
18657
18658
18659
18660 for ac_func in strerror strerror_r strerror_s setenv
18661 do
18662 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18663 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18664 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18665 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18666   echo $ECHO_N "(cached) $ECHO_C" >&6
18667 else
18668   cat >conftest.$ac_ext <<_ACEOF
18669 /* confdefs.h.  */
18670 _ACEOF
18671 cat confdefs.h >>conftest.$ac_ext
18672 cat >>conftest.$ac_ext <<_ACEOF
18673 /* end confdefs.h.  */
18674 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18675    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18676 #define $ac_func innocuous_$ac_func
18677
18678 /* System header to define __stub macros and hopefully few prototypes,
18679     which can conflict with char $ac_func (); below.
18680     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18681     <limits.h> exists even on freestanding compilers.  */
18682
18683 #ifdef __STDC__
18684 # include <limits.h>
18685 #else
18686 # include <assert.h>
18687 #endif
18688
18689 #undef $ac_func
18690
18691 /* Override any GCC internal prototype to avoid an error.
18692    Use char because int might match the return type of a GCC
18693    builtin and then its argument prototype would still apply.  */
18694 #ifdef __cplusplus
18695 extern "C"
18696 #endif
18697 char $ac_func ();
18698 /* The GNU C library defines this for functions which it implements
18699     to always fail with ENOSYS.  Some functions are actually named
18700     something starting with __ and the normal name is an alias.  */
18701 #if defined __stub_$ac_func || defined __stub___$ac_func
18702 choke me
18703 #endif
18704
18705 int
18706 main ()
18707 {
18708 return $ac_func ();
18709   ;
18710   return 0;
18711 }
18712 _ACEOF
18713 rm -f conftest.$ac_objext conftest$ac_exeext
18714 if { (ac_try="$ac_link"
18715 case "(($ac_try" in
18716   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18717   *) ac_try_echo=$ac_try;;
18718 esac
18719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18720   (eval "$ac_link") 2>conftest.er1
18721   ac_status=$?
18722   grep -v '^ *+' conftest.er1 >conftest.err
18723   rm -f conftest.er1
18724   cat conftest.err >&5
18725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18726   (exit $ac_status); } &&
18727          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18728   { (case "(($ac_try" in
18729   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18730   *) ac_try_echo=$ac_try;;
18731 esac
18732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18733   (eval "$ac_try") 2>&5
18734   ac_status=$?
18735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18736   (exit $ac_status); }; } &&
18737          { ac_try='test -s conftest$ac_exeext'
18738   { (case "(($ac_try" in
18739   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18740   *) ac_try_echo=$ac_try;;
18741 esac
18742 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18743   (eval "$ac_try") 2>&5
18744   ac_status=$?
18745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18746   (exit $ac_status); }; }; then
18747   eval "$as_ac_var=yes"
18748 else
18749   echo "$as_me: failed program was:" >&5
18750 sed 's/^/| /' conftest.$ac_ext >&5
18751
18752         eval "$as_ac_var=no"
18753 fi
18754
18755 rm -f core conftest.err conftest.$ac_objext \
18756       conftest$ac_exeext conftest.$ac_ext
18757 fi
18758 ac_res=`eval echo '${'$as_ac_var'}'`
18759                { echo "$as_me:$LINENO: result: $ac_res" >&5
18760 echo "${ECHO_T}$ac_res" >&6; }
18761 if test `eval echo '${'$as_ac_var'}'` = yes; then
18762   cat >>confdefs.h <<_ACEOF
18763 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18764 _ACEOF
18765
18766 fi
18767 done
18768
18769
18770
18771
18772
18773 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
18774 do
18775 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18776 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18777 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18778 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18779   echo $ECHO_N "(cached) $ECHO_C" >&6
18780 else
18781   cat >conftest.$ac_ext <<_ACEOF
18782 /* confdefs.h.  */
18783 _ACEOF
18784 cat confdefs.h >>conftest.$ac_ext
18785 cat >>conftest.$ac_ext <<_ACEOF
18786 /* end confdefs.h.  */
18787 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18788    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18789 #define $ac_func innocuous_$ac_func
18790
18791 /* System header to define __stub macros and hopefully few prototypes,
18792     which can conflict with char $ac_func (); below.
18793     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18794     <limits.h> exists even on freestanding compilers.  */
18795
18796 #ifdef __STDC__
18797 # include <limits.h>
18798 #else
18799 # include <assert.h>
18800 #endif
18801
18802 #undef $ac_func
18803
18804 /* Override any GCC internal prototype to avoid an error.
18805    Use char because int might match the return type of a GCC
18806    builtin and then its argument prototype would still apply.  */
18807 #ifdef __cplusplus
18808 extern "C"
18809 #endif
18810 char $ac_func ();
18811 /* The GNU C library defines this for functions which it implements
18812     to always fail with ENOSYS.  Some functions are actually named
18813     something starting with __ and the normal name is an alias.  */
18814 #if defined __stub_$ac_func || defined __stub___$ac_func
18815 choke me
18816 #endif
18817
18818 int
18819 main ()
18820 {
18821 return $ac_func ();
18822   ;
18823   return 0;
18824 }
18825 _ACEOF
18826 rm -f conftest.$ac_objext conftest$ac_exeext
18827 if { (ac_try="$ac_link"
18828 case "(($ac_try" in
18829   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18830   *) ac_try_echo=$ac_try;;
18831 esac
18832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18833   (eval "$ac_link") 2>conftest.er1
18834   ac_status=$?
18835   grep -v '^ *+' conftest.er1 >conftest.err
18836   rm -f conftest.er1
18837   cat conftest.err >&5
18838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18839   (exit $ac_status); } &&
18840          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18841   { (case "(($ac_try" in
18842   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18843   *) ac_try_echo=$ac_try;;
18844 esac
18845 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18846   (eval "$ac_try") 2>&5
18847   ac_status=$?
18848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18849   (exit $ac_status); }; } &&
18850          { ac_try='test -s conftest$ac_exeext'
18851   { (case "(($ac_try" in
18852   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18853   *) ac_try_echo=$ac_try;;
18854 esac
18855 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18856   (eval "$ac_try") 2>&5
18857   ac_status=$?
18858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18859   (exit $ac_status); }; }; then
18860   eval "$as_ac_var=yes"
18861 else
18862   echo "$as_me: failed program was:" >&5
18863 sed 's/^/| /' conftest.$ac_ext >&5
18864
18865         eval "$as_ac_var=no"
18866 fi
18867
18868 rm -f core conftest.err conftest.$ac_objext \
18869       conftest$ac_exeext conftest.$ac_ext
18870 fi
18871 ac_res=`eval echo '${'$as_ac_var'}'`
18872                { echo "$as_me:$LINENO: result: $ac_res" >&5
18873 echo "${ECHO_T}$ac_res" >&6; }
18874 if test `eval echo '${'$as_ac_var'}'` = yes; then
18875   cat >>confdefs.h <<_ACEOF
18876 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18877 _ACEOF
18878
18879 fi
18880 done
18881
18882
18883
18884
18885
18886 for ac_func in setjmp longjmp sigsetjmp siglongjmp
18887 do
18888 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18889 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18890 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18891 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18892   echo $ECHO_N "(cached) $ECHO_C" >&6
18893 else
18894   cat >conftest.$ac_ext <<_ACEOF
18895 /* confdefs.h.  */
18896 _ACEOF
18897 cat confdefs.h >>conftest.$ac_ext
18898 cat >>conftest.$ac_ext <<_ACEOF
18899 /* end confdefs.h.  */
18900 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18901    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18902 #define $ac_func innocuous_$ac_func
18903
18904 /* System header to define __stub macros and hopefully few prototypes,
18905     which can conflict with char $ac_func (); below.
18906     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18907     <limits.h> exists even on freestanding compilers.  */
18908
18909 #ifdef __STDC__
18910 # include <limits.h>
18911 #else
18912 # include <assert.h>
18913 #endif
18914
18915 #undef $ac_func
18916
18917 /* Override any GCC internal prototype to avoid an error.
18918    Use char because int might match the return type of a GCC
18919    builtin and then its argument prototype would still apply.  */
18920 #ifdef __cplusplus
18921 extern "C"
18922 #endif
18923 char $ac_func ();
18924 /* The GNU C library defines this for functions which it implements
18925     to always fail with ENOSYS.  Some functions are actually named
18926     something starting with __ and the normal name is an alias.  */
18927 #if defined __stub_$ac_func || defined __stub___$ac_func
18928 choke me
18929 #endif
18930
18931 int
18932 main ()
18933 {
18934 return $ac_func ();
18935   ;
18936   return 0;
18937 }
18938 _ACEOF
18939 rm -f conftest.$ac_objext conftest$ac_exeext
18940 if { (ac_try="$ac_link"
18941 case "(($ac_try" in
18942   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18943   *) ac_try_echo=$ac_try;;
18944 esac
18945 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18946   (eval "$ac_link") 2>conftest.er1
18947   ac_status=$?
18948   grep -v '^ *+' conftest.er1 >conftest.err
18949   rm -f conftest.er1
18950   cat conftest.err >&5
18951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18952   (exit $ac_status); } &&
18953          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18954   { (case "(($ac_try" in
18955   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18956   *) ac_try_echo=$ac_try;;
18957 esac
18958 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18959   (eval "$ac_try") 2>&5
18960   ac_status=$?
18961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18962   (exit $ac_status); }; } &&
18963          { ac_try='test -s conftest$ac_exeext'
18964   { (case "(($ac_try" in
18965   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18966   *) ac_try_echo=$ac_try;;
18967 esac
18968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18969   (eval "$ac_try") 2>&5
18970   ac_status=$?
18971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18972   (exit $ac_status); }; }; then
18973   eval "$as_ac_var=yes"
18974 else
18975   echo "$as_me: failed program was:" >&5
18976 sed 's/^/| /' conftest.$ac_ext >&5
18977
18978         eval "$as_ac_var=no"
18979 fi
18980
18981 rm -f core conftest.err conftest.$ac_objext \
18982       conftest$ac_exeext conftest.$ac_ext
18983 fi
18984 ac_res=`eval echo '${'$as_ac_var'}'`
18985                { echo "$as_me:$LINENO: result: $ac_res" >&5
18986 echo "${ECHO_T}$ac_res" >&6; }
18987 if test `eval echo '${'$as_ac_var'}'` = yes; then
18988   cat >>confdefs.h <<_ACEOF
18989 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18990 _ACEOF
18991
18992 fi
18993 done
18994
18995 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
18996 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
18997 if test "${llvm_cv_c_printf_a+set}" = set; then
18998   echo $ECHO_N "(cached) $ECHO_C" >&6
18999 else
19000   ac_ext=c
19001 ac_cpp='$CPP $CPPFLAGS'
19002 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19003 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19004 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19005
19006  if test "$cross_compiling" = yes; then
19007   llvmac_cv_c_printf_a=no
19008 else
19009   cat >conftest.$ac_ext <<_ACEOF
19010
19011   /* confdefs.h.  */
19012 _ACEOF
19013 cat confdefs.h >>conftest.$ac_ext
19014 cat >>conftest.$ac_ext <<_ACEOF
19015 /* end confdefs.h.  */
19016
19017 #include <stdio.h>
19018 #include <stdlib.h>
19019
19020 int
19021 main ()
19022 {
19023
19024 volatile double A, B;
19025 char Buffer[100];
19026 A = 1;
19027 A /= 10.0;
19028 sprintf(Buffer, "%a", A);
19029 B = atof(Buffer);
19030 if (A != B)
19031   return (1);
19032 if (A != 0x1.999999999999ap-4)
19033   return (1);
19034 return (0);
19035   ;
19036   return 0;
19037 }
19038 _ACEOF
19039 rm -f conftest$ac_exeext
19040 if { (ac_try="$ac_link"
19041 case "(($ac_try" in
19042   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19043   *) ac_try_echo=$ac_try;;
19044 esac
19045 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19046   (eval "$ac_link") 2>&5
19047   ac_status=$?
19048   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19049   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19050   { (case "(($ac_try" in
19051   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19052   *) ac_try_echo=$ac_try;;
19053 esac
19054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19055   (eval "$ac_try") 2>&5
19056   ac_status=$?
19057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19058   (exit $ac_status); }; }; then
19059   llvm_cv_c_printf_a=yes
19060 else
19061   echo "$as_me: program exited with status $ac_status" >&5
19062 echo "$as_me: failed program was:" >&5
19063 sed 's/^/| /' conftest.$ac_ext >&5
19064
19065 ( exit $ac_status )
19066 llvmac_cv_c_printf_a=no
19067 fi
19068 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19069 fi
19070
19071
19072  ac_ext=c
19073 ac_cpp='$CPP $CPPFLAGS'
19074 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19075 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19076 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19077
19078 fi
19079 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
19080 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
19081  if test "$llvm_cv_c_printf_a" = "yes"; then
19082
19083 cat >>confdefs.h <<\_ACEOF
19084 #define HAVE_PRINTF_A 1
19085 _ACEOF
19086
19087  fi
19088
19089
19090 { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
19091 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
19092 if test "${ac_cv_func_rand48+set}" = set; then
19093   echo $ECHO_N "(cached) $ECHO_C" >&6
19094 else
19095   ac_ext=cpp
19096 ac_cpp='$CXXCPP $CPPFLAGS'
19097 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19098 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19099 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19100
19101    cat >conftest.$ac_ext <<_ACEOF
19102 /* confdefs.h.  */
19103 _ACEOF
19104 cat confdefs.h >>conftest.$ac_ext
19105 cat >>conftest.$ac_ext <<_ACEOF
19106 /* end confdefs.h.  */
19107 #include <stdlib.h>
19108 int
19109 main ()
19110 {
19111 srand48(0);lrand48();drand48();
19112   ;
19113   return 0;
19114 }
19115 _ACEOF
19116 rm -f conftest.$ac_objext
19117 if { (ac_try="$ac_compile"
19118 case "(($ac_try" in
19119   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19120   *) ac_try_echo=$ac_try;;
19121 esac
19122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19123   (eval "$ac_compile") 2>conftest.er1
19124   ac_status=$?
19125   grep -v '^ *+' conftest.er1 >conftest.err
19126   rm -f conftest.er1
19127   cat conftest.err >&5
19128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19129   (exit $ac_status); } &&
19130          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19131   { (case "(($ac_try" in
19132   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19133   *) ac_try_echo=$ac_try;;
19134 esac
19135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19136   (eval "$ac_try") 2>&5
19137   ac_status=$?
19138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19139   (exit $ac_status); }; } &&
19140          { ac_try='test -s conftest.$ac_objext'
19141   { (case "(($ac_try" in
19142   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19143   *) ac_try_echo=$ac_try;;
19144 esac
19145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19146   (eval "$ac_try") 2>&5
19147   ac_status=$?
19148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19149   (exit $ac_status); }; }; then
19150   ac_cv_func_rand48=yes
19151 else
19152   echo "$as_me: failed program was:" >&5
19153 sed 's/^/| /' conftest.$ac_ext >&5
19154
19155         ac_cv_func_rand48=no
19156 fi
19157
19158 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19159   ac_ext=c
19160 ac_cpp='$CPP $CPPFLAGS'
19161 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19162 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19163 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19164
19165 fi
19166 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
19167 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
19168
19169 if test "$ac_cv_func_rand48" = "yes" ; then
19170
19171 cat >>confdefs.h <<\_ACEOF
19172 #define HAVE_RAND48 1
19173 _ACEOF
19174
19175 fi
19176
19177
19178
19179 { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
19180 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
19181 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
19182   echo $ECHO_N "(cached) $ECHO_C" >&6
19183 else
19184   ac_ext=cpp
19185 ac_cpp='$CXXCPP $CPPFLAGS'
19186 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19187 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19188 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19189
19190    cat >conftest.$ac_ext <<_ACEOF
19191 /* confdefs.h.  */
19192 _ACEOF
19193 cat confdefs.h >>conftest.$ac_ext
19194 cat >>conftest.$ac_ext <<_ACEOF
19195 /* end confdefs.h.  */
19196 #include <math.h>
19197 int
19198 main ()
19199 {
19200 float f; isnan(f);
19201   ;
19202   return 0;
19203 }
19204 _ACEOF
19205 rm -f conftest.$ac_objext
19206 if { (ac_try="$ac_compile"
19207 case "(($ac_try" in
19208   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19209   *) ac_try_echo=$ac_try;;
19210 esac
19211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19212   (eval "$ac_compile") 2>conftest.er1
19213   ac_status=$?
19214   grep -v '^ *+' conftest.er1 >conftest.err
19215   rm -f conftest.er1
19216   cat conftest.err >&5
19217   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19218   (exit $ac_status); } &&
19219          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19220   { (case "(($ac_try" in
19221   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19222   *) ac_try_echo=$ac_try;;
19223 esac
19224 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19225   (eval "$ac_try") 2>&5
19226   ac_status=$?
19227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19228   (exit $ac_status); }; } &&
19229          { ac_try='test -s conftest.$ac_objext'
19230   { (case "(($ac_try" in
19231   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19232   *) ac_try_echo=$ac_try;;
19233 esac
19234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19235   (eval "$ac_try") 2>&5
19236   ac_status=$?
19237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19238   (exit $ac_status); }; }; then
19239   ac_cv_func_isnan_in_math_h=yes
19240 else
19241   echo "$as_me: failed program was:" >&5
19242 sed 's/^/| /' conftest.$ac_ext >&5
19243
19244         ac_cv_func_isnan_in_math_h=no
19245 fi
19246
19247 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19248   ac_ext=c
19249 ac_cpp='$CPP $CPPFLAGS'
19250 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19251 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19252 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19253
19254 fi
19255 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
19256 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
19257
19258
19259 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
19260
19261 cat >>confdefs.h <<\_ACEOF
19262 #define HAVE_ISNAN_IN_MATH_H 1
19263 _ACEOF
19264
19265 fi
19266
19267 { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
19268 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
19269 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
19270   echo $ECHO_N "(cached) $ECHO_C" >&6
19271 else
19272   ac_ext=cpp
19273 ac_cpp='$CXXCPP $CPPFLAGS'
19274 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19275 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19276 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19277
19278    cat >conftest.$ac_ext <<_ACEOF
19279 /* confdefs.h.  */
19280 _ACEOF
19281 cat confdefs.h >>conftest.$ac_ext
19282 cat >>conftest.$ac_ext <<_ACEOF
19283 /* end confdefs.h.  */
19284 #include <cmath>
19285 int
19286 main ()
19287 {
19288 float f; isnan(f);
19289   ;
19290   return 0;
19291 }
19292 _ACEOF
19293 rm -f conftest.$ac_objext
19294 if { (ac_try="$ac_compile"
19295 case "(($ac_try" in
19296   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19297   *) ac_try_echo=$ac_try;;
19298 esac
19299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19300   (eval "$ac_compile") 2>conftest.er1
19301   ac_status=$?
19302   grep -v '^ *+' conftest.er1 >conftest.err
19303   rm -f conftest.er1
19304   cat conftest.err >&5
19305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19306   (exit $ac_status); } &&
19307          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19308   { (case "(($ac_try" in
19309   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19310   *) ac_try_echo=$ac_try;;
19311 esac
19312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19313   (eval "$ac_try") 2>&5
19314   ac_status=$?
19315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19316   (exit $ac_status); }; } &&
19317          { ac_try='test -s conftest.$ac_objext'
19318   { (case "(($ac_try" in
19319   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19320   *) ac_try_echo=$ac_try;;
19321 esac
19322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19323   (eval "$ac_try") 2>&5
19324   ac_status=$?
19325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19326   (exit $ac_status); }; }; then
19327   ac_cv_func_isnan_in_cmath=yes
19328 else
19329   echo "$as_me: failed program was:" >&5
19330 sed 's/^/| /' conftest.$ac_ext >&5
19331
19332         ac_cv_func_isnan_in_cmath=no
19333 fi
19334
19335 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19336   ac_ext=c
19337 ac_cpp='$CPP $CPPFLAGS'
19338 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19339 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19340 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19341
19342 fi
19343 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
19344 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
19345
19346 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
19347
19348 cat >>confdefs.h <<\_ACEOF
19349 #define HAVE_ISNAN_IN_CMATH 1
19350 _ACEOF
19351
19352 fi
19353
19354 { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
19355 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
19356 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
19357   echo $ECHO_N "(cached) $ECHO_C" >&6
19358 else
19359   ac_ext=cpp
19360 ac_cpp='$CXXCPP $CPPFLAGS'
19361 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19362 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19363 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19364
19365    cat >conftest.$ac_ext <<_ACEOF
19366 /* confdefs.h.  */
19367 _ACEOF
19368 cat confdefs.h >>conftest.$ac_ext
19369 cat >>conftest.$ac_ext <<_ACEOF
19370 /* end confdefs.h.  */
19371 #include <cmath>
19372 int
19373 main ()
19374 {
19375 float f; std::isnan(f);
19376   ;
19377   return 0;
19378 }
19379 _ACEOF
19380 rm -f conftest.$ac_objext
19381 if { (ac_try="$ac_compile"
19382 case "(($ac_try" in
19383   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19384   *) ac_try_echo=$ac_try;;
19385 esac
19386 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19387   (eval "$ac_compile") 2>conftest.er1
19388   ac_status=$?
19389   grep -v '^ *+' conftest.er1 >conftest.err
19390   rm -f conftest.er1
19391   cat conftest.err >&5
19392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19393   (exit $ac_status); } &&
19394          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19395   { (case "(($ac_try" in
19396   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19397   *) ac_try_echo=$ac_try;;
19398 esac
19399 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19400   (eval "$ac_try") 2>&5
19401   ac_status=$?
19402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19403   (exit $ac_status); }; } &&
19404          { ac_try='test -s conftest.$ac_objext'
19405   { (case "(($ac_try" in
19406   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19407   *) ac_try_echo=$ac_try;;
19408 esac
19409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19410   (eval "$ac_try") 2>&5
19411   ac_status=$?
19412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19413   (exit $ac_status); }; }; then
19414   ac_cv_func_std_isnan_in_cmath=yes
19415 else
19416   echo "$as_me: failed program was:" >&5
19417 sed 's/^/| /' conftest.$ac_ext >&5
19418
19419         ac_cv_func_std_isnan_in_cmath=no
19420 fi
19421
19422 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19423   ac_ext=c
19424 ac_cpp='$CPP $CPPFLAGS'
19425 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19426 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19427 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19428
19429 fi
19430 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
19431 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
19432
19433 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
19434
19435 cat >>confdefs.h <<\_ACEOF
19436 #define HAVE_STD_ISNAN_IN_CMATH 1
19437 _ACEOF
19438
19439 fi
19440
19441
19442 { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
19443 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
19444 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
19445   echo $ECHO_N "(cached) $ECHO_C" >&6
19446 else
19447   ac_ext=cpp
19448 ac_cpp='$CXXCPP $CPPFLAGS'
19449 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19450 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19451 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19452
19453    cat >conftest.$ac_ext <<_ACEOF
19454 /* confdefs.h.  */
19455 _ACEOF
19456 cat confdefs.h >>conftest.$ac_ext
19457 cat >>conftest.$ac_ext <<_ACEOF
19458 /* end confdefs.h.  */
19459 #include <math.h>
19460 int
19461 main ()
19462 {
19463 float f; isinf(f);
19464   ;
19465   return 0;
19466 }
19467 _ACEOF
19468 rm -f conftest.$ac_objext
19469 if { (ac_try="$ac_compile"
19470 case "(($ac_try" in
19471   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19472   *) ac_try_echo=$ac_try;;
19473 esac
19474 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19475   (eval "$ac_compile") 2>conftest.er1
19476   ac_status=$?
19477   grep -v '^ *+' conftest.er1 >conftest.err
19478   rm -f conftest.er1
19479   cat conftest.err >&5
19480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19481   (exit $ac_status); } &&
19482          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19483   { (case "(($ac_try" in
19484   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19485   *) ac_try_echo=$ac_try;;
19486 esac
19487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19488   (eval "$ac_try") 2>&5
19489   ac_status=$?
19490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19491   (exit $ac_status); }; } &&
19492          { ac_try='test -s conftest.$ac_objext'
19493   { (case "(($ac_try" in
19494   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19495   *) ac_try_echo=$ac_try;;
19496 esac
19497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19498   (eval "$ac_try") 2>&5
19499   ac_status=$?
19500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19501   (exit $ac_status); }; }; then
19502   ac_cv_func_isinf_in_math_h=yes
19503 else
19504   echo "$as_me: failed program was:" >&5
19505 sed 's/^/| /' conftest.$ac_ext >&5
19506
19507         ac_cv_func_isinf_in_math_h=no
19508 fi
19509
19510 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19511   ac_ext=c
19512 ac_cpp='$CPP $CPPFLAGS'
19513 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19514 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19515 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19516
19517 fi
19518 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
19519 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
19520
19521 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
19522
19523 cat >>confdefs.h <<\_ACEOF
19524 #define HAVE_ISINF_IN_MATH_H 1
19525 _ACEOF
19526
19527 fi
19528
19529 { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
19530 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
19531 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
19532   echo $ECHO_N "(cached) $ECHO_C" >&6
19533 else
19534   ac_ext=cpp
19535 ac_cpp='$CXXCPP $CPPFLAGS'
19536 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19537 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19538 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19539
19540    cat >conftest.$ac_ext <<_ACEOF
19541 /* confdefs.h.  */
19542 _ACEOF
19543 cat confdefs.h >>conftest.$ac_ext
19544 cat >>conftest.$ac_ext <<_ACEOF
19545 /* end confdefs.h.  */
19546 #include <cmath>
19547 int
19548 main ()
19549 {
19550 float f; isinf(f);
19551   ;
19552   return 0;
19553 }
19554 _ACEOF
19555 rm -f conftest.$ac_objext
19556 if { (ac_try="$ac_compile"
19557 case "(($ac_try" in
19558   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19559   *) ac_try_echo=$ac_try;;
19560 esac
19561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19562   (eval "$ac_compile") 2>conftest.er1
19563   ac_status=$?
19564   grep -v '^ *+' conftest.er1 >conftest.err
19565   rm -f conftest.er1
19566   cat conftest.err >&5
19567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19568   (exit $ac_status); } &&
19569          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19570   { (case "(($ac_try" in
19571   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19572   *) ac_try_echo=$ac_try;;
19573 esac
19574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19575   (eval "$ac_try") 2>&5
19576   ac_status=$?
19577   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19578   (exit $ac_status); }; } &&
19579          { ac_try='test -s conftest.$ac_objext'
19580   { (case "(($ac_try" in
19581   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19582   *) ac_try_echo=$ac_try;;
19583 esac
19584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19585   (eval "$ac_try") 2>&5
19586   ac_status=$?
19587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19588   (exit $ac_status); }; }; then
19589   ac_cv_func_isinf_in_cmath=yes
19590 else
19591   echo "$as_me: failed program was:" >&5
19592 sed 's/^/| /' conftest.$ac_ext >&5
19593
19594         ac_cv_func_isinf_in_cmath=no
19595 fi
19596
19597 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19598   ac_ext=c
19599 ac_cpp='$CPP $CPPFLAGS'
19600 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19601 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19602 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19603
19604 fi
19605 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
19606 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
19607
19608 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
19609
19610 cat >>confdefs.h <<\_ACEOF
19611 #define HAVE_ISINF_IN_CMATH 1
19612 _ACEOF
19613
19614 fi
19615
19616 { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
19617 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
19618 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
19619   echo $ECHO_N "(cached) $ECHO_C" >&6
19620 else
19621   ac_ext=cpp
19622 ac_cpp='$CXXCPP $CPPFLAGS'
19623 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19624 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19625 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19626
19627    cat >conftest.$ac_ext <<_ACEOF
19628 /* confdefs.h.  */
19629 _ACEOF
19630 cat confdefs.h >>conftest.$ac_ext
19631 cat >>conftest.$ac_ext <<_ACEOF
19632 /* end confdefs.h.  */
19633 #include <cmath>
19634 int
19635 main ()
19636 {
19637 float f; std::isinf(f)}
19638   ;
19639   return 0;
19640 }
19641 _ACEOF
19642 rm -f conftest.$ac_objext
19643 if { (ac_try="$ac_compile"
19644 case "(($ac_try" in
19645   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19646   *) ac_try_echo=$ac_try;;
19647 esac
19648 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19649   (eval "$ac_compile") 2>conftest.er1
19650   ac_status=$?
19651   grep -v '^ *+' conftest.er1 >conftest.err
19652   rm -f conftest.er1
19653   cat conftest.err >&5
19654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19655   (exit $ac_status); } &&
19656          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19657   { (case "(($ac_try" in
19658   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19659   *) ac_try_echo=$ac_try;;
19660 esac
19661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19662   (eval "$ac_try") 2>&5
19663   ac_status=$?
19664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19665   (exit $ac_status); }; } &&
19666          { ac_try='test -s conftest.$ac_objext'
19667   { (case "(($ac_try" in
19668   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19669   *) ac_try_echo=$ac_try;;
19670 esac
19671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19672   (eval "$ac_try") 2>&5
19673   ac_status=$?
19674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19675   (exit $ac_status); }; }; then
19676   ac_cv_func_std_isinf_in_cmath=yes
19677 else
19678   echo "$as_me: failed program was:" >&5
19679 sed 's/^/| /' conftest.$ac_ext >&5
19680
19681         ac_cv_func_std_isinf_in_cmath=no
19682 fi
19683
19684 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19685   ac_ext=c
19686 ac_cpp='$CPP $CPPFLAGS'
19687 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19688 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19689 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19690
19691 fi
19692 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
19693 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
19694
19695 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
19696
19697 cat >>confdefs.h <<\_ACEOF
19698 #define HAVE_STD_ISINF_IN_CMATH 1
19699 _ACEOF
19700
19701 fi
19702
19703 { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
19704 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
19705 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
19706   echo $ECHO_N "(cached) $ECHO_C" >&6
19707 else
19708   ac_ext=cpp
19709 ac_cpp='$CXXCPP $CPPFLAGS'
19710 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19711 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19712 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19713
19714    cat >conftest.$ac_ext <<_ACEOF
19715 /* confdefs.h.  */
19716 _ACEOF
19717 cat confdefs.h >>conftest.$ac_ext
19718 cat >>conftest.$ac_ext <<_ACEOF
19719 /* end confdefs.h.  */
19720 #include <ieeefp.h>
19721 int
19722 main ()
19723 {
19724 float f; finite(f);
19725   ;
19726   return 0;
19727 }
19728 _ACEOF
19729 rm -f conftest.$ac_objext
19730 if { (ac_try="$ac_compile"
19731 case "(($ac_try" in
19732   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19733   *) ac_try_echo=$ac_try;;
19734 esac
19735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19736   (eval "$ac_compile") 2>conftest.er1
19737   ac_status=$?
19738   grep -v '^ *+' conftest.er1 >conftest.err
19739   rm -f conftest.er1
19740   cat conftest.err >&5
19741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19742   (exit $ac_status); } &&
19743          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19744   { (case "(($ac_try" in
19745   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19746   *) ac_try_echo=$ac_try;;
19747 esac
19748 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19749   (eval "$ac_try") 2>&5
19750   ac_status=$?
19751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19752   (exit $ac_status); }; } &&
19753          { ac_try='test -s conftest.$ac_objext'
19754   { (case "(($ac_try" in
19755   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19756   *) ac_try_echo=$ac_try;;
19757 esac
19758 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19759   (eval "$ac_try") 2>&5
19760   ac_status=$?
19761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19762   (exit $ac_status); }; }; then
19763   ac_cv_func_finite_in_ieeefp_h=yes
19764 else
19765   echo "$as_me: failed program was:" >&5
19766 sed 's/^/| /' conftest.$ac_ext >&5
19767
19768         ac_cv_func_finite_in_ieeefp_h=no
19769 fi
19770
19771 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19772   ac_ext=c
19773 ac_cpp='$CPP $CPPFLAGS'
19774 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19775 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19776 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19777
19778 fi
19779 { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
19780 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
19781
19782 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
19783
19784 cat >>confdefs.h <<\_ACEOF
19785 #define HAVE_FINITE_IN_IEEEFP_H 1
19786 _ACEOF
19787
19788 fi
19789
19790
19791
19792 if test "$llvm_cv_platform_type" = "Unix" ; then
19793
19794
19795 for ac_header in stdlib.h unistd.h
19796 do
19797 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19798 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19799   { echo "$as_me:$LINENO: checking for $ac_header" >&5
19800 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19801 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19802   echo $ECHO_N "(cached) $ECHO_C" >&6
19803 fi
19804 ac_res=`eval echo '${'$as_ac_Header'}'`
19805                { echo "$as_me:$LINENO: result: $ac_res" >&5
19806 echo "${ECHO_T}$ac_res" >&6; }
19807 else
19808   # Is the header compilable?
19809 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
19810 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19811 cat >conftest.$ac_ext <<_ACEOF
19812 /* confdefs.h.  */
19813 _ACEOF
19814 cat confdefs.h >>conftest.$ac_ext
19815 cat >>conftest.$ac_ext <<_ACEOF
19816 /* end confdefs.h.  */
19817 $ac_includes_default
19818 #include <$ac_header>
19819 _ACEOF
19820 rm -f conftest.$ac_objext
19821 if { (ac_try="$ac_compile"
19822 case "(($ac_try" in
19823   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19824   *) ac_try_echo=$ac_try;;
19825 esac
19826 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19827   (eval "$ac_compile") 2>conftest.er1
19828   ac_status=$?
19829   grep -v '^ *+' conftest.er1 >conftest.err
19830   rm -f conftest.er1
19831   cat conftest.err >&5
19832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19833   (exit $ac_status); } &&
19834          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19835   { (case "(($ac_try" in
19836   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19837   *) ac_try_echo=$ac_try;;
19838 esac
19839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19840   (eval "$ac_try") 2>&5
19841   ac_status=$?
19842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19843   (exit $ac_status); }; } &&
19844          { ac_try='test -s conftest.$ac_objext'
19845   { (case "(($ac_try" in
19846   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19847   *) ac_try_echo=$ac_try;;
19848 esac
19849 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19850   (eval "$ac_try") 2>&5
19851   ac_status=$?
19852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19853   (exit $ac_status); }; }; then
19854   ac_header_compiler=yes
19855 else
19856   echo "$as_me: failed program was:" >&5
19857 sed 's/^/| /' conftest.$ac_ext >&5
19858
19859         ac_header_compiler=no
19860 fi
19861
19862 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19863 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19864 echo "${ECHO_T}$ac_header_compiler" >&6; }
19865
19866 # Is the header present?
19867 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
19868 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
19869 cat >conftest.$ac_ext <<_ACEOF
19870 /* confdefs.h.  */
19871 _ACEOF
19872 cat confdefs.h >>conftest.$ac_ext
19873 cat >>conftest.$ac_ext <<_ACEOF
19874 /* end confdefs.h.  */
19875 #include <$ac_header>
19876 _ACEOF
19877 if { (ac_try="$ac_cpp conftest.$ac_ext"
19878 case "(($ac_try" in
19879   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19880   *) ac_try_echo=$ac_try;;
19881 esac
19882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19883   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19884   ac_status=$?
19885   grep -v '^ *+' conftest.er1 >conftest.err
19886   rm -f conftest.er1
19887   cat conftest.err >&5
19888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19889   (exit $ac_status); } >/dev/null; then
19890   if test -s conftest.err; then
19891     ac_cpp_err=$ac_c_preproc_warn_flag
19892     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19893   else
19894     ac_cpp_err=
19895   fi
19896 else
19897   ac_cpp_err=yes
19898 fi
19899 if test -z "$ac_cpp_err"; then
19900   ac_header_preproc=yes
19901 else
19902   echo "$as_me: failed program was:" >&5
19903 sed 's/^/| /' conftest.$ac_ext >&5
19904
19905   ac_header_preproc=no
19906 fi
19907
19908 rm -f conftest.err conftest.$ac_ext
19909 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19910 echo "${ECHO_T}$ac_header_preproc" >&6; }
19911
19912 # So?  What about this header?
19913 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19914   yes:no: )
19915     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19916 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19917     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19918 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19919     ac_header_preproc=yes
19920     ;;
19921   no:yes:* )
19922     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19923 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19924     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
19925 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
19926     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19927 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19928     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
19929 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
19930     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19931 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19932     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19933 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19934     ( cat <<\_ASBOX
19935 ## ----------------------------------- ##
19936 ## Report this to llvmbugs@cs.uiuc.edu ##
19937 ## ----------------------------------- ##
19938 _ASBOX
19939      ) | sed "s/^/$as_me: WARNING:     /" >&2
19940     ;;
19941 esac
19942 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19943 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19944 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19945   echo $ECHO_N "(cached) $ECHO_C" >&6
19946 else
19947   eval "$as_ac_Header=\$ac_header_preproc"
19948 fi
19949 ac_res=`eval echo '${'$as_ac_Header'}'`
19950                { echo "$as_me:$LINENO: result: $ac_res" >&5
19951 echo "${ECHO_T}$ac_res" >&6; }
19952
19953 fi
19954 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19955   cat >>confdefs.h <<_ACEOF
19956 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19957 _ACEOF
19958
19959 fi
19960
19961 done
19962
19963
19964 for ac_func in getpagesize
19965 do
19966 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19967 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19968 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19969 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19970   echo $ECHO_N "(cached) $ECHO_C" >&6
19971 else
19972   cat >conftest.$ac_ext <<_ACEOF
19973 /* confdefs.h.  */
19974 _ACEOF
19975 cat confdefs.h >>conftest.$ac_ext
19976 cat >>conftest.$ac_ext <<_ACEOF
19977 /* end confdefs.h.  */
19978 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19979    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19980 #define $ac_func innocuous_$ac_func
19981
19982 /* System header to define __stub macros and hopefully few prototypes,
19983     which can conflict with char $ac_func (); below.
19984     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19985     <limits.h> exists even on freestanding compilers.  */
19986
19987 #ifdef __STDC__
19988 # include <limits.h>
19989 #else
19990 # include <assert.h>
19991 #endif
19992
19993 #undef $ac_func
19994
19995 /* Override any GCC internal prototype to avoid an error.
19996    Use char because int might match the return type of a GCC
19997    builtin and then its argument prototype would still apply.  */
19998 #ifdef __cplusplus
19999 extern "C"
20000 #endif
20001 char $ac_func ();
20002 /* The GNU C library defines this for functions which it implements
20003     to always fail with ENOSYS.  Some functions are actually named
20004     something starting with __ and the normal name is an alias.  */
20005 #if defined __stub_$ac_func || defined __stub___$ac_func
20006 choke me
20007 #endif
20008
20009 int
20010 main ()
20011 {
20012 return $ac_func ();
20013   ;
20014   return 0;
20015 }
20016 _ACEOF
20017 rm -f conftest.$ac_objext conftest$ac_exeext
20018 if { (ac_try="$ac_link"
20019 case "(($ac_try" in
20020   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20021   *) ac_try_echo=$ac_try;;
20022 esac
20023 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20024   (eval "$ac_link") 2>conftest.er1
20025   ac_status=$?
20026   grep -v '^ *+' conftest.er1 >conftest.err
20027   rm -f conftest.er1
20028   cat conftest.err >&5
20029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20030   (exit $ac_status); } &&
20031          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20032   { (case "(($ac_try" in
20033   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20034   *) ac_try_echo=$ac_try;;
20035 esac
20036 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20037   (eval "$ac_try") 2>&5
20038   ac_status=$?
20039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20040   (exit $ac_status); }; } &&
20041          { ac_try='test -s conftest$ac_exeext'
20042   { (case "(($ac_try" in
20043   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20044   *) ac_try_echo=$ac_try;;
20045 esac
20046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20047   (eval "$ac_try") 2>&5
20048   ac_status=$?
20049   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20050   (exit $ac_status); }; }; then
20051   eval "$as_ac_var=yes"
20052 else
20053   echo "$as_me: failed program was:" >&5
20054 sed 's/^/| /' conftest.$ac_ext >&5
20055
20056         eval "$as_ac_var=no"
20057 fi
20058
20059 rm -f core conftest.err conftest.$ac_objext \
20060       conftest$ac_exeext conftest.$ac_ext
20061 fi
20062 ac_res=`eval echo '${'$as_ac_var'}'`
20063                { echo "$as_me:$LINENO: result: $ac_res" >&5
20064 echo "${ECHO_T}$ac_res" >&6; }
20065 if test `eval echo '${'$as_ac_var'}'` = yes; then
20066   cat >>confdefs.h <<_ACEOF
20067 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20068 _ACEOF
20069
20070 fi
20071 done
20072
20073 { echo "$as_me:$LINENO: checking for working mmap" >&5
20074 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
20075 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
20076   echo $ECHO_N "(cached) $ECHO_C" >&6
20077 else
20078   if test "$cross_compiling" = yes; then
20079   ac_cv_func_mmap_fixed_mapped=no
20080 else
20081   cat >conftest.$ac_ext <<_ACEOF
20082 /* confdefs.h.  */
20083 _ACEOF
20084 cat confdefs.h >>conftest.$ac_ext
20085 cat >>conftest.$ac_ext <<_ACEOF
20086 /* end confdefs.h.  */
20087 $ac_includes_default
20088 /* malloc might have been renamed as rpl_malloc. */
20089 #undef malloc
20090
20091 /* Thanks to Mike Haertel and Jim Avera for this test.
20092    Here is a matrix of mmap possibilities:
20093         mmap private not fixed
20094         mmap private fixed at somewhere currently unmapped
20095         mmap private fixed at somewhere already mapped
20096         mmap shared not fixed
20097         mmap shared fixed at somewhere currently unmapped
20098         mmap shared fixed at somewhere already mapped
20099    For private mappings, we should verify that changes cannot be read()
20100    back from the file, nor mmap's back from the file at a different
20101    address.  (There have been systems where private was not correctly
20102    implemented like the infamous i386 svr4.0, and systems where the
20103    VM page cache was not coherent with the file system buffer cache
20104    like early versions of FreeBSD and possibly contemporary NetBSD.)
20105    For shared mappings, we should conversely verify that changes get
20106    propagated back to all the places they're supposed to be.
20107
20108    Grep wants private fixed already mapped.
20109    The main things grep needs to know about mmap are:
20110    * does it exist and is it safe to write into the mmap'd area
20111    * how to use it (BSD variants)  */
20112
20113 #include <fcntl.h>
20114 #include <sys/mman.h>
20115
20116 #if !STDC_HEADERS && !HAVE_STDLIB_H
20117 char *malloc ();
20118 #endif
20119
20120 /* This mess was copied from the GNU getpagesize.h.  */
20121 #if !HAVE_GETPAGESIZE
20122 /* Assume that all systems that can run configure have sys/param.h.  */
20123 # if !HAVE_SYS_PARAM_H
20124 #  define HAVE_SYS_PARAM_H 1
20125 # endif
20126
20127 # ifdef _SC_PAGESIZE
20128 #  define getpagesize() sysconf(_SC_PAGESIZE)
20129 # else /* no _SC_PAGESIZE */
20130 #  if HAVE_SYS_PARAM_H
20131 #   include <sys/param.h>
20132 #   ifdef EXEC_PAGESIZE
20133 #    define getpagesize() EXEC_PAGESIZE
20134 #   else /* no EXEC_PAGESIZE */
20135 #    ifdef NBPG
20136 #     define getpagesize() NBPG * CLSIZE
20137 #     ifndef CLSIZE
20138 #      define CLSIZE 1
20139 #     endif /* no CLSIZE */
20140 #    else /* no NBPG */
20141 #     ifdef NBPC
20142 #      define getpagesize() NBPC
20143 #     else /* no NBPC */
20144 #      ifdef PAGESIZE
20145 #       define getpagesize() PAGESIZE
20146 #      endif /* PAGESIZE */
20147 #     endif /* no NBPC */
20148 #    endif /* no NBPG */
20149 #   endif /* no EXEC_PAGESIZE */
20150 #  else /* no HAVE_SYS_PARAM_H */
20151 #   define getpagesize() 8192   /* punt totally */
20152 #  endif /* no HAVE_SYS_PARAM_H */
20153 # endif /* no _SC_PAGESIZE */
20154
20155 #endif /* no HAVE_GETPAGESIZE */
20156
20157 int
20158 main ()
20159 {
20160   char *data, *data2, *data3;
20161   int i, pagesize;
20162   int fd;
20163
20164   pagesize = getpagesize ();
20165
20166   /* First, make a file with some known garbage in it. */
20167   data = (char *) malloc (pagesize);
20168   if (!data)
20169     return 1;
20170   for (i = 0; i < pagesize; ++i)
20171     *(data + i) = rand ();
20172   umask (0);
20173   fd = creat ("conftest.mmap", 0600);
20174   if (fd < 0)
20175     return 1;
20176   if (write (fd, data, pagesize) != pagesize)
20177     return 1;
20178   close (fd);
20179
20180   /* Next, try to mmap the file at a fixed address which already has
20181      something else allocated at it.  If we can, also make sure that
20182      we see the same garbage.  */
20183   fd = open ("conftest.mmap", O_RDWR);
20184   if (fd < 0)
20185     return 1;
20186   data2 = (char *) malloc (2 * pagesize);
20187   if (!data2)
20188     return 1;
20189   data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
20190   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
20191                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
20192     return 1;
20193   for (i = 0; i < pagesize; ++i)
20194     if (*(data + i) != *(data2 + i))
20195       return 1;
20196
20197   /* Finally, make sure that changes to the mapped area do not
20198      percolate back to the file as seen by read().  (This is a bug on
20199      some variants of i386 svr4.0.)  */
20200   for (i = 0; i < pagesize; ++i)
20201     *(data2 + i) = *(data2 + i) + 1;
20202   data3 = (char *) malloc (pagesize);
20203   if (!data3)
20204     return 1;
20205   if (read (fd, data3, pagesize) != pagesize)
20206     return 1;
20207   for (i = 0; i < pagesize; ++i)
20208     if (*(data + i) != *(data3 + i))
20209       return 1;
20210   close (fd);
20211   return 0;
20212 }
20213 _ACEOF
20214 rm -f conftest$ac_exeext
20215 if { (ac_try="$ac_link"
20216 case "(($ac_try" in
20217   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20218   *) ac_try_echo=$ac_try;;
20219 esac
20220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20221   (eval "$ac_link") 2>&5
20222   ac_status=$?
20223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20224   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20225   { (case "(($ac_try" in
20226   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20227   *) ac_try_echo=$ac_try;;
20228 esac
20229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20230   (eval "$ac_try") 2>&5
20231   ac_status=$?
20232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20233   (exit $ac_status); }; }; then
20234   ac_cv_func_mmap_fixed_mapped=yes
20235 else
20236   echo "$as_me: program exited with status $ac_status" >&5
20237 echo "$as_me: failed program was:" >&5
20238 sed 's/^/| /' conftest.$ac_ext >&5
20239
20240 ( exit $ac_status )
20241 ac_cv_func_mmap_fixed_mapped=no
20242 fi
20243 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20244 fi
20245
20246
20247 fi
20248 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
20249 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
20250 if test $ac_cv_func_mmap_fixed_mapped = yes; then
20251
20252 cat >>confdefs.h <<\_ACEOF
20253 #define HAVE_MMAP 1
20254 _ACEOF
20255
20256 fi
20257 rm -f conftest.mmap
20258
20259   { echo "$as_me:$LINENO: checking for mmap of files" >&5
20260 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
20261 if test "${ac_cv_func_mmap_file+set}" = set; then
20262   echo $ECHO_N "(cached) $ECHO_C" >&6
20263 else
20264    ac_ext=c
20265 ac_cpp='$CPP $CPPFLAGS'
20266 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20267 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20268 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20269
20270   if test "$cross_compiling" = yes; then
20271   ac_cv_func_mmap_file=no
20272 else
20273   cat >conftest.$ac_ext <<_ACEOF
20274
20275     /* confdefs.h.  */
20276 _ACEOF
20277 cat confdefs.h >>conftest.$ac_ext
20278 cat >>conftest.$ac_ext <<_ACEOF
20279 /* end confdefs.h.  */
20280
20281 #include <sys/types.h>
20282 #include <sys/mman.h>
20283 #include <fcntl.h>
20284
20285 int
20286 main ()
20287 {
20288
20289   int fd;
20290   fd = creat ("foo",0777);
20291   fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
20292   unlink ("foo");
20293   return (fd != (int) MAP_FAILED);
20294   ;
20295   return 0;
20296 }
20297 _ACEOF
20298 rm -f conftest$ac_exeext
20299 if { (ac_try="$ac_link"
20300 case "(($ac_try" in
20301   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20302   *) ac_try_echo=$ac_try;;
20303 esac
20304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20305   (eval "$ac_link") 2>&5
20306   ac_status=$?
20307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20308   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20309   { (case "(($ac_try" in
20310   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20311   *) ac_try_echo=$ac_try;;
20312 esac
20313 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20314   (eval "$ac_try") 2>&5
20315   ac_status=$?
20316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20317   (exit $ac_status); }; }; then
20318   ac_cv_func_mmap_file=yes
20319 else
20320   echo "$as_me: program exited with status $ac_status" >&5
20321 echo "$as_me: failed program was:" >&5
20322 sed 's/^/| /' conftest.$ac_ext >&5
20323
20324 ( exit $ac_status )
20325 ac_cv_func_mmap_file=no
20326 fi
20327 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20328 fi
20329
20330
20331   ac_ext=c
20332 ac_cpp='$CPP $CPPFLAGS'
20333 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20334 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20335 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20336
20337
20338 fi
20339 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
20340 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
20341 if test "$ac_cv_func_mmap_file" = yes; then
20342
20343 cat >>confdefs.h <<\_ACEOF
20344 #define HAVE_MMAP_FILE
20345 _ACEOF
20346
20347    MMAP_FILE=yes
20348
20349 fi
20350
20351   { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
20352 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
20353 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
20354   echo $ECHO_N "(cached) $ECHO_C" >&6
20355 else
20356   if test "$llvm_cv_os_type" = "Interix" ; then
20357    ac_cv_need_dev_zero_for_mmap=yes
20358  else
20359    ac_cv_need_dev_zero_for_mmap=no
20360  fi
20361
20362 fi
20363 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
20364 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
20365 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
20366
20367 cat >>confdefs.h <<\_ACEOF
20368 #define NEED_DEV_ZERO_FOR_MMAP 1
20369 _ACEOF
20370
20371 fi
20372
20373   if test "$ac_cv_func_mmap_fixed_mapped" = "no"
20374   then
20375     { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
20376 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
20377   fi
20378   if test "$ac_cv_func_mmap_file" = "no"
20379   then
20380     { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
20381 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
20382   fi
20383 fi
20384
20385 { echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
20386 echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
20387 ac_ext=cpp
20388 ac_cpp='$CXXCPP $CPPFLAGS'
20389 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20390 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20391 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20392
20393 cat >conftest.$ac_ext <<_ACEOF
20394 /* confdefs.h.  */
20395 _ACEOF
20396 cat confdefs.h >>conftest.$ac_ext
20397 cat >>conftest.$ac_ext <<_ACEOF
20398 /* end confdefs.h.  */
20399 int main() {
20400         volatile unsigned long val = 1;
20401         __sync_synchronize();
20402         __sync_val_compare_and_swap(&val, 1, 0);
20403         __sync_add_and_fetch(&val, 1);
20404         __sync_sub_and_fetch(&val, 1);
20405         return 0;
20406       }
20407
20408 _ACEOF
20409 rm -f conftest.$ac_objext conftest$ac_exeext
20410 if { (ac_try="$ac_link"
20411 case "(($ac_try" in
20412   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20413   *) ac_try_echo=$ac_try;;
20414 esac
20415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20416   (eval "$ac_link") 2>conftest.er1
20417   ac_status=$?
20418   grep -v '^ *+' conftest.er1 >conftest.err
20419   rm -f conftest.er1
20420   cat conftest.err >&5
20421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20422   (exit $ac_status); } &&
20423          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20424   { (case "(($ac_try" in
20425   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20426   *) ac_try_echo=$ac_try;;
20427 esac
20428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20429   (eval "$ac_try") 2>&5
20430   ac_status=$?
20431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20432   (exit $ac_status); }; } &&
20433          { ac_try='test -s conftest$ac_exeext'
20434   { (case "(($ac_try" in
20435   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20436   *) ac_try_echo=$ac_try;;
20437 esac
20438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20439   (eval "$ac_try") 2>&5
20440   ac_status=$?
20441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20442   (exit $ac_status); }; }; then
20443   ac_ext=c
20444 ac_cpp='$CPP $CPPFLAGS'
20445 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20446 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20447 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20448
20449   { echo "$as_me:$LINENO: result: yes" >&5
20450 echo "${ECHO_T}yes" >&6; }
20451
20452 cat >>confdefs.h <<\_ACEOF
20453 #define LLVM_MULTITHREADED 1
20454 _ACEOF
20455
20456 else
20457   echo "$as_me: failed program was:" >&5
20458 sed 's/^/| /' conftest.$ac_ext >&5
20459
20460         { echo "$as_me:$LINENO: result: no" >&5
20461 echo "${ECHO_T}no" >&6; }
20462
20463 cat >>confdefs.h <<\_ACEOF
20464 #define LLVM_MULTITHREADED 0
20465 _ACEOF
20466
20467   { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
20468 echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
20469 fi
20470
20471 rm -f core conftest.err conftest.$ac_objext \
20472       conftest$ac_exeext conftest.$ac_ext
20473
20474
20475 if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
20476   { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
20477 echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
20478 if test "${llvm_cv_linux_mixed+set}" = set; then
20479   echo $ECHO_N "(cached) $ECHO_C" >&6
20480 else
20481    ac_ext=c
20482 ac_cpp='$CPP $CPPFLAGS'
20483 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20484 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20485 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20486
20487   cat >conftest.$ac_ext <<_ACEOF
20488 /* confdefs.h.  */
20489 _ACEOF
20490 cat confdefs.h >>conftest.$ac_ext
20491 cat >>conftest.$ac_ext <<_ACEOF
20492 /* end confdefs.h.  */
20493 #ifndef __x86_64__
20494        error: Not x86-64 even if uname says so!
20495       #endif
20496
20497 int
20498 main ()
20499 {
20500
20501   ;
20502   return 0;
20503 }
20504 _ACEOF
20505 rm -f conftest.$ac_objext
20506 if { (ac_try="$ac_compile"
20507 case "(($ac_try" in
20508   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20509   *) ac_try_echo=$ac_try;;
20510 esac
20511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20512   (eval "$ac_compile") 2>conftest.er1
20513   ac_status=$?
20514   grep -v '^ *+' conftest.er1 >conftest.err
20515   rm -f conftest.er1
20516   cat conftest.err >&5
20517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20518   (exit $ac_status); } &&
20519          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20520   { (case "(($ac_try" in
20521   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20522   *) ac_try_echo=$ac_try;;
20523 esac
20524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20525   (eval "$ac_try") 2>&5
20526   ac_status=$?
20527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20528   (exit $ac_status); }; } &&
20529          { ac_try='test -s conftest.$ac_objext'
20530   { (case "(($ac_try" in
20531   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20532   *) ac_try_echo=$ac_try;;
20533 esac
20534 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20535   (eval "$ac_try") 2>&5
20536   ac_status=$?
20537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20538   (exit $ac_status); }; }; then
20539   llvm_cv_linux_mixed=no
20540 else
20541   echo "$as_me: failed program was:" >&5
20542 sed 's/^/| /' conftest.$ac_ext >&5
20543
20544         llvm_cv_linux_mixed=yes
20545 fi
20546
20547 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20548   ac_ext=c
20549 ac_cpp='$CPP $CPPFLAGS'
20550 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20551 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20552 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20553
20554
20555 fi
20556 { echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
20557 echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
20558
20559   if test "$llvm_cv_linux_mixed" = "yes"; then
20560     llvm_cv_target_arch="x86"
20561     ARCH="x86"
20562   fi
20563 fi
20564
20565
20566 for ac_func in __dso_handle
20567 do
20568 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20569 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20570 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20571 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20572   echo $ECHO_N "(cached) $ECHO_C" >&6
20573 else
20574   cat >conftest.$ac_ext <<_ACEOF
20575 /* confdefs.h.  */
20576 _ACEOF
20577 cat confdefs.h >>conftest.$ac_ext
20578 cat >>conftest.$ac_ext <<_ACEOF
20579 /* end confdefs.h.  */
20580 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20581    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20582 #define $ac_func innocuous_$ac_func
20583
20584 /* System header to define __stub macros and hopefully few prototypes,
20585     which can conflict with char $ac_func (); below.
20586     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20587     <limits.h> exists even on freestanding compilers.  */
20588
20589 #ifdef __STDC__
20590 # include <limits.h>
20591 #else
20592 # include <assert.h>
20593 #endif
20594
20595 #undef $ac_func
20596
20597 /* Override any GCC internal prototype to avoid an error.
20598    Use char because int might match the return type of a GCC
20599    builtin and then its argument prototype would still apply.  */
20600 #ifdef __cplusplus
20601 extern "C"
20602 #endif
20603 char $ac_func ();
20604 /* The GNU C library defines this for functions which it implements
20605     to always fail with ENOSYS.  Some functions are actually named
20606     something starting with __ and the normal name is an alias.  */
20607 #if defined __stub_$ac_func || defined __stub___$ac_func
20608 choke me
20609 #endif
20610
20611 int
20612 main ()
20613 {
20614 return $ac_func ();
20615   ;
20616   return 0;
20617 }
20618 _ACEOF
20619 rm -f conftest.$ac_objext conftest$ac_exeext
20620 if { (ac_try="$ac_link"
20621 case "(($ac_try" in
20622   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20623   *) ac_try_echo=$ac_try;;
20624 esac
20625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20626   (eval "$ac_link") 2>conftest.er1
20627   ac_status=$?
20628   grep -v '^ *+' conftest.er1 >conftest.err
20629   rm -f conftest.er1
20630   cat conftest.err >&5
20631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20632   (exit $ac_status); } &&
20633          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20634   { (case "(($ac_try" in
20635   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20636   *) ac_try_echo=$ac_try;;
20637 esac
20638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20639   (eval "$ac_try") 2>&5
20640   ac_status=$?
20641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20642   (exit $ac_status); }; } &&
20643          { ac_try='test -s conftest$ac_exeext'
20644   { (case "(($ac_try" in
20645   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20646   *) ac_try_echo=$ac_try;;
20647 esac
20648 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20649   (eval "$ac_try") 2>&5
20650   ac_status=$?
20651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20652   (exit $ac_status); }; }; then
20653   eval "$as_ac_var=yes"
20654 else
20655   echo "$as_me: failed program was:" >&5
20656 sed 's/^/| /' conftest.$ac_ext >&5
20657
20658         eval "$as_ac_var=no"
20659 fi
20660
20661 rm -f core conftest.err conftest.$ac_objext \
20662       conftest$ac_exeext conftest.$ac_ext
20663 fi
20664 ac_res=`eval echo '${'$as_ac_var'}'`
20665                { echo "$as_me:$LINENO: result: $ac_res" >&5
20666 echo "${ECHO_T}$ac_res" >&6; }
20667 if test `eval echo '${'$as_ac_var'}'` = yes; then
20668   cat >>confdefs.h <<_ACEOF
20669 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20670 _ACEOF
20671
20672 fi
20673 done
20674
20675
20676 { echo "$as_me:$LINENO: checking whether llvm-gcc is dragonegg" >&5
20677 echo $ECHO_N "checking whether llvm-gcc is dragonegg... $ECHO_C" >&6; }
20678 if test "${llvm_cv_llvmgcc_dragonegg+set}" = set; then
20679   echo $ECHO_N "(cached) $ECHO_C" >&6
20680 else
20681   llvm_cv_llvmgcc_dragonegg="no"
20682 if test -n "$LLVMGCC" ; then
20683   cp /dev/null conftest.c
20684   $LLVMGCC -fplugin-arg-dragonegg-emit-ir -S -o - conftest.c > /dev/null 2>&1
20685   if test $? -eq 0 ; then
20686     llvm_cv_llvmgcc_dragonegg="yes"
20687   fi
20688   rm conftest.c
20689 fi
20690 fi
20691 { echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_dragonegg" >&5
20692 echo "${ECHO_T}$llvm_cv_llvmgcc_dragonegg" >&6; }
20693
20694 if test "$llvm_cv_llvmgcc_dragonegg" = "yes" ; then
20695   LLVMCC_EMITIR_FLAG="-fplugin-arg-dragonegg-emit-ir"
20696   LLVMCC_DISABLEOPT_FLAGS="-fplugin-arg-dragonegg-disable-llvm-optzns"
20697 else
20698   LLVMCC_EMITIR_FLAG="-emit-llvm"
20699   LLVMCC_DISABLEOPT_FLAGS="-mllvm -disable-llvm-optzns"
20700 fi
20701
20702
20703
20704 { echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
20705 echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6; }
20706 if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
20707   echo $ECHO_N "(cached) $ECHO_C" >&6
20708 else
20709   llvm_cv_llvmgcc_sanity="no"
20710 if test -n "$LLVMGCC" ; then
20711   cp /dev/null conftest.c
20712   $LLVMGCC "$LLVMCC_EMITIR_FLAG" -S -o - conftest.c | \
20713       grep 'target datalayout =' > /dev/null 2>&1
20714   if test $? -eq 0 ; then
20715     llvm_cv_llvmgcc_sanity="yes"
20716   fi
20717   rm conftest.c
20718 fi
20719 fi
20720 { echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
20721 echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6; }
20722
20723 if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
20724   { echo "$as_me:$LINENO: checking llvm-gcc component support" >&5
20725 echo $ECHO_N "checking llvm-gcc component support... $ECHO_C" >&6; }
20726   llvmcc1path=`$LLVMGCC --print-prog-name=cc1`
20727   LLVMCC1=$llvmcc1path
20728
20729   llvmcc1pluspath=`$LLVMGCC --print-prog-name=cc1plus`
20730   LLVMCC1PLUS=$llvmcc1pluspath
20731
20732   llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
20733   LLVMGCCDIR=$llvmgccdir
20734
20735   llvmgcclangs=`$LLVMGCC -v --help 2>&1 | grep '^Configured with:' | sed 's/^.*--enable-languages=\([^ ]*\).*/\1/'`
20736   LLVMGCC_LANGS=$llvmgcclangs
20737
20738   LLVMGCC_DRAGONEGG=$llvm_cv_llvmgcc_dragonegg
20739
20740
20741   { echo "$as_me:$LINENO: result: ok" >&5
20742 echo "${ECHO_T}ok" >&6; }
20743 fi
20744
20745 SHLIBEXT=$libltdl_cv_shlibext
20746
20747
20748 SHLIBPATH_VAR=$libltdl_cv_shlibpath_var
20749
20750
20751 # Translate the various configuration directories and other basic
20752 # information into substitutions that will end up in Makefile.config.in
20753 # that these configured values can be used by the makefiles
20754 if test "${prefix}" = "NONE" ; then
20755   prefix="/usr/local"
20756 fi
20757 eval LLVM_PREFIX="${prefix}";
20758 eval LLVM_BINDIR="${prefix}/bin";
20759 eval LLVM_LIBDIR="${prefix}/lib";
20760 eval LLVM_DATADIR="${prefix}/share/llvm";
20761 eval LLVM_DOCSDIR="${prefix}/share/doc/llvm";
20762 eval LLVM_ETCDIR="${prefix}/etc/llvm";
20763 eval LLVM_INCLUDEDIR="${prefix}/include";
20764 eval LLVM_INFODIR="${prefix}/info";
20765 eval LLVM_MANDIR="${prefix}/man";
20766 LLVM_CONFIGTIME=`date`
20767
20768
20769
20770
20771
20772
20773
20774
20775
20776
20777
20778 # Place the various directores into the config.h file as #defines so that we
20779 # can know about the installation paths within LLVM.
20780
20781 cat >>confdefs.h <<_ACEOF
20782 #define LLVM_PREFIX "$LLVM_PREFIX"
20783 _ACEOF
20784
20785
20786 cat >>confdefs.h <<_ACEOF
20787 #define LLVM_BINDIR "$LLVM_BINDIR"
20788 _ACEOF
20789
20790
20791 cat >>confdefs.h <<_ACEOF
20792 #define LLVM_LIBDIR "$LLVM_LIBDIR"
20793 _ACEOF
20794
20795
20796 cat >>confdefs.h <<_ACEOF
20797 #define LLVM_DATADIR "$LLVM_DATADIR"
20798 _ACEOF
20799
20800
20801 cat >>confdefs.h <<_ACEOF
20802 #define LLVM_DOCSDIR "$LLVM_DOCSDIR"
20803 _ACEOF
20804
20805
20806 cat >>confdefs.h <<_ACEOF
20807 #define LLVM_ETCDIR "$LLVM_ETCDIR"
20808 _ACEOF
20809
20810
20811 cat >>confdefs.h <<_ACEOF
20812 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
20813 _ACEOF
20814
20815
20816 cat >>confdefs.h <<_ACEOF
20817 #define LLVM_INFODIR "$LLVM_INFODIR"
20818 _ACEOF
20819
20820
20821 cat >>confdefs.h <<_ACEOF
20822 #define LLVM_MANDIR "$LLVM_MANDIR"
20823 _ACEOF
20824
20825
20826 cat >>confdefs.h <<_ACEOF
20827 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
20828 _ACEOF
20829
20830
20831 cat >>confdefs.h <<_ACEOF
20832 #define LLVM_HOSTTRIPLE "$host"
20833 _ACEOF
20834
20835
20836 # Determine which bindings to build.
20837 if test "$BINDINGS_TO_BUILD" = auto ; then
20838   BINDINGS_TO_BUILD=""
20839   if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
20840     BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
20841   fi
20842 fi
20843 BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
20844
20845
20846 # This isn't really configurey, but it avoids having to repeat the list in
20847 # other files.
20848 ALL_BINDINGS=ocaml
20849
20850
20851 # Do any work necessary to ensure that bindings have what they need.
20852 binding_prereqs_failed=0
20853 for a_binding in $BINDINGS_TO_BUILD ; do
20854   case "$a_binding" in
20855   ocaml)
20856     if test "x$OCAMLC" = x ; then
20857       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
20858 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
20859       binding_prereqs_failed=1
20860     fi
20861     if test "x$OCAMLDEP" = x ; then
20862       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
20863 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
20864       binding_prereqs_failed=1
20865     fi
20866     if test "x$OCAMLOPT" = x ; then
20867       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
20868 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
20869           fi
20870     if test "x$with_ocaml_libdir" != xauto ; then
20871       OCAML_LIBDIR=$with_ocaml_libdir
20872
20873     else
20874       ocaml_stdlib="`"$OCAMLC" -where`"
20875       if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
20876       then
20877         # ocaml stdlib is beneath our prefix; use stdlib
20878         OCAML_LIBDIR=$ocaml_stdlib
20879
20880       else
20881         # ocaml stdlib is outside our prefix; use libdir/ocaml
20882         OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
20883
20884       fi
20885     fi
20886     ;;
20887   esac
20888 done
20889 if test "$binding_prereqs_failed" = 1 ; then
20890   { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
20891 echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
20892    { (exit 1); exit 1; }; }
20893 fi
20894
20895 { echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
20896 echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
20897 if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
20898   echo $ECHO_N "(cached) $ECHO_C" >&6
20899 else
20900    ac_ext=cpp
20901 ac_cpp='$CXXCPP $CPPFLAGS'
20902 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20903 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20904 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20905
20906   oldcxxflags="$CXXFLAGS"
20907   CXXFLAGS="$CXXFLAGS -fvisibility-inlines-hidden"
20908   cat >conftest.$ac_ext <<_ACEOF
20909 /* confdefs.h.  */
20910 _ACEOF
20911 cat confdefs.h >>conftest.$ac_ext
20912 cat >>conftest.$ac_ext <<_ACEOF
20913 /* end confdefs.h.  */
20914
20915 int
20916 main ()
20917 {
20918
20919   ;
20920   return 0;
20921 }
20922 _ACEOF
20923 rm -f conftest.$ac_objext
20924 if { (ac_try="$ac_compile"
20925 case "(($ac_try" in
20926   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20927   *) ac_try_echo=$ac_try;;
20928 esac
20929 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20930   (eval "$ac_compile") 2>conftest.er1
20931   ac_status=$?
20932   grep -v '^ *+' conftest.er1 >conftest.err
20933   rm -f conftest.er1
20934   cat conftest.err >&5
20935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20936   (exit $ac_status); } &&
20937          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20938   { (case "(($ac_try" in
20939   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20940   *) ac_try_echo=$ac_try;;
20941 esac
20942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20943   (eval "$ac_try") 2>&5
20944   ac_status=$?
20945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20946   (exit $ac_status); }; } &&
20947          { ac_try='test -s conftest.$ac_objext'
20948   { (case "(($ac_try" in
20949   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20950   *) ac_try_echo=$ac_try;;
20951 esac
20952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20953   (eval "$ac_try") 2>&5
20954   ac_status=$?
20955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20956   (exit $ac_status); }; }; then
20957   llvm_cv_cxx_visibility_inlines_hidden=yes
20958 else
20959   echo "$as_me: failed program was:" >&5
20960 sed 's/^/| /' conftest.$ac_ext >&5
20961
20962         llvm_cv_cxx_visibility_inlines_hidden=no
20963 fi
20964
20965 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20966   CXXFLAGS="$oldcxxflags"
20967   ac_ext=c
20968 ac_cpp='$CPP $CPPFLAGS'
20969 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20970 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20971 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20972
20973
20974 fi
20975 { echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
20976 echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
20977 if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
20978   ENABLE_VISIBILITY_INLINES_HIDDEN=1
20979
20980 else
20981   ENABLE_VISIBILITY_INLINES_HIDDEN=0
20982
20983 fi
20984
20985
20986 if test "$llvm_cv_link_use_r" = "yes" ; then
20987   RPATH="-Wl,-R"
20988 else
20989   RPATH="-Wl,-rpath"
20990 fi
20991
20992
20993 if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
20994   RDYNAMIC="-Wl,-export-dynamic"
20995 else
20996   RDYNAMIC=""
20997 fi
20998
20999
21000
21001 ac_config_headers="$ac_config_headers include/llvm/Config/config.h include/llvm/Config/llvm-config.h"
21002
21003
21004
21005
21006
21007
21008 ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
21009
21010 ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
21011
21012 ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
21013
21014 ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def"
21015
21016 ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
21017
21018
21019 ac_config_files="$ac_config_files Makefile.config"
21020
21021
21022 ac_config_files="$ac_config_files llvm.spec"
21023
21024
21025 ac_config_files="$ac_config_files tools/llvmc/src/Base.td"
21026
21027
21028 ac_config_files="$ac_config_files tools/llvm-config/llvm-config.in"
21029
21030
21031 ac_config_commands="$ac_config_commands setup"
21032
21033 ac_config_commands="$ac_config_commands Makefile"
21034
21035
21036 ac_config_commands="$ac_config_commands Makefile.common"
21037
21038
21039 ac_config_commands="$ac_config_commands examples/Makefile"
21040
21041
21042 ac_config_commands="$ac_config_commands lib/Makefile"
21043
21044
21045 ac_config_commands="$ac_config_commands runtime/Makefile"
21046
21047
21048 ac_config_commands="$ac_config_commands test/Makefile"
21049
21050
21051 ac_config_commands="$ac_config_commands test/Makefile.tests"
21052
21053
21054 ac_config_commands="$ac_config_commands unittests/Makefile"
21055
21056
21057 ac_config_commands="$ac_config_commands tools/Makefile"
21058
21059
21060 ac_config_commands="$ac_config_commands utils/Makefile"
21061
21062
21063 ac_config_commands="$ac_config_commands projects/Makefile"
21064
21065
21066 ac_config_commands="$ac_config_commands bindings/Makefile"
21067
21068
21069 ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
21070
21071
21072
21073 cat >confcache <<\_ACEOF
21074 # This file is a shell script that caches the results of configure
21075 # tests run on this system so they can be shared between configure
21076 # scripts and configure runs, see configure's option --config-cache.
21077 # It is not useful on other systems.  If it contains results you don't
21078 # want to keep, you may remove or edit it.
21079 #
21080 # config.status only pays attention to the cache file if you give it
21081 # the --recheck option to rerun configure.
21082 #
21083 # `ac_cv_env_foo' variables (set or unset) will be overridden when
21084 # loading this file, other *unset* `ac_cv_foo' will be assigned the
21085 # following values.
21086
21087 _ACEOF
21088
21089 # The following way of writing the cache mishandles newlines in values,
21090 # but we know of no workaround that is simple, portable, and efficient.
21091 # So, we kill variables containing newlines.
21092 # Ultrix sh set writes to stderr and can't be redirected directly,
21093 # and sets the high bit in the cache file unless we assign to the vars.
21094 (
21095   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
21096     eval ac_val=\$$ac_var
21097     case $ac_val in #(
21098     *${as_nl}*)
21099       case $ac_var in #(
21100       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
21101 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
21102       esac
21103       case $ac_var in #(
21104       _ | IFS | as_nl) ;; #(
21105       *) $as_unset $ac_var ;;
21106       esac ;;
21107     esac
21108   done
21109
21110   (set) 2>&1 |
21111     case $as_nl`(ac_space=' '; set) 2>&1` in #(
21112     *${as_nl}ac_space=\ *)
21113       # `set' does not quote correctly, so add quotes (double-quote
21114       # substitution turns \\\\ into \\, and sed turns \\ into \).
21115       sed -n \
21116         "s/'/'\\\\''/g;
21117           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21118       ;; #(
21119     *)
21120       # `set' quotes correctly as required by POSIX, so do not add quotes.
21121       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
21122       ;;
21123     esac |
21124     sort
21125 ) |
21126   sed '
21127      /^ac_cv_env_/b end
21128      t clear
21129      :clear
21130      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21131      t end
21132      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21133      :end' >>confcache
21134 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
21135   if test -w "$cache_file"; then
21136     test "x$cache_file" != "x/dev/null" &&
21137       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
21138 echo "$as_me: updating cache $cache_file" >&6;}
21139     cat confcache >$cache_file
21140   else
21141     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
21142 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
21143   fi
21144 fi
21145 rm -f confcache
21146
21147 test "x$prefix" = xNONE && prefix=$ac_default_prefix
21148 # Let make expand exec_prefix.
21149 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21150
21151 DEFS=-DHAVE_CONFIG_H
21152
21153 ac_libobjs=
21154 ac_ltlibobjs=
21155 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21156   # 1. Remove the extension, and $U if already installed.
21157   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
21158   ac_i=`echo "$ac_i" | sed "$ac_script"`
21159   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
21160   #    will be set to the directory where LIBOBJS objects are built.
21161   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21162   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
21163 done
21164 LIBOBJS=$ac_libobjs
21165
21166 LTLIBOBJS=$ac_ltlibobjs
21167
21168
21169 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
21170   { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
21171 Usually this means the macro was only invoked conditionally." >&5
21172 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
21173 Usually this means the macro was only invoked conditionally." >&2;}
21174    { (exit 1); exit 1; }; }
21175 fi
21176 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
21177   { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21178 Usually this means the macro was only invoked conditionally." >&5
21179 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21180 Usually this means the macro was only invoked conditionally." >&2;}
21181    { (exit 1); exit 1; }; }
21182 fi
21183
21184 : ${CONFIG_STATUS=./config.status}
21185 ac_clean_files_save=$ac_clean_files
21186 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21187 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21188 echo "$as_me: creating $CONFIG_STATUS" >&6;}
21189 cat >$CONFIG_STATUS <<_ACEOF
21190 #! $SHELL
21191 # Generated by $as_me.
21192 # Run this file to recreate the current configuration.
21193 # Compiler output produced by configure, useful for debugging
21194 # configure, is in config.log if it exists.
21195
21196 debug=false
21197 ac_cs_recheck=false
21198 ac_cs_silent=false
21199 SHELL=\${CONFIG_SHELL-$SHELL}
21200 _ACEOF
21201
21202 cat >>$CONFIG_STATUS <<\_ACEOF
21203 ## --------------------- ##
21204 ## M4sh Initialization.  ##
21205 ## --------------------- ##
21206
21207 # Be Bourne compatible
21208 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21209   emulate sh
21210   NULLCMD=:
21211   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21212   # is contrary to our usage.  Disable this feature.
21213   alias -g '${1+"$@"}'='"$@"'
21214   setopt NO_GLOB_SUBST
21215 else
21216   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
21217 fi
21218 BIN_SH=xpg4; export BIN_SH # for Tru64
21219 DUALCASE=1; export DUALCASE # for MKS sh
21220
21221
21222 # PATH needs CR
21223 # Avoid depending upon Character Ranges.
21224 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21225 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21226 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21227 as_cr_digits='0123456789'
21228 as_cr_alnum=$as_cr_Letters$as_cr_digits
21229
21230 # The user is always right.
21231 if test "${PATH_SEPARATOR+set}" != set; then
21232   echo "#! /bin/sh" >conf$$.sh
21233   echo  "exit 0"   >>conf$$.sh
21234   chmod +x conf$$.sh
21235   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21236     PATH_SEPARATOR=';'
21237   else
21238     PATH_SEPARATOR=:
21239   fi
21240   rm -f conf$$.sh
21241 fi
21242
21243 # Support unset when possible.
21244 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21245   as_unset=unset
21246 else
21247   as_unset=false
21248 fi
21249
21250
21251 # IFS
21252 # We need space, tab and new line, in precisely that order.  Quoting is
21253 # there to prevent editors from complaining about space-tab.
21254 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
21255 # splitting by setting IFS to empty value.)
21256 as_nl='
21257 '
21258 IFS=" ""        $as_nl"
21259
21260 # Find who we are.  Look in the path if we contain no directory separator.
21261 case $0 in
21262   *[\\/]* ) as_myself=$0 ;;
21263   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21264 for as_dir in $PATH
21265 do
21266   IFS=$as_save_IFS
21267   test -z "$as_dir" && as_dir=.
21268   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21269 done
21270 IFS=$as_save_IFS
21271
21272      ;;
21273 esac
21274 # We did not find ourselves, most probably we were run as `sh COMMAND'
21275 # in which case we are not to be found in the path.
21276 if test "x$as_myself" = x; then
21277   as_myself=$0
21278 fi
21279 if test ! -f "$as_myself"; then
21280   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21281   { (exit 1); exit 1; }
21282 fi
21283
21284 # Work around bugs in pre-3.0 UWIN ksh.
21285 for as_var in ENV MAIL MAILPATH
21286 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21287 done
21288 PS1='$ '
21289 PS2='> '
21290 PS4='+ '
21291
21292 # NLS nuisances.
21293 for as_var in \
21294   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21295   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21296   LC_TELEPHONE LC_TIME
21297 do
21298   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21299     eval $as_var=C; export $as_var
21300   else
21301     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21302   fi
21303 done
21304
21305 # Required to use basename.
21306 if expr a : '\(a\)' >/dev/null 2>&1 &&
21307    test "X`expr 00001 : '.*\(...\)'`" = X001; then
21308   as_expr=expr
21309 else
21310   as_expr=false
21311 fi
21312
21313 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21314   as_basename=basename
21315 else
21316   as_basename=false
21317 fi
21318
21319
21320 # Name of the executable.
21321 as_me=`$as_basename -- "$0" ||
21322 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21323          X"$0" : 'X\(//\)$' \| \
21324          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
21325 echo X/"$0" |
21326     sed '/^.*\/\([^/][^/]*\)\/*$/{
21327             s//\1/
21328             q
21329           }
21330           /^X\/\(\/\/\)$/{
21331             s//\1/
21332             q
21333           }
21334           /^X\/\(\/\).*/{
21335             s//\1/
21336             q
21337           }
21338           s/.*/./; q'`
21339
21340 # CDPATH.
21341 $as_unset CDPATH
21342
21343
21344
21345   as_lineno_1=$LINENO
21346   as_lineno_2=$LINENO
21347   test "x$as_lineno_1" != "x$as_lineno_2" &&
21348   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
21349
21350   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21351   # uniformly replaced by the line number.  The first 'sed' inserts a
21352   # line-number line after each line using $LINENO; the second 'sed'
21353   # does the real work.  The second script uses 'N' to pair each
21354   # line-number line with the line containing $LINENO, and appends
21355   # trailing '-' during substitution so that $LINENO is not a special
21356   # case at line end.
21357   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21358   # scripts with optimization help from Paolo Bonzini.  Blame Lee
21359   # E. McMahon (1931-1989) for sed's syntax.  :-)
21360   sed -n '
21361     p
21362     /[$]LINENO/=
21363   ' <$as_myself |
21364     sed '
21365       s/[$]LINENO.*/&-/
21366       t lineno
21367       b
21368       :lineno
21369       N
21370       :loop
21371       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
21372       t loop
21373       s/-\n.*//
21374     ' >$as_me.lineno &&
21375   chmod +x "$as_me.lineno" ||
21376     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
21377    { (exit 1); exit 1; }; }
21378
21379   # Don't try to exec as it changes $[0], causing all sort of problems
21380   # (the dirname of $[0] is not the place where we might find the
21381   # original and so on.  Autoconf is especially sensitive to this).
21382   . "./$as_me.lineno"
21383   # Exit status is that of the last command.
21384   exit
21385 }
21386
21387
21388 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21389   as_dirname=dirname
21390 else
21391   as_dirname=false
21392 fi
21393
21394 ECHO_C= ECHO_N= ECHO_T=
21395 case `echo -n x` in
21396 -n*)
21397   case `echo 'x\c'` in
21398   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
21399   *)   ECHO_C='\c';;
21400   esac;;
21401 *)
21402   ECHO_N='-n';;
21403 esac
21404
21405 if expr a : '\(a\)' >/dev/null 2>&1 &&
21406    test "X`expr 00001 : '.*\(...\)'`" = X001; then
21407   as_expr=expr
21408 else
21409   as_expr=false
21410 fi
21411
21412 rm -f conf$$ conf$$.exe conf$$.file
21413 if test -d conf$$.dir; then
21414   rm -f conf$$.dir/conf$$.file
21415 else
21416   rm -f conf$$.dir
21417   mkdir conf$$.dir
21418 fi
21419 echo >conf$$.file
21420 if ln -s conf$$.file conf$$ 2>/dev/null; then
21421   as_ln_s='ln -s'
21422   # ... but there are two gotchas:
21423   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21424   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21425   # In both cases, we have to default to `cp -p'.
21426   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
21427     as_ln_s='cp -p'
21428 elif ln conf$$.file conf$$ 2>/dev/null; then
21429   as_ln_s=ln
21430 else
21431   as_ln_s='cp -p'
21432 fi
21433 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21434 rmdir conf$$.dir 2>/dev/null
21435
21436 if mkdir -p . 2>/dev/null; then
21437   as_mkdir_p=:
21438 else
21439   test -d ./-p && rmdir ./-p
21440   as_mkdir_p=false
21441 fi
21442
21443 # Find out whether ``test -x'' works.  Don't use a zero-byte file, as
21444 # systems may use methods other than mode bits to determine executability.
21445 cat >conf$$.file <<_ASEOF
21446 #! /bin/sh
21447 exit 0
21448 _ASEOF
21449 chmod +x conf$$.file
21450 if test -x conf$$.file >/dev/null 2>&1; then
21451   as_executable_p="test -x"
21452 else
21453   as_executable_p=:
21454 fi
21455 rm -f conf$$.file
21456
21457 # Sed expression to map a string onto a valid CPP name.
21458 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21459
21460 # Sed expression to map a string onto a valid variable name.
21461 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21462
21463
21464 exec 6>&1
21465
21466 # Save the log message, to keep $[0] and so on meaningful, and to
21467 # report actual input values of CONFIG_FILES etc. instead of their
21468 # values after options handling.
21469 ac_log="
21470 This file was extended by llvm $as_me 2.9svn, which was
21471 generated by GNU Autoconf 2.60.  Invocation command line was
21472
21473   CONFIG_FILES    = $CONFIG_FILES
21474   CONFIG_HEADERS  = $CONFIG_HEADERS
21475   CONFIG_LINKS    = $CONFIG_LINKS
21476   CONFIG_COMMANDS = $CONFIG_COMMANDS
21477   $ $0 $@
21478
21479 on `(hostname || uname -n) 2>/dev/null | sed 1q`
21480 "
21481
21482 _ACEOF
21483
21484 cat >>$CONFIG_STATUS <<_ACEOF
21485 # Files that config.status was made for.
21486 config_files="$ac_config_files"
21487 config_headers="$ac_config_headers"
21488 config_commands="$ac_config_commands"
21489
21490 _ACEOF
21491
21492 cat >>$CONFIG_STATUS <<\_ACEOF
21493 ac_cs_usage="\
21494 \`$as_me' instantiates files from templates according to the
21495 current configuration.
21496
21497 Usage: $0 [OPTIONS] [FILE]...
21498
21499   -h, --help       print this help, then exit
21500   -V, --version    print version number, then exit
21501   -q, --quiet      do not print progress messages
21502   -d, --debug      don't remove temporary files
21503       --recheck    update $as_me by reconfiguring in the same conditions
21504   --file=FILE[:TEMPLATE]
21505                    instantiate the configuration file FILE
21506   --header=FILE[:TEMPLATE]
21507                    instantiate the configuration header FILE
21508
21509 Configuration files:
21510 $config_files
21511
21512 Configuration headers:
21513 $config_headers
21514
21515 Configuration commands:
21516 $config_commands
21517
21518 Report bugs to <bug-autoconf@gnu.org>."
21519
21520 _ACEOF
21521 cat >>$CONFIG_STATUS <<_ACEOF
21522 ac_cs_version="\\
21523 llvm config.status 2.9svn
21524 configured by $0, generated by GNU Autoconf 2.60,
21525   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
21526
21527 Copyright (C) 2006 Free Software Foundation, Inc.
21528 This config.status script is free software; the Free Software Foundation
21529 gives unlimited permission to copy, distribute and modify it."
21530
21531 ac_pwd='$ac_pwd'
21532 srcdir='$srcdir'
21533 INSTALL='$INSTALL'
21534 _ACEOF
21535
21536 cat >>$CONFIG_STATUS <<\_ACEOF
21537 # If no file are specified by the user, then we need to provide default
21538 # value.  By we need to know if files were specified by the user.
21539 ac_need_defaults=:
21540 while test $# != 0
21541 do
21542   case $1 in
21543   --*=*)
21544     ac_option=`expr "X$1" : 'X\([^=]*\)='`
21545     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
21546     ac_shift=:
21547     ;;
21548   *)
21549     ac_option=$1
21550     ac_optarg=$2
21551     ac_shift=shift
21552     ;;
21553   esac
21554
21555   case $ac_option in
21556   # Handling of the options.
21557   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21558     ac_cs_recheck=: ;;
21559   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
21560     echo "$ac_cs_version"; exit ;;
21561   --debug | --debu | --deb | --de | --d | -d )
21562     debug=: ;;
21563   --file | --fil | --fi | --f )
21564     $ac_shift
21565     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
21566     ac_need_defaults=false;;
21567   --header | --heade | --head | --hea )
21568     $ac_shift
21569     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
21570     ac_need_defaults=false;;
21571   --he | --h)
21572     # Conflict between --help and --header
21573     { echo "$as_me: error: ambiguous option: $1
21574 Try \`$0 --help' for more information." >&2
21575    { (exit 1); exit 1; }; };;
21576   --help | --hel | -h )
21577     echo "$ac_cs_usage"; exit ;;
21578   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21579   | -silent | --silent | --silen | --sile | --sil | --si | --s)
21580     ac_cs_silent=: ;;
21581
21582   # This is an error.
21583   -*) { echo "$as_me: error: unrecognized option: $1
21584 Try \`$0 --help' for more information." >&2
21585    { (exit 1); exit 1; }; } ;;
21586
21587   *) ac_config_targets="$ac_config_targets $1"
21588      ac_need_defaults=false ;;
21589
21590   esac
21591   shift
21592 done
21593
21594 ac_configure_extra_args=
21595
21596 if $ac_cs_silent; then
21597   exec 6>/dev/null
21598   ac_configure_extra_args="$ac_configure_extra_args --silent"
21599 fi
21600
21601 _ACEOF
21602 cat >>$CONFIG_STATUS <<_ACEOF
21603 if \$ac_cs_recheck; then
21604   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21605   CONFIG_SHELL=$SHELL
21606   export CONFIG_SHELL
21607   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21608 fi
21609
21610 _ACEOF
21611 cat >>$CONFIG_STATUS <<\_ACEOF
21612 exec 5>>config.log
21613 {
21614   echo
21615   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21616 ## Running $as_me. ##
21617 _ASBOX
21618   echo "$ac_log"
21619 } >&5
21620
21621 _ACEOF
21622 cat >>$CONFIG_STATUS <<_ACEOF
21623 #
21624 # INIT-COMMANDS
21625 #
21626 llvm_src="${srcdir}"
21627
21628 _ACEOF
21629
21630 cat >>$CONFIG_STATUS <<\_ACEOF
21631
21632 # Handling of arguments.
21633 for ac_config_target in $ac_config_targets
21634 do
21635   case $ac_config_target in
21636     "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
21637     "include/llvm/Config/llvm-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/llvm-config.h" ;;
21638     "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
21639     "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
21640     "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
21641     "include/llvm/Config/Disassemblers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Disassemblers.def" ;;
21642     "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
21643     "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
21644     "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
21645     "tools/llvmc/src/Base.td") CONFIG_FILES="$CONFIG_FILES tools/llvmc/src/Base.td" ;;
21646     "tools/llvm-config/llvm-config.in") CONFIG_FILES="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;;
21647     "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
21648     "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
21649     "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
21650     "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
21651     "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
21652     "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
21653     "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
21654     "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
21655     "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
21656     "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
21657     "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
21658     "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
21659     "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
21660     "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
21661
21662   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21663 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21664    { (exit 1); exit 1; }; };;
21665   esac
21666 done
21667
21668
21669 # If the user did not use the arguments to specify the items to instantiate,
21670 # then the envvar interface is used.  Set only those that are not.
21671 # We use the long form for the default assignment because of an extremely
21672 # bizarre bug on SunOS 4.1.3.
21673 if $ac_need_defaults; then
21674   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21675   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
21676   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21677 fi
21678
21679 # Have a temporary directory for convenience.  Make it in the build tree
21680 # simply because there is no reason against having it here, and in addition,
21681 # creating and moving files from /tmp can sometimes cause problems.
21682 # Hook for its removal unless debugging.
21683 # Note that there is a small window in which the directory will not be cleaned:
21684 # after its creation but before its name has been assigned to `$tmp'.
21685 $debug ||
21686 {
21687   tmp=
21688   trap 'exit_status=$?
21689   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
21690 ' 0
21691   trap '{ (exit 1); exit 1; }' 1 2 13 15
21692 }
21693 # Create a (secure) tmp directory for tmp files.
21694
21695 {
21696   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
21697   test -n "$tmp" && test -d "$tmp"
21698 }  ||
21699 {
21700   tmp=./conf$$-$RANDOM
21701   (umask 077 && mkdir "$tmp")
21702 } ||
21703 {
21704    echo "$me: cannot create a temporary directory in ." >&2
21705    { (exit 1); exit 1; }
21706 }
21707
21708 #
21709 # Set up the sed scripts for CONFIG_FILES section.
21710 #
21711
21712 # No need to generate the scripts if there are no CONFIG_FILES.
21713 # This happens for instance when ./config.status config.h
21714 if test -n "$CONFIG_FILES"; then
21715
21716 _ACEOF
21717
21718
21719
21720 ac_delim='%!_!# '
21721 for ac_last_try in false false false false false :; do
21722   cat >conf$$subs.sed <<_ACEOF
21723 SHELL!$SHELL$ac_delim
21724 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
21725 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
21726 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
21727 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
21728 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
21729 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
21730 exec_prefix!$exec_prefix$ac_delim
21731 prefix!$prefix$ac_delim
21732 program_transform_name!$program_transform_name$ac_delim
21733 bindir!$bindir$ac_delim
21734 sbindir!$sbindir$ac_delim
21735 libexecdir!$libexecdir$ac_delim
21736 datarootdir!$datarootdir$ac_delim
21737 datadir!$datadir$ac_delim
21738 sysconfdir!$sysconfdir$ac_delim
21739 sharedstatedir!$sharedstatedir$ac_delim
21740 localstatedir!$localstatedir$ac_delim
21741 includedir!$includedir$ac_delim
21742 oldincludedir!$oldincludedir$ac_delim
21743 docdir!$docdir$ac_delim
21744 infodir!$infodir$ac_delim
21745 htmldir!$htmldir$ac_delim
21746 dvidir!$dvidir$ac_delim
21747 pdfdir!$pdfdir$ac_delim
21748 psdir!$psdir$ac_delim
21749 libdir!$libdir$ac_delim
21750 localedir!$localedir$ac_delim
21751 mandir!$mandir$ac_delim
21752 DEFS!$DEFS$ac_delim
21753 ECHO_C!$ECHO_C$ac_delim
21754 ECHO_N!$ECHO_N$ac_delim
21755 ECHO_T!$ECHO_T$ac_delim
21756 LIBS!$LIBS$ac_delim
21757 build_alias!$build_alias$ac_delim
21758 host_alias!$host_alias$ac_delim
21759 target_alias!$target_alias$ac_delim
21760 LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
21761 subdirs!$subdirs$ac_delim
21762 ENABLE_POLLY!$ENABLE_POLLY$ac_delim
21763 LLVM_HAS_POLLY!$LLVM_HAS_POLLY$ac_delim
21764 build!$build$ac_delim
21765 build_cpu!$build_cpu$ac_delim
21766 build_vendor!$build_vendor$ac_delim
21767 build_os!$build_os$ac_delim
21768 host!$host$ac_delim
21769 host_cpu!$host_cpu$ac_delim
21770 host_vendor!$host_vendor$ac_delim
21771 host_os!$host_os$ac_delim
21772 target!$target$ac_delim
21773 target_cpu!$target_cpu$ac_delim
21774 target_vendor!$target_vendor$ac_delim
21775 target_os!$target_os$ac_delim
21776 OS!$OS$ac_delim
21777 HOST_OS!$HOST_OS$ac_delim
21778 TARGET_OS!$TARGET_OS$ac_delim
21779 LINKALL!$LINKALL$ac_delim
21780 NOLINKALL!$NOLINKALL$ac_delim
21781 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
21782 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
21783 ARCH!$ARCH$ac_delim
21784 ENDIAN!$ENDIAN$ac_delim
21785 CC!$CC$ac_delim
21786 CFLAGS!$CFLAGS$ac_delim
21787 LDFLAGS!$LDFLAGS$ac_delim
21788 CPPFLAGS!$CPPFLAGS$ac_delim
21789 ac_ct_CC!$ac_ct_CC$ac_delim
21790 EXEEXT!$EXEEXT$ac_delim
21791 OBJEXT!$OBJEXT$ac_delim
21792 CPP!$CPP$ac_delim
21793 GREP!$GREP$ac_delim
21794 EGREP!$EGREP$ac_delim
21795 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
21796 BUILD_CC!$BUILD_CC$ac_delim
21797 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
21798 BUILD_CXX!$BUILD_CXX$ac_delim
21799 CVSBUILD!$CVSBUILD$ac_delim
21800 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
21801 ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
21802 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
21803 ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
21804 EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
21805 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
21806 DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
21807 JIT!$JIT$ac_delim
21808 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
21809 ENABLE_DOCS!$ENABLE_DOCS$ac_delim
21810 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
21811 ENABLE_THREADS!$ENABLE_THREADS$ac_delim
21812 ENABLE_PTHREADS!$ENABLE_PTHREADS$ac_delim
21813 ENABLE_PIC!$ENABLE_PIC$ac_delim
21814 ENABLE_SHARED!$ENABLE_SHARED$ac_delim
21815 ENABLE_TIMESTAMPS!$ENABLE_TIMESTAMPS$ac_delim
21816 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
21817 LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
21818 LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
21819 LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
21820 _ACEOF
21821
21822   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
21823     break
21824   elif $ac_last_try; then
21825     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21826 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21827    { (exit 1); exit 1; }; }
21828   else
21829     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21830   fi
21831 done
21832
21833 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21834 if test -n "$ac_eof"; then
21835   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21836   ac_eof=`expr $ac_eof + 1`
21837 fi
21838
21839 cat >>$CONFIG_STATUS <<_ACEOF
21840 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
21841 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21842 _ACEOF
21843 sed '
21844 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21845 s/^/s,@/; s/!/@,|#_!!_#|/
21846 :n
21847 t n
21848 s/'"$ac_delim"'$/,g/; t
21849 s/$/\\/; p
21850 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21851 ' >>$CONFIG_STATUS <conf$$subs.sed
21852 rm -f conf$$subs.sed
21853 cat >>$CONFIG_STATUS <<_ACEOF
21854 CEOF$ac_eof
21855 _ACEOF
21856
21857
21858 ac_delim='%!_!# '
21859 for ac_last_try in false false false false false :; do
21860   cat >conf$$subs.sed <<_ACEOF
21861 LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
21862 ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim
21863 CLANGPATH!$CLANGPATH$ac_delim
21864 CLANGXXPATH!$CLANGXXPATH$ac_delim
21865 ENABLE_BUILT_CLANG!$ENABLE_BUILT_CLANG$ac_delim
21866 OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
21867 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
21868 BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
21869 CXX!$CXX$ac_delim
21870 CXXFLAGS!$CXXFLAGS$ac_delim
21871 ac_ct_CXX!$ac_ct_CXX$ac_delim
21872 NM!$NM$ac_delim
21873 ifGNUmake!$ifGNUmake$ac_delim
21874 LN_S!$LN_S$ac_delim
21875 CMP!$CMP$ac_delim
21876 CP!$CP$ac_delim
21877 DATE!$DATE$ac_delim
21878 FIND!$FIND$ac_delim
21879 MKDIR!$MKDIR$ac_delim
21880 MV!$MV$ac_delim
21881 RANLIB!$RANLIB$ac_delim
21882 AR!$AR$ac_delim
21883 RM!$RM$ac_delim
21884 SED!$SED$ac_delim
21885 TAR!$TAR$ac_delim
21886 BINPWD!$BINPWD$ac_delim
21887 GRAPHVIZ!$GRAPHVIZ$ac_delim
21888 DOT!$DOT$ac_delim
21889 FDP!$FDP$ac_delim
21890 NEATO!$NEATO$ac_delim
21891 TWOPI!$TWOPI$ac_delim
21892 CIRCO!$CIRCO$ac_delim
21893 GV!$GV$ac_delim
21894 DOTTY!$DOTTY$ac_delim
21895 XDOT_PY!$XDOT_PY$ac_delim
21896 PERL!$PERL$ac_delim
21897 HAVE_PERL!$HAVE_PERL$ac_delim
21898 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
21899 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
21900 INSTALL_DATA!$INSTALL_DATA$ac_delim
21901 BZIP2!$BZIP2$ac_delim
21902 CAT!$CAT$ac_delim
21903 DOXYGEN!$DOXYGEN$ac_delim
21904 GROFF!$GROFF$ac_delim
21905 GZIPBIN!$GZIPBIN$ac_delim
21906 POD2HTML!$POD2HTML$ac_delim
21907 POD2MAN!$POD2MAN$ac_delim
21908 PDFROFF!$PDFROFF$ac_delim
21909 RUNTEST!$RUNTEST$ac_delim
21910 TCLSH!$TCLSH$ac_delim
21911 ZIP!$ZIP$ac_delim
21912 OCAMLC!$OCAMLC$ac_delim
21913 OCAMLOPT!$OCAMLOPT$ac_delim
21914 OCAMLDEP!$OCAMLDEP$ac_delim
21915 OCAMLDOC!$OCAMLDOC$ac_delim
21916 GAS!$GAS$ac_delim
21917 HAVE_LINK_VERSION_SCRIPT!$HAVE_LINK_VERSION_SCRIPT$ac_delim
21918 INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
21919 INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
21920 CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
21921 CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
21922 LIBADD_DL!$LIBADD_DL$ac_delim
21923 LLVMGCCCOMMAND!$LLVMGCCCOMMAND$ac_delim
21924 LLVMGXXCOMMAND!$LLVMGXXCOMMAND$ac_delim
21925 LLVMGCC!$LLVMGCC$ac_delim
21926 LLVMGXX!$LLVMGXX$ac_delim
21927 LLVMCC_OPTION!$LLVMCC_OPTION$ac_delim
21928 NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
21929 NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
21930 USE_UDIS86!$USE_UDIS86$ac_delim
21931 USE_OPROFILE!$USE_OPROFILE$ac_delim
21932 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
21933 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
21934 MMAP_FILE!$MMAP_FILE$ac_delim
21935 LLVMCC_EMITIR_FLAG!$LLVMCC_EMITIR_FLAG$ac_delim
21936 LLVMCC1!$LLVMCC1$ac_delim
21937 LLVMCC1PLUS!$LLVMCC1PLUS$ac_delim
21938 LLVMGCCDIR!$LLVMGCCDIR$ac_delim
21939 LLVMGCC_LANGS!$LLVMGCC_LANGS$ac_delim
21940 LLVMGCC_DRAGONEGG!$LLVMGCC_DRAGONEGG$ac_delim
21941 LLVMCC_DISABLEOPT_FLAGS!$LLVMCC_DISABLEOPT_FLAGS$ac_delim
21942 SHLIBEXT!$SHLIBEXT$ac_delim
21943 SHLIBPATH_VAR!$SHLIBPATH_VAR$ac_delim
21944 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
21945 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
21946 LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
21947 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
21948 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
21949 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
21950 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
21951 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
21952 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
21953 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
21954 BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
21955 ALL_BINDINGS!$ALL_BINDINGS$ac_delim
21956 OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
21957 ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
21958 _ACEOF
21959
21960   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
21961     break
21962   elif $ac_last_try; then
21963     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21964 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21965    { (exit 1); exit 1; }; }
21966   else
21967     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21968   fi
21969 done
21970
21971 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21972 if test -n "$ac_eof"; then
21973   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21974   ac_eof=`expr $ac_eof + 1`
21975 fi
21976
21977 cat >>$CONFIG_STATUS <<_ACEOF
21978 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
21979 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21980 _ACEOF
21981 sed '
21982 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21983 s/^/s,@/; s/!/@,|#_!!_#|/
21984 :n
21985 t n
21986 s/'"$ac_delim"'$/,g/; t
21987 s/$/\\/; p
21988 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21989 ' >>$CONFIG_STATUS <conf$$subs.sed
21990 rm -f conf$$subs.sed
21991 cat >>$CONFIG_STATUS <<_ACEOF
21992 CEOF$ac_eof
21993 _ACEOF
21994
21995
21996 ac_delim='%!_!# '
21997 for ac_last_try in false false false false false :; do
21998   cat >conf$$subs.sed <<_ACEOF
21999 RPATH!$RPATH$ac_delim
22000 RDYNAMIC!$RDYNAMIC$ac_delim
22001 LIBOBJS!$LIBOBJS$ac_delim
22002 LTLIBOBJS!$LTLIBOBJS$ac_delim
22003 _ACEOF
22004
22005   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 4; then
22006     break
22007   elif $ac_last_try; then
22008     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22009 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22010    { (exit 1); exit 1; }; }
22011   else
22012     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22013   fi
22014 done
22015
22016 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
22017 if test -n "$ac_eof"; then
22018   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
22019   ac_eof=`expr $ac_eof + 1`
22020 fi
22021
22022 cat >>$CONFIG_STATUS <<_ACEOF
22023 cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
22024 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
22025 _ACEOF
22026 sed '
22027 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22028 s/^/s,@/; s/!/@,|#_!!_#|/
22029 :n
22030 t n
22031 s/'"$ac_delim"'$/,g/; t
22032 s/$/\\/; p
22033 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22034 ' >>$CONFIG_STATUS <conf$$subs.sed
22035 rm -f conf$$subs.sed
22036 cat >>$CONFIG_STATUS <<_ACEOF
22037 :end
22038 s/|#_!!_#|//g
22039 CEOF$ac_eof
22040 _ACEOF
22041
22042
22043 # VPATH may cause trouble with some makes, so we remove $(srcdir),
22044 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22045 # trailing colons and then remove the whole line if VPATH becomes empty
22046 # (actually we leave an empty line to preserve line numbers).
22047 if test "x$srcdir" = x.; then
22048   ac_vpsub='/^[  ]*VPATH[        ]*=/{
22049 s/:*\$(srcdir):*/:/
22050 s/:*\${srcdir}:*/:/
22051 s/:*@srcdir@:*/:/
22052 s/^\([^=]*=[     ]*\):*/\1/
22053 s/:*$//
22054 s/^[^=]*=[       ]*$//
22055 }'
22056 fi
22057
22058 cat >>$CONFIG_STATUS <<\_ACEOF
22059 fi # test -n "$CONFIG_FILES"
22060
22061
22062 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
22063 do
22064   case $ac_tag in
22065   :[FHLC]) ac_mode=$ac_tag; continue;;
22066   esac
22067   case $ac_mode$ac_tag in
22068   :[FHL]*:*);;
22069   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
22070 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
22071    { (exit 1); exit 1; }; };;
22072   :[FH]-) ac_tag=-:-;;
22073   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
22074   esac
22075   ac_save_IFS=$IFS
22076   IFS=:
22077   set x $ac_tag
22078   IFS=$ac_save_IFS
22079   shift
22080   ac_file=$1
22081   shift
22082
22083   case $ac_mode in
22084   :L) ac_source=$1;;
22085   :[FH])
22086     ac_file_inputs=
22087     for ac_f
22088     do
22089       case $ac_f in
22090       -) ac_f="$tmp/stdin";;
22091       *) # Look for the file first in the build tree, then in the source tree
22092          # (if the path is not absolute).  The absolute path cannot be DOS-style,
22093          # because $ac_f cannot contain `:'.
22094          test -f "$ac_f" ||
22095            case $ac_f in
22096            [\\/$]*) false;;
22097            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
22098            esac ||
22099            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
22100 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
22101    { (exit 1); exit 1; }; };;
22102       esac
22103       ac_file_inputs="$ac_file_inputs $ac_f"
22104     done
22105
22106     # Let's still pretend it is `configure' which instantiates (i.e., don't
22107     # use $as_me), people would be surprised to read:
22108     #    /* config.h.  Generated by config.status.  */
22109     configure_input="Generated from "`IFS=:
22110           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
22111     if test x"$ac_file" != x-; then
22112       configure_input="$ac_file.  $configure_input"
22113       { echo "$as_me:$LINENO: creating $ac_file" >&5
22114 echo "$as_me: creating $ac_file" >&6;}
22115     fi
22116
22117     case $ac_tag in
22118     *:-:* | *:-) cat >"$tmp/stdin";;
22119     esac
22120     ;;
22121   esac
22122
22123   ac_dir=`$as_dirname -- "$ac_file" ||
22124 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22125          X"$ac_file" : 'X\(//\)[^/]' \| \
22126          X"$ac_file" : 'X\(//\)$' \| \
22127          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
22128 echo X"$ac_file" |
22129     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22130             s//\1/
22131             q
22132           }
22133           /^X\(\/\/\)[^/].*/{
22134             s//\1/
22135             q
22136           }
22137           /^X\(\/\/\)$/{
22138             s//\1/
22139             q
22140           }
22141           /^X\(\/\).*/{
22142             s//\1/
22143             q
22144           }
22145           s/.*/./; q'`
22146   { as_dir="$ac_dir"
22147   case $as_dir in #(
22148   -*) as_dir=./$as_dir;;
22149   esac
22150   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22151     as_dirs=
22152     while :; do
22153       case $as_dir in #(
22154       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22155       *) as_qdir=$as_dir;;
22156       esac
22157       as_dirs="'$as_qdir' $as_dirs"
22158       as_dir=`$as_dirname -- "$as_dir" ||
22159 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22160          X"$as_dir" : 'X\(//\)[^/]' \| \
22161          X"$as_dir" : 'X\(//\)$' \| \
22162          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22163 echo X"$as_dir" |
22164     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22165             s//\1/
22166             q
22167           }
22168           /^X\(\/\/\)[^/].*/{
22169             s//\1/
22170             q
22171           }
22172           /^X\(\/\/\)$/{
22173             s//\1/
22174             q
22175           }
22176           /^X\(\/\).*/{
22177             s//\1/
22178             q
22179           }
22180           s/.*/./; q'`
22181       test -d "$as_dir" && break
22182     done
22183     test -z "$as_dirs" || eval "mkdir $as_dirs"
22184   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22185 echo "$as_me: error: cannot create directory $as_dir" >&2;}
22186    { (exit 1); exit 1; }; }; }
22187   ac_builddir=.
22188
22189 case "$ac_dir" in
22190 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22191 *)
22192   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22193   # A ".." for each directory in $ac_dir_suffix.
22194   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
22195   case $ac_top_builddir_sub in
22196   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22197   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22198   esac ;;
22199 esac
22200 ac_abs_top_builddir=$ac_pwd
22201 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22202 # for backward compatibility:
22203 ac_top_builddir=$ac_top_build_prefix
22204
22205 case $srcdir in
22206   .)  # We are building in place.
22207     ac_srcdir=.
22208     ac_top_srcdir=$ac_top_builddir_sub
22209     ac_abs_top_srcdir=$ac_pwd ;;
22210   [\\/]* | ?:[\\/]* )  # Absolute name.
22211     ac_srcdir=$srcdir$ac_dir_suffix;
22212     ac_top_srcdir=$srcdir
22213     ac_abs_top_srcdir=$srcdir ;;
22214   *) # Relative name.
22215     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22216     ac_top_srcdir=$ac_top_build_prefix$srcdir
22217     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22218 esac
22219 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22220
22221
22222   case $ac_mode in
22223   :F)
22224   #
22225   # CONFIG_FILE
22226   #
22227
22228   case $INSTALL in
22229   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22230   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
22231   esac
22232 _ACEOF
22233
22234 cat >>$CONFIG_STATUS <<\_ACEOF
22235 # If the template does not know about datarootdir, expand it.
22236 # FIXME: This hack should be removed a few years after 2.60.
22237 ac_datarootdir_hack=; ac_datarootdir_seen=
22238
22239 case `sed -n '/datarootdir/ {
22240   p
22241   q
22242 }
22243 /@datadir@/p
22244 /@docdir@/p
22245 /@infodir@/p
22246 /@localedir@/p
22247 /@mandir@/p
22248 ' $ac_file_inputs` in
22249 *datarootdir*) ac_datarootdir_seen=yes;;
22250 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
22251   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22252 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
22253 _ACEOF
22254 cat >>$CONFIG_STATUS <<_ACEOF
22255   ac_datarootdir_hack='
22256   s&@datadir@&$datadir&g
22257   s&@docdir@&$docdir&g
22258   s&@infodir@&$infodir&g
22259   s&@localedir@&$localedir&g
22260   s&@mandir@&$mandir&g
22261     s&\\\${datarootdir}&$datarootdir&g' ;;
22262 esac
22263 _ACEOF
22264
22265 # Neutralize VPATH when `$srcdir' = `.'.
22266 # Shell code in configure.ac might set extrasub.
22267 # FIXME: do we really want to maintain this feature?
22268 cat >>$CONFIG_STATUS <<_ACEOF
22269   sed "$ac_vpsub
22270 $extrasub
22271 _ACEOF
22272 cat >>$CONFIG_STATUS <<\_ACEOF
22273 :t
22274 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22275 s&@configure_input@&$configure_input&;t t
22276 s&@top_builddir@&$ac_top_builddir_sub&;t t
22277 s&@srcdir@&$ac_srcdir&;t t
22278 s&@abs_srcdir@&$ac_abs_srcdir&;t t
22279 s&@top_srcdir@&$ac_top_srcdir&;t t
22280 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22281 s&@builddir@&$ac_builddir&;t t
22282 s&@abs_builddir@&$ac_abs_builddir&;t t
22283 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22284 s&@INSTALL@&$ac_INSTALL&;t t
22285 $ac_datarootdir_hack
22286 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed -f "$tmp/subs-3.sed" >$tmp/out
22287
22288 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22289   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
22290   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
22291   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22292 which seems to be undefined.  Please make sure it is defined." >&5
22293 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22294 which seems to be undefined.  Please make sure it is defined." >&2;}
22295
22296   rm -f "$tmp/stdin"
22297   case $ac_file in
22298   -) cat "$tmp/out"; rm -f "$tmp/out";;
22299   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
22300   esac
22301  ;;
22302   :H)
22303   #
22304   # CONFIG_HEADER
22305   #
22306 _ACEOF
22307
22308 # Transform confdefs.h into a sed script `conftest.defines', that
22309 # substitutes the proper values into config.h.in to produce config.h.
22310 rm -f conftest.defines conftest.tail
22311 # First, append a space to every undef/define line, to ease matching.
22312 echo 's/$/ /' >conftest.defines
22313 # Then, protect against being on the right side of a sed subst, or in
22314 # an unquoted here document, in config.status.  If some macros were
22315 # called several times there might be several #defines for the same
22316 # symbol, which is useless.  But do not sort them, since the last
22317 # AC_DEFINE must be honored.
22318 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
22319 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
22320 # NAME is the cpp macro being defined, VALUE is the value it is being given.
22321 # PARAMS is the parameter list in the macro definition--in most cases, it's
22322 # just an empty string.
22323 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
22324 ac_dB='\\)[      (].*,\\1define\\2'
22325 ac_dC=' '
22326 ac_dD=' ,'
22327
22328 uniq confdefs.h |
22329   sed -n '
22330         t rset
22331         :rset
22332         s/^[     ]*#[    ]*define[       ][      ]*//
22333         t ok
22334         d
22335         :ok
22336         s/[\\&,]/\\&/g
22337         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
22338         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
22339   ' >>conftest.defines
22340
22341 # Remove the space that was appended to ease matching.
22342 # Then replace #undef with comments.  This is necessary, for
22343 # example, in the case of _POSIX_SOURCE, which is predefined and required
22344 # on some systems where configure will not decide to define it.
22345 # (The regexp can be short, since the line contains either #define or #undef.)
22346 echo 's/ $//
22347 s,^[     #]*u.*,/* & */,' >>conftest.defines
22348
22349 # Break up conftest.defines:
22350 ac_max_sed_lines=50
22351
22352 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
22353 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
22354 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
22355 # et cetera.
22356 ac_in='$ac_file_inputs'
22357 ac_out='"$tmp/out1"'
22358 ac_nxt='"$tmp/out2"'
22359
22360 while :
22361 do
22362   # Write a here document:
22363     cat >>$CONFIG_STATUS <<_ACEOF
22364     # First, check the format of the line:
22365     cat >"\$tmp/defines.sed" <<\\CEOF
22366 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
22367 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
22368 b
22369 :def
22370 _ACEOF
22371   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
22372   echo 'CEOF
22373     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
22374   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
22375   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
22376   grep . conftest.tail >/dev/null || break
22377   rm -f conftest.defines
22378   mv conftest.tail conftest.defines
22379 done
22380 rm -f conftest.defines conftest.tail
22381
22382 echo "ac_result=$ac_in" >>$CONFIG_STATUS
22383 cat >>$CONFIG_STATUS <<\_ACEOF
22384   if test x"$ac_file" != x-; then
22385     echo "/* $configure_input  */" >"$tmp/config.h"
22386     cat "$ac_result" >>"$tmp/config.h"
22387     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
22388       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22389 echo "$as_me: $ac_file is unchanged" >&6;}
22390     else
22391       rm -f $ac_file
22392       mv "$tmp/config.h" $ac_file
22393     fi
22394   else
22395     echo "/* $configure_input  */"
22396     cat "$ac_result"
22397   fi
22398   rm -f "$tmp/out12"
22399  ;;
22400
22401   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
22402 echo "$as_me: executing $ac_file commands" >&6;}
22403  ;;
22404   esac
22405
22406
22407   case $ac_file$ac_mode in
22408     "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
22409    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
22410     "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
22411    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;;
22412     "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
22413    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;;
22414     "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
22415    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
22416     "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
22417    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
22418     "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
22419    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;;
22420     "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
22421    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
22422     "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
22423    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
22424     "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
22425    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
22426     "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
22427    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;;
22428     "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
22429    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;;
22430     "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
22431    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
22432     "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
22433    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
22434
22435   esac
22436 done # for ac_tag
22437
22438
22439 { (exit 0); exit 0; }
22440 _ACEOF
22441 chmod +x $CONFIG_STATUS
22442 ac_clean_files=$ac_clean_files_save
22443
22444
22445 # configure is writing to config.log, and then calls config.status.
22446 # config.status does its own redirection, appending to config.log.
22447 # Unfortunately, on DOS this fails, as config.log is still kept open
22448 # by configure, so config.status won't be able to write to it; its
22449 # output is simply discarded.  So we exec the FD to /dev/null,
22450 # effectively closing config.log, so it can be properly (re)opened and
22451 # appended to by config.status.  When coming back to configure, we
22452 # need to make the FD available again.
22453 if test "$no_create" != yes; then
22454   ac_cs_success=:
22455   ac_config_status_args=
22456   test "$silent" = yes &&
22457     ac_config_status_args="$ac_config_status_args --quiet"
22458   exec 5>/dev/null
22459   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22460   exec 5>>config.log
22461   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22462   # would make configure fail if this is the last instruction.
22463   $ac_cs_success || { (exit 1); exit 1; }
22464 fi
22465
22466 #
22467 # CONFIG_SUBDIRS section.
22468 #
22469 if test "$no_recursion" != yes; then
22470
22471   # Remove --cache-file and --srcdir arguments so they do not pile up.
22472   ac_sub_configure_args=
22473   ac_prev=
22474   eval "set x $ac_configure_args"
22475   shift
22476   for ac_arg
22477   do
22478     if test -n "$ac_prev"; then
22479       ac_prev=
22480       continue
22481     fi
22482     case $ac_arg in
22483     -cache-file | --cache-file | --cache-fil | --cache-fi \
22484     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
22485       ac_prev=cache_file ;;
22486     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
22487     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
22488     | --c=*)
22489       ;;
22490     --config-cache | -C)
22491       ;;
22492     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
22493       ac_prev=srcdir ;;
22494     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
22495       ;;
22496     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
22497       ac_prev=prefix ;;
22498     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
22499       ;;
22500     *)
22501       case $ac_arg in
22502       *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
22503       esac
22504       ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
22505     esac
22506   done
22507
22508   # Always prepend --prefix to ensure using the same prefix
22509   # in subdir configurations.
22510   ac_arg="--prefix=$prefix"
22511   case $ac_arg in
22512   *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
22513   esac
22514   ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
22515
22516   ac_popdir=`pwd`
22517   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
22518
22519     # Do not complain, so a configure script can configure whichever
22520     # parts of a large source tree are present.
22521     test -d "$srcdir/$ac_dir" || continue
22522
22523     ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
22524     echo "$as_me:$LINENO: $ac_msg" >&5
22525     echo "$ac_msg" >&6
22526     { as_dir="$ac_dir"
22527   case $as_dir in #(
22528   -*) as_dir=./$as_dir;;
22529   esac
22530   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22531     as_dirs=
22532     while :; do
22533       case $as_dir in #(
22534       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22535       *) as_qdir=$as_dir;;
22536       esac
22537       as_dirs="'$as_qdir' $as_dirs"
22538       as_dir=`$as_dirname -- "$as_dir" ||
22539 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22540          X"$as_dir" : 'X\(//\)[^/]' \| \
22541          X"$as_dir" : 'X\(//\)$' \| \
22542          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22543 echo X"$as_dir" |
22544     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22545             s//\1/
22546             q
22547           }
22548           /^X\(\/\/\)[^/].*/{
22549             s//\1/
22550             q
22551           }
22552           /^X\(\/\/\)$/{
22553             s//\1/
22554             q
22555           }
22556           /^X\(\/\).*/{
22557             s//\1/
22558             q
22559           }
22560           s/.*/./; q'`
22561       test -d "$as_dir" && break
22562     done
22563     test -z "$as_dirs" || eval "mkdir $as_dirs"
22564   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22565 echo "$as_me: error: cannot create directory $as_dir" >&2;}
22566    { (exit 1); exit 1; }; }; }
22567     ac_builddir=.
22568
22569 case "$ac_dir" in
22570 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22571 *)
22572   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22573   # A ".." for each directory in $ac_dir_suffix.
22574   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
22575   case $ac_top_builddir_sub in
22576   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22577   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22578   esac ;;
22579 esac
22580 ac_abs_top_builddir=$ac_pwd
22581 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22582 # for backward compatibility:
22583 ac_top_builddir=$ac_top_build_prefix
22584
22585 case $srcdir in
22586   .)  # We are building in place.
22587     ac_srcdir=.
22588     ac_top_srcdir=$ac_top_builddir_sub
22589     ac_abs_top_srcdir=$ac_pwd ;;
22590   [\\/]* | ?:[\\/]* )  # Absolute name.
22591     ac_srcdir=$srcdir$ac_dir_suffix;
22592     ac_top_srcdir=$srcdir
22593     ac_abs_top_srcdir=$srcdir ;;
22594   *) # Relative name.
22595     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22596     ac_top_srcdir=$ac_top_build_prefix$srcdir
22597     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22598 esac
22599 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22600
22601
22602     cd "$ac_dir"
22603
22604     # Check for guested configure; otherwise get Cygnus style configure.
22605     if test -f "$ac_srcdir/configure.gnu"; then
22606       ac_sub_configure=$ac_srcdir/configure.gnu
22607     elif test -f "$ac_srcdir/configure"; then
22608       ac_sub_configure=$ac_srcdir/configure
22609     elif test -f "$ac_srcdir/configure.in"; then
22610       # This should be Cygnus configure.
22611       ac_sub_configure=$ac_aux_dir/configure
22612     else
22613       { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
22614 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
22615       ac_sub_configure=
22616     fi
22617
22618     # The recursion is here.
22619     if test -n "$ac_sub_configure"; then
22620       # Make the cache file name correct relative to the subdirectory.
22621       case $cache_file in
22622       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
22623       *) # Relative name.
22624         ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
22625       esac
22626
22627       { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
22628 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
22629       # The eval makes quoting arguments work.
22630       eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
22631            --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
22632         { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
22633 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
22634    { (exit 1); exit 1; }; }
22635     fi
22636
22637     cd "$ac_popdir"
22638   done
22639 fi
22640