Build CompilerDriver library.
[oota-llvm.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.60 for llvm 3.0svn.
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='3.0svn'
565 PACKAGE_STRING='llvm 3.0svn'
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_EMBED_STDCXX
698 ENABLE_TIMESTAMPS
699 TARGETS_TO_BUILD
700 LLVM_ENUM_TARGETS
701 LLVM_ENUM_ASM_PRINTERS
702 LLVM_ENUM_ASM_PARSERS
703 LLVM_ENUM_DISASSEMBLERS
704 ENABLE_CBE_PRINTF_A
705 CLANGPATH
706 CLANGXXPATH
707 ENABLE_BUILT_CLANG
708 OPTIMIZE_OPTION
709 EXTRA_OPTIONS
710 BINUTILS_INCDIR
711 CXX
712 CXXFLAGS
713 ac_ct_CXX
714 NM
715 ifGNUmake
716 LN_S
717 CMP
718 CP
719 DATE
720 FIND
721 MKDIR
722 MV
723 RANLIB
724 AR
725 RM
726 SED
727 TAR
728 BINPWD
729 GRAPHVIZ
730 DOT
731 FDP
732 NEATO
733 TWOPI
734 CIRCO
735 GV
736 DOTTY
737 XDOT_PY
738 PERL
739 HAVE_PERL
740 INSTALL_PROGRAM
741 INSTALL_SCRIPT
742 INSTALL_DATA
743 BZIP2
744 CAT
745 DOXYGEN
746 GROFF
747 GZIPBIN
748 POD2HTML
749 POD2MAN
750 PDFROFF
751 RUNTEST
752 TCLSH
753 ZIP
754 OCAMLC
755 OCAMLOPT
756 OCAMLDEP
757 OCAMLDOC
758 GAS
759 HAVE_LINK_VERSION_SCRIPT
760 INSTALL_LTDL_TRUE
761 INSTALL_LTDL_FALSE
762 CONVENIENCE_LTDL_TRUE
763 CONVENIENCE_LTDL_FALSE
764 LIBADD_DL
765 LLVMGCCCOMMAND
766 LLVMGXXCOMMAND
767 LLVMGCC
768 LLVMGXX
769 LLVMCC_OPTION
770 NO_VARIADIC_MACROS
771 NO_MISSING_FIELD_INITIALIZERS
772 USE_UDIS86
773 USE_OPROFILE
774 HAVE_PTHREAD
775 HUGE_VAL_SANITY
776 MMAP_FILE
777 LLVMCC_EMITIR_FLAG
778 LLVMCC1
779 LLVMCC1PLUS
780 LLVMGCCDIR
781 LLVMGCC_LANGS
782 LLVMGCC_DRAGONEGG
783 LLVMCC_DISABLEOPT_FLAGS
784 SHLIBEXT
785 SHLIBPATH_VAR
786 LLVM_PREFIX
787 LLVM_BINDIR
788 LLVM_LIBDIR
789 LLVM_DATADIR
790 LLVM_DOCSDIR
791 LLVM_ETCDIR
792 LLVM_INCLUDEDIR
793 LLVM_INFODIR
794 LLVM_MANDIR
795 LLVM_CONFIGTIME
796 BINDINGS_TO_BUILD
797 ALL_BINDINGS
798 OCAML_LIBDIR
799 ENABLE_VISIBILITY_INLINES_HIDDEN
800 RPATH
801 RDYNAMIC
802 LIBOBJS
803 LTLIBOBJS'
804 ac_subst_files=''
805       ac_precious_vars='build_alias
806 host_alias
807 target_alias
808 CC
809 CFLAGS
810 LDFLAGS
811 CPPFLAGS
812 CPP
813 CXX
814 CXXFLAGS
815 CCC'
816 ac_subdirs_all='projects/llvm-gcc
817 projects/test-suite
818 projects/llvm-test
819 projects/poolalloc
820 projects/llvm-poolalloc
821 projects/sample
822 projects/privbracket
823 projects/llvm-stacker
824 projects/llvm-reopt
825 projects/llvm-java
826 projects/llvm-tv
827 projects/safecode
828 projects/llvm-kernel
829 tools/polly'
830
831 # Initialize some variables set by options.
832 ac_init_help=
833 ac_init_version=false
834 # The variables have the same names as the options, with
835 # dashes changed to underlines.
836 cache_file=/dev/null
837 exec_prefix=NONE
838 no_create=
839 no_recursion=
840 prefix=NONE
841 program_prefix=NONE
842 program_suffix=NONE
843 program_transform_name=s,x,x,
844 silent=
845 site=
846 srcdir=
847 verbose=
848 x_includes=NONE
849 x_libraries=NONE
850
851 # Installation directory options.
852 # These are left unexpanded so users can "make install exec_prefix=/foo"
853 # and all the variables that are supposed to be based on exec_prefix
854 # by default will actually change.
855 # Use braces instead of parens because sh, perl, etc. also accept them.
856 # (The list follows the same order as the GNU Coding Standards.)
857 bindir='${exec_prefix}/bin'
858 sbindir='${exec_prefix}/sbin'
859 libexecdir='${exec_prefix}/libexec'
860 datarootdir='${prefix}/share'
861 datadir='${datarootdir}'
862 sysconfdir='${prefix}/etc'
863 sharedstatedir='${prefix}/com'
864 localstatedir='${prefix}/var'
865 includedir='${prefix}/include'
866 oldincludedir='/usr/include'
867 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
868 infodir='${datarootdir}/info'
869 htmldir='${docdir}'
870 dvidir='${docdir}'
871 pdfdir='${docdir}'
872 psdir='${docdir}'
873 libdir='${exec_prefix}/lib'
874 localedir='${datarootdir}/locale'
875 mandir='${datarootdir}/man'
876
877 ac_prev=
878 ac_dashdash=
879 for ac_option
880 do
881   # If the previous option needs an argument, assign it.
882   if test -n "$ac_prev"; then
883     eval $ac_prev=\$ac_option
884     ac_prev=
885     continue
886   fi
887
888   case $ac_option in
889   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
890   *)    ac_optarg=yes ;;
891   esac
892
893   # Accept the important Cygnus configure options, so we can diagnose typos.
894
895   case $ac_dashdash$ac_option in
896   --)
897     ac_dashdash=yes ;;
898
899   -bindir | --bindir | --bindi | --bind | --bin | --bi)
900     ac_prev=bindir ;;
901   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
902     bindir=$ac_optarg ;;
903
904   -build | --build | --buil | --bui | --bu)
905     ac_prev=build_alias ;;
906   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
907     build_alias=$ac_optarg ;;
908
909   -cache-file | --cache-file | --cache-fil | --cache-fi \
910   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
911     ac_prev=cache_file ;;
912   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
913   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
914     cache_file=$ac_optarg ;;
915
916   --config-cache | -C)
917     cache_file=config.cache ;;
918
919   -datadir | --datadir | --datadi | --datad)
920     ac_prev=datadir ;;
921   -datadir=* | --datadir=* | --datadi=* | --datad=*)
922     datadir=$ac_optarg ;;
923
924   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
925   | --dataroo | --dataro | --datar)
926     ac_prev=datarootdir ;;
927   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
928   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
929     datarootdir=$ac_optarg ;;
930
931   -disable-* | --disable-*)
932     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
933     # Reject names that are not valid shell variable names.
934     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
935       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
936    { (exit 1); exit 1; }; }
937     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
938     eval enable_$ac_feature=no ;;
939
940   -docdir | --docdir | --docdi | --doc | --do)
941     ac_prev=docdir ;;
942   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
943     docdir=$ac_optarg ;;
944
945   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
946     ac_prev=dvidir ;;
947   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
948     dvidir=$ac_optarg ;;
949
950   -enable-* | --enable-*)
951     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
952     # Reject names that are not valid shell variable names.
953     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
954       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
955    { (exit 1); exit 1; }; }
956     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
957     eval enable_$ac_feature=\$ac_optarg ;;
958
959   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
960   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
961   | --exec | --exe | --ex)
962     ac_prev=exec_prefix ;;
963   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
964   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
965   | --exec=* | --exe=* | --ex=*)
966     exec_prefix=$ac_optarg ;;
967
968   -gas | --gas | --ga | --g)
969     # Obsolete; use --with-gas.
970     with_gas=yes ;;
971
972   -help | --help | --hel | --he | -h)
973     ac_init_help=long ;;
974   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
975     ac_init_help=recursive ;;
976   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
977     ac_init_help=short ;;
978
979   -host | --host | --hos | --ho)
980     ac_prev=host_alias ;;
981   -host=* | --host=* | --hos=* | --ho=*)
982     host_alias=$ac_optarg ;;
983
984   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
985     ac_prev=htmldir ;;
986   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
987   | --ht=*)
988     htmldir=$ac_optarg ;;
989
990   -includedir | --includedir | --includedi | --included | --include \
991   | --includ | --inclu | --incl | --inc)
992     ac_prev=includedir ;;
993   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
994   | --includ=* | --inclu=* | --incl=* | --inc=*)
995     includedir=$ac_optarg ;;
996
997   -infodir | --infodir | --infodi | --infod | --info | --inf)
998     ac_prev=infodir ;;
999   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1000     infodir=$ac_optarg ;;
1001
1002   -libdir | --libdir | --libdi | --libd)
1003     ac_prev=libdir ;;
1004   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1005     libdir=$ac_optarg ;;
1006
1007   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1008   | --libexe | --libex | --libe)
1009     ac_prev=libexecdir ;;
1010   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1011   | --libexe=* | --libex=* | --libe=*)
1012     libexecdir=$ac_optarg ;;
1013
1014   -localedir | --localedir | --localedi | --localed | --locale)
1015     ac_prev=localedir ;;
1016   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1017     localedir=$ac_optarg ;;
1018
1019   -localstatedir | --localstatedir | --localstatedi | --localstated \
1020   | --localstate | --localstat | --localsta | --localst | --locals)
1021     ac_prev=localstatedir ;;
1022   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1023   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1024     localstatedir=$ac_optarg ;;
1025
1026   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1027     ac_prev=mandir ;;
1028   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1029     mandir=$ac_optarg ;;
1030
1031   -nfp | --nfp | --nf)
1032     # Obsolete; use --without-fp.
1033     with_fp=no ;;
1034
1035   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1036   | --no-cr | --no-c | -n)
1037     no_create=yes ;;
1038
1039   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1040   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1041     no_recursion=yes ;;
1042
1043   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1044   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1045   | --oldin | --oldi | --old | --ol | --o)
1046     ac_prev=oldincludedir ;;
1047   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1048   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1049   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1050     oldincludedir=$ac_optarg ;;
1051
1052   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1053     ac_prev=prefix ;;
1054   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1055     prefix=$ac_optarg ;;
1056
1057   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1058   | --program-pre | --program-pr | --program-p)
1059     ac_prev=program_prefix ;;
1060   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1061   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1062     program_prefix=$ac_optarg ;;
1063
1064   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1065   | --program-suf | --program-su | --program-s)
1066     ac_prev=program_suffix ;;
1067   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1068   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1069     program_suffix=$ac_optarg ;;
1070
1071   -program-transform-name | --program-transform-name \
1072   | --program-transform-nam | --program-transform-na \
1073   | --program-transform-n | --program-transform- \
1074   | --program-transform | --program-transfor \
1075   | --program-transfo | --program-transf \
1076   | --program-trans | --program-tran \
1077   | --progr-tra | --program-tr | --program-t)
1078     ac_prev=program_transform_name ;;
1079   -program-transform-name=* | --program-transform-name=* \
1080   | --program-transform-nam=* | --program-transform-na=* \
1081   | --program-transform-n=* | --program-transform-=* \
1082   | --program-transform=* | --program-transfor=* \
1083   | --program-transfo=* | --program-transf=* \
1084   | --program-trans=* | --program-tran=* \
1085   | --progr-tra=* | --program-tr=* | --program-t=*)
1086     program_transform_name=$ac_optarg ;;
1087
1088   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1089     ac_prev=pdfdir ;;
1090   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1091     pdfdir=$ac_optarg ;;
1092
1093   -psdir | --psdir | --psdi | --psd | --ps)
1094     ac_prev=psdir ;;
1095   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1096     psdir=$ac_optarg ;;
1097
1098   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1099   | -silent | --silent | --silen | --sile | --sil)
1100     silent=yes ;;
1101
1102   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1103     ac_prev=sbindir ;;
1104   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1105   | --sbi=* | --sb=*)
1106     sbindir=$ac_optarg ;;
1107
1108   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1109   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1110   | --sharedst | --shareds | --shared | --share | --shar \
1111   | --sha | --sh)
1112     ac_prev=sharedstatedir ;;
1113   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1114   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1115   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1116   | --sha=* | --sh=*)
1117     sharedstatedir=$ac_optarg ;;
1118
1119   -site | --site | --sit)
1120     ac_prev=site ;;
1121   -site=* | --site=* | --sit=*)
1122     site=$ac_optarg ;;
1123
1124   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1125     ac_prev=srcdir ;;
1126   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1127     srcdir=$ac_optarg ;;
1128
1129   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1130   | --syscon | --sysco | --sysc | --sys | --sy)
1131     ac_prev=sysconfdir ;;
1132   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1133   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1134     sysconfdir=$ac_optarg ;;
1135
1136   -target | --target | --targe | --targ | --tar | --ta | --t)
1137     ac_prev=target_alias ;;
1138   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1139     target_alias=$ac_optarg ;;
1140
1141   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1142     verbose=yes ;;
1143
1144   -version | --version | --versio | --versi | --vers | -V)
1145     ac_init_version=: ;;
1146
1147   -with-* | --with-*)
1148     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1149     # Reject names that are not valid shell variable names.
1150     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1151       { echo "$as_me: error: invalid package name: $ac_package" >&2
1152    { (exit 1); exit 1; }; }
1153     ac_package=`echo $ac_package| sed 's/-/_/g'`
1154     eval with_$ac_package=\$ac_optarg ;;
1155
1156   -without-* | --without-*)
1157     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1158     # Reject names that are not valid shell variable names.
1159     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1160       { echo "$as_me: error: invalid package name: $ac_package" >&2
1161    { (exit 1); exit 1; }; }
1162     ac_package=`echo $ac_package | sed 's/-/_/g'`
1163     eval with_$ac_package=no ;;
1164
1165   --x)
1166     # Obsolete; use --with-x.
1167     with_x=yes ;;
1168
1169   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1170   | --x-incl | --x-inc | --x-in | --x-i)
1171     ac_prev=x_includes ;;
1172   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1173   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1174     x_includes=$ac_optarg ;;
1175
1176   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1177   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1178     ac_prev=x_libraries ;;
1179   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1180   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1181     x_libraries=$ac_optarg ;;
1182
1183   -*) { echo "$as_me: error: unrecognized option: $ac_option
1184 Try \`$0 --help' for more information." >&2
1185    { (exit 1); exit 1; }; }
1186     ;;
1187
1188   *=*)
1189     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1190     # Reject names that are not valid shell variable names.
1191     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1192       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1193    { (exit 1); exit 1; }; }
1194     eval $ac_envvar=\$ac_optarg
1195     export $ac_envvar ;;
1196
1197   *)
1198     # FIXME: should be removed in autoconf 3.0.
1199     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1200     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1201       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1202     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1203     ;;
1204
1205   esac
1206 done
1207
1208 if test -n "$ac_prev"; then
1209   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1210   { echo "$as_me: error: missing argument to $ac_option" >&2
1211    { (exit 1); exit 1; }; }
1212 fi
1213
1214 # Be sure to have absolute directory names.
1215 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1216                 datadir sysconfdir sharedstatedir localstatedir includedir \
1217                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1218                 libdir localedir mandir
1219 do
1220   eval ac_val=\$$ac_var
1221   case $ac_val in
1222     [\\/$]* | ?:[\\/]* )  continue;;
1223     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1224   esac
1225   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1226    { (exit 1); exit 1; }; }
1227 done
1228
1229 # There might be people who depend on the old broken behavior: `$host'
1230 # used to hold the argument of --host etc.
1231 # FIXME: To remove some day.
1232 build=$build_alias
1233 host=$host_alias
1234 target=$target_alias
1235
1236 # FIXME: To remove some day.
1237 if test "x$host_alias" != x; then
1238   if test "x$build_alias" = x; then
1239     cross_compiling=maybe
1240     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1241     If a cross compiler is detected then cross compile mode will be used." >&2
1242   elif test "x$build_alias" != "x$host_alias"; then
1243     cross_compiling=yes
1244   fi
1245 fi
1246
1247 ac_tool_prefix=
1248 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1249
1250 test "$silent" = yes && exec 6>/dev/null
1251
1252
1253 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1254 ac_ls_di=`ls -di .` &&
1255 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1256   { echo "$as_me: error: Working directory cannot be determined" >&2
1257    { (exit 1); exit 1; }; }
1258 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1259   { echo "$as_me: error: pwd does not report name of working directory" >&2
1260    { (exit 1); exit 1; }; }
1261
1262
1263 # Find the source files, if location was not specified.
1264 if test -z "$srcdir"; then
1265   ac_srcdir_defaulted=yes
1266   # Try the directory containing this script, then the parent directory.
1267   ac_confdir=`$as_dirname -- "$0" ||
1268 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1269          X"$0" : 'X\(//\)[^/]' \| \
1270          X"$0" : 'X\(//\)$' \| \
1271          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1272 echo X"$0" |
1273     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1274             s//\1/
1275             q
1276           }
1277           /^X\(\/\/\)[^/].*/{
1278             s//\1/
1279             q
1280           }
1281           /^X\(\/\/\)$/{
1282             s//\1/
1283             q
1284           }
1285           /^X\(\/\).*/{
1286             s//\1/
1287             q
1288           }
1289           s/.*/./; q'`
1290   srcdir=$ac_confdir
1291   if test ! -r "$srcdir/$ac_unique_file"; then
1292     srcdir=..
1293   fi
1294 else
1295   ac_srcdir_defaulted=no
1296 fi
1297 if test ! -r "$srcdir/$ac_unique_file"; then
1298   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1299   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1300    { (exit 1); exit 1; }; }
1301 fi
1302 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1303 ac_abs_confdir=`(
1304         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1305    { (exit 1); exit 1; }; }
1306         pwd)`
1307 # When building in place, set srcdir=.
1308 if test "$ac_abs_confdir" = "$ac_pwd"; then
1309   srcdir=.
1310 fi
1311 # Remove unnecessary trailing slashes from srcdir.
1312 # Double slashes in file names in object file debugging info
1313 # mess up M-x gdb in Emacs.
1314 case $srcdir in
1315 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1316 esac
1317 for ac_var in $ac_precious_vars; do
1318   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1319   eval ac_env_${ac_var}_value=\$${ac_var}
1320   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1321   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1322 done
1323
1324 #
1325 # Report the --help message.
1326 #
1327 if test "$ac_init_help" = "long"; then
1328   # Omit some internal or obsolete options to make the list less imposing.
1329   # This message is too long to be a string in the A/UX 3.1 sh.
1330   cat <<_ACEOF
1331 \`configure' configures llvm 3.0svn to adapt to many kinds of systems.
1332
1333 Usage: $0 [OPTION]... [VAR=VALUE]...
1334
1335 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1336 VAR=VALUE.  See below for descriptions of some of the useful variables.
1337
1338 Defaults for the options are specified in brackets.
1339
1340 Configuration:
1341   -h, --help              display this help and exit
1342       --help=short        display options specific to this package
1343       --help=recursive    display the short help of all the included packages
1344   -V, --version           display version information and exit
1345   -q, --quiet, --silent   do not print \`checking...' messages
1346       --cache-file=FILE   cache test results in FILE [disabled]
1347   -C, --config-cache      alias for \`--cache-file=config.cache'
1348   -n, --no-create         do not create output files
1349       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1350
1351 Installation directories:
1352   --prefix=PREFIX         install architecture-independent files in PREFIX
1353                           [$ac_default_prefix]
1354   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1355                           [PREFIX]
1356
1357 By default, \`make install' will install all the files in
1358 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1359 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1360 for instance \`--prefix=\$HOME'.
1361
1362 For better control, use the options below.
1363
1364 Fine tuning of the installation directories:
1365   --bindir=DIR           user executables [EPREFIX/bin]
1366   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1367   --libexecdir=DIR       program executables [EPREFIX/libexec]
1368   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1369   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1370   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1371   --libdir=DIR           object code libraries [EPREFIX/lib]
1372   --includedir=DIR       C header files [PREFIX/include]
1373   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1374   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1375   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1376   --infodir=DIR          info documentation [DATAROOTDIR/info]
1377   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1378   --mandir=DIR           man documentation [DATAROOTDIR/man]
1379   --docdir=DIR           documentation root [DATAROOTDIR/doc/-llvm-]
1380   --htmldir=DIR          html documentation [DOCDIR]
1381   --dvidir=DIR           dvi documentation [DOCDIR]
1382   --pdfdir=DIR           pdf documentation [DOCDIR]
1383   --psdir=DIR            ps documentation [DOCDIR]
1384 _ACEOF
1385
1386   cat <<\_ACEOF
1387
1388 System types:
1389   --build=BUILD     configure for building on BUILD [guessed]
1390   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1391   --target=TARGET   configure for building compilers for TARGET [HOST]
1392 _ACEOF
1393 fi
1394
1395 if test -n "$ac_init_help"; then
1396   case $ac_init_help in
1397      short | recursive ) echo "Configuration of llvm 3.0svn:";;
1398    esac
1399   cat <<\_ACEOF
1400
1401 Optional Features:
1402   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1403   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1404   --enable-polly          Use polly if available (default is YES)
1405   --enable-optimized      Compile with optimizations enabled (default is NO)
1406   --enable-profiling      Compile with profiling enabled (default is NO)
1407   --enable-assertions     Compile with assertion checks enabled (default is
1408                           YES)
1409   --enable-expensive-checks
1410                           Compile with expensive debug checks enabled (default
1411                           is NO)
1412   --enable-debug-runtime  Build runtime libs with debug symbols (default is
1413                           NO)
1414   --enable-debug-symbols  Build compiler with debug symbols (default is NO if
1415                           optimization is on and YES if it's off)
1416   --enable-jit            Enable Just In Time Compiling (default is YES)
1417   --enable-docs           Build documents (default is YES)
1418   --enable-doxygen        Build doxygen documentation (default is NO)
1419   --enable-threads        Use threads if available (default is YES)
1420   --enable-pthreads       Use pthreads if available (default is YES)
1421   --enable-pic            Build LLVM with Position Independent Code (default
1422                           is YES)
1423   --enable-shared         Build a shared library and link tools against it
1424                           (default is NO)
1425   --enable-embed-stdcxx   Build a shared library with embedded libstdc++ for
1426                           Win32 DLL (default is YES)
1427   --enable-timestamps     Enable embedding timestamp information in build
1428                           (default is YES)
1429   --enable-targets        Build specific host targets: all or
1430                           target1,target2,... Valid targets are: host, x86,
1431                           x86_64, sparc, powerpc, alpha, arm, mips, spu,
1432                           xcore, msp430, systemz, blackfin, ptx, cbe, and cpp
1433                           (default=all)
1434   --enable-cbe-printf-a   Enable C Backend output with hex floating point via
1435                           %a (default is YES)
1436   --enable-bindings       Build specific language bindings:
1437                           all,auto,none,{binding-name} (default=auto)
1438   --enable-libffi         Check for the presence of libffi (default is NO)
1439   --enable-ltdl-install   install libltdl
1440
1441 Optional Packages:
1442   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1443   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1444   --with-llvmgccdir       Specify location of llvm-gcc install dir (default
1445                           searches PATH)
1446   --with-llvmgcc          Specify location of llvm-gcc driver (default
1447                           searches PATH)
1448   --with-llvmgxx          Specify location of llvm-g++ driver (default
1449                           searches PATH)
1450   --with-clang            Specify location of clang compiler (default is
1451                           --with-built-clang)
1452   --with-built-clang      Use the compiled Clang as the LLVM compiler
1453                           (default=check)
1454   --with-optimize-option  Select the compiler options to use for optimized
1455                           builds
1456   --with-extra-options    Specify additional options to compile LLVM with
1457   --with-ocaml-libdir     Specify install location for ocaml bindings (default
1458                           is stdlib)
1459   --with-clang-resource-dir
1460                           Relative directory from the Clang binary for
1461                           resource files
1462   --with-c-include-dirs   Colon separated list of directories clang will
1463                           search for headers
1464   --with-cxx-include-root Directory with the libstdc++ headers.
1465   --with-cxx-include-arch Architecture of the libstdc++ headers.
1466   --with-cxx-include-32bit-dir
1467                           32 bit multilib dir.
1468   --with-cxx-include-64bit-dir
1469                           64 bit multilib directory.
1470   --with-binutils-include Specify path to binutils/include/ containing
1471                           plugin-api.h file for gold plugin.
1472   --with-tclinclude       directory where tcl headers are
1473   --with-llvmcc=<name>    Choose the LLVM capable compiler to use (llvm-gcc,
1474                           clang, or none; default=check)
1475   --with-udis86=<path>    Use udis86 external x86 disassembler library
1476   --with-oprofile=<prefix>
1477                           Tell OProfile >= 0.9.4 how to symbolize JIT output
1478
1479 Some influential environment variables:
1480   CC          C compiler command
1481   CFLAGS      C compiler flags
1482   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1483               nonstandard directory <lib dir>
1484   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1485               you have headers in a nonstandard directory <include dir>
1486   CPP         C preprocessor
1487   CXX         C++ compiler command
1488   CXXFLAGS    C++ compiler flags
1489
1490 Use these variables to override the choices made by `configure' or to help
1491 it to find libraries and programs with nonstandard names/locations.
1492
1493 Report bugs to <llvmbugs@cs.uiuc.edu>.
1494 _ACEOF
1495 ac_status=$?
1496 fi
1497
1498 if test "$ac_init_help" = "recursive"; then
1499   # If there are subdirs, report their specific --help.
1500   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1501     test -d "$ac_dir" || continue
1502     ac_builddir=.
1503
1504 case "$ac_dir" in
1505 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1506 *)
1507   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1508   # A ".." for each directory in $ac_dir_suffix.
1509   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1510   case $ac_top_builddir_sub in
1511   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1512   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1513   esac ;;
1514 esac
1515 ac_abs_top_builddir=$ac_pwd
1516 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1517 # for backward compatibility:
1518 ac_top_builddir=$ac_top_build_prefix
1519
1520 case $srcdir in
1521   .)  # We are building in place.
1522     ac_srcdir=.
1523     ac_top_srcdir=$ac_top_builddir_sub
1524     ac_abs_top_srcdir=$ac_pwd ;;
1525   [\\/]* | ?:[\\/]* )  # Absolute name.
1526     ac_srcdir=$srcdir$ac_dir_suffix;
1527     ac_top_srcdir=$srcdir
1528     ac_abs_top_srcdir=$srcdir ;;
1529   *) # Relative name.
1530     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1531     ac_top_srcdir=$ac_top_build_prefix$srcdir
1532     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1533 esac
1534 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1535
1536     cd "$ac_dir" || { ac_status=$?; continue; }
1537     # Check for guested configure.
1538     if test -f "$ac_srcdir/configure.gnu"; then
1539       echo &&
1540       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1541     elif test -f "$ac_srcdir/configure"; then
1542       echo &&
1543       $SHELL "$ac_srcdir/configure" --help=recursive
1544     else
1545       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1546     fi || ac_status=$?
1547     cd "$ac_pwd" || { ac_status=$?; break; }
1548   done
1549 fi
1550
1551 test -n "$ac_init_help" && exit $ac_status
1552 if $ac_init_version; then
1553   cat <<\_ACEOF
1554 llvm configure 3.0svn
1555 generated by GNU Autoconf 2.60
1556
1557 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1558 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1559 This configure script is free software; the Free Software Foundation
1560 gives unlimited permission to copy, distribute and modify it.
1561
1562 Copyright (c) 2003-2010 University of Illinois at Urbana-Champaign.
1563 _ACEOF
1564   exit
1565 fi
1566 cat >config.log <<_ACEOF
1567 This file contains any messages produced by compilers while
1568 running configure, to aid debugging if configure makes a mistake.
1569
1570 It was created by llvm $as_me 3.0svn, which was
1571 generated by GNU Autoconf 2.60.  Invocation command line was
1572
1573   $ $0 $@
1574
1575 _ACEOF
1576 exec 5>>config.log
1577 {
1578 cat <<_ASUNAME
1579 ## --------- ##
1580 ## Platform. ##
1581 ## --------- ##
1582
1583 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1584 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1585 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1586 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1587 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1588
1589 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1590 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1591
1592 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1593 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1594 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1595 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1596 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1597 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1598 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1599
1600 _ASUNAME
1601
1602 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1603 for as_dir in $PATH
1604 do
1605   IFS=$as_save_IFS
1606   test -z "$as_dir" && as_dir=.
1607   echo "PATH: $as_dir"
1608 done
1609 IFS=$as_save_IFS
1610
1611 } >&5
1612
1613 cat >&5 <<_ACEOF
1614
1615
1616 ## ----------- ##
1617 ## Core tests. ##
1618 ## ----------- ##
1619
1620 _ACEOF
1621
1622
1623 # Keep a trace of the command line.
1624 # Strip out --no-create and --no-recursion so they do not pile up.
1625 # Strip out --silent because we don't want to record it for future runs.
1626 # Also quote any args containing shell meta-characters.
1627 # Make two passes to allow for proper duplicate-argument suppression.
1628 ac_configure_args=
1629 ac_configure_args0=
1630 ac_configure_args1=
1631 ac_must_keep_next=false
1632 for ac_pass in 1 2
1633 do
1634   for ac_arg
1635   do
1636     case $ac_arg in
1637     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1638     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1639     | -silent | --silent | --silen | --sile | --sil)
1640       continue ;;
1641     *\'*)
1642       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1643     esac
1644     case $ac_pass in
1645     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1646     2)
1647       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1648       if test $ac_must_keep_next = true; then
1649         ac_must_keep_next=false # Got value, back to normal.
1650       else
1651         case $ac_arg in
1652           *=* | --config-cache | -C | -disable-* | --disable-* \
1653           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1654           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1655           | -with-* | --with-* | -without-* | --without-* | --x)
1656             case "$ac_configure_args0 " in
1657               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1658             esac
1659             ;;
1660           -* ) ac_must_keep_next=true ;;
1661         esac
1662       fi
1663       ac_configure_args="$ac_configure_args '$ac_arg'"
1664       ;;
1665     esac
1666   done
1667 done
1668 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1669 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1670
1671 # When interrupted or exit'd, cleanup temporary files, and complete
1672 # config.log.  We remove comments because anyway the quotes in there
1673 # would cause problems or look ugly.
1674 # WARNING: Use '\'' to represent an apostrophe within the trap.
1675 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1676 trap 'exit_status=$?
1677   # Save into config.log some information that might help in debugging.
1678   {
1679     echo
1680
1681     cat <<\_ASBOX
1682 ## ---------------- ##
1683 ## Cache variables. ##
1684 ## ---------------- ##
1685 _ASBOX
1686     echo
1687     # The following way of writing the cache mishandles newlines in values,
1688 (
1689   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1690     eval ac_val=\$$ac_var
1691     case $ac_val in #(
1692     *${as_nl}*)
1693       case $ac_var in #(
1694       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1695 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1696       esac
1697       case $ac_var in #(
1698       _ | IFS | as_nl) ;; #(
1699       *) $as_unset $ac_var ;;
1700       esac ;;
1701     esac
1702   done
1703   (set) 2>&1 |
1704     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1705     *${as_nl}ac_space=\ *)
1706       sed -n \
1707         "s/'\''/'\''\\\\'\'''\''/g;
1708           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1709       ;; #(
1710     *)
1711       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1712       ;;
1713     esac |
1714     sort
1715 )
1716     echo
1717
1718     cat <<\_ASBOX
1719 ## ----------------- ##
1720 ## Output variables. ##
1721 ## ----------------- ##
1722 _ASBOX
1723     echo
1724     for ac_var in $ac_subst_vars
1725     do
1726       eval ac_val=\$$ac_var
1727       case $ac_val in
1728       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1729       esac
1730       echo "$ac_var='\''$ac_val'\''"
1731     done | sort
1732     echo
1733
1734     if test -n "$ac_subst_files"; then
1735       cat <<\_ASBOX
1736 ## ------------------- ##
1737 ## File substitutions. ##
1738 ## ------------------- ##
1739 _ASBOX
1740       echo
1741       for ac_var in $ac_subst_files
1742       do
1743         eval ac_val=\$$ac_var
1744         case $ac_val in
1745         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1746         esac
1747         echo "$ac_var='\''$ac_val'\''"
1748       done | sort
1749       echo
1750     fi
1751
1752     if test -s confdefs.h; then
1753       cat <<\_ASBOX
1754 ## ----------- ##
1755 ## confdefs.h. ##
1756 ## ----------- ##
1757 _ASBOX
1758       echo
1759       cat confdefs.h
1760       echo
1761     fi
1762     test "$ac_signal" != 0 &&
1763       echo "$as_me: caught signal $ac_signal"
1764     echo "$as_me: exit $exit_status"
1765   } >&5
1766   rm -f core *.core core.conftest.* &&
1767     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1768     exit $exit_status
1769 ' 0
1770 for ac_signal in 1 2 13 15; do
1771   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1772 done
1773 ac_signal=0
1774
1775 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1776 rm -f -r conftest* confdefs.h
1777
1778 # Predefined preprocessor variables.
1779
1780 cat >>confdefs.h <<_ACEOF
1781 #define PACKAGE_NAME "$PACKAGE_NAME"
1782 _ACEOF
1783
1784
1785 cat >>confdefs.h <<_ACEOF
1786 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1787 _ACEOF
1788
1789
1790 cat >>confdefs.h <<_ACEOF
1791 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1792 _ACEOF
1793
1794
1795 cat >>confdefs.h <<_ACEOF
1796 #define PACKAGE_STRING "$PACKAGE_STRING"
1797 _ACEOF
1798
1799
1800 cat >>confdefs.h <<_ACEOF
1801 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1802 _ACEOF
1803
1804
1805 # Let the site file select an alternate cache file if it wants to.
1806 # Prefer explicitly selected file to automatically selected ones.
1807 if test -n "$CONFIG_SITE"; then
1808   set x "$CONFIG_SITE"
1809 elif test "x$prefix" != xNONE; then
1810   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1811 else
1812   set x "$ac_default_prefix/share/config.site" \
1813         "$ac_default_prefix/etc/config.site"
1814 fi
1815 shift
1816 for ac_site_file
1817 do
1818   if test -r "$ac_site_file"; then
1819     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1820 echo "$as_me: loading site script $ac_site_file" >&6;}
1821     sed 's/^/| /' "$ac_site_file" >&5
1822     . "$ac_site_file"
1823   fi
1824 done
1825
1826 if test -r "$cache_file"; then
1827   # Some versions of bash will fail to source /dev/null (special
1828   # files actually), so we avoid doing that.
1829   if test -f "$cache_file"; then
1830     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1831 echo "$as_me: loading cache $cache_file" >&6;}
1832     case $cache_file in
1833       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1834       *)                      . "./$cache_file";;
1835     esac
1836   fi
1837 else
1838   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1839 echo "$as_me: creating cache $cache_file" >&6;}
1840   >$cache_file
1841 fi
1842
1843 # Check that the precious variables saved in the cache have kept the same
1844 # value.
1845 ac_cache_corrupted=false
1846 for ac_var in $ac_precious_vars; do
1847   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1848   eval ac_new_set=\$ac_env_${ac_var}_set
1849   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1850   eval ac_new_val=\$ac_env_${ac_var}_value
1851   case $ac_old_set,$ac_new_set in
1852     set,)
1853       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1854 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1855       ac_cache_corrupted=: ;;
1856     ,set)
1857       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1858 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1859       ac_cache_corrupted=: ;;
1860     ,);;
1861     *)
1862       if test "x$ac_old_val" != "x$ac_new_val"; then
1863         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1864 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1865         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1866 echo "$as_me:   former value:  $ac_old_val" >&2;}
1867         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1868 echo "$as_me:   current value: $ac_new_val" >&2;}
1869         ac_cache_corrupted=:
1870       fi;;
1871   esac
1872   # Pass precious variables to config.status.
1873   if test "$ac_new_set" = set; then
1874     case $ac_new_val in
1875     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1876     *) ac_arg=$ac_var=$ac_new_val ;;
1877     esac
1878     case " $ac_configure_args " in
1879       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1880       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1881     esac
1882   fi
1883 done
1884 if $ac_cache_corrupted; then
1885   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1886 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1887   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1888 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1889    { (exit 1); exit 1; }; }
1890 fi
1891
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916 ac_ext=c
1917 ac_cpp='$CPP $CPPFLAGS'
1918 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1919 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1920 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1921
1922
1923
1924 LLVM_COPYRIGHT="Copyright (c) 2003-2010 University of Illinois at Urbana-Champaign."
1925
1926
1927
1928
1929
1930
1931
1932 ac_aux_dir=
1933 for ac_dir in autoconf "$srcdir"/autoconf; do
1934   if test -f "$ac_dir/install-sh"; then
1935     ac_aux_dir=$ac_dir
1936     ac_install_sh="$ac_aux_dir/install-sh -c"
1937     break
1938   elif test -f "$ac_dir/install.sh"; then
1939     ac_aux_dir=$ac_dir
1940     ac_install_sh="$ac_aux_dir/install.sh -c"
1941     break
1942   elif test -f "$ac_dir/shtool"; then
1943     ac_aux_dir=$ac_dir
1944     ac_install_sh="$ac_aux_dir/shtool install -c"
1945     break
1946   fi
1947 done
1948 if test -z "$ac_aux_dir"; then
1949   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
1950 echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
1951    { (exit 1); exit 1; }; }
1952 fi
1953
1954 # These three variables are undocumented and unsupported,
1955 # and are intended to be withdrawn in a future Autoconf release.
1956 # They can cause serious problems if a builder's source tree is in a directory
1957 # whose full name contains unusual characters.
1958 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
1959 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
1960 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
1961
1962
1963
1964 if test ${srcdir} != "." ; then
1965   if test -f ${srcdir}/include/llvm/Config/config.h ; then
1966     { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
1967 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1968    { (exit 1); exit 1; }; }
1969   fi
1970 fi
1971
1972
1973
1974 if test -d ${srcdir}/projects/llvm-gcc ; then
1975   subdirs="$subdirs projects/llvm-gcc"
1976
1977 fi
1978
1979 if test -d ${srcdir}/projects/test-suite ; then
1980   subdirs="$subdirs projects/test-suite"
1981
1982 fi
1983
1984 if test -d ${srcdir}/projects/llvm-test ; then
1985   subdirs="$subdirs projects/llvm-test"
1986
1987 fi
1988
1989 if test -d ${srcdir}/projects/poolalloc ; then
1990   subdirs="$subdirs projects/poolalloc"
1991
1992 fi
1993
1994 if test -d ${srcdir}/projects/llvm-poolalloc ; then
1995   subdirs="$subdirs projects/llvm-poolalloc"
1996
1997 fi
1998
1999 for i in `ls ${srcdir}/projects`
2000 do
2001   if test -d ${srcdir}/projects/${i} ; then
2002     case ${i} in
2003       sample)       subdirs="$subdirs projects/sample"
2004     ;;
2005       privbracket)  subdirs="$subdirs projects/privbracket"
2006  ;;
2007       llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
2008  ;;
2009       llvm-reopt)   subdirs="$subdirs projects/llvm-reopt"
2010 ;;
2011       llvm-java)    subdirs="$subdirs projects/llvm-java"
2012  ;;
2013       llvm-tv)      subdirs="$subdirs projects/llvm-tv"
2014    ;;
2015       safecode)     subdirs="$subdirs projects/safecode"
2016  ;;
2017       llvm-kernel)  subdirs="$subdirs projects/llvm-kernel"
2018  ;;
2019       llvm-gcc)       ;;
2020       test-suite)     ;;
2021       llvm-test)      ;;
2022       poolalloc)      ;;
2023       llvm-poolalloc) ;;
2024       *)
2025         { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
2026 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
2027         ;;
2028     esac
2029   fi
2030 done
2031
2032 # Check whether --enable-polly was given.
2033 if test "${enable_polly+set}" = set; then
2034   enableval=$enable_polly;
2035 else
2036   enableval=default
2037 fi
2038
2039 case "$enableval" in
2040   yes) ENABLE_POLLY=1
2041  ;;
2042   no)  ENABLE_POLLY=0
2043  ;;
2044   default) ENABLE_POLLY=1
2045  ;;
2046   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&5
2047 echo "$as_me: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&2;}
2048    { (exit 1); exit 1; }; } ;;
2049 esac
2050
2051
2052 if (test -d ${srcdir}/tools/polly) && (test $ENABLE_POLLY -eq 1) ; then
2053   LLVM_HAS_POLLY=1
2054
2055   subdirs="$subdirs tools/polly"
2056
2057 fi
2058
2059
2060 # Make sure we can run config.sub.
2061 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2062   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2063 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2064    { (exit 1); exit 1; }; }
2065
2066 { echo "$as_me:$LINENO: checking build system type" >&5
2067 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2068 if test "${ac_cv_build+set}" = set; then
2069   echo $ECHO_N "(cached) $ECHO_C" >&6
2070 else
2071   ac_build_alias=$build_alias
2072 test "x$ac_build_alias" = x &&
2073   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2074 test "x$ac_build_alias" = x &&
2075   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2076 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2077    { (exit 1); exit 1; }; }
2078 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2079   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2080 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2081    { (exit 1); exit 1; }; }
2082
2083 fi
2084 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2085 echo "${ECHO_T}$ac_cv_build" >&6; }
2086 case $ac_cv_build in
2087 *-*-*) ;;
2088 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2089 echo "$as_me: error: invalid value of canonical build" >&2;}
2090    { (exit 1); exit 1; }; };;
2091 esac
2092 build=$ac_cv_build
2093 ac_save_IFS=$IFS; IFS='-'
2094 set x $ac_cv_build
2095 shift
2096 build_cpu=$1
2097 build_vendor=$2
2098 shift; shift
2099 # Remember, the first character of IFS is used to create $*,
2100 # except with old shells:
2101 build_os=$*
2102 IFS=$ac_save_IFS
2103 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2104
2105
2106 { echo "$as_me:$LINENO: checking host system type" >&5
2107 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2108 if test "${ac_cv_host+set}" = set; then
2109   echo $ECHO_N "(cached) $ECHO_C" >&6
2110 else
2111   if test "x$host_alias" = x; then
2112   ac_cv_host=$ac_cv_build
2113 else
2114   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2115     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2116 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2117    { (exit 1); exit 1; }; }
2118 fi
2119
2120 fi
2121 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2122 echo "${ECHO_T}$ac_cv_host" >&6; }
2123 case $ac_cv_host in
2124 *-*-*) ;;
2125 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2126 echo "$as_me: error: invalid value of canonical host" >&2;}
2127    { (exit 1); exit 1; }; };;
2128 esac
2129 host=$ac_cv_host
2130 ac_save_IFS=$IFS; IFS='-'
2131 set x $ac_cv_host
2132 shift
2133 host_cpu=$1
2134 host_vendor=$2
2135 shift; shift
2136 # Remember, the first character of IFS is used to create $*,
2137 # except with old shells:
2138 host_os=$*
2139 IFS=$ac_save_IFS
2140 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2141
2142
2143 { echo "$as_me:$LINENO: checking target system type" >&5
2144 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2145 if test "${ac_cv_target+set}" = set; then
2146   echo $ECHO_N "(cached) $ECHO_C" >&6
2147 else
2148   if test "x$target_alias" = x; then
2149   ac_cv_target=$ac_cv_host
2150 else
2151   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2152     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2153 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2154    { (exit 1); exit 1; }; }
2155 fi
2156
2157 fi
2158 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2159 echo "${ECHO_T}$ac_cv_target" >&6; }
2160 case $ac_cv_target in
2161 *-*-*) ;;
2162 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2163 echo "$as_me: error: invalid value of canonical target" >&2;}
2164    { (exit 1); exit 1; }; };;
2165 esac
2166 target=$ac_cv_target
2167 ac_save_IFS=$IFS; IFS='-'
2168 set x $ac_cv_target
2169 shift
2170 target_cpu=$1
2171 target_vendor=$2
2172 shift; shift
2173 # Remember, the first character of IFS is used to create $*,
2174 # except with old shells:
2175 target_os=$*
2176 IFS=$ac_save_IFS
2177 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2178
2179
2180 # The aliases save the names the user supplied, while $host etc.
2181 # will get canonicalized.
2182 test -n "$target_alias" &&
2183   test "$program_prefix$program_suffix$program_transform_name" = \
2184     NONENONEs,x,x, &&
2185   program_prefix=${target_alias}-
2186
2187 { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
2188 echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
2189 if test "${llvm_cv_os_type+set}" = set; then
2190   echo $ECHO_N "(cached) $ECHO_C" >&6
2191 else
2192   case $host in
2193   *-*-aix*)
2194     llvm_cv_link_all_option="-Wl,--whole-archive"
2195     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2196     llvm_cv_os_type="AIX"
2197     llvm_cv_platform_type="Unix" ;;
2198   *-*-irix*)
2199     llvm_cv_link_all_option="-Wl,--whole-archive"
2200     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2201     llvm_cv_os_type="IRIX"
2202     llvm_cv_platform_type="Unix" ;;
2203   *-*-cygwin*)
2204     llvm_cv_link_all_option="-Wl,--whole-archive"
2205     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2206     llvm_cv_os_type="Cygwin"
2207     llvm_cv_platform_type="Unix" ;;
2208   *-*-darwin*)
2209     llvm_cv_link_all_option="-Wl,-all_load"
2210     llvm_cv_no_link_all_option="-Wl,-noall_load"
2211     llvm_cv_os_type="Darwin"
2212     llvm_cv_platform_type="Unix" ;;
2213   *-*-minix*)
2214     llvm_cv_link_all_option="-Wl,-all_load"
2215     llvm_cv_no_link_all_option="-Wl,-noall_load"
2216     llvm_cv_os_type="Minix"
2217     llvm_cv_platform_type="Unix" ;;
2218   *-*-freebsd*)
2219     llvm_cv_link_all_option="-Wl,--whole-archive"
2220     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2221     llvm_cv_os_type="FreeBSD"
2222     llvm_cv_platform_type="Unix" ;;
2223   *-*-openbsd*)
2224     llvm_cv_link_all_option="-Wl,--whole-archive"
2225     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2226     llvm_cv_os_type="OpenBSD"
2227     llvm_cv_platform_type="Unix" ;;
2228   *-*-netbsd*)
2229     llvm_cv_link_all_option="-Wl,--whole-archive"
2230     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2231     llvm_cv_os_type="NetBSD"
2232     llvm_cv_platform_type="Unix" ;;
2233   *-*-dragonfly*)
2234     llvm_cv_link_all_option="-Wl,--whole-archive"
2235     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2236     llvm_cv_os_type="DragonFly"
2237     llvm_cv_platform_type="Unix" ;;
2238   *-*-hpux*)
2239     llvm_cv_link_all_option="-Wl,--whole-archive"
2240     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2241     llvm_cv_os_type="HP-UX"
2242     llvm_cv_platform_type="Unix" ;;
2243   *-*-interix*)
2244     llvm_cv_link_all_option="-Wl,--whole-archive"
2245     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2246     llvm_cv_os_type="Interix"
2247     llvm_cv_platform_type="Unix" ;;
2248   *-*-linux*)
2249     llvm_cv_link_all_option="-Wl,--whole-archive"
2250     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2251     llvm_cv_os_type="Linux"
2252     llvm_cv_platform_type="Unix" ;;
2253   *-*-solaris*)
2254     llvm_cv_link_all_option="-Wl,-z,allextract"
2255     llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
2256     llvm_cv_os_type="SunOS"
2257     llvm_cv_platform_type="Unix" ;;
2258   *-*-auroraux*)
2259     llvm_cv_link_all_option="-Wl,-z,allextract"
2260     llvm_cv_link_all_option="-Wl,-z,defaultextract"
2261     llvm_cv_os_type="AuroraUX"
2262     llvm_cv_platform_type="Unix" ;;
2263   *-*-win32*)
2264     llvm_cv_link_all_option="-Wl,--whole-archive"
2265     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2266     llvm_cv_os_type="Win32"
2267     llvm_cv_platform_type="Win32" ;;
2268   *-*-mingw*)
2269     llvm_cv_link_all_option="-Wl,--whole-archive"
2270     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2271     llvm_cv_os_type="MingW"
2272     llvm_cv_platform_type="Win32" ;;
2273   *-*-haiku*)
2274     llvm_cv_link_all_option="-Wl,--whole-archive"
2275     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2276     llvm_cv_os_type="Haiku"
2277     llvm_cv_platform_type="Unix" ;;
2278   *-unknown-eabi*)
2279     llvm_cv_link_all_option="-Wl,--whole-archive"
2280     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2281     llvm_cv_os_type="Freestanding"
2282     llvm_cv_platform_type="Unix" ;;
2283   *-unknown-elf*)
2284     llvm_cv_link_all_option="-Wl,--whole-archive"
2285     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2286     llvm_cv_os_type="Freestanding"
2287     llvm_cv_platform_type="Unix" ;;
2288   *)
2289     llvm_cv_link_all_option=""
2290     llvm_cv_no_link_all_option=""
2291     llvm_cv_os_type="Unknown"
2292     llvm_cv_platform_type="Unknown" ;;
2293 esac
2294 fi
2295 { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
2296 echo "${ECHO_T}$llvm_cv_os_type" >&6; }
2297
2298 { echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
2299 echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
2300 if test "${llvm_cv_target_os_type+set}" = set; then
2301   echo $ECHO_N "(cached) $ECHO_C" >&6
2302 else
2303   case $target in
2304   *-*-aix*)
2305     llvm_cv_target_os_type="AIX" ;;
2306   *-*-irix*)
2307     llvm_cv_target_os_type="IRIX" ;;
2308   *-*-cygwin*)
2309     llvm_cv_target_os_type="Cygwin" ;;
2310   *-*-darwin*)
2311     llvm_cv_target_os_type="Darwin" ;;
2312   *-*-minix*)
2313     llvm_cv_target_os_type="Minix" ;;
2314   *-*-freebsd*)
2315     llvm_cv_target_os_type="FreeBSD" ;;
2316   *-*-openbsd*)
2317     llvm_cv_target_os_type="OpenBSD" ;;
2318   *-*-netbsd*)
2319     llvm_cv_target_os_type="NetBSD" ;;
2320   *-*-dragonfly*)
2321     llvm_cv_target_os_type="DragonFly" ;;
2322   *-*-hpux*)
2323     llvm_cv_target_os_type="HP-UX" ;;
2324   *-*-interix*)
2325     llvm_cv_target_os_type="Interix" ;;
2326   *-*-linux*)
2327     llvm_cv_target_os_type="Linux" ;;
2328   *-*-solaris*)
2329     llvm_cv_target_os_type="SunOS" ;;
2330   *-*-auroraux*)
2331     llvm_cv_target_os_type="AuroraUX" ;;
2332   *-*-win32*)
2333     llvm_cv_target_os_type="Win32" ;;
2334   *-*-mingw*)
2335     llvm_cv_target_os_type="MingW" ;;
2336   *-*-haiku*)
2337     llvm_cv_target_os_type="Haiku" ;;
2338   *-unknown-eabi*)
2339     llvm_cv_target_os_type="Freestanding" ;;
2340   *)
2341     llvm_cv_target_os_type="Unknown" ;;
2342 esac
2343 fi
2344 { echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
2345 echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
2346
2347 if test "$llvm_cv_os_type" = "Unknown" ; then
2348   { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
2349 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
2350    { (exit 1); exit 1; }; }
2351 fi
2352
2353 OS=$llvm_cv_os_type
2354
2355 HOST_OS=$llvm_cv_os_type
2356
2357 TARGET_OS=$llvm_cv_target_os_type
2358
2359
2360 LINKALL=$llvm_cv_link_all_option
2361
2362 NOLINKALL=$llvm_cv_no_link_all_option
2363
2364
2365 case $llvm_cv_platform_type in
2366   Unix)
2367
2368 cat >>confdefs.h <<\_ACEOF
2369 #define LLVM_ON_UNIX 1
2370 _ACEOF
2371
2372     LLVM_ON_UNIX=1
2373
2374     LLVM_ON_WIN32=0
2375
2376     ;;
2377   Win32)
2378
2379 cat >>confdefs.h <<\_ACEOF
2380 #define LLVM_ON_WIN32 1
2381 _ACEOF
2382
2383     LLVM_ON_UNIX=0
2384
2385     LLVM_ON_WIN32=1
2386
2387     ;;
2388 esac
2389
2390 { echo "$as_me:$LINENO: checking target architecture" >&5
2391 echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
2392 if test "${llvm_cv_target_arch+set}" = set; then
2393   echo $ECHO_N "(cached) $ECHO_C" >&6
2394 else
2395   case $target in
2396   i?86-*)                 llvm_cv_target_arch="x86" ;;
2397   amd64-* | x86_64-*)     llvm_cv_target_arch="x86_64" ;;
2398   sparc*-*)               llvm_cv_target_arch="Sparc" ;;
2399   powerpc*-*)             llvm_cv_target_arch="PowerPC" ;;
2400   alpha*-*)               llvm_cv_target_arch="Alpha" ;;
2401   arm*-*)                 llvm_cv_target_arch="ARM" ;;
2402   mips-*)                 llvm_cv_target_arch="Mips" ;;
2403   xcore-*)                llvm_cv_target_arch="XCore" ;;
2404   msp430-*)               llvm_cv_target_arch="MSP430" ;;
2405   s390x-*)                llvm_cv_target_arch="SystemZ" ;;
2406   bfin-*)                 llvm_cv_target_arch="Blackfin" ;;
2407   mblaze-*)               llvm_cv_target_arch="MBlaze" ;;
2408   ptx-*)                  llvm_cv_target_arch="PTX" ;;
2409   *)                      llvm_cv_target_arch="Unknown" ;;
2410 esac
2411 fi
2412 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
2413 echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
2414
2415 if test "$llvm_cv_target_arch" = "Unknown" ; then
2416   { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
2417 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
2418 fi
2419
2420 # Determine the LLVM native architecture for the target
2421 case "$llvm_cv_target_arch" in
2422     x86)     LLVM_NATIVE_ARCH="X86" ;;
2423     x86_64)  LLVM_NATIVE_ARCH="X86" ;;
2424     *)       LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
2425 esac
2426
2427 ARCH=$llvm_cv_target_arch
2428
2429
2430 ac_ext=c
2431 ac_cpp='$CPP $CPPFLAGS'
2432 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2433 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2434 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2435 if test -n "$ac_tool_prefix"; then
2436   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2437 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2438 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2439 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2440 if test "${ac_cv_prog_CC+set}" = set; then
2441   echo $ECHO_N "(cached) $ECHO_C" >&6
2442 else
2443   if test -n "$CC"; then
2444   ac_cv_prog_CC="$CC" # Let the user override the test.
2445 else
2446 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2447 for as_dir in $PATH
2448 do
2449   IFS=$as_save_IFS
2450   test -z "$as_dir" && as_dir=.
2451   for ac_exec_ext in '' $ac_executable_extensions; do
2452   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2453     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2454     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2455     break 2
2456   fi
2457 done
2458 done
2459 IFS=$as_save_IFS
2460
2461 fi
2462 fi
2463 CC=$ac_cv_prog_CC
2464 if test -n "$CC"; then
2465   { echo "$as_me:$LINENO: result: $CC" >&5
2466 echo "${ECHO_T}$CC" >&6; }
2467 else
2468   { echo "$as_me:$LINENO: result: no" >&5
2469 echo "${ECHO_T}no" >&6; }
2470 fi
2471
2472
2473 fi
2474 if test -z "$ac_cv_prog_CC"; then
2475   ac_ct_CC=$CC
2476   # Extract the first word of "gcc", so it can be a program name with args.
2477 set dummy gcc; ac_word=$2
2478 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2479 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2480 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2481   echo $ECHO_N "(cached) $ECHO_C" >&6
2482 else
2483   if test -n "$ac_ct_CC"; then
2484   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2485 else
2486 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2487 for as_dir in $PATH
2488 do
2489   IFS=$as_save_IFS
2490   test -z "$as_dir" && as_dir=.
2491   for ac_exec_ext in '' $ac_executable_extensions; do
2492   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2493     ac_cv_prog_ac_ct_CC="gcc"
2494     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2495     break 2
2496   fi
2497 done
2498 done
2499 IFS=$as_save_IFS
2500
2501 fi
2502 fi
2503 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2504 if test -n "$ac_ct_CC"; then
2505   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2506 echo "${ECHO_T}$ac_ct_CC" >&6; }
2507 else
2508   { echo "$as_me:$LINENO: result: no" >&5
2509 echo "${ECHO_T}no" >&6; }
2510 fi
2511
2512   if test "x$ac_ct_CC" = x; then
2513     CC=""
2514   else
2515     case $cross_compiling:$ac_tool_warned in
2516 yes:)
2517 { echo "$as_me:$LINENO: 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." >&5
2520 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2521 whose name does not start with the host triplet.  If you think this
2522 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2523 ac_tool_warned=yes ;;
2524 esac
2525     CC=$ac_ct_CC
2526   fi
2527 else
2528   CC="$ac_cv_prog_CC"
2529 fi
2530
2531 if test -z "$CC"; then
2532           if test -n "$ac_tool_prefix"; then
2533     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2534 set dummy ${ac_tool_prefix}cc; ac_word=$2
2535 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2536 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2537 if test "${ac_cv_prog_CC+set}" = set; then
2538   echo $ECHO_N "(cached) $ECHO_C" >&6
2539 else
2540   if test -n "$CC"; then
2541   ac_cv_prog_CC="$CC" # Let the user override the test.
2542 else
2543 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2544 for as_dir in $PATH
2545 do
2546   IFS=$as_save_IFS
2547   test -z "$as_dir" && as_dir=.
2548   for ac_exec_ext in '' $ac_executable_extensions; do
2549   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2550     ac_cv_prog_CC="${ac_tool_prefix}cc"
2551     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2552     break 2
2553   fi
2554 done
2555 done
2556 IFS=$as_save_IFS
2557
2558 fi
2559 fi
2560 CC=$ac_cv_prog_CC
2561 if test -n "$CC"; then
2562   { echo "$as_me:$LINENO: result: $CC" >&5
2563 echo "${ECHO_T}$CC" >&6; }
2564 else
2565   { echo "$as_me:$LINENO: result: no" >&5
2566 echo "${ECHO_T}no" >&6; }
2567 fi
2568
2569
2570   fi
2571 fi
2572 if test -z "$CC"; then
2573   # Extract the first word of "cc", so it can be a program name with args.
2574 set dummy cc; ac_word=$2
2575 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2576 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2577 if test "${ac_cv_prog_CC+set}" = set; then
2578   echo $ECHO_N "(cached) $ECHO_C" >&6
2579 else
2580   if test -n "$CC"; then
2581   ac_cv_prog_CC="$CC" # Let the user override the test.
2582 else
2583   ac_prog_rejected=no
2584 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2585 for as_dir in $PATH
2586 do
2587   IFS=$as_save_IFS
2588   test -z "$as_dir" && as_dir=.
2589   for ac_exec_ext in '' $ac_executable_extensions; do
2590   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2591     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2592        ac_prog_rejected=yes
2593        continue
2594      fi
2595     ac_cv_prog_CC="cc"
2596     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2597     break 2
2598   fi
2599 done
2600 done
2601 IFS=$as_save_IFS
2602
2603 if test $ac_prog_rejected = yes; then
2604   # We found a bogon in the path, so make sure we never use it.
2605   set dummy $ac_cv_prog_CC
2606   shift
2607   if test $# != 0; then
2608     # We chose a different compiler from the bogus one.
2609     # However, it has the same basename, so the bogon will be chosen
2610     # first if we set CC to just the basename; use the full file name.
2611     shift
2612     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2613   fi
2614 fi
2615 fi
2616 fi
2617 CC=$ac_cv_prog_CC
2618 if test -n "$CC"; then
2619   { echo "$as_me:$LINENO: result: $CC" >&5
2620 echo "${ECHO_T}$CC" >&6; }
2621 else
2622   { echo "$as_me:$LINENO: result: no" >&5
2623 echo "${ECHO_T}no" >&6; }
2624 fi
2625
2626
2627 fi
2628 if test -z "$CC"; then
2629   if test -n "$ac_tool_prefix"; then
2630   for ac_prog in cl.exe
2631   do
2632     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2633 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2634 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2635 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2636 if test "${ac_cv_prog_CC+set}" = set; then
2637   echo $ECHO_N "(cached) $ECHO_C" >&6
2638 else
2639   if test -n "$CC"; then
2640   ac_cv_prog_CC="$CC" # Let the user override the test.
2641 else
2642 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2643 for as_dir in $PATH
2644 do
2645   IFS=$as_save_IFS
2646   test -z "$as_dir" && as_dir=.
2647   for ac_exec_ext in '' $ac_executable_extensions; do
2648   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2649     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2650     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2651     break 2
2652   fi
2653 done
2654 done
2655 IFS=$as_save_IFS
2656
2657 fi
2658 fi
2659 CC=$ac_cv_prog_CC
2660 if test -n "$CC"; then
2661   { echo "$as_me:$LINENO: result: $CC" >&5
2662 echo "${ECHO_T}$CC" >&6; }
2663 else
2664   { echo "$as_me:$LINENO: result: no" >&5
2665 echo "${ECHO_T}no" >&6; }
2666 fi
2667
2668
2669     test -n "$CC" && break
2670   done
2671 fi
2672 if test -z "$CC"; then
2673   ac_ct_CC=$CC
2674   for ac_prog in cl.exe
2675 do
2676   # Extract the first word of "$ac_prog", so it can be a program name with args.
2677 set dummy $ac_prog; ac_word=$2
2678 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2679 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2680 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2681   echo $ECHO_N "(cached) $ECHO_C" >&6
2682 else
2683   if test -n "$ac_ct_CC"; then
2684   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2685 else
2686 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2687 for as_dir in $PATH
2688 do
2689   IFS=$as_save_IFS
2690   test -z "$as_dir" && as_dir=.
2691   for ac_exec_ext in '' $ac_executable_extensions; do
2692   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2693     ac_cv_prog_ac_ct_CC="$ac_prog"
2694     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2695     break 2
2696   fi
2697 done
2698 done
2699 IFS=$as_save_IFS
2700
2701 fi
2702 fi
2703 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2704 if test -n "$ac_ct_CC"; then
2705   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2706 echo "${ECHO_T}$ac_ct_CC" >&6; }
2707 else
2708   { echo "$as_me:$LINENO: result: no" >&5
2709 echo "${ECHO_T}no" >&6; }
2710 fi
2711
2712
2713   test -n "$ac_ct_CC" && break
2714 done
2715
2716   if test "x$ac_ct_CC" = x; then
2717     CC=""
2718   else
2719     case $cross_compiling:$ac_tool_warned in
2720 yes:)
2721 { echo "$as_me:$LINENO: 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." >&5
2724 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2725 whose name does not start with the host triplet.  If you think this
2726 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2727 ac_tool_warned=yes ;;
2728 esac
2729     CC=$ac_ct_CC
2730   fi
2731 fi
2732
2733 fi
2734
2735
2736 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2737 See \`config.log' for more details." >&5
2738 echo "$as_me: error: no acceptable C compiler found in \$PATH
2739 See \`config.log' for more details." >&2;}
2740    { (exit 1); exit 1; }; }
2741
2742 # Provide some information about the compiler.
2743 echo "$as_me:$LINENO: checking for C compiler version" >&5
2744 ac_compiler=`set X $ac_compile; echo $2`
2745 { (ac_try="$ac_compiler --version >&5"
2746 case "(($ac_try" in
2747   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2748   *) ac_try_echo=$ac_try;;
2749 esac
2750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2751   (eval "$ac_compiler --version >&5") 2>&5
2752   ac_status=$?
2753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2754   (exit $ac_status); }
2755 { (ac_try="$ac_compiler -v >&5"
2756 case "(($ac_try" in
2757   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2758   *) ac_try_echo=$ac_try;;
2759 esac
2760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2761   (eval "$ac_compiler -v >&5") 2>&5
2762   ac_status=$?
2763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2764   (exit $ac_status); }
2765 { (ac_try="$ac_compiler -V >&5"
2766 case "(($ac_try" in
2767   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2768   *) ac_try_echo=$ac_try;;
2769 esac
2770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2771   (eval "$ac_compiler -V >&5") 2>&5
2772   ac_status=$?
2773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2774   (exit $ac_status); }
2775
2776 cat >conftest.$ac_ext <<_ACEOF
2777 /* confdefs.h.  */
2778 _ACEOF
2779 cat confdefs.h >>conftest.$ac_ext
2780 cat >>conftest.$ac_ext <<_ACEOF
2781 /* end confdefs.h.  */
2782
2783 int
2784 main ()
2785 {
2786
2787   ;
2788   return 0;
2789 }
2790 _ACEOF
2791 ac_clean_files_save=$ac_clean_files
2792 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2793 # Try to create an executable without -o first, disregard a.out.
2794 # It will help us diagnose broken compilers, and finding out an intuition
2795 # of exeext.
2796 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2797 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2798 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2799 #
2800 # List of possible output files, starting from the most likely.
2801 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2802 # only as a last resort.  b.out is created by i960 compilers.
2803 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2804 #
2805 # The IRIX 6 linker writes into existing files which may not be
2806 # executable, retaining their permissions.  Remove them first so a
2807 # subsequent execution test works.
2808 ac_rmfiles=
2809 for ac_file in $ac_files
2810 do
2811   case $ac_file in
2812     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2813     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2814   esac
2815 done
2816 rm -f $ac_rmfiles
2817
2818 if { (ac_try="$ac_link_default"
2819 case "(($ac_try" in
2820   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2821   *) ac_try_echo=$ac_try;;
2822 esac
2823 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2824   (eval "$ac_link_default") 2>&5
2825   ac_status=$?
2826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2827   (exit $ac_status); }; then
2828   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2829 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2830 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2831 # so that the user can short-circuit this test for compilers unknown to
2832 # Autoconf.
2833 for ac_file in $ac_files
2834 do
2835   test -f "$ac_file" || continue
2836   case $ac_file in
2837     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2838         ;;
2839     [ab].out )
2840         # We found the default executable, but exeext='' is most
2841         # certainly right.
2842         break;;
2843     *.* )
2844         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2845         then :; else
2846            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2847         fi
2848         # We set ac_cv_exeext here because the later test for it is not
2849         # safe: cross compilers may not add the suffix if given an `-o'
2850         # argument, so we may need to know it at that point already.
2851         # Even if this section looks crufty: it has the advantage of
2852         # actually working.
2853         break;;
2854     * )
2855         break;;
2856   esac
2857 done
2858 test "$ac_cv_exeext" = no && ac_cv_exeext=
2859
2860 else
2861   echo "$as_me: failed program was:" >&5
2862 sed 's/^/| /' conftest.$ac_ext >&5
2863
2864 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2865 See \`config.log' for more details." >&5
2866 echo "$as_me: error: C compiler cannot create executables
2867 See \`config.log' for more details." >&2;}
2868    { (exit 77); exit 77; }; }
2869 fi
2870
2871 ac_exeext=$ac_cv_exeext
2872 { echo "$as_me:$LINENO: result: $ac_file" >&5
2873 echo "${ECHO_T}$ac_file" >&6; }
2874
2875 # Check that the compiler produces executables we can run.  If not, either
2876 # the compiler is broken, or we cross compile.
2877 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2878 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2879 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2880 # If not cross compiling, check that we can run a simple program.
2881 if test "$cross_compiling" != yes; then
2882   if { ac_try='./$ac_file'
2883   { (case "(($ac_try" in
2884   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2885   *) ac_try_echo=$ac_try;;
2886 esac
2887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2888   (eval "$ac_try") 2>&5
2889   ac_status=$?
2890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2891   (exit $ac_status); }; }; then
2892     cross_compiling=no
2893   else
2894     if test "$cross_compiling" = maybe; then
2895         cross_compiling=yes
2896     else
2897         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2898 If you meant to cross compile, use \`--host'.
2899 See \`config.log' for more details." >&5
2900 echo "$as_me: error: cannot run C compiled programs.
2901 If you meant to cross compile, use \`--host'.
2902 See \`config.log' for more details." >&2;}
2903    { (exit 1); exit 1; }; }
2904     fi
2905   fi
2906 fi
2907 { echo "$as_me:$LINENO: result: yes" >&5
2908 echo "${ECHO_T}yes" >&6; }
2909
2910 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2911 ac_clean_files=$ac_clean_files_save
2912 # Check that the compiler produces executables we can run.  If not, either
2913 # the compiler is broken, or we cross compile.
2914 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2915 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2916 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2917 echo "${ECHO_T}$cross_compiling" >&6; }
2918
2919 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2920 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2921 if { (ac_try="$ac_link"
2922 case "(($ac_try" in
2923   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2924   *) ac_try_echo=$ac_try;;
2925 esac
2926 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2927   (eval "$ac_link") 2>&5
2928   ac_status=$?
2929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2930   (exit $ac_status); }; then
2931   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2932 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2933 # work properly (i.e., refer to `conftest.exe'), while it won't with
2934 # `rm'.
2935 for ac_file in conftest.exe conftest conftest.*; do
2936   test -f "$ac_file" || continue
2937   case $ac_file in
2938     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2939     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2940           break;;
2941     * ) break;;
2942   esac
2943 done
2944 else
2945   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2946 See \`config.log' for more details." >&5
2947 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2948 See \`config.log' for more details." >&2;}
2949    { (exit 1); exit 1; }; }
2950 fi
2951
2952 rm -f conftest$ac_cv_exeext
2953 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2954 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2955
2956 rm -f conftest.$ac_ext
2957 EXEEXT=$ac_cv_exeext
2958 ac_exeext=$EXEEXT
2959 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2960 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2961 if test "${ac_cv_objext+set}" = set; then
2962   echo $ECHO_N "(cached) $ECHO_C" >&6
2963 else
2964   cat >conftest.$ac_ext <<_ACEOF
2965 /* confdefs.h.  */
2966 _ACEOF
2967 cat confdefs.h >>conftest.$ac_ext
2968 cat >>conftest.$ac_ext <<_ACEOF
2969 /* end confdefs.h.  */
2970
2971 int
2972 main ()
2973 {
2974
2975   ;
2976   return 0;
2977 }
2978 _ACEOF
2979 rm -f conftest.o conftest.obj
2980 if { (ac_try="$ac_compile"
2981 case "(($ac_try" in
2982   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2983   *) ac_try_echo=$ac_try;;
2984 esac
2985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2986   (eval "$ac_compile") 2>&5
2987   ac_status=$?
2988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2989   (exit $ac_status); }; then
2990   for ac_file in conftest.o conftest.obj conftest.*; do
2991   test -f "$ac_file" || continue;
2992   case $ac_file in
2993     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2994     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2995        break;;
2996   esac
2997 done
2998 else
2999   echo "$as_me: failed program was:" >&5
3000 sed 's/^/| /' conftest.$ac_ext >&5
3001
3002 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3003 See \`config.log' for more details." >&5
3004 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3005 See \`config.log' for more details." >&2;}
3006    { (exit 1); exit 1; }; }
3007 fi
3008
3009 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3010 fi
3011 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3012 echo "${ECHO_T}$ac_cv_objext" >&6; }
3013 OBJEXT=$ac_cv_objext
3014 ac_objext=$OBJEXT
3015 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3016 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3017 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3018   echo $ECHO_N "(cached) $ECHO_C" >&6
3019 else
3020   cat >conftest.$ac_ext <<_ACEOF
3021 /* confdefs.h.  */
3022 _ACEOF
3023 cat confdefs.h >>conftest.$ac_ext
3024 cat >>conftest.$ac_ext <<_ACEOF
3025 /* end confdefs.h.  */
3026
3027 int
3028 main ()
3029 {
3030 #ifndef __GNUC__
3031        choke me
3032 #endif
3033
3034   ;
3035   return 0;
3036 }
3037 _ACEOF
3038 rm -f conftest.$ac_objext
3039 if { (ac_try="$ac_compile"
3040 case "(($ac_try" in
3041   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3042   *) ac_try_echo=$ac_try;;
3043 esac
3044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3045   (eval "$ac_compile") 2>conftest.er1
3046   ac_status=$?
3047   grep -v '^ *+' conftest.er1 >conftest.err
3048   rm -f conftest.er1
3049   cat conftest.err >&5
3050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3051   (exit $ac_status); } &&
3052          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3053   { (case "(($ac_try" in
3054   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3055   *) ac_try_echo=$ac_try;;
3056 esac
3057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3058   (eval "$ac_try") 2>&5
3059   ac_status=$?
3060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3061   (exit $ac_status); }; } &&
3062          { ac_try='test -s conftest.$ac_objext'
3063   { (case "(($ac_try" in
3064   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3065   *) ac_try_echo=$ac_try;;
3066 esac
3067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3068   (eval "$ac_try") 2>&5
3069   ac_status=$?
3070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3071   (exit $ac_status); }; }; then
3072   ac_compiler_gnu=yes
3073 else
3074   echo "$as_me: failed program was:" >&5
3075 sed 's/^/| /' conftest.$ac_ext >&5
3076
3077         ac_compiler_gnu=no
3078 fi
3079
3080 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3081 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3082
3083 fi
3084 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3085 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3086 GCC=`test $ac_compiler_gnu = yes && echo yes`
3087 ac_test_CFLAGS=${CFLAGS+set}
3088 ac_save_CFLAGS=$CFLAGS
3089 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3090 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3091 if test "${ac_cv_prog_cc_g+set}" = set; then
3092   echo $ECHO_N "(cached) $ECHO_C" >&6
3093 else
3094   ac_save_c_werror_flag=$ac_c_werror_flag
3095    ac_c_werror_flag=yes
3096    ac_cv_prog_cc_g=no
3097    CFLAGS="-g"
3098    cat >conftest.$ac_ext <<_ACEOF
3099 /* confdefs.h.  */
3100 _ACEOF
3101 cat confdefs.h >>conftest.$ac_ext
3102 cat >>conftest.$ac_ext <<_ACEOF
3103 /* end confdefs.h.  */
3104
3105 int
3106 main ()
3107 {
3108
3109   ;
3110   return 0;
3111 }
3112 _ACEOF
3113 rm -f conftest.$ac_objext
3114 if { (ac_try="$ac_compile"
3115 case "(($ac_try" in
3116   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3117   *) ac_try_echo=$ac_try;;
3118 esac
3119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3120   (eval "$ac_compile") 2>conftest.er1
3121   ac_status=$?
3122   grep -v '^ *+' conftest.er1 >conftest.err
3123   rm -f conftest.er1
3124   cat conftest.err >&5
3125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3126   (exit $ac_status); } &&
3127          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3128   { (case "(($ac_try" in
3129   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3130   *) ac_try_echo=$ac_try;;
3131 esac
3132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3133   (eval "$ac_try") 2>&5
3134   ac_status=$?
3135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3136   (exit $ac_status); }; } &&
3137          { ac_try='test -s conftest.$ac_objext'
3138   { (case "(($ac_try" in
3139   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3140   *) ac_try_echo=$ac_try;;
3141 esac
3142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3143   (eval "$ac_try") 2>&5
3144   ac_status=$?
3145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3146   (exit $ac_status); }; }; then
3147   ac_cv_prog_cc_g=yes
3148 else
3149   echo "$as_me: failed program was:" >&5
3150 sed 's/^/| /' conftest.$ac_ext >&5
3151
3152         CFLAGS=""
3153       cat >conftest.$ac_ext <<_ACEOF
3154 /* confdefs.h.  */
3155 _ACEOF
3156 cat confdefs.h >>conftest.$ac_ext
3157 cat >>conftest.$ac_ext <<_ACEOF
3158 /* end confdefs.h.  */
3159
3160 int
3161 main ()
3162 {
3163
3164   ;
3165   return 0;
3166 }
3167 _ACEOF
3168 rm -f conftest.$ac_objext
3169 if { (ac_try="$ac_compile"
3170 case "(($ac_try" in
3171   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3172   *) ac_try_echo=$ac_try;;
3173 esac
3174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3175   (eval "$ac_compile") 2>conftest.er1
3176   ac_status=$?
3177   grep -v '^ *+' conftest.er1 >conftest.err
3178   rm -f conftest.er1
3179   cat conftest.err >&5
3180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3181   (exit $ac_status); } &&
3182          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3183   { (case "(($ac_try" in
3184   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3185   *) ac_try_echo=$ac_try;;
3186 esac
3187 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3188   (eval "$ac_try") 2>&5
3189   ac_status=$?
3190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3191   (exit $ac_status); }; } &&
3192          { ac_try='test -s conftest.$ac_objext'
3193   { (case "(($ac_try" in
3194   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3195   *) ac_try_echo=$ac_try;;
3196 esac
3197 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3198   (eval "$ac_try") 2>&5
3199   ac_status=$?
3200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3201   (exit $ac_status); }; }; then
3202   :
3203 else
3204   echo "$as_me: failed program was:" >&5
3205 sed 's/^/| /' conftest.$ac_ext >&5
3206
3207         ac_c_werror_flag=$ac_save_c_werror_flag
3208          CFLAGS="-g"
3209          cat >conftest.$ac_ext <<_ACEOF
3210 /* confdefs.h.  */
3211 _ACEOF
3212 cat confdefs.h >>conftest.$ac_ext
3213 cat >>conftest.$ac_ext <<_ACEOF
3214 /* end confdefs.h.  */
3215
3216 int
3217 main ()
3218 {
3219
3220   ;
3221   return 0;
3222 }
3223 _ACEOF
3224 rm -f conftest.$ac_objext
3225 if { (ac_try="$ac_compile"
3226 case "(($ac_try" in
3227   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3228   *) ac_try_echo=$ac_try;;
3229 esac
3230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3231   (eval "$ac_compile") 2>conftest.er1
3232   ac_status=$?
3233   grep -v '^ *+' conftest.er1 >conftest.err
3234   rm -f conftest.er1
3235   cat conftest.err >&5
3236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3237   (exit $ac_status); } &&
3238          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3239   { (case "(($ac_try" in
3240   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3241   *) ac_try_echo=$ac_try;;
3242 esac
3243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3244   (eval "$ac_try") 2>&5
3245   ac_status=$?
3246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3247   (exit $ac_status); }; } &&
3248          { ac_try='test -s conftest.$ac_objext'
3249   { (case "(($ac_try" in
3250   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3251   *) ac_try_echo=$ac_try;;
3252 esac
3253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3254   (eval "$ac_try") 2>&5
3255   ac_status=$?
3256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3257   (exit $ac_status); }; }; then
3258   ac_cv_prog_cc_g=yes
3259 else
3260   echo "$as_me: failed program was:" >&5
3261 sed 's/^/| /' conftest.$ac_ext >&5
3262
3263
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 fi
3271
3272 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3273    ac_c_werror_flag=$ac_save_c_werror_flag
3274 fi
3275 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3276 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3277 if test "$ac_test_CFLAGS" = set; then
3278   CFLAGS=$ac_save_CFLAGS
3279 elif test $ac_cv_prog_cc_g = yes; then
3280   if test "$GCC" = yes; then
3281     CFLAGS="-g -O2"
3282   else
3283     CFLAGS="-g"
3284   fi
3285 else
3286   if test "$GCC" = yes; then
3287     CFLAGS="-O2"
3288   else
3289     CFLAGS=
3290   fi
3291 fi
3292 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3293 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3294 if test "${ac_cv_prog_cc_c89+set}" = set; then
3295   echo $ECHO_N "(cached) $ECHO_C" >&6
3296 else
3297   ac_cv_prog_cc_c89=no
3298 ac_save_CC=$CC
3299 cat >conftest.$ac_ext <<_ACEOF
3300 /* confdefs.h.  */
3301 _ACEOF
3302 cat confdefs.h >>conftest.$ac_ext
3303 cat >>conftest.$ac_ext <<_ACEOF
3304 /* end confdefs.h.  */
3305 #include <stdarg.h>
3306 #include <stdio.h>
3307 #include <sys/types.h>
3308 #include <sys/stat.h>
3309 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3310 struct buf { int x; };
3311 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3312 static char *e (p, i)
3313      char **p;
3314      int i;
3315 {
3316   return p[i];
3317 }
3318 static char *f (char * (*g) (char **, int), char **p, ...)
3319 {
3320   char *s;
3321   va_list v;
3322   va_start (v,p);
3323   s = g (p, va_arg (v,int));
3324   va_end (v);
3325   return s;
3326 }
3327
3328 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3329    function prototypes and stuff, but not '\xHH' hex character constants.
3330    These don't provoke an error unfortunately, instead are silently treated
3331    as 'x'.  The following induces an error, until -std is added to get
3332    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3333    array size at least.  It's necessary to write '\x00'==0 to get something
3334    that's true only with -std.  */
3335 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3336
3337 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3338    inside strings and character constants.  */
3339 #define FOO(x) 'x'
3340 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3341
3342 int test (int i, double x);
3343 struct s1 {int (*f) (int a);};
3344 struct s2 {int (*f) (double a);};
3345 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3346 int argc;
3347 char **argv;
3348 int
3349 main ()
3350 {
3351 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3352   ;
3353   return 0;
3354 }
3355 _ACEOF
3356 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3357         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3358 do
3359   CC="$ac_save_CC $ac_arg"
3360   rm -f conftest.$ac_objext
3361 if { (ac_try="$ac_compile"
3362 case "(($ac_try" in
3363   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3364   *) ac_try_echo=$ac_try;;
3365 esac
3366 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3367   (eval "$ac_compile") 2>conftest.er1
3368   ac_status=$?
3369   grep -v '^ *+' conftest.er1 >conftest.err
3370   rm -f conftest.er1
3371   cat conftest.err >&5
3372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3373   (exit $ac_status); } &&
3374          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3375   { (case "(($ac_try" in
3376   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3377   *) ac_try_echo=$ac_try;;
3378 esac
3379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3380   (eval "$ac_try") 2>&5
3381   ac_status=$?
3382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3383   (exit $ac_status); }; } &&
3384          { ac_try='test -s conftest.$ac_objext'
3385   { (case "(($ac_try" in
3386   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3387   *) ac_try_echo=$ac_try;;
3388 esac
3389 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3390   (eval "$ac_try") 2>&5
3391   ac_status=$?
3392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3393   (exit $ac_status); }; }; then
3394   ac_cv_prog_cc_c89=$ac_arg
3395 else
3396   echo "$as_me: failed program was:" >&5
3397 sed 's/^/| /' conftest.$ac_ext >&5
3398
3399
3400 fi
3401
3402 rm -f core conftest.err conftest.$ac_objext
3403   test "x$ac_cv_prog_cc_c89" != "xno" && break
3404 done
3405 rm -f conftest.$ac_ext
3406 CC=$ac_save_CC
3407
3408 fi
3409 # AC_CACHE_VAL
3410 case "x$ac_cv_prog_cc_c89" in
3411   x)
3412     { echo "$as_me:$LINENO: result: none needed" >&5
3413 echo "${ECHO_T}none needed" >&6; } ;;
3414   xno)
3415     { echo "$as_me:$LINENO: result: unsupported" >&5
3416 echo "${ECHO_T}unsupported" >&6; } ;;
3417   *)
3418     CC="$CC $ac_cv_prog_cc_c89"
3419     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3420 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3421 esac
3422
3423
3424 ac_ext=c
3425 ac_cpp='$CPP $CPPFLAGS'
3426 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3427 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3428 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3429
3430
3431 ac_ext=c
3432 ac_cpp='$CPP $CPPFLAGS'
3433 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3434 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3435 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3436 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3437 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3438 # On Suns, sometimes $CPP names a directory.
3439 if test -n "$CPP" && test -d "$CPP"; then
3440   CPP=
3441 fi
3442 if test -z "$CPP"; then
3443   if test "${ac_cv_prog_CPP+set}" = set; then
3444   echo $ECHO_N "(cached) $ECHO_C" >&6
3445 else
3446       # Double quotes because CPP needs to be expanded
3447     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3448     do
3449       ac_preproc_ok=false
3450 for ac_c_preproc_warn_flag in '' yes
3451 do
3452   # Use a header file that comes with gcc, so configuring glibc
3453   # with a fresh cross-compiler works.
3454   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3455   # <limits.h> exists even on freestanding compilers.
3456   # On the NeXT, cc -E runs the code through the compiler's parser,
3457   # not just through cpp. "Syntax error" is here to catch this case.
3458   cat >conftest.$ac_ext <<_ACEOF
3459 /* confdefs.h.  */
3460 _ACEOF
3461 cat confdefs.h >>conftest.$ac_ext
3462 cat >>conftest.$ac_ext <<_ACEOF
3463 /* end confdefs.h.  */
3464 #ifdef __STDC__
3465 # include <limits.h>
3466 #else
3467 # include <assert.h>
3468 #endif
3469                      Syntax error
3470 _ACEOF
3471 if { (ac_try="$ac_cpp conftest.$ac_ext"
3472 case "(($ac_try" in
3473   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3474   *) ac_try_echo=$ac_try;;
3475 esac
3476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3477   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3478   ac_status=$?
3479   grep -v '^ *+' conftest.er1 >conftest.err
3480   rm -f conftest.er1
3481   cat conftest.err >&5
3482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3483   (exit $ac_status); } >/dev/null; then
3484   if test -s conftest.err; then
3485     ac_cpp_err=$ac_c_preproc_warn_flag
3486     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3487   else
3488     ac_cpp_err=
3489   fi
3490 else
3491   ac_cpp_err=yes
3492 fi
3493 if test -z "$ac_cpp_err"; then
3494   :
3495 else
3496   echo "$as_me: failed program was:" >&5
3497 sed 's/^/| /' conftest.$ac_ext >&5
3498
3499   # Broken: fails on valid input.
3500 continue
3501 fi
3502
3503 rm -f conftest.err conftest.$ac_ext
3504
3505   # OK, works on sane cases.  Now check whether nonexistent headers
3506   # can be detected and how.
3507   cat >conftest.$ac_ext <<_ACEOF
3508 /* confdefs.h.  */
3509 _ACEOF
3510 cat confdefs.h >>conftest.$ac_ext
3511 cat >>conftest.$ac_ext <<_ACEOF
3512 /* end confdefs.h.  */
3513 #include <ac_nonexistent.h>
3514 _ACEOF
3515 if { (ac_try="$ac_cpp conftest.$ac_ext"
3516 case "(($ac_try" in
3517   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3518   *) ac_try_echo=$ac_try;;
3519 esac
3520 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3521   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3522   ac_status=$?
3523   grep -v '^ *+' conftest.er1 >conftest.err
3524   rm -f conftest.er1
3525   cat conftest.err >&5
3526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3527   (exit $ac_status); } >/dev/null; then
3528   if test -s conftest.err; then
3529     ac_cpp_err=$ac_c_preproc_warn_flag
3530     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3531   else
3532     ac_cpp_err=
3533   fi
3534 else
3535   ac_cpp_err=yes
3536 fi
3537 if test -z "$ac_cpp_err"; then
3538   # Broken: success on invalid input.
3539 continue
3540 else
3541   echo "$as_me: failed program was:" >&5
3542 sed 's/^/| /' conftest.$ac_ext >&5
3543
3544   # Passes both tests.
3545 ac_preproc_ok=:
3546 break
3547 fi
3548
3549 rm -f conftest.err conftest.$ac_ext
3550
3551 done
3552 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3553 rm -f conftest.err conftest.$ac_ext
3554 if $ac_preproc_ok; then
3555   break
3556 fi
3557
3558     done
3559     ac_cv_prog_CPP=$CPP
3560
3561 fi
3562   CPP=$ac_cv_prog_CPP
3563 else
3564   ac_cv_prog_CPP=$CPP
3565 fi
3566 { echo "$as_me:$LINENO: result: $CPP" >&5
3567 echo "${ECHO_T}$CPP" >&6; }
3568 ac_preproc_ok=false
3569 for ac_c_preproc_warn_flag in '' yes
3570 do
3571   # Use a header file that comes with gcc, so configuring glibc
3572   # with a fresh cross-compiler works.
3573   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3574   # <limits.h> exists even on freestanding compilers.
3575   # On the NeXT, cc -E runs the code through the compiler's parser,
3576   # not just through cpp. "Syntax error" is here to catch this case.
3577   cat >conftest.$ac_ext <<_ACEOF
3578 /* confdefs.h.  */
3579 _ACEOF
3580 cat confdefs.h >>conftest.$ac_ext
3581 cat >>conftest.$ac_ext <<_ACEOF
3582 /* end confdefs.h.  */
3583 #ifdef __STDC__
3584 # include <limits.h>
3585 #else
3586 # include <assert.h>
3587 #endif
3588                      Syntax error
3589 _ACEOF
3590 if { (ac_try="$ac_cpp conftest.$ac_ext"
3591 case "(($ac_try" in
3592   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3593   *) ac_try_echo=$ac_try;;
3594 esac
3595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3596   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3597   ac_status=$?
3598   grep -v '^ *+' conftest.er1 >conftest.err
3599   rm -f conftest.er1
3600   cat conftest.err >&5
3601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3602   (exit $ac_status); } >/dev/null; then
3603   if test -s conftest.err; then
3604     ac_cpp_err=$ac_c_preproc_warn_flag
3605     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3606   else
3607     ac_cpp_err=
3608   fi
3609 else
3610   ac_cpp_err=yes
3611 fi
3612 if test -z "$ac_cpp_err"; then
3613   :
3614 else
3615   echo "$as_me: failed program was:" >&5
3616 sed 's/^/| /' conftest.$ac_ext >&5
3617
3618   # Broken: fails on valid input.
3619 continue
3620 fi
3621
3622 rm -f conftest.err conftest.$ac_ext
3623
3624   # OK, works on sane cases.  Now check whether nonexistent headers
3625   # can be detected and how.
3626   cat >conftest.$ac_ext <<_ACEOF
3627 /* confdefs.h.  */
3628 _ACEOF
3629 cat confdefs.h >>conftest.$ac_ext
3630 cat >>conftest.$ac_ext <<_ACEOF
3631 /* end confdefs.h.  */
3632 #include <ac_nonexistent.h>
3633 _ACEOF
3634 if { (ac_try="$ac_cpp conftest.$ac_ext"
3635 case "(($ac_try" in
3636   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3637   *) ac_try_echo=$ac_try;;
3638 esac
3639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3640   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3641   ac_status=$?
3642   grep -v '^ *+' conftest.er1 >conftest.err
3643   rm -f conftest.er1
3644   cat conftest.err >&5
3645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3646   (exit $ac_status); } >/dev/null; then
3647   if test -s conftest.err; then
3648     ac_cpp_err=$ac_c_preproc_warn_flag
3649     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3650   else
3651     ac_cpp_err=
3652   fi
3653 else
3654   ac_cpp_err=yes
3655 fi
3656 if test -z "$ac_cpp_err"; then
3657   # Broken: success on invalid input.
3658 continue
3659 else
3660   echo "$as_me: failed program was:" >&5
3661 sed 's/^/| /' conftest.$ac_ext >&5
3662
3663   # Passes both tests.
3664 ac_preproc_ok=:
3665 break
3666 fi
3667
3668 rm -f conftest.err conftest.$ac_ext
3669
3670 done
3671 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3672 rm -f conftest.err conftest.$ac_ext
3673 if $ac_preproc_ok; then
3674   :
3675 else
3676   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3677 See \`config.log' for more details." >&5
3678 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3679 See \`config.log' for more details." >&2;}
3680    { (exit 1); exit 1; }; }
3681 fi
3682
3683 ac_ext=c
3684 ac_cpp='$CPP $CPPFLAGS'
3685 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3686 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3687 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3688
3689
3690 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3691 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3692 if test "${ac_cv_path_GREP+set}" = set; then
3693   echo $ECHO_N "(cached) $ECHO_C" >&6
3694 else
3695   # Extract the first word of "grep ggrep" to use in msg output
3696 if test -z "$GREP"; then
3697 set dummy grep ggrep; ac_prog_name=$2
3698 if test "${ac_cv_path_GREP+set}" = set; then
3699   echo $ECHO_N "(cached) $ECHO_C" >&6
3700 else
3701   ac_path_GREP_found=false
3702 # Loop through the user's path and test for each of PROGNAME-LIST
3703 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3704 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3705 do
3706   IFS=$as_save_IFS
3707   test -z "$as_dir" && as_dir=.
3708   for ac_prog in grep ggrep; do
3709   for ac_exec_ext in '' $ac_executable_extensions; do
3710     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3711     { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3712     # Check for GNU ac_path_GREP and select it if it is found.
3713   # Check for GNU $ac_path_GREP
3714 case `"$ac_path_GREP" --version 2>&1` in
3715 *GNU*)
3716   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3717 *)
3718   ac_count=0
3719   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3720   while :
3721   do
3722     cat "conftest.in" "conftest.in" >"conftest.tmp"
3723     mv "conftest.tmp" "conftest.in"
3724     cp "conftest.in" "conftest.nl"
3725     echo 'GREP' >> "conftest.nl"
3726     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3727     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3728     ac_count=`expr $ac_count + 1`
3729     if test $ac_count -gt ${ac_path_GREP_max-0}; then
3730       # Best one so far, save it but keep looking for a better one
3731       ac_cv_path_GREP="$ac_path_GREP"
3732       ac_path_GREP_max=$ac_count
3733     fi
3734     # 10*(2^10) chars as input seems more than enough
3735     test $ac_count -gt 10 && break
3736   done
3737   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3738 esac
3739
3740
3741     $ac_path_GREP_found && break 3
3742   done
3743 done
3744
3745 done
3746 IFS=$as_save_IFS
3747
3748
3749 fi
3750
3751 GREP="$ac_cv_path_GREP"
3752 if test -z "$GREP"; then
3753   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3754 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3755    { (exit 1); exit 1; }; }
3756 fi
3757
3758 else
3759   ac_cv_path_GREP=$GREP
3760 fi
3761
3762
3763 fi
3764 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3765 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3766  GREP="$ac_cv_path_GREP"
3767
3768
3769 { echo "$as_me:$LINENO: checking for egrep" >&5
3770 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3771 if test "${ac_cv_path_EGREP+set}" = set; then
3772   echo $ECHO_N "(cached) $ECHO_C" >&6
3773 else
3774   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3775    then ac_cv_path_EGREP="$GREP -E"
3776    else
3777      # Extract the first word of "egrep" to use in msg output
3778 if test -z "$EGREP"; then
3779 set dummy egrep; ac_prog_name=$2
3780 if test "${ac_cv_path_EGREP+set}" = set; then
3781   echo $ECHO_N "(cached) $ECHO_C" >&6
3782 else
3783   ac_path_EGREP_found=false
3784 # Loop through the user's path and test for each of PROGNAME-LIST
3785 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3786 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3787 do
3788   IFS=$as_save_IFS
3789   test -z "$as_dir" && as_dir=.
3790   for ac_prog in egrep; do
3791   for ac_exec_ext in '' $ac_executable_extensions; do
3792     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3793     { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
3794     # Check for GNU ac_path_EGREP and select it if it is found.
3795   # Check for GNU $ac_path_EGREP
3796 case `"$ac_path_EGREP" --version 2>&1` in
3797 *GNU*)
3798   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3799 *)
3800   ac_count=0
3801   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3802   while :
3803   do
3804     cat "conftest.in" "conftest.in" >"conftest.tmp"
3805     mv "conftest.tmp" "conftest.in"
3806     cp "conftest.in" "conftest.nl"
3807     echo 'EGREP' >> "conftest.nl"
3808     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3809     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3810     ac_count=`expr $ac_count + 1`
3811     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3812       # Best one so far, save it but keep looking for a better one
3813       ac_cv_path_EGREP="$ac_path_EGREP"
3814       ac_path_EGREP_max=$ac_count
3815     fi
3816     # 10*(2^10) chars as input seems more than enough
3817     test $ac_count -gt 10 && break
3818   done
3819   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3820 esac
3821
3822
3823     $ac_path_EGREP_found && break 3
3824   done
3825 done
3826
3827 done
3828 IFS=$as_save_IFS
3829
3830
3831 fi
3832
3833 EGREP="$ac_cv_path_EGREP"
3834 if test -z "$EGREP"; then
3835   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3836 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3837    { (exit 1); exit 1; }; }
3838 fi
3839
3840 else
3841   ac_cv_path_EGREP=$EGREP
3842 fi
3843
3844
3845    fi
3846 fi
3847 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3848 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3849  EGREP="$ac_cv_path_EGREP"
3850
3851
3852 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3853 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3854 if test "${ac_cv_header_stdc+set}" = set; then
3855   echo $ECHO_N "(cached) $ECHO_C" >&6
3856 else
3857   cat >conftest.$ac_ext <<_ACEOF
3858 /* confdefs.h.  */
3859 _ACEOF
3860 cat confdefs.h >>conftest.$ac_ext
3861 cat >>conftest.$ac_ext <<_ACEOF
3862 /* end confdefs.h.  */
3863 #include <stdlib.h>
3864 #include <stdarg.h>
3865 #include <string.h>
3866 #include <float.h>
3867
3868 int
3869 main ()
3870 {
3871
3872   ;
3873   return 0;
3874 }
3875 _ACEOF
3876 rm -f conftest.$ac_objext
3877 if { (ac_try="$ac_compile"
3878 case "(($ac_try" in
3879   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3880   *) ac_try_echo=$ac_try;;
3881 esac
3882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3883   (eval "$ac_compile") 2>conftest.er1
3884   ac_status=$?
3885   grep -v '^ *+' conftest.er1 >conftest.err
3886   rm -f conftest.er1
3887   cat conftest.err >&5
3888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3889   (exit $ac_status); } &&
3890          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3891   { (case "(($ac_try" in
3892   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3893   *) ac_try_echo=$ac_try;;
3894 esac
3895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3896   (eval "$ac_try") 2>&5
3897   ac_status=$?
3898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3899   (exit $ac_status); }; } &&
3900          { ac_try='test -s conftest.$ac_objext'
3901   { (case "(($ac_try" in
3902   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3903   *) ac_try_echo=$ac_try;;
3904 esac
3905 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3906   (eval "$ac_try") 2>&5
3907   ac_status=$?
3908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3909   (exit $ac_status); }; }; then
3910   ac_cv_header_stdc=yes
3911 else
3912   echo "$as_me: failed program was:" >&5
3913 sed 's/^/| /' conftest.$ac_ext >&5
3914
3915         ac_cv_header_stdc=no
3916 fi
3917
3918 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3919
3920 if test $ac_cv_header_stdc = yes; then
3921   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3922   cat >conftest.$ac_ext <<_ACEOF
3923 /* confdefs.h.  */
3924 _ACEOF
3925 cat confdefs.h >>conftest.$ac_ext
3926 cat >>conftest.$ac_ext <<_ACEOF
3927 /* end confdefs.h.  */
3928 #include <string.h>
3929
3930 _ACEOF
3931 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3932   $EGREP "memchr" >/dev/null 2>&1; then
3933   :
3934 else
3935   ac_cv_header_stdc=no
3936 fi
3937 rm -f conftest*
3938
3939 fi
3940
3941 if test $ac_cv_header_stdc = yes; then
3942   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3943   cat >conftest.$ac_ext <<_ACEOF
3944 /* confdefs.h.  */
3945 _ACEOF
3946 cat confdefs.h >>conftest.$ac_ext
3947 cat >>conftest.$ac_ext <<_ACEOF
3948 /* end confdefs.h.  */
3949 #include <stdlib.h>
3950
3951 _ACEOF
3952 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3953   $EGREP "free" >/dev/null 2>&1; then
3954   :
3955 else
3956   ac_cv_header_stdc=no
3957 fi
3958 rm -f conftest*
3959
3960 fi
3961
3962 if test $ac_cv_header_stdc = yes; then
3963   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3964   if test "$cross_compiling" = yes; then
3965   :
3966 else
3967   cat >conftest.$ac_ext <<_ACEOF
3968 /* confdefs.h.  */
3969 _ACEOF
3970 cat confdefs.h >>conftest.$ac_ext
3971 cat >>conftest.$ac_ext <<_ACEOF
3972 /* end confdefs.h.  */
3973 #include <ctype.h>
3974 #include <stdlib.h>
3975 #if ((' ' & 0x0FF) == 0x020)
3976 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3977 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3978 #else
3979 # define ISLOWER(c) \
3980                    (('a' <= (c) && (c) <= 'i') \
3981                      || ('j' <= (c) && (c) <= 'r') \
3982                      || ('s' <= (c) && (c) <= 'z'))
3983 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3984 #endif
3985
3986 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3987 int
3988 main ()
3989 {
3990   int i;
3991   for (i = 0; i < 256; i++)
3992     if (XOR (islower (i), ISLOWER (i))
3993         || toupper (i) != TOUPPER (i))
3994       return 2;
3995   return 0;
3996 }
3997 _ACEOF
3998 rm -f conftest$ac_exeext
3999 if { (ac_try="$ac_link"
4000 case "(($ac_try" in
4001   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4002   *) ac_try_echo=$ac_try;;
4003 esac
4004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4005   (eval "$ac_link") 2>&5
4006   ac_status=$?
4007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4008   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4009   { (case "(($ac_try" in
4010   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4011   *) ac_try_echo=$ac_try;;
4012 esac
4013 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4014   (eval "$ac_try") 2>&5
4015   ac_status=$?
4016   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4017   (exit $ac_status); }; }; then
4018   :
4019 else
4020   echo "$as_me: program exited with status $ac_status" >&5
4021 echo "$as_me: failed program was:" >&5
4022 sed 's/^/| /' conftest.$ac_ext >&5
4023
4024 ( exit $ac_status )
4025 ac_cv_header_stdc=no
4026 fi
4027 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4028 fi
4029
4030
4031 fi
4032 fi
4033 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4034 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4035 if test $ac_cv_header_stdc = yes; then
4036
4037 cat >>confdefs.h <<\_ACEOF
4038 #define STDC_HEADERS 1
4039 _ACEOF
4040
4041 fi
4042
4043 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4044
4045
4046
4047
4048
4049
4050
4051
4052
4053 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4054                   inttypes.h stdint.h unistd.h
4055 do
4056 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4057 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4058 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4059 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4060   echo $ECHO_N "(cached) $ECHO_C" >&6
4061 else
4062   cat >conftest.$ac_ext <<_ACEOF
4063 /* confdefs.h.  */
4064 _ACEOF
4065 cat confdefs.h >>conftest.$ac_ext
4066 cat >>conftest.$ac_ext <<_ACEOF
4067 /* end confdefs.h.  */
4068 $ac_includes_default
4069
4070 #include <$ac_header>
4071 _ACEOF
4072 rm -f conftest.$ac_objext
4073 if { (ac_try="$ac_compile"
4074 case "(($ac_try" in
4075   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4076   *) ac_try_echo=$ac_try;;
4077 esac
4078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4079   (eval "$ac_compile") 2>conftest.er1
4080   ac_status=$?
4081   grep -v '^ *+' conftest.er1 >conftest.err
4082   rm -f conftest.er1
4083   cat conftest.err >&5
4084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4085   (exit $ac_status); } &&
4086          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4087   { (case "(($ac_try" in
4088   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4089   *) ac_try_echo=$ac_try;;
4090 esac
4091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4092   (eval "$ac_try") 2>&5
4093   ac_status=$?
4094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4095   (exit $ac_status); }; } &&
4096          { ac_try='test -s conftest.$ac_objext'
4097   { (case "(($ac_try" in
4098   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4099   *) ac_try_echo=$ac_try;;
4100 esac
4101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4102   (eval "$ac_try") 2>&5
4103   ac_status=$?
4104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4105   (exit $ac_status); }; }; then
4106   eval "$as_ac_Header=yes"
4107 else
4108   echo "$as_me: failed program was:" >&5
4109 sed 's/^/| /' conftest.$ac_ext >&5
4110
4111         eval "$as_ac_Header=no"
4112 fi
4113
4114 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4115 fi
4116 ac_res=`eval echo '${'$as_ac_Header'}'`
4117                { echo "$as_me:$LINENO: result: $ac_res" >&5
4118 echo "${ECHO_T}$ac_res" >&6; }
4119 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4120   cat >>confdefs.h <<_ACEOF
4121 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4122 _ACEOF
4123
4124 fi
4125
4126 done
4127
4128
4129 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4130 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4131 if test "${ac_cv_c_bigendian+set}" = set; then
4132   echo $ECHO_N "(cached) $ECHO_C" >&6
4133 else
4134   # See if sys/param.h defines the BYTE_ORDER macro.
4135 cat >conftest.$ac_ext <<_ACEOF
4136 /* confdefs.h.  */
4137 _ACEOF
4138 cat confdefs.h >>conftest.$ac_ext
4139 cat >>conftest.$ac_ext <<_ACEOF
4140 /* end confdefs.h.  */
4141 #include <sys/types.h>
4142 #include <sys/param.h>
4143
4144 int
4145 main ()
4146 {
4147 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4148  bogus endian macros
4149 #endif
4150
4151   ;
4152   return 0;
4153 }
4154 _ACEOF
4155 rm -f conftest.$ac_objext
4156 if { (ac_try="$ac_compile"
4157 case "(($ac_try" in
4158   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4159   *) ac_try_echo=$ac_try;;
4160 esac
4161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4162   (eval "$ac_compile") 2>conftest.er1
4163   ac_status=$?
4164   grep -v '^ *+' conftest.er1 >conftest.err
4165   rm -f conftest.er1
4166   cat conftest.err >&5
4167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4168   (exit $ac_status); } &&
4169          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4170   { (case "(($ac_try" in
4171   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4172   *) ac_try_echo=$ac_try;;
4173 esac
4174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4175   (eval "$ac_try") 2>&5
4176   ac_status=$?
4177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4178   (exit $ac_status); }; } &&
4179          { ac_try='test -s conftest.$ac_objext'
4180   { (case "(($ac_try" in
4181   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4182   *) ac_try_echo=$ac_try;;
4183 esac
4184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4185   (eval "$ac_try") 2>&5
4186   ac_status=$?
4187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4188   (exit $ac_status); }; }; then
4189   # It does; now see whether it defined to BIG_ENDIAN or not.
4190 cat >conftest.$ac_ext <<_ACEOF
4191 /* confdefs.h.  */
4192 _ACEOF
4193 cat confdefs.h >>conftest.$ac_ext
4194 cat >>conftest.$ac_ext <<_ACEOF
4195 /* end confdefs.h.  */
4196 #include <sys/types.h>
4197 #include <sys/param.h>
4198
4199 int
4200 main ()
4201 {
4202 #if BYTE_ORDER != BIG_ENDIAN
4203  not big endian
4204 #endif
4205
4206   ;
4207   return 0;
4208 }
4209 _ACEOF
4210 rm -f conftest.$ac_objext
4211 if { (ac_try="$ac_compile"
4212 case "(($ac_try" in
4213   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4214   *) ac_try_echo=$ac_try;;
4215 esac
4216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4217   (eval "$ac_compile") 2>conftest.er1
4218   ac_status=$?
4219   grep -v '^ *+' conftest.er1 >conftest.err
4220   rm -f conftest.er1
4221   cat conftest.err >&5
4222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4223   (exit $ac_status); } &&
4224          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4225   { (case "(($ac_try" in
4226   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4227   *) ac_try_echo=$ac_try;;
4228 esac
4229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4230   (eval "$ac_try") 2>&5
4231   ac_status=$?
4232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4233   (exit $ac_status); }; } &&
4234          { ac_try='test -s conftest.$ac_objext'
4235   { (case "(($ac_try" in
4236   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4237   *) ac_try_echo=$ac_try;;
4238 esac
4239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4240   (eval "$ac_try") 2>&5
4241   ac_status=$?
4242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4243   (exit $ac_status); }; }; then
4244   ac_cv_c_bigendian=yes
4245 else
4246   echo "$as_me: failed program was:" >&5
4247 sed 's/^/| /' conftest.$ac_ext >&5
4248
4249         ac_cv_c_bigendian=no
4250 fi
4251
4252 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4253 else
4254   echo "$as_me: failed program was:" >&5
4255 sed 's/^/| /' conftest.$ac_ext >&5
4256
4257         # It does not; compile a test program.
4258 if test "$cross_compiling" = yes; then
4259   # try to guess the endianness by grepping values into an object file
4260   ac_cv_c_bigendian=unknown
4261   cat >conftest.$ac_ext <<_ACEOF
4262 /* confdefs.h.  */
4263 _ACEOF
4264 cat confdefs.h >>conftest.$ac_ext
4265 cat >>conftest.$ac_ext <<_ACEOF
4266 /* end confdefs.h.  */
4267 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4268 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4269 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4270 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4271 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4272 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4273 int
4274 main ()
4275 {
4276  _ascii (); _ebcdic ();
4277   ;
4278   return 0;
4279 }
4280 _ACEOF
4281 rm -f conftest.$ac_objext
4282 if { (ac_try="$ac_compile"
4283 case "(($ac_try" in
4284   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4285   *) ac_try_echo=$ac_try;;
4286 esac
4287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4288   (eval "$ac_compile") 2>conftest.er1
4289   ac_status=$?
4290   grep -v '^ *+' conftest.er1 >conftest.err
4291   rm -f conftest.er1
4292   cat conftest.err >&5
4293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4294   (exit $ac_status); } &&
4295          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4296   { (case "(($ac_try" in
4297   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4298   *) ac_try_echo=$ac_try;;
4299 esac
4300 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4301   (eval "$ac_try") 2>&5
4302   ac_status=$?
4303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4304   (exit $ac_status); }; } &&
4305          { ac_try='test -s conftest.$ac_objext'
4306   { (case "(($ac_try" in
4307   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4308   *) ac_try_echo=$ac_try;;
4309 esac
4310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4311   (eval "$ac_try") 2>&5
4312   ac_status=$?
4313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4314   (exit $ac_status); }; }; then
4315   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4316   ac_cv_c_bigendian=yes
4317 fi
4318 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4319   if test "$ac_cv_c_bigendian" = unknown; then
4320     ac_cv_c_bigendian=no
4321   else
4322     # finding both strings is unlikely to happen, but who knows?
4323     ac_cv_c_bigendian=unknown
4324   fi
4325 fi
4326 else
4327   echo "$as_me: failed program was:" >&5
4328 sed 's/^/| /' conftest.$ac_ext >&5
4329
4330
4331 fi
4332
4333 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4334 else
4335   cat >conftest.$ac_ext <<_ACEOF
4336 /* confdefs.h.  */
4337 _ACEOF
4338 cat confdefs.h >>conftest.$ac_ext
4339 cat >>conftest.$ac_ext <<_ACEOF
4340 /* end confdefs.h.  */
4341 $ac_includes_default
4342 int
4343 main ()
4344 {
4345
4346   /* Are we little or big endian?  From Harbison&Steele.  */
4347   union
4348   {
4349     long int l;
4350     char c[sizeof (long int)];
4351   } u;
4352   u.l = 1;
4353   return u.c[sizeof (long int) - 1] == 1;
4354
4355   ;
4356   return 0;
4357 }
4358 _ACEOF
4359 rm -f conftest$ac_exeext
4360 if { (ac_try="$ac_link"
4361 case "(($ac_try" in
4362   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4363   *) ac_try_echo=$ac_try;;
4364 esac
4365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4366   (eval "$ac_link") 2>&5
4367   ac_status=$?
4368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4369   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4370   { (case "(($ac_try" in
4371   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4372   *) ac_try_echo=$ac_try;;
4373 esac
4374 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4375   (eval "$ac_try") 2>&5
4376   ac_status=$?
4377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4378   (exit $ac_status); }; }; then
4379   ac_cv_c_bigendian=no
4380 else
4381   echo "$as_me: program exited with status $ac_status" >&5
4382 echo "$as_me: failed program was:" >&5
4383 sed 's/^/| /' conftest.$ac_ext >&5
4384
4385 ( exit $ac_status )
4386 ac_cv_c_bigendian=yes
4387 fi
4388 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4389 fi
4390
4391
4392 fi
4393
4394 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4395 fi
4396 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4397 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4398 case $ac_cv_c_bigendian in
4399   yes)
4400     ENDIAN=big
4401  ;;
4402   no)
4403     ENDIAN=little
4404  ;;
4405   *)
4406     { { echo "$as_me:$LINENO: error: unknown endianness
4407 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4408 echo "$as_me: error: unknown endianness
4409 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4410    { (exit 1); exit 1; }; } ;;
4411 esac
4412
4413
4414 if test "$cross_compiling" = yes; then
4415   LLVM_CROSS_COMPILING=1
4416
4417
4418 { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4419 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4420 if test "${ac_cv_build_exeext+set}" = set; then
4421   echo $ECHO_N "(cached) $ECHO_C" >&6
4422 else
4423   if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4424   ac_cv_build_exeext=.exe
4425 else
4426   ac_build_prefix=${build_alias}-
4427
4428   # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4429 set dummy ${ac_build_prefix}gcc; ac_word=$2
4430 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4431 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4432 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4433   echo $ECHO_N "(cached) $ECHO_C" >&6
4434 else
4435   if test -n "$BUILD_CC"; then
4436   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4437 else
4438 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4439 for as_dir in $PATH
4440 do
4441   IFS=$as_save_IFS
4442   test -z "$as_dir" && as_dir=.
4443   for ac_exec_ext in '' $ac_executable_extensions; do
4444   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4445     ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4446     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4447     break 2
4448   fi
4449 done
4450 done
4451 IFS=$as_save_IFS
4452
4453 fi
4454 fi
4455 BUILD_CC=$ac_cv_prog_BUILD_CC
4456 if test -n "$BUILD_CC"; then
4457   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4458 echo "${ECHO_T}$BUILD_CC" >&6; }
4459 else
4460   { echo "$as_me:$LINENO: result: no" >&5
4461 echo "${ECHO_T}no" >&6; }
4462 fi
4463
4464
4465   if test -z "$BUILD_CC"; then
4466      # Extract the first word of "gcc", so it can be a program name with args.
4467 set dummy gcc; ac_word=$2
4468 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4469 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4470 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4471   echo $ECHO_N "(cached) $ECHO_C" >&6
4472 else
4473   if test -n "$BUILD_CC"; then
4474   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4475 else
4476 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4477 for as_dir in $PATH
4478 do
4479   IFS=$as_save_IFS
4480   test -z "$as_dir" && as_dir=.
4481   for ac_exec_ext in '' $ac_executable_extensions; do
4482   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4483     ac_cv_prog_BUILD_CC="gcc"
4484     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4485     break 2
4486   fi
4487 done
4488 done
4489 IFS=$as_save_IFS
4490
4491 fi
4492 fi
4493 BUILD_CC=$ac_cv_prog_BUILD_CC
4494 if test -n "$BUILD_CC"; then
4495   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4496 echo "${ECHO_T}$BUILD_CC" >&6; }
4497 else
4498   { echo "$as_me:$LINENO: result: no" >&5
4499 echo "${ECHO_T}no" >&6; }
4500 fi
4501
4502
4503      if test -z "$BUILD_CC"; then
4504        # Extract the first word of "cc", so it can be a program name with args.
4505 set dummy cc; ac_word=$2
4506 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4507 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4508 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4509   echo $ECHO_N "(cached) $ECHO_C" >&6
4510 else
4511   if test -n "$BUILD_CC"; then
4512   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4513 else
4514   ac_prog_rejected=no
4515 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4516 for as_dir in $PATH
4517 do
4518   IFS=$as_save_IFS
4519   test -z "$as_dir" && as_dir=.
4520   for ac_exec_ext in '' $ac_executable_extensions; do
4521   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4522     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4523        ac_prog_rejected=yes
4524        continue
4525      fi
4526     ac_cv_prog_BUILD_CC="cc"
4527     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4528     break 2
4529   fi
4530 done
4531 done
4532 IFS=$as_save_IFS
4533
4534 if test $ac_prog_rejected = yes; then
4535   # We found a bogon in the path, so make sure we never use it.
4536   set dummy $ac_cv_prog_BUILD_CC
4537   shift
4538   if test $# != 0; then
4539     # We chose a different compiler from the bogus one.
4540     # However, it has the same basename, so the bogon will be chosen
4541     # first if we set BUILD_CC to just the basename; use the full file name.
4542     shift
4543     ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4544   fi
4545 fi
4546 fi
4547 fi
4548 BUILD_CC=$ac_cv_prog_BUILD_CC
4549 if test -n "$BUILD_CC"; then
4550   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4551 echo "${ECHO_T}$BUILD_CC" >&6; }
4552 else
4553   { echo "$as_me:$LINENO: result: no" >&5
4554 echo "${ECHO_T}no" >&6; }
4555 fi
4556
4557
4558      fi
4559   fi
4560   test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4561 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4562    { (exit 1); exit 1; }; }
4563   ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4564   rm -f conftest*
4565   echo 'int main () { return 0; }' > conftest.$ac_ext
4566   ac_cv_build_exeext=
4567   if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4568   (eval $ac_build_link) 2>&5
4569   ac_status=$?
4570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4571   (exit $ac_status); }; then
4572     for file in conftest.*; do
4573       case $file in
4574       *.c | *.o | *.obj | *.dSYM) ;;
4575       *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4576       esac
4577     done
4578   else
4579     { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4580 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4581    { (exit 1); exit 1; }; }
4582   fi
4583   rm -f conftest*
4584   test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4585 fi
4586 fi
4587
4588 BUILD_EXEEXT=""
4589 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4590 { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4591 echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4592 ac_build_exeext=$BUILD_EXEEXT
4593
4594   ac_build_prefix=${build_alias}-
4595   # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4596 set dummy ${ac_build_prefix}g++; ac_word=$2
4597 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4598 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4599 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4600   echo $ECHO_N "(cached) $ECHO_C" >&6
4601 else
4602   if test -n "$BUILD_CXX"; then
4603   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4604 else
4605 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4606 for as_dir in $PATH
4607 do
4608   IFS=$as_save_IFS
4609   test -z "$as_dir" && as_dir=.
4610   for ac_exec_ext in '' $ac_executable_extensions; do
4611   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4612     ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
4613     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4614     break 2
4615   fi
4616 done
4617 done
4618 IFS=$as_save_IFS
4619
4620 fi
4621 fi
4622 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4623 if test -n "$BUILD_CXX"; then
4624   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4625 echo "${ECHO_T}$BUILD_CXX" >&6; }
4626 else
4627   { echo "$as_me:$LINENO: result: no" >&5
4628 echo "${ECHO_T}no" >&6; }
4629 fi
4630
4631
4632   if test -z "$BUILD_CXX"; then
4633      # Extract the first word of "g++", so it can be a program name with args.
4634 set dummy g++; ac_word=$2
4635 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4636 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4637 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4638   echo $ECHO_N "(cached) $ECHO_C" >&6
4639 else
4640   if test -n "$BUILD_CXX"; then
4641   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4642 else
4643 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4644 for as_dir in $PATH
4645 do
4646   IFS=$as_save_IFS
4647   test -z "$as_dir" && as_dir=.
4648   for ac_exec_ext in '' $ac_executable_extensions; do
4649   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4650     ac_cv_prog_BUILD_CXX="g++"
4651     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4652     break 2
4653   fi
4654 done
4655 done
4656 IFS=$as_save_IFS
4657
4658 fi
4659 fi
4660 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4661 if test -n "$BUILD_CXX"; then
4662   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4663 echo "${ECHO_T}$BUILD_CXX" >&6; }
4664 else
4665   { echo "$as_me:$LINENO: result: no" >&5
4666 echo "${ECHO_T}no" >&6; }
4667 fi
4668
4669
4670      if test -z "$BUILD_CXX"; then
4671        # Extract the first word of "c++", so it can be a program name with args.
4672 set dummy c++; ac_word=$2
4673 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4674 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4675 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4676   echo $ECHO_N "(cached) $ECHO_C" >&6
4677 else
4678   if test -n "$BUILD_CXX"; then
4679   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4680 else
4681   ac_prog_rejected=no
4682 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4683 for as_dir in $PATH
4684 do
4685   IFS=$as_save_IFS
4686   test -z "$as_dir" && as_dir=.
4687   for ac_exec_ext in '' $ac_executable_extensions; do
4688   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4689     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4690        ac_prog_rejected=yes
4691        continue
4692      fi
4693     ac_cv_prog_BUILD_CXX="c++"
4694     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4695     break 2
4696   fi
4697 done
4698 done
4699 IFS=$as_save_IFS
4700
4701 if test $ac_prog_rejected = yes; then
4702   # We found a bogon in the path, so make sure we never use it.
4703   set dummy $ac_cv_prog_BUILD_CXX
4704   shift
4705   if test $# != 0; then
4706     # We chose a different compiler from the bogus one.
4707     # However, it has the same basename, so the bogon will be chosen
4708     # first if we set BUILD_CXX to just the basename; use the full file name.
4709     shift
4710     ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4711   fi
4712 fi
4713 fi
4714 fi
4715 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4716 if test -n "$BUILD_CXX"; then
4717   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4718 echo "${ECHO_T}$BUILD_CXX" >&6; }
4719 else
4720   { echo "$as_me:$LINENO: result: no" >&5
4721 echo "${ECHO_T}no" >&6; }
4722 fi
4723
4724
4725      fi
4726   fi
4727 else
4728   LLVM_CROSS_COMPILING=0
4729
4730 fi
4731
4732 if test -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
4733   cvsbuild="yes"
4734   optimize="no"
4735   CVSBUILD=CVSBUILD=1
4736
4737 else
4738   cvsbuild="no"
4739   optimize="yes"
4740 fi
4741
4742
4743 # Check whether --enable-optimized was given.
4744 if test "${enable_optimized+set}" = set; then
4745   enableval=$enable_optimized;
4746 else
4747   enableval=$optimize
4748 fi
4749
4750 if test ${enableval} = "no" ; then
4751   ENABLE_OPTIMIZED=
4752
4753 else
4754   ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4755
4756 fi
4757
4758 # Check whether --enable-profiling was given.
4759 if test "${enable_profiling+set}" = set; then
4760   enableval=$enable_profiling;
4761 else
4762   enableval="no"
4763 fi
4764
4765 if test ${enableval} = "no" ; then
4766   ENABLE_PROFILING=
4767
4768 else
4769   ENABLE_PROFILING=ENABLE_PROFILING=1
4770
4771 fi
4772
4773 # Check whether --enable-assertions was given.
4774 if test "${enable_assertions+set}" = set; then
4775   enableval=$enable_assertions;
4776 else
4777   enableval="yes"
4778 fi
4779
4780 if test ${enableval} = "yes" ; then
4781   DISABLE_ASSERTIONS=
4782
4783 else
4784   DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
4785
4786 fi
4787
4788 # Check whether --enable-expensive-checks was given.
4789 if test "${enable_expensive_checks+set}" = set; then
4790   enableval=$enable_expensive_checks;
4791 else
4792   enableval="no"
4793 fi
4794
4795 if test ${enableval} = "yes" ; then
4796   ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
4797
4798   EXPENSIVE_CHECKS=yes
4799
4800 else
4801   ENABLE_EXPENSIVE_CHECKS=
4802
4803   EXPENSIVE_CHECKS=no
4804
4805 fi
4806
4807 # Check whether --enable-debug-runtime was given.
4808 if test "${enable_debug_runtime+set}" = set; then
4809   enableval=$enable_debug_runtime;
4810 else
4811   enableval=no
4812 fi
4813
4814 if test ${enableval} = "no" ; then
4815   DEBUG_RUNTIME=
4816
4817 else
4818   DEBUG_RUNTIME=DEBUG_RUNTIME=1
4819
4820 fi
4821
4822 # Check whether --enable-debug-symbols was given.
4823 if test "${enable_debug_symbols+set}" = set; then
4824   enableval=$enable_debug_symbols;
4825 else
4826   enableval=no
4827 fi
4828
4829 if test ${enableval} = "no" ; then
4830   DEBUG_SYMBOLS=
4831
4832 else
4833   DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
4834
4835 fi
4836
4837 # Check whether --enable-jit was given.
4838 if test "${enable_jit+set}" = set; then
4839   enableval=$enable_jit;
4840 else
4841   enableval=default
4842 fi
4843
4844 if test ${enableval} = "no"
4845 then
4846   JIT=
4847
4848 else
4849   case "$llvm_cv_target_arch" in
4850     x86)         TARGET_HAS_JIT=1
4851  ;;
4852     Sparc)       TARGET_HAS_JIT=0
4853  ;;
4854     PowerPC)     TARGET_HAS_JIT=1
4855  ;;
4856     x86_64)      TARGET_HAS_JIT=1
4857  ;;
4858     Alpha)       TARGET_HAS_JIT=0
4859  ;;
4860     ARM)         TARGET_HAS_JIT=1
4861  ;;
4862     Mips)        TARGET_HAS_JIT=0
4863  ;;
4864     XCore)       TARGET_HAS_JIT=0
4865  ;;
4866     MSP430)      TARGET_HAS_JIT=0
4867  ;;
4868     SystemZ)     TARGET_HAS_JIT=0
4869  ;;
4870     Blackfin)    TARGET_HAS_JIT=0
4871  ;;
4872     MBlaze)      TARGET_HAS_JIT=0
4873  ;;
4874     PTX)         TARGET_HAS_JIT=0
4875  ;;
4876     *)           TARGET_HAS_JIT=0
4877  ;;
4878   esac
4879 fi
4880
4881 # Check whether --enable-docs was given.
4882 if test "${enable_docs+set}" = set; then
4883   enableval=$enable_docs;
4884 else
4885   enableval=default
4886 fi
4887
4888 case "$enableval" in
4889   yes) ENABLE_DOCS=1
4890  ;;
4891   no)  ENABLE_DOCS=0
4892  ;;
4893   default) ENABLE_DOCS=1
4894  ;;
4895   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&5
4896 echo "$as_me: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&2;}
4897    { (exit 1); exit 1; }; } ;;
4898 esac
4899
4900 # Check whether --enable-doxygen was given.
4901 if test "${enable_doxygen+set}" = set; then
4902   enableval=$enable_doxygen;
4903 else
4904   enableval=default
4905 fi
4906
4907 case "$enableval" in
4908   yes) ENABLE_DOXYGEN=1
4909  ;;
4910   no)  ENABLE_DOXYGEN=0
4911  ;;
4912   default) ENABLE_DOXYGEN=0
4913  ;;
4914   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
4915 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
4916    { (exit 1); exit 1; }; } ;;
4917 esac
4918
4919 # Check whether --enable-threads was given.
4920 if test "${enable_threads+set}" = set; then
4921   enableval=$enable_threads;
4922 else
4923   enableval=default
4924 fi
4925
4926 case "$enableval" in
4927   yes) ENABLE_THREADS=1
4928  ;;
4929   no)  ENABLE_THREADS=0
4930  ;;
4931   default) ENABLE_THREADS=1
4932  ;;
4933   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
4934 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
4935    { (exit 1); exit 1; }; } ;;
4936 esac
4937
4938 cat >>confdefs.h <<_ACEOF
4939 #define ENABLE_THREADS $ENABLE_THREADS
4940 _ACEOF
4941
4942
4943 # Check whether --enable-pthreads was given.
4944 if test "${enable_pthreads+set}" = set; then
4945   enableval=$enable_pthreads;
4946 else
4947   enableval=default
4948 fi
4949
4950 case "$enableval" in
4951   yes) ENABLE_PTHREADS=1
4952  ;;
4953   no)  ENABLE_PTHREADS=0
4954  ;;
4955   default) ENABLE_PTHREADS=1
4956  ;;
4957   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&5
4958 echo "$as_me: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&2;}
4959    { (exit 1); exit 1; }; } ;;
4960 esac
4961
4962 # Check whether --enable-pic was given.
4963 if test "${enable_pic+set}" = set; then
4964   enableval=$enable_pic;
4965 else
4966   enableval=default
4967 fi
4968
4969 case "$enableval" in
4970   yes) ENABLE_PIC=1
4971  ;;
4972   no)  ENABLE_PIC=0
4973  ;;
4974   default) ENABLE_PIC=1
4975  ;;
4976   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
4977 echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
4978    { (exit 1); exit 1; }; } ;;
4979 esac
4980
4981 cat >>confdefs.h <<_ACEOF
4982 #define ENABLE_PIC $ENABLE_PIC
4983 _ACEOF
4984
4985
4986 # Check whether --enable-shared was given.
4987 if test "${enable_shared+set}" = set; then
4988   enableval=$enable_shared;
4989 else
4990   enableval=default
4991 fi
4992
4993 case "$enableval" in
4994   yes) ENABLE_SHARED=1
4995  ;;
4996   no)  ENABLE_SHARED=0
4997  ;;
4998   default) ENABLE_SHARED=0
4999  ;;
5000   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5
5001 echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;}
5002    { (exit 1); exit 1; }; } ;;
5003 esac
5004
5005 # Check whether --enable-embed-stdcxx was given.
5006 if test "${enable_embed_stdcxx+set}" = set; then
5007   enableval=$enable_embed_stdcxx;
5008 else
5009   enableval=default
5010 fi
5011
5012 case "$enableval" in
5013   yes) ENABLE_EMBED_STDCXX=1
5014  ;;
5015   no)  ENABLE_EMBED_STDCXX=0
5016  ;;
5017   default) ENABLE_EMBED_STDCXX=1
5018  ;;
5019   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&5
5020 echo "$as_me: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&2;}
5021    { (exit 1); exit 1; }; } ;;
5022 esac
5023
5024 # Check whether --enable-timestamps was given.
5025 if test "${enable_timestamps+set}" = set; then
5026   enableval=$enable_timestamps;
5027 else
5028   enableval=default
5029 fi
5030
5031 case "$enableval" in
5032   yes) ENABLE_TIMESTAMPS=1
5033  ;;
5034   no)  ENABLE_TIMESTAMPS=0
5035  ;;
5036   default) ENABLE_TIMESTAMPS=1
5037  ;;
5038   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&5
5039 echo "$as_me: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&2;}
5040    { (exit 1); exit 1; }; } ;;
5041 esac
5042
5043 cat >>confdefs.h <<_ACEOF
5044 #define ENABLE_TIMESTAMPS $ENABLE_TIMESTAMPS
5045 _ACEOF
5046
5047
5048 TARGETS_TO_BUILD=""
5049 # Check whether --enable-targets was given.
5050 if test "${enable_targets+set}" = set; then
5051   enableval=$enable_targets;
5052 else
5053   enableval=all
5054 fi
5055
5056 if test "$enableval" = host-only ; then
5057   enableval=host
5058 fi
5059 case "$enableval" in
5060   all) TARGETS_TO_BUILD="X86 Sparc PowerPC Alpha ARM Mips CellSPU XCore MSP430 SystemZ Blackfin CBackend CppBackend MBlaze PTX" ;;
5061   *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
5062       case "$a_target" in
5063         x86)      TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5064         x86_64)   TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5065         sparc)    TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5066         powerpc)  TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5067         alpha)    TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
5068         arm)      TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5069         mips)     TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5070         spu)      TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
5071         xcore)    TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5072         msp430)   TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5073         systemz)  TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
5074         blackfin) TARGETS_TO_BUILD="Blackfin $TARGETS_TO_BUILD" ;;
5075         cbe)      TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD" ;;
5076         cpp)      TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
5077         mblaze)   TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
5078         ptx)      TARGETS_TO_BUILD="PTX $TARGETS_TO_BUILD" ;;
5079         host) case "$llvm_cv_target_arch" in
5080             x86)         TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5081             x86_64)      TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5082             Sparc)       TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5083             PowerPC)     TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5084             Alpha)       TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
5085             ARM)         TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5086             Mips)        TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5087             MBlaze)      TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
5088             CellSPU|SPU) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
5089             XCore)       TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5090             MSP430)      TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5091             s390x)       TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
5092             Blackfin)    TARGETS_TO_BUILD="Blackfin $TARGETS_TO_BUILD" ;;
5093             PTX)         TARGETS_TO_BUILD="PTX $TARGETS_TO_BUILD" ;;
5094             *)       { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
5095 echo "$as_me: error: Can not set target to build" >&2;}
5096    { (exit 1); exit 1; }; } ;;
5097           esac ;;
5098         *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
5099 echo "$as_me: error: Unrecognized target $a_target" >&2;}
5100    { (exit 1); exit 1; }; } ;;
5101       esac
5102   done
5103   ;;
5104 esac
5105 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
5106
5107
5108 # Determine whether we are building LLVM support for the native architecture.
5109 # If so, define LLVM_NATIVE_ARCH to that LLVM target.
5110 for a_target in $TARGETS_TO_BUILD; do
5111   if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
5112
5113 cat >>confdefs.h <<_ACEOF
5114 #define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCH
5115 _ACEOF
5116
5117     LLVM_NATIVE_TARGET="LLVMInitialize${LLVM_NATIVE_ARCH}Target"
5118     LLVM_NATIVE_TARGETINFO="LLVMInitialize${LLVM_NATIVE_ARCH}TargetInfo"
5119     LLVM_NATIVE_ASMPRINTER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmPrinter"
5120     LLVM_NATIVE_ASMPARSER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmParser"
5121
5122 cat >>confdefs.h <<_ACEOF
5123 #define LLVM_NATIVE_TARGET $LLVM_NATIVE_TARGET
5124 _ACEOF
5125
5126
5127 cat >>confdefs.h <<_ACEOF
5128 #define LLVM_NATIVE_TARGETINFO $LLVM_NATIVE_TARGETINFO
5129 _ACEOF
5130
5131
5132 cat >>confdefs.h <<_ACEOF
5133 #define LLVM_NATIVE_ASMPRINTER $LLVM_NATIVE_ASMPRINTER
5134 _ACEOF
5135
5136
5137 cat >>confdefs.h <<_ACEOF
5138 #define LLVM_NATIVE_ASMPARSER $LLVM_NATIVE_ASMPARSER
5139 _ACEOF
5140
5141   fi
5142 done
5143
5144 # Build the LLVM_TARGET and LLVM_... macros for Targets.def and the individual
5145 # target feature def files.
5146 LLVM_ENUM_TARGETS=""
5147 LLVM_ENUM_ASM_PRINTERS=""
5148 LLVM_ENUM_ASM_PARSERS=""
5149 LLVM_ENUM_DISASSEMBLERS=""
5150 for target_to_build in $TARGETS_TO_BUILD; do
5151   LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
5152   if test -f ${srcdir}/lib/Target/${target_to_build}/*AsmPrinter.cpp ; then
5153     LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5154   fi
5155   if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5156     LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5157   fi
5158   if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
5159     LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
5160   fi
5161 done
5162
5163
5164
5165
5166
5167 # Check whether --enable-cbe-printf-a was given.
5168 if test "${enable_cbe_printf_a+set}" = set; then
5169   enableval=$enable_cbe_printf_a;
5170 else
5171   enableval=default
5172 fi
5173
5174 case "$enableval" in
5175   yes) ENABLE_CBE_PRINTF_A=1
5176  ;;
5177   no)  ENABLE_CBE_PRINTF_A=0
5178  ;;
5179   default)  ENABLE_CBE_PRINTF_A=1
5180  ;;
5181   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5
5182 echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;}
5183    { (exit 1); exit 1; }; } ;;
5184 esac
5185
5186 cat >>confdefs.h <<_ACEOF
5187 #define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A
5188 _ACEOF
5189
5190
5191
5192 # Check whether --with-llvmgccdir was given.
5193 if test "${with_llvmgccdir+set}" = set; then
5194   withval=$with_llvmgccdir;
5195 else
5196   withval=default
5197 fi
5198
5199 case "$withval" in
5200   default) WITH_LLVMGCCDIR=default ;;
5201   /* | [A-Za-z]:[\\/]*)      WITH_LLVMGCCDIR=$withval ;;
5202   *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5
5203 echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;}
5204    { (exit 1); exit 1; }; } ;;
5205 esac
5206
5207
5208 # Check whether --with-llvmgcc was given.
5209 if test "${with_llvmgcc+set}" = set; then
5210   withval=$with_llvmgcc; LLVMGCC=$with_llvmgcc
5211       WITH_LLVMGCCDIR=""
5212 fi
5213
5214
5215
5216 # Check whether --with-llvmgxx was given.
5217 if test "${with_llvmgxx+set}" = set; then
5218   withval=$with_llvmgxx; LLVMGXX=$with_llvmgxx
5219     WITH_LLVMGCCDIR=""
5220 fi
5221
5222
5223 if test -n "$LLVMGCC"; then
5224    LLVMGCCCOMMAND="$LLVMGCC"
5225 fi
5226
5227 if test -n "$LLVMGXX"; then
5228    LLVMGXXCOMMAND="$LLVMGXX"
5229 fi
5230
5231 if test -n "$LLVMGCC" && test -z "$LLVMGXX"; then
5232    { { echo "$as_me:$LINENO: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&5
5233 echo "$as_me: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&2;}
5234    { (exit 1); exit 1; }; };
5235 fi
5236
5237 if test -n "$LLVMGXX" && test -z "$LLVMGCC"; then
5238    { { echo "$as_me:$LINENO: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&5
5239 echo "$as_me: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&2;}
5240    { (exit 1); exit 1; }; };
5241 fi
5242
5243
5244 # Check whether --with-clang was given.
5245 if test "${with_clang+set}" = set; then
5246   withval=$with_clang;
5247 else
5248   with_clang=default
5249 fi
5250
5251
5252
5253 # Check whether --with-built-clang was given.
5254 if test "${with_built_clang+set}" = set; then
5255   withval=$with_built_clang;
5256 else
5257   with_built_clang=check
5258 fi
5259
5260
5261 { echo "$as_me:$LINENO: checking clang compiler" >&5
5262 echo $ECHO_N "checking clang compiler... $ECHO_C" >&6; }
5263 WITH_CLANGPATH=""
5264 WITH_BUILT_CLANG=0
5265 if test "$with_clang" != "default"; then
5266    WITH_CLANGPATH="$with_clang"
5267    if ! test -x "$WITH_CLANGPATH"; then
5268      { { echo "$as_me:$LINENO: error: invalid --with-clang, path does not specify an executable" >&5
5269 echo "$as_me: error: invalid --with-clang, path does not specify an executable" >&2;}
5270    { (exit 1); exit 1; }; }
5271    fi
5272 elif test "$with_built_clang" = "yes"; then
5273    WITH_BUILT_CLANG=1
5274 elif test "$with_built_clang" = "no"; then
5275    WITH_BUILT_CLANG=0
5276 else
5277    if test "$with_built_clang" != "check"; then
5278       { { echo "$as_me:$LINENO: error: invalid value for --with-built-clang." >&5
5279 echo "$as_me: error: invalid value for --with-built-clang." >&2;}
5280    { (exit 1); exit 1; }; }
5281    fi
5282
5283    if test -f ${srcdir}/tools/clang/README.txt; then
5284      WITH_BUILT_CLANG=1
5285    fi
5286 fi
5287
5288 if ! test -z "$WITH_CLANGPATH"; then
5289    { echo "$as_me:$LINENO: result: $WITH_CLANGPATH" >&5
5290 echo "${ECHO_T}$WITH_CLANGPATH" >&6; }
5291    WITH_CLANGXXPATH=`"$WITH_CLANGPATH" --print-prog-name=clang++`
5292 elif test "$WITH_BUILT_CLANG" = "1"; then
5293    { echo "$as_me:$LINENO: result: built" >&5
5294 echo "${ECHO_T}built" >&6; }
5295 else
5296    { echo "$as_me:$LINENO: result: none" >&5
5297 echo "${ECHO_T}none" >&6; }
5298 fi
5299 CLANGPATH=$WITH_CLANGPATH
5300
5301 CLANGXXPATH=$WITH_CLANGXXPATH
5302
5303 ENABLE_BUILT_CLANG=$WITH_BUILT_CLANG
5304
5305
5306
5307 # Check whether --with-optimize-option was given.
5308 if test "${with_optimize_option+set}" = set; then
5309   withval=$with_optimize_option;
5310 else
5311   withval=default
5312 fi
5313
5314 { echo "$as_me:$LINENO: checking optimization flags" >&5
5315 echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
5316 case "$withval" in
5317   default)
5318     case "$llvm_cv_os_type" in
5319     FreeBSD) optimize_option=-O2 ;;
5320     MingW) optimize_option=-O2 ;;
5321     *)     optimize_option=-O3 ;;
5322     esac ;;
5323   *) optimize_option="$withval" ;;
5324 esac
5325 OPTIMIZE_OPTION=$optimize_option
5326
5327 { echo "$as_me:$LINENO: result: $optimize_option" >&5
5328 echo "${ECHO_T}$optimize_option" >&6; }
5329
5330
5331 # Check whether --with-extra-options was given.
5332 if test "${with_extra_options+set}" = set; then
5333   withval=$with_extra_options;
5334 else
5335   withval=default
5336 fi
5337
5338 case "$withval" in
5339   default) EXTRA_OPTIONS= ;;
5340   *) EXTRA_OPTIONS=$withval ;;
5341 esac
5342 EXTRA_OPTIONS=$EXTRA_OPTIONS
5343
5344
5345 # Check whether --enable-bindings was given.
5346 if test "${enable_bindings+set}" = set; then
5347   enableval=$enable_bindings;
5348 else
5349   enableval=default
5350 fi
5351
5352 BINDINGS_TO_BUILD=""
5353 case "$enableval" in
5354   yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
5355   all ) BINDINGS_TO_BUILD="ocaml" ;;
5356   none | no) BINDINGS_TO_BUILD="" ;;
5357   *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5358       case "$a_binding" in
5359         ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5360         *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5361 echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5362    { (exit 1); exit 1; }; } ;;
5363       esac
5364   done
5365   ;;
5366 esac
5367
5368
5369 # Check whether --with-ocaml-libdir was given.
5370 if test "${with_ocaml_libdir+set}" = set; then
5371   withval=$with_ocaml_libdir;
5372 else
5373   withval=auto
5374 fi
5375
5376 case "$withval" in
5377   auto) with_ocaml_libdir="$withval" ;;
5378   /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5379   *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5380 echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5381    { (exit 1); exit 1; }; } ;;
5382 esac
5383
5384
5385 # Check whether --with-clang-resource-dir was given.
5386 if test "${with_clang_resource_dir+set}" = set; then
5387   withval=$with_clang_resource_dir;
5388 else
5389   withval=""
5390 fi
5391
5392
5393 cat >>confdefs.h <<_ACEOF
5394 #define CLANG_RESOURCE_DIR "$withval"
5395 _ACEOF
5396
5397
5398
5399 # Check whether --with-c-include-dirs was given.
5400 if test "${with_c_include_dirs+set}" = set; then
5401   withval=$with_c_include_dirs;
5402 else
5403   withval=""
5404 fi
5405
5406
5407 cat >>confdefs.h <<_ACEOF
5408 #define C_INCLUDE_DIRS "$withval"
5409 _ACEOF
5410
5411
5412
5413 # Check whether --with-cxx-include-root was given.
5414 if test "${with_cxx_include_root+set}" = set; then
5415   withval=$with_cxx_include_root;
5416 else
5417   withval=""
5418 fi
5419
5420
5421 cat >>confdefs.h <<_ACEOF
5422 #define CXX_INCLUDE_ROOT "$withval"
5423 _ACEOF
5424
5425
5426
5427 # Check whether --with-cxx-include-arch was given.
5428 if test "${with_cxx_include_arch+set}" = set; then
5429   withval=$with_cxx_include_arch;
5430 else
5431   withval=""
5432 fi
5433
5434
5435 cat >>confdefs.h <<_ACEOF
5436 #define CXX_INCLUDE_ARCH "$withval"
5437 _ACEOF
5438
5439
5440
5441 # Check whether --with-cxx-include-32bit-dir was given.
5442 if test "${with_cxx_include_32bit_dir+set}" = set; then
5443   withval=$with_cxx_include_32bit_dir;
5444 else
5445   withval=""
5446 fi
5447
5448
5449 cat >>confdefs.h <<_ACEOF
5450 #define CXX_INCLUDE_32BIT_DIR "$withval"
5451 _ACEOF
5452
5453
5454
5455 # Check whether --with-cxx-include-64bit-dir was given.
5456 if test "${with_cxx_include_64bit_dir+set}" = set; then
5457   withval=$with_cxx_include_64bit_dir;
5458 else
5459   withval=""
5460 fi
5461
5462
5463 cat >>confdefs.h <<_ACEOF
5464 #define CXX_INCLUDE_64BIT_DIR "$withval"
5465 _ACEOF
5466
5467
5468
5469 # Check whether --with-binutils-include was given.
5470 if test "${with_binutils_include+set}" = set; then
5471   withval=$with_binutils_include;
5472 else
5473   withval=default
5474 fi
5475
5476 case "$withval" in
5477   default) WITH_BINUTILS_INCDIR=default ;;
5478   /* | [A-Za-z]:[\\/]*)      WITH_BINUTILS_INCDIR=$withval ;;
5479   *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5480 echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5481    { (exit 1); exit 1; }; } ;;
5482 esac
5483 if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5484   BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5485
5486   if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5487      echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5488      { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5489 echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5490    { (exit 1); exit 1; }; };
5491   fi
5492 fi
5493
5494 # Check whether --enable-libffi was given.
5495 if test "${enable_libffi+set}" = set; then
5496   enableval=$enable_libffi; case "$enableval" in
5497     yes) llvm_cv_enable_libffi="yes" ;;
5498     no)  llvm_cv_enable_libffi="no"  ;;
5499     *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
5500 echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5501    { (exit 1); exit 1; }; } ;;
5502   esac
5503 else
5504   llvm_cv_enable_libffi=no
5505 fi
5506
5507
5508
5509 ac_ext=c
5510 ac_cpp='$CPP $CPPFLAGS'
5511 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5512 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5513 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5514 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5515 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
5516 # On Suns, sometimes $CPP names a directory.
5517 if test -n "$CPP" && test -d "$CPP"; then
5518   CPP=
5519 fi
5520 if test -z "$CPP"; then
5521   if test "${ac_cv_prog_CPP+set}" = set; then
5522   echo $ECHO_N "(cached) $ECHO_C" >&6
5523 else
5524       # Double quotes because CPP needs to be expanded
5525     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5526     do
5527       ac_preproc_ok=false
5528 for ac_c_preproc_warn_flag in '' yes
5529 do
5530   # Use a header file that comes with gcc, so configuring glibc
5531   # with a fresh cross-compiler works.
5532   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5533   # <limits.h> exists even on freestanding compilers.
5534   # On the NeXT, cc -E runs the code through the compiler's parser,
5535   # not just through cpp. "Syntax error" is here to catch this case.
5536   cat >conftest.$ac_ext <<_ACEOF
5537 /* confdefs.h.  */
5538 _ACEOF
5539 cat confdefs.h >>conftest.$ac_ext
5540 cat >>conftest.$ac_ext <<_ACEOF
5541 /* end confdefs.h.  */
5542 #ifdef __STDC__
5543 # include <limits.h>
5544 #else
5545 # include <assert.h>
5546 #endif
5547                      Syntax error
5548 _ACEOF
5549 if { (ac_try="$ac_cpp conftest.$ac_ext"
5550 case "(($ac_try" in
5551   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5552   *) ac_try_echo=$ac_try;;
5553 esac
5554 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5555   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5556   ac_status=$?
5557   grep -v '^ *+' conftest.er1 >conftest.err
5558   rm -f conftest.er1
5559   cat conftest.err >&5
5560   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5561   (exit $ac_status); } >/dev/null; then
5562   if test -s conftest.err; then
5563     ac_cpp_err=$ac_c_preproc_warn_flag
5564     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5565   else
5566     ac_cpp_err=
5567   fi
5568 else
5569   ac_cpp_err=yes
5570 fi
5571 if test -z "$ac_cpp_err"; then
5572   :
5573 else
5574   echo "$as_me: failed program was:" >&5
5575 sed 's/^/| /' conftest.$ac_ext >&5
5576
5577   # Broken: fails on valid input.
5578 continue
5579 fi
5580
5581 rm -f conftest.err conftest.$ac_ext
5582
5583   # OK, works on sane cases.  Now check whether nonexistent headers
5584   # can be detected and how.
5585   cat >conftest.$ac_ext <<_ACEOF
5586 /* confdefs.h.  */
5587 _ACEOF
5588 cat confdefs.h >>conftest.$ac_ext
5589 cat >>conftest.$ac_ext <<_ACEOF
5590 /* end confdefs.h.  */
5591 #include <ac_nonexistent.h>
5592 _ACEOF
5593 if { (ac_try="$ac_cpp conftest.$ac_ext"
5594 case "(($ac_try" in
5595   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5596   *) ac_try_echo=$ac_try;;
5597 esac
5598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5599   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5600   ac_status=$?
5601   grep -v '^ *+' conftest.er1 >conftest.err
5602   rm -f conftest.er1
5603   cat conftest.err >&5
5604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5605   (exit $ac_status); } >/dev/null; then
5606   if test -s conftest.err; then
5607     ac_cpp_err=$ac_c_preproc_warn_flag
5608     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5609   else
5610     ac_cpp_err=
5611   fi
5612 else
5613   ac_cpp_err=yes
5614 fi
5615 if test -z "$ac_cpp_err"; then
5616   # Broken: success on invalid input.
5617 continue
5618 else
5619   echo "$as_me: failed program was:" >&5
5620 sed 's/^/| /' conftest.$ac_ext >&5
5621
5622   # Passes both tests.
5623 ac_preproc_ok=:
5624 break
5625 fi
5626
5627 rm -f conftest.err conftest.$ac_ext
5628
5629 done
5630 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5631 rm -f conftest.err conftest.$ac_ext
5632 if $ac_preproc_ok; then
5633   break
5634 fi
5635
5636     done
5637     ac_cv_prog_CPP=$CPP
5638
5639 fi
5640   CPP=$ac_cv_prog_CPP
5641 else
5642   ac_cv_prog_CPP=$CPP
5643 fi
5644 { echo "$as_me:$LINENO: result: $CPP" >&5
5645 echo "${ECHO_T}$CPP" >&6; }
5646 ac_preproc_ok=false
5647 for ac_c_preproc_warn_flag in '' yes
5648 do
5649   # Use a header file that comes with gcc, so configuring glibc
5650   # with a fresh cross-compiler works.
5651   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5652   # <limits.h> exists even on freestanding compilers.
5653   # On the NeXT, cc -E runs the code through the compiler's parser,
5654   # not just through cpp. "Syntax error" is here to catch this case.
5655   cat >conftest.$ac_ext <<_ACEOF
5656 /* confdefs.h.  */
5657 _ACEOF
5658 cat confdefs.h >>conftest.$ac_ext
5659 cat >>conftest.$ac_ext <<_ACEOF
5660 /* end confdefs.h.  */
5661 #ifdef __STDC__
5662 # include <limits.h>
5663 #else
5664 # include <assert.h>
5665 #endif
5666                      Syntax error
5667 _ACEOF
5668 if { (ac_try="$ac_cpp conftest.$ac_ext"
5669 case "(($ac_try" in
5670   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5671   *) ac_try_echo=$ac_try;;
5672 esac
5673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5674   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5675   ac_status=$?
5676   grep -v '^ *+' conftest.er1 >conftest.err
5677   rm -f conftest.er1
5678   cat conftest.err >&5
5679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5680   (exit $ac_status); } >/dev/null; then
5681   if test -s conftest.err; then
5682     ac_cpp_err=$ac_c_preproc_warn_flag
5683     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5684   else
5685     ac_cpp_err=
5686   fi
5687 else
5688   ac_cpp_err=yes
5689 fi
5690 if test -z "$ac_cpp_err"; then
5691   :
5692 else
5693   echo "$as_me: failed program was:" >&5
5694 sed 's/^/| /' conftest.$ac_ext >&5
5695
5696   # Broken: fails on valid input.
5697 continue
5698 fi
5699
5700 rm -f conftest.err conftest.$ac_ext
5701
5702   # OK, works on sane cases.  Now check whether nonexistent headers
5703   # can be detected and how.
5704   cat >conftest.$ac_ext <<_ACEOF
5705 /* confdefs.h.  */
5706 _ACEOF
5707 cat confdefs.h >>conftest.$ac_ext
5708 cat >>conftest.$ac_ext <<_ACEOF
5709 /* end confdefs.h.  */
5710 #include <ac_nonexistent.h>
5711 _ACEOF
5712 if { (ac_try="$ac_cpp conftest.$ac_ext"
5713 case "(($ac_try" in
5714   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5715   *) ac_try_echo=$ac_try;;
5716 esac
5717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5718   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5719   ac_status=$?
5720   grep -v '^ *+' conftest.er1 >conftest.err
5721   rm -f conftest.er1
5722   cat conftest.err >&5
5723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5724   (exit $ac_status); } >/dev/null; then
5725   if test -s conftest.err; then
5726     ac_cpp_err=$ac_c_preproc_warn_flag
5727     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5728   else
5729     ac_cpp_err=
5730   fi
5731 else
5732   ac_cpp_err=yes
5733 fi
5734 if test -z "$ac_cpp_err"; then
5735   # Broken: success on invalid input.
5736 continue
5737 else
5738   echo "$as_me: failed program was:" >&5
5739 sed 's/^/| /' conftest.$ac_ext >&5
5740
5741   # Passes both tests.
5742 ac_preproc_ok=:
5743 break
5744 fi
5745
5746 rm -f conftest.err conftest.$ac_ext
5747
5748 done
5749 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5750 rm -f conftest.err conftest.$ac_ext
5751 if $ac_preproc_ok; then
5752   :
5753 else
5754   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5755 See \`config.log' for more details." >&5
5756 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5757 See \`config.log' for more details." >&2;}
5758    { (exit 1); exit 1; }; }
5759 fi
5760
5761 ac_ext=c
5762 ac_cpp='$CPP $CPPFLAGS'
5763 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5764 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5765 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5766
5767 ac_ext=c
5768 ac_cpp='$CPP $CPPFLAGS'
5769 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5770 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5771 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5772 if test -n "$ac_tool_prefix"; then
5773   for ac_prog in gcc
5774   do
5775     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5776 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5777 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5778 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5779 if test "${ac_cv_prog_CC+set}" = set; then
5780   echo $ECHO_N "(cached) $ECHO_C" >&6
5781 else
5782   if test -n "$CC"; then
5783   ac_cv_prog_CC="$CC" # Let the user override the test.
5784 else
5785 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5786 for as_dir in $PATH
5787 do
5788   IFS=$as_save_IFS
5789   test -z "$as_dir" && as_dir=.
5790   for ac_exec_ext in '' $ac_executable_extensions; do
5791   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5792     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5793     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5794     break 2
5795   fi
5796 done
5797 done
5798 IFS=$as_save_IFS
5799
5800 fi
5801 fi
5802 CC=$ac_cv_prog_CC
5803 if test -n "$CC"; then
5804   { echo "$as_me:$LINENO: result: $CC" >&5
5805 echo "${ECHO_T}$CC" >&6; }
5806 else
5807   { echo "$as_me:$LINENO: result: no" >&5
5808 echo "${ECHO_T}no" >&6; }
5809 fi
5810
5811
5812     test -n "$CC" && break
5813   done
5814 fi
5815 if test -z "$CC"; then
5816   ac_ct_CC=$CC
5817   for ac_prog in gcc
5818 do
5819   # Extract the first word of "$ac_prog", so it can be a program name with args.
5820 set dummy $ac_prog; ac_word=$2
5821 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5822 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5823 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5824   echo $ECHO_N "(cached) $ECHO_C" >&6
5825 else
5826   if test -n "$ac_ct_CC"; then
5827   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5828 else
5829 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5830 for as_dir in $PATH
5831 do
5832   IFS=$as_save_IFS
5833   test -z "$as_dir" && as_dir=.
5834   for ac_exec_ext in '' $ac_executable_extensions; do
5835   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5836     ac_cv_prog_ac_ct_CC="$ac_prog"
5837     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5838     break 2
5839   fi
5840 done
5841 done
5842 IFS=$as_save_IFS
5843
5844 fi
5845 fi
5846 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5847 if test -n "$ac_ct_CC"; then
5848   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5849 echo "${ECHO_T}$ac_ct_CC" >&6; }
5850 else
5851   { echo "$as_me:$LINENO: result: no" >&5
5852 echo "${ECHO_T}no" >&6; }
5853 fi
5854
5855
5856   test -n "$ac_ct_CC" && break
5857 done
5858
5859   if test "x$ac_ct_CC" = x; then
5860     CC=""
5861   else
5862     case $cross_compiling:$ac_tool_warned in
5863 yes:)
5864 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5865 whose name does not start with the host triplet.  If you think this
5866 configuration is useful to you, please write to autoconf@gnu.org." >&5
5867 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5868 whose name does not start with the host triplet.  If you think this
5869 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5870 ac_tool_warned=yes ;;
5871 esac
5872     CC=$ac_ct_CC
5873   fi
5874 fi
5875
5876
5877 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5878 See \`config.log' for more details." >&5
5879 echo "$as_me: error: no acceptable C compiler found in \$PATH
5880 See \`config.log' for more details." >&2;}
5881    { (exit 1); exit 1; }; }
5882
5883 # Provide some information about the compiler.
5884 echo "$as_me:$LINENO: checking for C compiler version" >&5
5885 ac_compiler=`set X $ac_compile; echo $2`
5886 { (ac_try="$ac_compiler --version >&5"
5887 case "(($ac_try" in
5888   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5889   *) ac_try_echo=$ac_try;;
5890 esac
5891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5892   (eval "$ac_compiler --version >&5") 2>&5
5893   ac_status=$?
5894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5895   (exit $ac_status); }
5896 { (ac_try="$ac_compiler -v >&5"
5897 case "(($ac_try" in
5898   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5899   *) ac_try_echo=$ac_try;;
5900 esac
5901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5902   (eval "$ac_compiler -v >&5") 2>&5
5903   ac_status=$?
5904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5905   (exit $ac_status); }
5906 { (ac_try="$ac_compiler -V >&5"
5907 case "(($ac_try" in
5908   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5909   *) ac_try_echo=$ac_try;;
5910 esac
5911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5912   (eval "$ac_compiler -V >&5") 2>&5
5913   ac_status=$?
5914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5915   (exit $ac_status); }
5916
5917 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5918 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
5919 if test "${ac_cv_c_compiler_gnu+set}" = set; then
5920   echo $ECHO_N "(cached) $ECHO_C" >&6
5921 else
5922   cat >conftest.$ac_ext <<_ACEOF
5923 /* confdefs.h.  */
5924 _ACEOF
5925 cat confdefs.h >>conftest.$ac_ext
5926 cat >>conftest.$ac_ext <<_ACEOF
5927 /* end confdefs.h.  */
5928
5929 int
5930 main ()
5931 {
5932 #ifndef __GNUC__
5933        choke me
5934 #endif
5935
5936   ;
5937   return 0;
5938 }
5939 _ACEOF
5940 rm -f conftest.$ac_objext
5941 if { (ac_try="$ac_compile"
5942 case "(($ac_try" in
5943   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5944   *) ac_try_echo=$ac_try;;
5945 esac
5946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5947   (eval "$ac_compile") 2>conftest.er1
5948   ac_status=$?
5949   grep -v '^ *+' conftest.er1 >conftest.err
5950   rm -f conftest.er1
5951   cat conftest.err >&5
5952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5953   (exit $ac_status); } &&
5954          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5955   { (case "(($ac_try" in
5956   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5957   *) ac_try_echo=$ac_try;;
5958 esac
5959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5960   (eval "$ac_try") 2>&5
5961   ac_status=$?
5962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5963   (exit $ac_status); }; } &&
5964          { ac_try='test -s conftest.$ac_objext'
5965   { (case "(($ac_try" in
5966   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5967   *) ac_try_echo=$ac_try;;
5968 esac
5969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5970   (eval "$ac_try") 2>&5
5971   ac_status=$?
5972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5973   (exit $ac_status); }; }; then
5974   ac_compiler_gnu=yes
5975 else
5976   echo "$as_me: failed program was:" >&5
5977 sed 's/^/| /' conftest.$ac_ext >&5
5978
5979         ac_compiler_gnu=no
5980 fi
5981
5982 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5983 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5984
5985 fi
5986 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5987 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
5988 GCC=`test $ac_compiler_gnu = yes && echo yes`
5989 ac_test_CFLAGS=${CFLAGS+set}
5990 ac_save_CFLAGS=$CFLAGS
5991 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5992 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
5993 if test "${ac_cv_prog_cc_g+set}" = set; then
5994   echo $ECHO_N "(cached) $ECHO_C" >&6
5995 else
5996   ac_save_c_werror_flag=$ac_c_werror_flag
5997    ac_c_werror_flag=yes
5998    ac_cv_prog_cc_g=no
5999    CFLAGS="-g"
6000    cat >conftest.$ac_ext <<_ACEOF
6001 /* confdefs.h.  */
6002 _ACEOF
6003 cat confdefs.h >>conftest.$ac_ext
6004 cat >>conftest.$ac_ext <<_ACEOF
6005 /* end confdefs.h.  */
6006
6007 int
6008 main ()
6009 {
6010
6011   ;
6012   return 0;
6013 }
6014 _ACEOF
6015 rm -f conftest.$ac_objext
6016 if { (ac_try="$ac_compile"
6017 case "(($ac_try" in
6018   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6019   *) ac_try_echo=$ac_try;;
6020 esac
6021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6022   (eval "$ac_compile") 2>conftest.er1
6023   ac_status=$?
6024   grep -v '^ *+' conftest.er1 >conftest.err
6025   rm -f conftest.er1
6026   cat conftest.err >&5
6027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6028   (exit $ac_status); } &&
6029          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6030   { (case "(($ac_try" in
6031   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6032   *) ac_try_echo=$ac_try;;
6033 esac
6034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6035   (eval "$ac_try") 2>&5
6036   ac_status=$?
6037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6038   (exit $ac_status); }; } &&
6039          { ac_try='test -s conftest.$ac_objext'
6040   { (case "(($ac_try" in
6041   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6042   *) ac_try_echo=$ac_try;;
6043 esac
6044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6045   (eval "$ac_try") 2>&5
6046   ac_status=$?
6047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6048   (exit $ac_status); }; }; then
6049   ac_cv_prog_cc_g=yes
6050 else
6051   echo "$as_me: failed program was:" >&5
6052 sed 's/^/| /' conftest.$ac_ext >&5
6053
6054         CFLAGS=""
6055       cat >conftest.$ac_ext <<_ACEOF
6056 /* confdefs.h.  */
6057 _ACEOF
6058 cat confdefs.h >>conftest.$ac_ext
6059 cat >>conftest.$ac_ext <<_ACEOF
6060 /* end confdefs.h.  */
6061
6062 int
6063 main ()
6064 {
6065
6066   ;
6067   return 0;
6068 }
6069 _ACEOF
6070 rm -f conftest.$ac_objext
6071 if { (ac_try="$ac_compile"
6072 case "(($ac_try" in
6073   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6074   *) ac_try_echo=$ac_try;;
6075 esac
6076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6077   (eval "$ac_compile") 2>conftest.er1
6078   ac_status=$?
6079   grep -v '^ *+' conftest.er1 >conftest.err
6080   rm -f conftest.er1
6081   cat conftest.err >&5
6082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6083   (exit $ac_status); } &&
6084          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6085   { (case "(($ac_try" in
6086   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6087   *) ac_try_echo=$ac_try;;
6088 esac
6089 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6090   (eval "$ac_try") 2>&5
6091   ac_status=$?
6092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6093   (exit $ac_status); }; } &&
6094          { ac_try='test -s conftest.$ac_objext'
6095   { (case "(($ac_try" in
6096   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6097   *) ac_try_echo=$ac_try;;
6098 esac
6099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6100   (eval "$ac_try") 2>&5
6101   ac_status=$?
6102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6103   (exit $ac_status); }; }; then
6104   :
6105 else
6106   echo "$as_me: failed program was:" >&5
6107 sed 's/^/| /' conftest.$ac_ext >&5
6108
6109         ac_c_werror_flag=$ac_save_c_werror_flag
6110          CFLAGS="-g"
6111          cat >conftest.$ac_ext <<_ACEOF
6112 /* confdefs.h.  */
6113 _ACEOF
6114 cat confdefs.h >>conftest.$ac_ext
6115 cat >>conftest.$ac_ext <<_ACEOF
6116 /* end confdefs.h.  */
6117
6118 int
6119 main ()
6120 {
6121
6122   ;
6123   return 0;
6124 }
6125 _ACEOF
6126 rm -f conftest.$ac_objext
6127 if { (ac_try="$ac_compile"
6128 case "(($ac_try" in
6129   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6130   *) ac_try_echo=$ac_try;;
6131 esac
6132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6133   (eval "$ac_compile") 2>conftest.er1
6134   ac_status=$?
6135   grep -v '^ *+' conftest.er1 >conftest.err
6136   rm -f conftest.er1
6137   cat conftest.err >&5
6138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6139   (exit $ac_status); } &&
6140          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6141   { (case "(($ac_try" in
6142   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6143   *) ac_try_echo=$ac_try;;
6144 esac
6145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6146   (eval "$ac_try") 2>&5
6147   ac_status=$?
6148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6149   (exit $ac_status); }; } &&
6150          { ac_try='test -s conftest.$ac_objext'
6151   { (case "(($ac_try" in
6152   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6153   *) ac_try_echo=$ac_try;;
6154 esac
6155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6156   (eval "$ac_try") 2>&5
6157   ac_status=$?
6158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6159   (exit $ac_status); }; }; then
6160   ac_cv_prog_cc_g=yes
6161 else
6162   echo "$as_me: failed program was:" >&5
6163 sed 's/^/| /' conftest.$ac_ext >&5
6164
6165
6166 fi
6167
6168 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6169 fi
6170
6171 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6172 fi
6173
6174 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6175    ac_c_werror_flag=$ac_save_c_werror_flag
6176 fi
6177 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
6178 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
6179 if test "$ac_test_CFLAGS" = set; then
6180   CFLAGS=$ac_save_CFLAGS
6181 elif test $ac_cv_prog_cc_g = yes; then
6182   if test "$GCC" = yes; then
6183     CFLAGS="-g -O2"
6184   else
6185     CFLAGS="-g"
6186   fi
6187 else
6188   if test "$GCC" = yes; then
6189     CFLAGS="-O2"
6190   else
6191     CFLAGS=
6192   fi
6193 fi
6194 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
6195 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
6196 if test "${ac_cv_prog_cc_c89+set}" = set; then
6197   echo $ECHO_N "(cached) $ECHO_C" >&6
6198 else
6199   ac_cv_prog_cc_c89=no
6200 ac_save_CC=$CC
6201 cat >conftest.$ac_ext <<_ACEOF
6202 /* confdefs.h.  */
6203 _ACEOF
6204 cat confdefs.h >>conftest.$ac_ext
6205 cat >>conftest.$ac_ext <<_ACEOF
6206 /* end confdefs.h.  */
6207 #include <stdarg.h>
6208 #include <stdio.h>
6209 #include <sys/types.h>
6210 #include <sys/stat.h>
6211 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
6212 struct buf { int x; };
6213 FILE * (*rcsopen) (struct buf *, struct stat *, int);
6214 static char *e (p, i)
6215      char **p;
6216      int i;
6217 {
6218   return p[i];
6219 }
6220 static char *f (char * (*g) (char **, int), char **p, ...)
6221 {
6222   char *s;
6223   va_list v;
6224   va_start (v,p);
6225   s = g (p, va_arg (v,int));
6226   va_end (v);
6227   return s;
6228 }
6229
6230 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
6231    function prototypes and stuff, but not '\xHH' hex character constants.
6232    These don't provoke an error unfortunately, instead are silently treated
6233    as 'x'.  The following induces an error, until -std is added to get
6234    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
6235    array size at least.  It's necessary to write '\x00'==0 to get something
6236    that's true only with -std.  */
6237 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6238
6239 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6240    inside strings and character constants.  */
6241 #define FOO(x) 'x'
6242 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6243
6244 int test (int i, double x);
6245 struct s1 {int (*f) (int a);};
6246 struct s2 {int (*f) (double a);};
6247 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6248 int argc;
6249 char **argv;
6250 int
6251 main ()
6252 {
6253 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
6254   ;
6255   return 0;
6256 }
6257 _ACEOF
6258 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6259         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6260 do
6261   CC="$ac_save_CC $ac_arg"
6262   rm -f conftest.$ac_objext
6263 if { (ac_try="$ac_compile"
6264 case "(($ac_try" in
6265   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6266   *) ac_try_echo=$ac_try;;
6267 esac
6268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6269   (eval "$ac_compile") 2>conftest.er1
6270   ac_status=$?
6271   grep -v '^ *+' conftest.er1 >conftest.err
6272   rm -f conftest.er1
6273   cat conftest.err >&5
6274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6275   (exit $ac_status); } &&
6276          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6277   { (case "(($ac_try" in
6278   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6279   *) ac_try_echo=$ac_try;;
6280 esac
6281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6282   (eval "$ac_try") 2>&5
6283   ac_status=$?
6284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6285   (exit $ac_status); }; } &&
6286          { ac_try='test -s conftest.$ac_objext'
6287   { (case "(($ac_try" in
6288   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6289   *) ac_try_echo=$ac_try;;
6290 esac
6291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6292   (eval "$ac_try") 2>&5
6293   ac_status=$?
6294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6295   (exit $ac_status); }; }; then
6296   ac_cv_prog_cc_c89=$ac_arg
6297 else
6298   echo "$as_me: failed program was:" >&5
6299 sed 's/^/| /' conftest.$ac_ext >&5
6300
6301
6302 fi
6303
6304 rm -f core conftest.err conftest.$ac_objext
6305   test "x$ac_cv_prog_cc_c89" != "xno" && break
6306 done
6307 rm -f conftest.$ac_ext
6308 CC=$ac_save_CC
6309
6310 fi
6311 # AC_CACHE_VAL
6312 case "x$ac_cv_prog_cc_c89" in
6313   x)
6314     { echo "$as_me:$LINENO: result: none needed" >&5
6315 echo "${ECHO_T}none needed" >&6; } ;;
6316   xno)
6317     { echo "$as_me:$LINENO: result: unsupported" >&5
6318 echo "${ECHO_T}unsupported" >&6; } ;;
6319   *)
6320     CC="$CC $ac_cv_prog_cc_c89"
6321     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
6322 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
6323 esac
6324
6325
6326 ac_ext=c
6327 ac_cpp='$CPP $CPPFLAGS'
6328 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6329 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6330 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6331
6332 ac_ext=cpp
6333 ac_cpp='$CXXCPP $CPPFLAGS'
6334 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6335 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6336 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6337 if test -z "$CXX"; then
6338   if test -n "$CCC"; then
6339     CXX=$CCC
6340   else
6341     if test -n "$ac_tool_prefix"; then
6342   for ac_prog in g++
6343   do
6344     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6345 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6346 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6347 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6348 if test "${ac_cv_prog_CXX+set}" = set; then
6349   echo $ECHO_N "(cached) $ECHO_C" >&6
6350 else
6351   if test -n "$CXX"; then
6352   ac_cv_prog_CXX="$CXX" # Let the user override the test.
6353 else
6354 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6355 for as_dir in $PATH
6356 do
6357   IFS=$as_save_IFS
6358   test -z "$as_dir" && as_dir=.
6359   for ac_exec_ext in '' $ac_executable_extensions; do
6360   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6361     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6362     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6363     break 2
6364   fi
6365 done
6366 done
6367 IFS=$as_save_IFS
6368
6369 fi
6370 fi
6371 CXX=$ac_cv_prog_CXX
6372 if test -n "$CXX"; then
6373   { echo "$as_me:$LINENO: result: $CXX" >&5
6374 echo "${ECHO_T}$CXX" >&6; }
6375 else
6376   { echo "$as_me:$LINENO: result: no" >&5
6377 echo "${ECHO_T}no" >&6; }
6378 fi
6379
6380
6381     test -n "$CXX" && break
6382   done
6383 fi
6384 if test -z "$CXX"; then
6385   ac_ct_CXX=$CXX
6386   for ac_prog in g++
6387 do
6388   # Extract the first word of "$ac_prog", so it can be a program name with args.
6389 set dummy $ac_prog; ac_word=$2
6390 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6391 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6392 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
6393   echo $ECHO_N "(cached) $ECHO_C" >&6
6394 else
6395   if test -n "$ac_ct_CXX"; then
6396   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6397 else
6398 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6399 for as_dir in $PATH
6400 do
6401   IFS=$as_save_IFS
6402   test -z "$as_dir" && as_dir=.
6403   for ac_exec_ext in '' $ac_executable_extensions; do
6404   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6405     ac_cv_prog_ac_ct_CXX="$ac_prog"
6406     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6407     break 2
6408   fi
6409 done
6410 done
6411 IFS=$as_save_IFS
6412
6413 fi
6414 fi
6415 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6416 if test -n "$ac_ct_CXX"; then
6417   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
6418 echo "${ECHO_T}$ac_ct_CXX" >&6; }
6419 else
6420   { echo "$as_me:$LINENO: result: no" >&5
6421 echo "${ECHO_T}no" >&6; }
6422 fi
6423
6424
6425   test -n "$ac_ct_CXX" && break
6426 done
6427
6428   if test "x$ac_ct_CXX" = x; then
6429     CXX="g++"
6430   else
6431     case $cross_compiling:$ac_tool_warned in
6432 yes:)
6433 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6434 whose name does not start with the host triplet.  If you think this
6435 configuration is useful to you, please write to autoconf@gnu.org." >&5
6436 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6437 whose name does not start with the host triplet.  If you think this
6438 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6439 ac_tool_warned=yes ;;
6440 esac
6441     CXX=$ac_ct_CXX
6442   fi
6443 fi
6444
6445   fi
6446 fi
6447 # Provide some information about the compiler.
6448 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
6449 ac_compiler=`set X $ac_compile; echo $2`
6450 { (ac_try="$ac_compiler --version >&5"
6451 case "(($ac_try" in
6452   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6453   *) ac_try_echo=$ac_try;;
6454 esac
6455 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6456   (eval "$ac_compiler --version >&5") 2>&5
6457   ac_status=$?
6458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6459   (exit $ac_status); }
6460 { (ac_try="$ac_compiler -v >&5"
6461 case "(($ac_try" in
6462   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6463   *) ac_try_echo=$ac_try;;
6464 esac
6465 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6466   (eval "$ac_compiler -v >&5") 2>&5
6467   ac_status=$?
6468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6469   (exit $ac_status); }
6470 { (ac_try="$ac_compiler -V >&5"
6471 case "(($ac_try" in
6472   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6473   *) ac_try_echo=$ac_try;;
6474 esac
6475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6476   (eval "$ac_compiler -V >&5") 2>&5
6477   ac_status=$?
6478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6479   (exit $ac_status); }
6480
6481 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
6482 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
6483 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
6484   echo $ECHO_N "(cached) $ECHO_C" >&6
6485 else
6486   cat >conftest.$ac_ext <<_ACEOF
6487 /* confdefs.h.  */
6488 _ACEOF
6489 cat confdefs.h >>conftest.$ac_ext
6490 cat >>conftest.$ac_ext <<_ACEOF
6491 /* end confdefs.h.  */
6492
6493 int
6494 main ()
6495 {
6496 #ifndef __GNUC__
6497        choke me
6498 #endif
6499
6500   ;
6501   return 0;
6502 }
6503 _ACEOF
6504 rm -f conftest.$ac_objext
6505 if { (ac_try="$ac_compile"
6506 case "(($ac_try" in
6507   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6508   *) ac_try_echo=$ac_try;;
6509 esac
6510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6511   (eval "$ac_compile") 2>conftest.er1
6512   ac_status=$?
6513   grep -v '^ *+' conftest.er1 >conftest.err
6514   rm -f conftest.er1
6515   cat conftest.err >&5
6516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6517   (exit $ac_status); } &&
6518          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6519   { (case "(($ac_try" in
6520   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6521   *) ac_try_echo=$ac_try;;
6522 esac
6523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6524   (eval "$ac_try") 2>&5
6525   ac_status=$?
6526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6527   (exit $ac_status); }; } &&
6528          { ac_try='test -s conftest.$ac_objext'
6529   { (case "(($ac_try" in
6530   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6531   *) ac_try_echo=$ac_try;;
6532 esac
6533 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6534   (eval "$ac_try") 2>&5
6535   ac_status=$?
6536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6537   (exit $ac_status); }; }; then
6538   ac_compiler_gnu=yes
6539 else
6540   echo "$as_me: failed program was:" >&5
6541 sed 's/^/| /' conftest.$ac_ext >&5
6542
6543         ac_compiler_gnu=no
6544 fi
6545
6546 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6547 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6548
6549 fi
6550 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
6551 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
6552 GXX=`test $ac_compiler_gnu = yes && echo yes`
6553 ac_test_CXXFLAGS=${CXXFLAGS+set}
6554 ac_save_CXXFLAGS=$CXXFLAGS
6555 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
6556 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
6557 if test "${ac_cv_prog_cxx_g+set}" = set; then
6558   echo $ECHO_N "(cached) $ECHO_C" >&6
6559 else
6560   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6561    ac_cxx_werror_flag=yes
6562    ac_cv_prog_cxx_g=no
6563    CXXFLAGS="-g"
6564    cat >conftest.$ac_ext <<_ACEOF
6565 /* confdefs.h.  */
6566 _ACEOF
6567 cat confdefs.h >>conftest.$ac_ext
6568 cat >>conftest.$ac_ext <<_ACEOF
6569 /* end confdefs.h.  */
6570
6571 int
6572 main ()
6573 {
6574
6575   ;
6576   return 0;
6577 }
6578 _ACEOF
6579 rm -f conftest.$ac_objext
6580 if { (ac_try="$ac_compile"
6581 case "(($ac_try" in
6582   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6583   *) ac_try_echo=$ac_try;;
6584 esac
6585 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6586   (eval "$ac_compile") 2>conftest.er1
6587   ac_status=$?
6588   grep -v '^ *+' conftest.er1 >conftest.err
6589   rm -f conftest.er1
6590   cat conftest.err >&5
6591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6592   (exit $ac_status); } &&
6593          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6594   { (case "(($ac_try" in
6595   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6596   *) ac_try_echo=$ac_try;;
6597 esac
6598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6599   (eval "$ac_try") 2>&5
6600   ac_status=$?
6601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6602   (exit $ac_status); }; } &&
6603          { ac_try='test -s conftest.$ac_objext'
6604   { (case "(($ac_try" in
6605   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6606   *) ac_try_echo=$ac_try;;
6607 esac
6608 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6609   (eval "$ac_try") 2>&5
6610   ac_status=$?
6611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6612   (exit $ac_status); }; }; then
6613   ac_cv_prog_cxx_g=yes
6614 else
6615   echo "$as_me: failed program was:" >&5
6616 sed 's/^/| /' conftest.$ac_ext >&5
6617
6618         CXXFLAGS=""
6619       cat >conftest.$ac_ext <<_ACEOF
6620 /* confdefs.h.  */
6621 _ACEOF
6622 cat confdefs.h >>conftest.$ac_ext
6623 cat >>conftest.$ac_ext <<_ACEOF
6624 /* end confdefs.h.  */
6625
6626 int
6627 main ()
6628 {
6629
6630   ;
6631   return 0;
6632 }
6633 _ACEOF
6634 rm -f conftest.$ac_objext
6635 if { (ac_try="$ac_compile"
6636 case "(($ac_try" in
6637   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6638   *) ac_try_echo=$ac_try;;
6639 esac
6640 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6641   (eval "$ac_compile") 2>conftest.er1
6642   ac_status=$?
6643   grep -v '^ *+' conftest.er1 >conftest.err
6644   rm -f conftest.er1
6645   cat conftest.err >&5
6646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6647   (exit $ac_status); } &&
6648          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6649   { (case "(($ac_try" in
6650   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6651   *) ac_try_echo=$ac_try;;
6652 esac
6653 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6654   (eval "$ac_try") 2>&5
6655   ac_status=$?
6656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6657   (exit $ac_status); }; } &&
6658          { ac_try='test -s conftest.$ac_objext'
6659   { (case "(($ac_try" in
6660   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6661   *) ac_try_echo=$ac_try;;
6662 esac
6663 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6664   (eval "$ac_try") 2>&5
6665   ac_status=$?
6666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6667   (exit $ac_status); }; }; then
6668   :
6669 else
6670   echo "$as_me: failed program was:" >&5
6671 sed 's/^/| /' conftest.$ac_ext >&5
6672
6673         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6674          CXXFLAGS="-g"
6675          cat >conftest.$ac_ext <<_ACEOF
6676 /* confdefs.h.  */
6677 _ACEOF
6678 cat confdefs.h >>conftest.$ac_ext
6679 cat >>conftest.$ac_ext <<_ACEOF
6680 /* end confdefs.h.  */
6681
6682 int
6683 main ()
6684 {
6685
6686   ;
6687   return 0;
6688 }
6689 _ACEOF
6690 rm -f conftest.$ac_objext
6691 if { (ac_try="$ac_compile"
6692 case "(($ac_try" in
6693   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6694   *) ac_try_echo=$ac_try;;
6695 esac
6696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6697   (eval "$ac_compile") 2>conftest.er1
6698   ac_status=$?
6699   grep -v '^ *+' conftest.er1 >conftest.err
6700   rm -f conftest.er1
6701   cat conftest.err >&5
6702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6703   (exit $ac_status); } &&
6704          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6705   { (case "(($ac_try" in
6706   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6707   *) ac_try_echo=$ac_try;;
6708 esac
6709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6710   (eval "$ac_try") 2>&5
6711   ac_status=$?
6712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6713   (exit $ac_status); }; } &&
6714          { ac_try='test -s conftest.$ac_objext'
6715   { (case "(($ac_try" in
6716   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6717   *) ac_try_echo=$ac_try;;
6718 esac
6719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6720   (eval "$ac_try") 2>&5
6721   ac_status=$?
6722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6723   (exit $ac_status); }; }; then
6724   ac_cv_prog_cxx_g=yes
6725 else
6726   echo "$as_me: failed program was:" >&5
6727 sed 's/^/| /' conftest.$ac_ext >&5
6728
6729
6730 fi
6731
6732 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6733 fi
6734
6735 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6736 fi
6737
6738 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6739    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6740 fi
6741 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6742 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
6743 if test "$ac_test_CXXFLAGS" = set; then
6744   CXXFLAGS=$ac_save_CXXFLAGS
6745 elif test $ac_cv_prog_cxx_g = yes; then
6746   if test "$GXX" = yes; then
6747     CXXFLAGS="-g -O2"
6748   else
6749     CXXFLAGS="-g"
6750   fi
6751 else
6752   if test "$GXX" = yes; then
6753     CXXFLAGS="-O2"
6754   else
6755     CXXFLAGS=
6756   fi
6757 fi
6758 ac_ext=c
6759 ac_cpp='$CPP $CPPFLAGS'
6760 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6761 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6762 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6763
6764
6765 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6766 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6767 if test "${lt_cv_path_NM+set}" = set; then
6768   echo $ECHO_N "(cached) $ECHO_C" >&6
6769 else
6770   if test -n "$NM"; then
6771   # Let the user override the test.
6772   lt_cv_path_NM="$NM"
6773 else
6774   lt_nm_to_check="${ac_tool_prefix}nm"
6775   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6776     lt_nm_to_check="$lt_nm_to_check nm"
6777   fi
6778   for lt_tmp_nm in $lt_nm_to_check; do
6779     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6780     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6781       IFS="$lt_save_ifs"
6782       test -z "$ac_dir" && ac_dir=.
6783       tmp_nm="$ac_dir/$lt_tmp_nm"
6784       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6785         # Check to see if the nm accepts a BSD-compat flag.
6786         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6787         #   nm: unknown option "B" ignored
6788         # Tru64's nm complains that /dev/null is an invalid object file
6789         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6790         */dev/null* | *'Invalid file or object type'*)
6791           lt_cv_path_NM="$tmp_nm -B"
6792           break
6793           ;;
6794         *)
6795           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6796           */dev/null*)
6797             lt_cv_path_NM="$tmp_nm -p"
6798             break
6799             ;;
6800           *)
6801             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6802             continue # so that we can try to find one that supports BSD flags
6803             ;;
6804           esac
6805           ;;
6806         esac
6807       fi
6808     done
6809     IFS="$lt_save_ifs"
6810   done
6811   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6812 fi
6813 fi
6814 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6815 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
6816 NM="$lt_cv_path_NM"
6817
6818
6819
6820 { echo "$as_me:$LINENO: checking for GNU make" >&5
6821 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6822 if test "${llvm_cv_gnu_make_command+set}" = set; then
6823   echo $ECHO_N "(cached) $ECHO_C" >&6
6824 else
6825   llvm_cv_gnu_make_command=''
6826  for a in "$MAKE" make gmake gnumake ; do
6827   if test -z "$a" ; then continue ; fi ;
6828   if  ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
6829   then
6830    llvm_cv_gnu_make_command=$a ;
6831    break;
6832   fi
6833  done
6834 fi
6835 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
6836 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
6837  if test "x$llvm_cv_gnu_make_command" != "x"  ; then
6838    ifGNUmake='' ;
6839  else
6840    ifGNUmake='#' ;
6841    { echo "$as_me:$LINENO: result: \"Not found\"" >&5
6842 echo "${ECHO_T}\"Not found\"" >&6; };
6843  fi
6844
6845
6846 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
6847 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6848 LN_S=$as_ln_s
6849 if test "$LN_S" = "ln -s"; then
6850   { echo "$as_me:$LINENO: result: yes" >&5
6851 echo "${ECHO_T}yes" >&6; }
6852 else
6853   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6854 echo "${ECHO_T}no, using $LN_S" >&6; }
6855 fi
6856
6857 # Extract the first word of "cmp", so it can be a program name with args.
6858 set dummy cmp; ac_word=$2
6859 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6860 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6861 if test "${ac_cv_path_CMP+set}" = set; then
6862   echo $ECHO_N "(cached) $ECHO_C" >&6
6863 else
6864   case $CMP in
6865   [\\/]* | ?:[\\/]*)
6866   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
6867   ;;
6868   *)
6869   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6870 for as_dir in $PATH
6871 do
6872   IFS=$as_save_IFS
6873   test -z "$as_dir" && as_dir=.
6874   for ac_exec_ext in '' $ac_executable_extensions; do
6875   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6876     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
6877     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6878     break 2
6879   fi
6880 done
6881 done
6882 IFS=$as_save_IFS
6883
6884   test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
6885   ;;
6886 esac
6887 fi
6888 CMP=$ac_cv_path_CMP
6889 if test -n "$CMP"; then
6890   { echo "$as_me:$LINENO: result: $CMP" >&5
6891 echo "${ECHO_T}$CMP" >&6; }
6892 else
6893   { echo "$as_me:$LINENO: result: no" >&5
6894 echo "${ECHO_T}no" >&6; }
6895 fi
6896
6897
6898 # Extract the first word of "cp", so it can be a program name with args.
6899 set dummy cp; ac_word=$2
6900 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6901 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6902 if test "${ac_cv_path_CP+set}" = set; then
6903   echo $ECHO_N "(cached) $ECHO_C" >&6
6904 else
6905   case $CP in
6906   [\\/]* | ?:[\\/]*)
6907   ac_cv_path_CP="$CP" # Let the user override the test with a path.
6908   ;;
6909   *)
6910   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6911 for as_dir in $PATH
6912 do
6913   IFS=$as_save_IFS
6914   test -z "$as_dir" && as_dir=.
6915   for ac_exec_ext in '' $ac_executable_extensions; do
6916   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6917     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
6918     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6919     break 2
6920   fi
6921 done
6922 done
6923 IFS=$as_save_IFS
6924
6925   test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
6926   ;;
6927 esac
6928 fi
6929 CP=$ac_cv_path_CP
6930 if test -n "$CP"; then
6931   { echo "$as_me:$LINENO: result: $CP" >&5
6932 echo "${ECHO_T}$CP" >&6; }
6933 else
6934   { echo "$as_me:$LINENO: result: no" >&5
6935 echo "${ECHO_T}no" >&6; }
6936 fi
6937
6938
6939 # Extract the first word of "date", so it can be a program name with args.
6940 set dummy date; ac_word=$2
6941 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6942 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6943 if test "${ac_cv_path_DATE+set}" = set; then
6944   echo $ECHO_N "(cached) $ECHO_C" >&6
6945 else
6946   case $DATE in
6947   [\\/]* | ?:[\\/]*)
6948   ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6949   ;;
6950   *)
6951   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6952 for as_dir in $PATH
6953 do
6954   IFS=$as_save_IFS
6955   test -z "$as_dir" && as_dir=.
6956   for ac_exec_ext in '' $ac_executable_extensions; do
6957   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6958     ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6959     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6960     break 2
6961   fi
6962 done
6963 done
6964 IFS=$as_save_IFS
6965
6966   test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
6967   ;;
6968 esac
6969 fi
6970 DATE=$ac_cv_path_DATE
6971 if test -n "$DATE"; then
6972   { echo "$as_me:$LINENO: result: $DATE" >&5
6973 echo "${ECHO_T}$DATE" >&6; }
6974 else
6975   { echo "$as_me:$LINENO: result: no" >&5
6976 echo "${ECHO_T}no" >&6; }
6977 fi
6978
6979
6980 # Extract the first word of "find", so it can be a program name with args.
6981 set dummy find; ac_word=$2
6982 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6983 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6984 if test "${ac_cv_path_FIND+set}" = set; then
6985   echo $ECHO_N "(cached) $ECHO_C" >&6
6986 else
6987   case $FIND in
6988   [\\/]* | ?:[\\/]*)
6989   ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
6990   ;;
6991   *)
6992   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6993 for as_dir in $PATH
6994 do
6995   IFS=$as_save_IFS
6996   test -z "$as_dir" && as_dir=.
6997   for ac_exec_ext in '' $ac_executable_extensions; do
6998   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6999     ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
7000     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7001     break 2
7002   fi
7003 done
7004 done
7005 IFS=$as_save_IFS
7006
7007   test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
7008   ;;
7009 esac
7010 fi
7011 FIND=$ac_cv_path_FIND
7012 if test -n "$FIND"; then
7013   { echo "$as_me:$LINENO: result: $FIND" >&5
7014 echo "${ECHO_T}$FIND" >&6; }
7015 else
7016   { echo "$as_me:$LINENO: result: no" >&5
7017 echo "${ECHO_T}no" >&6; }
7018 fi
7019
7020
7021 # Extract the first word of "grep", so it can be a program name with args.
7022 set dummy grep; ac_word=$2
7023 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7024 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7025 if test "${ac_cv_path_GREP+set}" = set; then
7026   echo $ECHO_N "(cached) $ECHO_C" >&6
7027 else
7028   case $GREP in
7029   [\\/]* | ?:[\\/]*)
7030   ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
7031   ;;
7032   *)
7033   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7034 for as_dir in $PATH
7035 do
7036   IFS=$as_save_IFS
7037   test -z "$as_dir" && as_dir=.
7038   for ac_exec_ext in '' $ac_executable_extensions; do
7039   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7040     ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
7041     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7042     break 2
7043   fi
7044 done
7045 done
7046 IFS=$as_save_IFS
7047
7048   test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
7049   ;;
7050 esac
7051 fi
7052 GREP=$ac_cv_path_GREP
7053 if test -n "$GREP"; then
7054   { echo "$as_me:$LINENO: result: $GREP" >&5
7055 echo "${ECHO_T}$GREP" >&6; }
7056 else
7057   { echo "$as_me:$LINENO: result: no" >&5
7058 echo "${ECHO_T}no" >&6; }
7059 fi
7060
7061
7062 # Extract the first word of "mkdir", so it can be a program name with args.
7063 set dummy mkdir; ac_word=$2
7064 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7065 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7066 if test "${ac_cv_path_MKDIR+set}" = set; then
7067   echo $ECHO_N "(cached) $ECHO_C" >&6
7068 else
7069   case $MKDIR in
7070   [\\/]* | ?:[\\/]*)
7071   ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
7072   ;;
7073   *)
7074   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7075 for as_dir in $PATH
7076 do
7077   IFS=$as_save_IFS
7078   test -z "$as_dir" && as_dir=.
7079   for ac_exec_ext in '' $ac_executable_extensions; do
7080   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7081     ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
7082     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7083     break 2
7084   fi
7085 done
7086 done
7087 IFS=$as_save_IFS
7088
7089   test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
7090   ;;
7091 esac
7092 fi
7093 MKDIR=$ac_cv_path_MKDIR
7094 if test -n "$MKDIR"; then
7095   { echo "$as_me:$LINENO: result: $MKDIR" >&5
7096 echo "${ECHO_T}$MKDIR" >&6; }
7097 else
7098   { echo "$as_me:$LINENO: result: no" >&5
7099 echo "${ECHO_T}no" >&6; }
7100 fi
7101
7102
7103 # Extract the first word of "mv", so it can be a program name with args.
7104 set dummy mv; ac_word=$2
7105 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7106 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7107 if test "${ac_cv_path_MV+set}" = set; then
7108   echo $ECHO_N "(cached) $ECHO_C" >&6
7109 else
7110   case $MV in
7111   [\\/]* | ?:[\\/]*)
7112   ac_cv_path_MV="$MV" # Let the user override the test with a path.
7113   ;;
7114   *)
7115   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7116 for as_dir in $PATH
7117 do
7118   IFS=$as_save_IFS
7119   test -z "$as_dir" && as_dir=.
7120   for ac_exec_ext in '' $ac_executable_extensions; do
7121   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7122     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
7123     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7124     break 2
7125   fi
7126 done
7127 done
7128 IFS=$as_save_IFS
7129
7130   test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
7131   ;;
7132 esac
7133 fi
7134 MV=$ac_cv_path_MV
7135 if test -n "$MV"; then
7136   { echo "$as_me:$LINENO: result: $MV" >&5
7137 echo "${ECHO_T}$MV" >&6; }
7138 else
7139   { echo "$as_me:$LINENO: result: no" >&5
7140 echo "${ECHO_T}no" >&6; }
7141 fi
7142
7143
7144 if test -n "$ac_tool_prefix"; then
7145   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7146 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7147 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7148 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7149 if test "${ac_cv_prog_RANLIB+set}" = set; then
7150   echo $ECHO_N "(cached) $ECHO_C" >&6
7151 else
7152   if test -n "$RANLIB"; then
7153   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7154 else
7155 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7156 for as_dir in $PATH
7157 do
7158   IFS=$as_save_IFS
7159   test -z "$as_dir" && as_dir=.
7160   for ac_exec_ext in '' $ac_executable_extensions; do
7161   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7162     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7163     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7164     break 2
7165   fi
7166 done
7167 done
7168 IFS=$as_save_IFS
7169
7170 fi
7171 fi
7172 RANLIB=$ac_cv_prog_RANLIB
7173 if test -n "$RANLIB"; then
7174   { echo "$as_me:$LINENO: result: $RANLIB" >&5
7175 echo "${ECHO_T}$RANLIB" >&6; }
7176 else
7177   { echo "$as_me:$LINENO: result: no" >&5
7178 echo "${ECHO_T}no" >&6; }
7179 fi
7180
7181
7182 fi
7183 if test -z "$ac_cv_prog_RANLIB"; then
7184   ac_ct_RANLIB=$RANLIB
7185   # Extract the first word of "ranlib", so it can be a program name with args.
7186 set dummy ranlib; ac_word=$2
7187 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7188 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7189 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7190   echo $ECHO_N "(cached) $ECHO_C" >&6
7191 else
7192   if test -n "$ac_ct_RANLIB"; then
7193   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7194 else
7195 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7196 for as_dir in $PATH
7197 do
7198   IFS=$as_save_IFS
7199   test -z "$as_dir" && as_dir=.
7200   for ac_exec_ext in '' $ac_executable_extensions; do
7201   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7202     ac_cv_prog_ac_ct_RANLIB="ranlib"
7203     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7204     break 2
7205   fi
7206 done
7207 done
7208 IFS=$as_save_IFS
7209
7210 fi
7211 fi
7212 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7213 if test -n "$ac_ct_RANLIB"; then
7214   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7215 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
7216 else
7217   { echo "$as_me:$LINENO: result: no" >&5
7218 echo "${ECHO_T}no" >&6; }
7219 fi
7220
7221   if test "x$ac_ct_RANLIB" = x; then
7222     RANLIB=":"
7223   else
7224     case $cross_compiling:$ac_tool_warned in
7225 yes:)
7226 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7227 whose name does not start with the host triplet.  If you think this
7228 configuration is useful to you, please write to autoconf@gnu.org." >&5
7229 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7230 whose name does not start with the host triplet.  If you think this
7231 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7232 ac_tool_warned=yes ;;
7233 esac
7234     RANLIB=$ac_ct_RANLIB
7235   fi
7236 else
7237   RANLIB="$ac_cv_prog_RANLIB"
7238 fi
7239
7240 if test -n "$ac_tool_prefix"; then
7241   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7242 set dummy ${ac_tool_prefix}ar; ac_word=$2
7243 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7244 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7245 if test "${ac_cv_prog_AR+set}" = set; then
7246   echo $ECHO_N "(cached) $ECHO_C" >&6
7247 else
7248   if test -n "$AR"; then
7249   ac_cv_prog_AR="$AR" # Let the user override the test.
7250 else
7251 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7252 for as_dir in $PATH
7253 do
7254   IFS=$as_save_IFS
7255   test -z "$as_dir" && as_dir=.
7256   for ac_exec_ext in '' $ac_executable_extensions; do
7257   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7258     ac_cv_prog_AR="${ac_tool_prefix}ar"
7259     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7260     break 2
7261   fi
7262 done
7263 done
7264 IFS=$as_save_IFS
7265
7266 fi
7267 fi
7268 AR=$ac_cv_prog_AR
7269 if test -n "$AR"; then
7270   { echo "$as_me:$LINENO: result: $AR" >&5
7271 echo "${ECHO_T}$AR" >&6; }
7272 else
7273   { echo "$as_me:$LINENO: result: no" >&5
7274 echo "${ECHO_T}no" >&6; }
7275 fi
7276
7277
7278 fi
7279 if test -z "$ac_cv_prog_AR"; then
7280   ac_ct_AR=$AR
7281   # Extract the first word of "ar", so it can be a program name with args.
7282 set dummy ar; ac_word=$2
7283 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7284 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7285 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7286   echo $ECHO_N "(cached) $ECHO_C" >&6
7287 else
7288   if test -n "$ac_ct_AR"; then
7289   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7290 else
7291 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7292 for as_dir in $PATH
7293 do
7294   IFS=$as_save_IFS
7295   test -z "$as_dir" && as_dir=.
7296   for ac_exec_ext in '' $ac_executable_extensions; do
7297   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7298     ac_cv_prog_ac_ct_AR="ar"
7299     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7300     break 2
7301   fi
7302 done
7303 done
7304 IFS=$as_save_IFS
7305
7306 fi
7307 fi
7308 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7309 if test -n "$ac_ct_AR"; then
7310   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7311 echo "${ECHO_T}$ac_ct_AR" >&6; }
7312 else
7313   { echo "$as_me:$LINENO: result: no" >&5
7314 echo "${ECHO_T}no" >&6; }
7315 fi
7316
7317   if test "x$ac_ct_AR" = x; then
7318     AR="false"
7319   else
7320     case $cross_compiling:$ac_tool_warned in
7321 yes:)
7322 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7323 whose name does not start with the host triplet.  If you think this
7324 configuration is useful to you, please write to autoconf@gnu.org." >&5
7325 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7326 whose name does not start with the host triplet.  If you think this
7327 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7328 ac_tool_warned=yes ;;
7329 esac
7330     AR=$ac_ct_AR
7331   fi
7332 else
7333   AR="$ac_cv_prog_AR"
7334 fi
7335
7336 # Extract the first word of "rm", so it can be a program name with args.
7337 set dummy rm; ac_word=$2
7338 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7339 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7340 if test "${ac_cv_path_RM+set}" = set; then
7341   echo $ECHO_N "(cached) $ECHO_C" >&6
7342 else
7343   case $RM in
7344   [\\/]* | ?:[\\/]*)
7345   ac_cv_path_RM="$RM" # Let the user override the test with a path.
7346   ;;
7347   *)
7348   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7349 for as_dir in $PATH
7350 do
7351   IFS=$as_save_IFS
7352   test -z "$as_dir" && as_dir=.
7353   for ac_exec_ext in '' $ac_executable_extensions; do
7354   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7355     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
7356     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7357     break 2
7358   fi
7359 done
7360 done
7361 IFS=$as_save_IFS
7362
7363   test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
7364   ;;
7365 esac
7366 fi
7367 RM=$ac_cv_path_RM
7368 if test -n "$RM"; then
7369   { echo "$as_me:$LINENO: result: $RM" >&5
7370 echo "${ECHO_T}$RM" >&6; }
7371 else
7372   { echo "$as_me:$LINENO: result: no" >&5
7373 echo "${ECHO_T}no" >&6; }
7374 fi
7375
7376
7377 # Extract the first word of "sed", so it can be a program name with args.
7378 set dummy sed; ac_word=$2
7379 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7380 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7381 if test "${ac_cv_path_SED+set}" = set; then
7382   echo $ECHO_N "(cached) $ECHO_C" >&6
7383 else
7384   case $SED in
7385   [\\/]* | ?:[\\/]*)
7386   ac_cv_path_SED="$SED" # Let the user override the test with a path.
7387   ;;
7388   *)
7389   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7390 for as_dir in $PATH
7391 do
7392   IFS=$as_save_IFS
7393   test -z "$as_dir" && as_dir=.
7394   for ac_exec_ext in '' $ac_executable_extensions; do
7395   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7396     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
7397     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7398     break 2
7399   fi
7400 done
7401 done
7402 IFS=$as_save_IFS
7403
7404   test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
7405   ;;
7406 esac
7407 fi
7408 SED=$ac_cv_path_SED
7409 if test -n "$SED"; then
7410   { echo "$as_me:$LINENO: result: $SED" >&5
7411 echo "${ECHO_T}$SED" >&6; }
7412 else
7413   { echo "$as_me:$LINENO: result: no" >&5
7414 echo "${ECHO_T}no" >&6; }
7415 fi
7416
7417
7418 # Extract the first word of "tar", so it can be a program name with args.
7419 set dummy tar; ac_word=$2
7420 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7421 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7422 if test "${ac_cv_path_TAR+set}" = set; then
7423   echo $ECHO_N "(cached) $ECHO_C" >&6
7424 else
7425   case $TAR in
7426   [\\/]* | ?:[\\/]*)
7427   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
7428   ;;
7429   *)
7430   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7431 for as_dir in $PATH
7432 do
7433   IFS=$as_save_IFS
7434   test -z "$as_dir" && as_dir=.
7435   for ac_exec_ext in '' $ac_executable_extensions; do
7436   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7437     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
7438     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7439     break 2
7440   fi
7441 done
7442 done
7443 IFS=$as_save_IFS
7444
7445   test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
7446   ;;
7447 esac
7448 fi
7449 TAR=$ac_cv_path_TAR
7450 if test -n "$TAR"; then
7451   { echo "$as_me:$LINENO: result: $TAR" >&5
7452 echo "${ECHO_T}$TAR" >&6; }
7453 else
7454   { echo "$as_me:$LINENO: result: no" >&5
7455 echo "${ECHO_T}no" >&6; }
7456 fi
7457
7458
7459 # Extract the first word of "pwd", so it can be a program name with args.
7460 set dummy pwd; ac_word=$2
7461 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7462 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7463 if test "${ac_cv_path_BINPWD+set}" = set; then
7464   echo $ECHO_N "(cached) $ECHO_C" >&6
7465 else
7466   case $BINPWD in
7467   [\\/]* | ?:[\\/]*)
7468   ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
7469   ;;
7470   *)
7471   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7472 for as_dir in $PATH
7473 do
7474   IFS=$as_save_IFS
7475   test -z "$as_dir" && as_dir=.
7476   for ac_exec_ext in '' $ac_executable_extensions; do
7477   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7478     ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
7479     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7480     break 2
7481   fi
7482 done
7483 done
7484 IFS=$as_save_IFS
7485
7486   test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
7487   ;;
7488 esac
7489 fi
7490 BINPWD=$ac_cv_path_BINPWD
7491 if test -n "$BINPWD"; then
7492   { echo "$as_me:$LINENO: result: $BINPWD" >&5
7493 echo "${ECHO_T}$BINPWD" >&6; }
7494 else
7495   { echo "$as_me:$LINENO: result: no" >&5
7496 echo "${ECHO_T}no" >&6; }
7497 fi
7498
7499
7500
7501 # Extract the first word of "Graphviz", so it can be a program name with args.
7502 set dummy Graphviz; ac_word=$2
7503 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7504 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7505 if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
7506   echo $ECHO_N "(cached) $ECHO_C" >&6
7507 else
7508   case $GRAPHVIZ in
7509   [\\/]* | ?:[\\/]*)
7510   ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
7511   ;;
7512   *)
7513   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7514 for as_dir in $PATH
7515 do
7516   IFS=$as_save_IFS
7517   test -z "$as_dir" && as_dir=.
7518   for ac_exec_ext in '' $ac_executable_extensions; do
7519   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7520     ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
7521     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7522     break 2
7523   fi
7524 done
7525 done
7526 IFS=$as_save_IFS
7527
7528   test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
7529   ;;
7530 esac
7531 fi
7532 GRAPHVIZ=$ac_cv_path_GRAPHVIZ
7533 if test -n "$GRAPHVIZ"; then
7534   { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
7535 echo "${ECHO_T}$GRAPHVIZ" >&6; }
7536 else
7537   { echo "$as_me:$LINENO: result: no" >&5
7538 echo "${ECHO_T}no" >&6; }
7539 fi
7540
7541
7542 if test "$GRAPHVIZ" != "echo Graphviz" ; then
7543
7544 cat >>confdefs.h <<\_ACEOF
7545 #define HAVE_GRAPHVIZ 1
7546 _ACEOF
7547
7548     if test "$llvm_cv_os_type" = "MingW" ; then
7549     GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7550   fi
7551
7552 cat >>confdefs.h <<_ACEOF
7553 #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
7554 _ACEOF
7555
7556 fi
7557 # Extract the first word of "dot", so it can be a program name with args.
7558 set dummy dot; ac_word=$2
7559 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7560 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7561 if test "${ac_cv_path_DOT+set}" = set; then
7562   echo $ECHO_N "(cached) $ECHO_C" >&6
7563 else
7564   case $DOT in
7565   [\\/]* | ?:[\\/]*)
7566   ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
7567   ;;
7568   *)
7569   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7570 for as_dir in $PATH
7571 do
7572   IFS=$as_save_IFS
7573   test -z "$as_dir" && as_dir=.
7574   for ac_exec_ext in '' $ac_executable_extensions; do
7575   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7576     ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
7577     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7578     break 2
7579   fi
7580 done
7581 done
7582 IFS=$as_save_IFS
7583
7584   test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
7585   ;;
7586 esac
7587 fi
7588 DOT=$ac_cv_path_DOT
7589 if test -n "$DOT"; then
7590   { echo "$as_me:$LINENO: result: $DOT" >&5
7591 echo "${ECHO_T}$DOT" >&6; }
7592 else
7593   { echo "$as_me:$LINENO: result: no" >&5
7594 echo "${ECHO_T}no" >&6; }
7595 fi
7596
7597
7598 if test "$DOT" != "echo dot" ; then
7599
7600 cat >>confdefs.h <<\_ACEOF
7601 #define HAVE_DOT 1
7602 _ACEOF
7603
7604     if test "$llvm_cv_os_type" = "MingW" ; then
7605     DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7606   fi
7607
7608 cat >>confdefs.h <<_ACEOF
7609 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
7610 _ACEOF
7611
7612 fi
7613 # Extract the first word of "fdp", so it can be a program name with args.
7614 set dummy fdp; ac_word=$2
7615 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7616 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7617 if test "${ac_cv_path_FDP+set}" = set; then
7618   echo $ECHO_N "(cached) $ECHO_C" >&6
7619 else
7620   case $FDP in
7621   [\\/]* | ?:[\\/]*)
7622   ac_cv_path_FDP="$FDP" # Let the user override the test with a path.
7623   ;;
7624   *)
7625   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7626 for as_dir in $PATH
7627 do
7628   IFS=$as_save_IFS
7629   test -z "$as_dir" && as_dir=.
7630   for ac_exec_ext in '' $ac_executable_extensions; do
7631   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7632     ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext"
7633     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7634     break 2
7635   fi
7636 done
7637 done
7638 IFS=$as_save_IFS
7639
7640   test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp"
7641   ;;
7642 esac
7643 fi
7644 FDP=$ac_cv_path_FDP
7645 if test -n "$FDP"; then
7646   { echo "$as_me:$LINENO: result: $FDP" >&5
7647 echo "${ECHO_T}$FDP" >&6; }
7648 else
7649   { echo "$as_me:$LINENO: result: no" >&5
7650 echo "${ECHO_T}no" >&6; }
7651 fi
7652
7653
7654 if test "$FDP" != "echo fdp" ; then
7655
7656 cat >>confdefs.h <<\_ACEOF
7657 #define HAVE_FDP 1
7658 _ACEOF
7659
7660     if test "$llvm_cv_os_type" = "MingW" ; then
7661     FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7662   fi
7663
7664 cat >>confdefs.h <<_ACEOF
7665 #define LLVM_PATH_FDP "$FDP${EXEEXT}"
7666 _ACEOF
7667
7668 fi
7669 # Extract the first word of "neato", so it can be a program name with args.
7670 set dummy neato; ac_word=$2
7671 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7672 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7673 if test "${ac_cv_path_NEATO+set}" = set; then
7674   echo $ECHO_N "(cached) $ECHO_C" >&6
7675 else
7676   case $NEATO in
7677   [\\/]* | ?:[\\/]*)
7678   ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path.
7679   ;;
7680   *)
7681   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7682 for as_dir in $PATH
7683 do
7684   IFS=$as_save_IFS
7685   test -z "$as_dir" && as_dir=.
7686   for ac_exec_ext in '' $ac_executable_extensions; do
7687   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7688     ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext"
7689     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7690     break 2
7691   fi
7692 done
7693 done
7694 IFS=$as_save_IFS
7695
7696   test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato"
7697   ;;
7698 esac
7699 fi
7700 NEATO=$ac_cv_path_NEATO
7701 if test -n "$NEATO"; then
7702   { echo "$as_me:$LINENO: result: $NEATO" >&5
7703 echo "${ECHO_T}$NEATO" >&6; }
7704 else
7705   { echo "$as_me:$LINENO: result: no" >&5
7706 echo "${ECHO_T}no" >&6; }
7707 fi
7708
7709
7710 if test "$NEATO" != "echo neato" ; then
7711
7712 cat >>confdefs.h <<\_ACEOF
7713 #define HAVE_NEATO 1
7714 _ACEOF
7715
7716     if test "$llvm_cv_os_type" = "MingW" ; then
7717     NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7718   fi
7719
7720 cat >>confdefs.h <<_ACEOF
7721 #define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
7722 _ACEOF
7723
7724 fi
7725 # Extract the first word of "twopi", so it can be a program name with args.
7726 set dummy twopi; ac_word=$2
7727 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7728 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7729 if test "${ac_cv_path_TWOPI+set}" = set; then
7730   echo $ECHO_N "(cached) $ECHO_C" >&6
7731 else
7732   case $TWOPI in
7733   [\\/]* | ?:[\\/]*)
7734   ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path.
7735   ;;
7736   *)
7737   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7738 for as_dir in $PATH
7739 do
7740   IFS=$as_save_IFS
7741   test -z "$as_dir" && as_dir=.
7742   for ac_exec_ext in '' $ac_executable_extensions; do
7743   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7744     ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext"
7745     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7746     break 2
7747   fi
7748 done
7749 done
7750 IFS=$as_save_IFS
7751
7752   test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi"
7753   ;;
7754 esac
7755 fi
7756 TWOPI=$ac_cv_path_TWOPI
7757 if test -n "$TWOPI"; then
7758   { echo "$as_me:$LINENO: result: $TWOPI" >&5
7759 echo "${ECHO_T}$TWOPI" >&6; }
7760 else
7761   { echo "$as_me:$LINENO: result: no" >&5
7762 echo "${ECHO_T}no" >&6; }
7763 fi
7764
7765
7766 if test "$TWOPI" != "echo twopi" ; then
7767
7768 cat >>confdefs.h <<\_ACEOF
7769 #define HAVE_TWOPI 1
7770 _ACEOF
7771
7772     if test "$llvm_cv_os_type" = "MingW" ; then
7773     TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7774   fi
7775
7776 cat >>confdefs.h <<_ACEOF
7777 #define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
7778 _ACEOF
7779
7780 fi
7781 # Extract the first word of "circo", so it can be a program name with args.
7782 set dummy circo; ac_word=$2
7783 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7784 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7785 if test "${ac_cv_path_CIRCO+set}" = set; then
7786   echo $ECHO_N "(cached) $ECHO_C" >&6
7787 else
7788   case $CIRCO in
7789   [\\/]* | ?:[\\/]*)
7790   ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path.
7791   ;;
7792   *)
7793   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7794 for as_dir in $PATH
7795 do
7796   IFS=$as_save_IFS
7797   test -z "$as_dir" && as_dir=.
7798   for ac_exec_ext in '' $ac_executable_extensions; do
7799   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7800     ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext"
7801     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7802     break 2
7803   fi
7804 done
7805 done
7806 IFS=$as_save_IFS
7807
7808   test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo"
7809   ;;
7810 esac
7811 fi
7812 CIRCO=$ac_cv_path_CIRCO
7813 if test -n "$CIRCO"; then
7814   { echo "$as_me:$LINENO: result: $CIRCO" >&5
7815 echo "${ECHO_T}$CIRCO" >&6; }
7816 else
7817   { echo "$as_me:$LINENO: result: no" >&5
7818 echo "${ECHO_T}no" >&6; }
7819 fi
7820
7821
7822 if test "$CIRCO" != "echo circo" ; then
7823
7824 cat >>confdefs.h <<\_ACEOF
7825 #define HAVE_CIRCO 1
7826 _ACEOF
7827
7828     if test "$llvm_cv_os_type" = "MingW" ; then
7829     CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7830   fi
7831
7832 cat >>confdefs.h <<_ACEOF
7833 #define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
7834 _ACEOF
7835
7836 fi
7837 for ac_prog in gv gsview32
7838 do
7839   # Extract the first word of "$ac_prog", so it can be a program name with args.
7840 set dummy $ac_prog; ac_word=$2
7841 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7842 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7843 if test "${ac_cv_path_GV+set}" = set; then
7844   echo $ECHO_N "(cached) $ECHO_C" >&6
7845 else
7846   case $GV in
7847   [\\/]* | ?:[\\/]*)
7848   ac_cv_path_GV="$GV" # Let the user override the test with a path.
7849   ;;
7850   *)
7851   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7852 for as_dir in $PATH
7853 do
7854   IFS=$as_save_IFS
7855   test -z "$as_dir" && as_dir=.
7856   for ac_exec_ext in '' $ac_executable_extensions; do
7857   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7858     ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
7859     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7860     break 2
7861   fi
7862 done
7863 done
7864 IFS=$as_save_IFS
7865
7866   ;;
7867 esac
7868 fi
7869 GV=$ac_cv_path_GV
7870 if test -n "$GV"; then
7871   { echo "$as_me:$LINENO: result: $GV" >&5
7872 echo "${ECHO_T}$GV" >&6; }
7873 else
7874   { echo "$as_me:$LINENO: result: no" >&5
7875 echo "${ECHO_T}no" >&6; }
7876 fi
7877
7878
7879   test -n "$GV" && break
7880 done
7881 test -n "$GV" || GV="echo gv"
7882
7883 if test "$GV" != "echo gv" ; then
7884
7885 cat >>confdefs.h <<\_ACEOF
7886 #define HAVE_GV 1
7887 _ACEOF
7888
7889     if test "$llvm_cv_os_type" = "MingW" ; then
7890     GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7891   fi
7892
7893 cat >>confdefs.h <<_ACEOF
7894 #define LLVM_PATH_GV "$GV${EXEEXT}"
7895 _ACEOF
7896
7897 fi
7898 # Extract the first word of "dotty", so it can be a program name with args.
7899 set dummy dotty; ac_word=$2
7900 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7901 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7902 if test "${ac_cv_path_DOTTY+set}" = set; then
7903   echo $ECHO_N "(cached) $ECHO_C" >&6
7904 else
7905   case $DOTTY in
7906   [\\/]* | ?:[\\/]*)
7907   ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
7908   ;;
7909   *)
7910   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7911 for as_dir in $PATH
7912 do
7913   IFS=$as_save_IFS
7914   test -z "$as_dir" && as_dir=.
7915   for ac_exec_ext in '' $ac_executable_extensions; do
7916   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7917     ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
7918     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7919     break 2
7920   fi
7921 done
7922 done
7923 IFS=$as_save_IFS
7924
7925   test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
7926   ;;
7927 esac
7928 fi
7929 DOTTY=$ac_cv_path_DOTTY
7930 if test -n "$DOTTY"; then
7931   { echo "$as_me:$LINENO: result: $DOTTY" >&5
7932 echo "${ECHO_T}$DOTTY" >&6; }
7933 else
7934   { echo "$as_me:$LINENO: result: no" >&5
7935 echo "${ECHO_T}no" >&6; }
7936 fi
7937
7938
7939 if test "$DOTTY" != "echo dotty" ; then
7940
7941 cat >>confdefs.h <<\_ACEOF
7942 #define HAVE_DOTTY 1
7943 _ACEOF
7944
7945     if test "$llvm_cv_os_type" = "MingW" ; then
7946     DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7947   fi
7948
7949 cat >>confdefs.h <<_ACEOF
7950 #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
7951 _ACEOF
7952
7953 fi
7954 # Extract the first word of "xdot.py", so it can be a program name with args.
7955 set dummy xdot.py; ac_word=$2
7956 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7957 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7958 if test "${ac_cv_path_XDOT_PY+set}" = set; then
7959   echo $ECHO_N "(cached) $ECHO_C" >&6
7960 else
7961   case $XDOT_PY in
7962   [\\/]* | ?:[\\/]*)
7963   ac_cv_path_XDOT_PY="$XDOT_PY" # Let the user override the test with a path.
7964   ;;
7965   *)
7966   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7967 for as_dir in $PATH
7968 do
7969   IFS=$as_save_IFS
7970   test -z "$as_dir" && as_dir=.
7971   for ac_exec_ext in '' $ac_executable_extensions; do
7972   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7973     ac_cv_path_XDOT_PY="$as_dir/$ac_word$ac_exec_ext"
7974     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7975     break 2
7976   fi
7977 done
7978 done
7979 IFS=$as_save_IFS
7980
7981   test -z "$ac_cv_path_XDOT_PY" && ac_cv_path_XDOT_PY="echo xdot.py"
7982   ;;
7983 esac
7984 fi
7985 XDOT_PY=$ac_cv_path_XDOT_PY
7986 if test -n "$XDOT_PY"; then
7987   { echo "$as_me:$LINENO: result: $XDOT_PY" >&5
7988 echo "${ECHO_T}$XDOT_PY" >&6; }
7989 else
7990   { echo "$as_me:$LINENO: result: no" >&5
7991 echo "${ECHO_T}no" >&6; }
7992 fi
7993
7994
7995 if test "$XDOT_PY" != "echo xdot.py" ; then
7996
7997 cat >>confdefs.h <<\_ACEOF
7998 #define HAVE_XDOT_PY 1
7999 _ACEOF
8000
8001     if test "$llvm_cv_os_type" = "MingW" ; then
8002     XDOT_PY=`echo $XDOT_PY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
8003   fi
8004
8005 cat >>confdefs.h <<_ACEOF
8006 #define LLVM_PATH_XDOT_PY "$XDOT_PY${EXEEXT}"
8007 _ACEOF
8008
8009 fi
8010
8011
8012 # Extract the first word of "perl", so it can be a program name with args.
8013 set dummy perl; ac_word=$2
8014 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8015 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8016 if test "${ac_cv_path_PERL+set}" = set; then
8017   echo $ECHO_N "(cached) $ECHO_C" >&6
8018 else
8019   case $PERL in
8020   [\\/]* | ?:[\\/]*)
8021   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
8022   ;;
8023   *)
8024   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8025 for as_dir in $PATH
8026 do
8027   IFS=$as_save_IFS
8028   test -z "$as_dir" && as_dir=.
8029   for ac_exec_ext in '' $ac_executable_extensions; do
8030   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8031     ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
8032     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8033     break 2
8034   fi
8035 done
8036 done
8037 IFS=$as_save_IFS
8038
8039   test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
8040   ;;
8041 esac
8042 fi
8043 PERL=$ac_cv_path_PERL
8044 if test -n "$PERL"; then
8045   { echo "$as_me:$LINENO: result: $PERL" >&5
8046 echo "${ECHO_T}$PERL" >&6; }
8047 else
8048   { echo "$as_me:$LINENO: result: no" >&5
8049 echo "${ECHO_T}no" >&6; }
8050 fi
8051
8052
8053 if test "$PERL" != "none"; then
8054   { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
8055 echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; }
8056   if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then
8057     { echo "$as_me:$LINENO: result: yes" >&5
8058 echo "${ECHO_T}yes" >&6; }
8059   else
8060     PERL=none
8061     { echo "$as_me:$LINENO: result: not found" >&5
8062 echo "${ECHO_T}not found" >&6; }
8063   fi
8064 fi
8065
8066
8067 if test x"$PERL" = xnone; then
8068    HAVE_PERL=0
8069
8070    { { echo "$as_me:$LINENO: error: perl is required but was not found, please install it" >&5
8071 echo "$as_me: error: perl is required but was not found, please install it" >&2;}
8072    { (exit 1); exit 1; }; }
8073 else
8074    HAVE_PERL=1
8075
8076 fi
8077
8078 # Find a good install program.  We prefer a C program (faster),
8079 # so one script is as good as another.  But avoid the broken or
8080 # incompatible versions:
8081 # SysV /etc/install, /usr/sbin/install
8082 # SunOS /usr/etc/install
8083 # IRIX /sbin/install
8084 # AIX /bin/install
8085 # AmigaOS /C/install, which installs bootblocks on floppy discs
8086 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
8087 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
8088 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
8089 # OS/2's system install, which has a completely different semantic
8090 # ./install, which can be erroneously created by make from ./install.sh.
8091 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
8092 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
8093 if test -z "$INSTALL"; then
8094 if test "${ac_cv_path_install+set}" = set; then
8095   echo $ECHO_N "(cached) $ECHO_C" >&6
8096 else
8097   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8098 for as_dir in $PATH
8099 do
8100   IFS=$as_save_IFS
8101   test -z "$as_dir" && as_dir=.
8102   # Account for people who put trailing slashes in PATH elements.
8103 case $as_dir/ in
8104   ./ | .// | /cC/* | \
8105   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
8106   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
8107   /usr/ucb/* ) ;;
8108   *)
8109     # OSF1 and SCO ODT 3.0 have their own names for install.
8110     # Don't use installbsd from OSF since it installs stuff as root
8111     # by default.
8112     for ac_prog in ginstall scoinst install; do
8113       for ac_exec_ext in '' $ac_executable_extensions; do
8114         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
8115           if test $ac_prog = install &&
8116             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
8117             # AIX install.  It has an incompatible calling convention.
8118             :
8119           elif test $ac_prog = install &&
8120             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
8121             # program-specific install script used by HP pwplus--don't use.
8122             :
8123           else
8124             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
8125             break 3
8126           fi
8127         fi
8128       done
8129     done
8130     ;;
8131 esac
8132 done
8133 IFS=$as_save_IFS
8134
8135
8136 fi
8137   if test "${ac_cv_path_install+set}" = set; then
8138     INSTALL=$ac_cv_path_install
8139   else
8140     # As a last resort, use the slow shell script.  Don't cache a
8141     # value for INSTALL within a source directory, because that will
8142     # break other packages using the cache if that directory is
8143     # removed, or if the value is a relative name.
8144     INSTALL=$ac_install_sh
8145   fi
8146 fi
8147 { echo "$as_me:$LINENO: result: $INSTALL" >&5
8148 echo "${ECHO_T}$INSTALL" >&6; }
8149
8150 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
8151 # It thinks the first close brace ends the variable substitution.
8152 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
8153
8154 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
8155
8156 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
8157
8158 case "$INSTALL" in
8159  [\\/$]* | ?:[\\/]* ) ;;
8160  *)  INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
8161 esac
8162
8163 # Extract the first word of "bzip2", so it can be a program name with args.
8164 set dummy bzip2; ac_word=$2
8165 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8166 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8167 if test "${ac_cv_path_BZIP2+set}" = set; then
8168   echo $ECHO_N "(cached) $ECHO_C" >&6
8169 else
8170   case $BZIP2 in
8171   [\\/]* | ?:[\\/]*)
8172   ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
8173   ;;
8174   *)
8175   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8176 for as_dir in $PATH
8177 do
8178   IFS=$as_save_IFS
8179   test -z "$as_dir" && as_dir=.
8180   for ac_exec_ext in '' $ac_executable_extensions; do
8181   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8182     ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
8183     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8184     break 2
8185   fi
8186 done
8187 done
8188 IFS=$as_save_IFS
8189
8190   ;;
8191 esac
8192 fi
8193 BZIP2=$ac_cv_path_BZIP2
8194 if test -n "$BZIP2"; then
8195   { echo "$as_me:$LINENO: result: $BZIP2" >&5
8196 echo "${ECHO_T}$BZIP2" >&6; }
8197 else
8198   { echo "$as_me:$LINENO: result: no" >&5
8199 echo "${ECHO_T}no" >&6; }
8200 fi
8201
8202
8203 # Extract the first word of "cat", so it can be a program name with args.
8204 set dummy cat; ac_word=$2
8205 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8206 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8207 if test "${ac_cv_path_CAT+set}" = set; then
8208   echo $ECHO_N "(cached) $ECHO_C" >&6
8209 else
8210   case $CAT in
8211   [\\/]* | ?:[\\/]*)
8212   ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
8213   ;;
8214   *)
8215   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8216 for as_dir in $PATH
8217 do
8218   IFS=$as_save_IFS
8219   test -z "$as_dir" && as_dir=.
8220   for ac_exec_ext in '' $ac_executable_extensions; do
8221   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8222     ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
8223     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8224     break 2
8225   fi
8226 done
8227 done
8228 IFS=$as_save_IFS
8229
8230   ;;
8231 esac
8232 fi
8233 CAT=$ac_cv_path_CAT
8234 if test -n "$CAT"; then
8235   { echo "$as_me:$LINENO: result: $CAT" >&5
8236 echo "${ECHO_T}$CAT" >&6; }
8237 else
8238   { echo "$as_me:$LINENO: result: no" >&5
8239 echo "${ECHO_T}no" >&6; }
8240 fi
8241
8242
8243 # Extract the first word of "doxygen", so it can be a program name with args.
8244 set dummy doxygen; ac_word=$2
8245 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8246 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8247 if test "${ac_cv_path_DOXYGEN+set}" = set; then
8248   echo $ECHO_N "(cached) $ECHO_C" >&6
8249 else
8250   case $DOXYGEN in
8251   [\\/]* | ?:[\\/]*)
8252   ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
8253   ;;
8254   *)
8255   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8256 for as_dir in $PATH
8257 do
8258   IFS=$as_save_IFS
8259   test -z "$as_dir" && as_dir=.
8260   for ac_exec_ext in '' $ac_executable_extensions; do
8261   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8262     ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
8263     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8264     break 2
8265   fi
8266 done
8267 done
8268 IFS=$as_save_IFS
8269
8270   ;;
8271 esac
8272 fi
8273 DOXYGEN=$ac_cv_path_DOXYGEN
8274 if test -n "$DOXYGEN"; then
8275   { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
8276 echo "${ECHO_T}$DOXYGEN" >&6; }
8277 else
8278   { echo "$as_me:$LINENO: result: no" >&5
8279 echo "${ECHO_T}no" >&6; }
8280 fi
8281
8282
8283 # Extract the first word of "groff", so it can be a program name with args.
8284 set dummy groff; ac_word=$2
8285 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8286 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8287 if test "${ac_cv_path_GROFF+set}" = set; then
8288   echo $ECHO_N "(cached) $ECHO_C" >&6
8289 else
8290   case $GROFF in
8291   [\\/]* | ?:[\\/]*)
8292   ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
8293   ;;
8294   *)
8295   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8296 for as_dir in $PATH
8297 do
8298   IFS=$as_save_IFS
8299   test -z "$as_dir" && as_dir=.
8300   for ac_exec_ext in '' $ac_executable_extensions; do
8301   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8302     ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
8303     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8304     break 2
8305   fi
8306 done
8307 done
8308 IFS=$as_save_IFS
8309
8310   ;;
8311 esac
8312 fi
8313 GROFF=$ac_cv_path_GROFF
8314 if test -n "$GROFF"; then
8315   { echo "$as_me:$LINENO: result: $GROFF" >&5
8316 echo "${ECHO_T}$GROFF" >&6; }
8317 else
8318   { echo "$as_me:$LINENO: result: no" >&5
8319 echo "${ECHO_T}no" >&6; }
8320 fi
8321
8322
8323 # Extract the first word of "gzip", so it can be a program name with args.
8324 set dummy gzip; ac_word=$2
8325 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8326 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8327 if test "${ac_cv_path_GZIPBIN+set}" = set; then
8328   echo $ECHO_N "(cached) $ECHO_C" >&6
8329 else
8330   case $GZIPBIN in
8331   [\\/]* | ?:[\\/]*)
8332   ac_cv_path_GZIPBIN="$GZIPBIN" # Let the user override the test with a path.
8333   ;;
8334   *)
8335   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8336 for as_dir in $PATH
8337 do
8338   IFS=$as_save_IFS
8339   test -z "$as_dir" && as_dir=.
8340   for ac_exec_ext in '' $ac_executable_extensions; do
8341   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8342     ac_cv_path_GZIPBIN="$as_dir/$ac_word$ac_exec_ext"
8343     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8344     break 2
8345   fi
8346 done
8347 done
8348 IFS=$as_save_IFS
8349
8350   ;;
8351 esac
8352 fi
8353 GZIPBIN=$ac_cv_path_GZIPBIN
8354 if test -n "$GZIPBIN"; then
8355   { echo "$as_me:$LINENO: result: $GZIPBIN" >&5
8356 echo "${ECHO_T}$GZIPBIN" >&6; }
8357 else
8358   { echo "$as_me:$LINENO: result: no" >&5
8359 echo "${ECHO_T}no" >&6; }
8360 fi
8361
8362
8363 # Extract the first word of "pod2html", so it can be a program name with args.
8364 set dummy pod2html; ac_word=$2
8365 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8366 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8367 if test "${ac_cv_path_POD2HTML+set}" = set; then
8368   echo $ECHO_N "(cached) $ECHO_C" >&6
8369 else
8370   case $POD2HTML in
8371   [\\/]* | ?:[\\/]*)
8372   ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
8373   ;;
8374   *)
8375   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8376 for as_dir in $PATH
8377 do
8378   IFS=$as_save_IFS
8379   test -z "$as_dir" && as_dir=.
8380   for ac_exec_ext in '' $ac_executable_extensions; do
8381   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8382     ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
8383     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8384     break 2
8385   fi
8386 done
8387 done
8388 IFS=$as_save_IFS
8389
8390   ;;
8391 esac
8392 fi
8393 POD2HTML=$ac_cv_path_POD2HTML
8394 if test -n "$POD2HTML"; then
8395   { echo "$as_me:$LINENO: result: $POD2HTML" >&5
8396 echo "${ECHO_T}$POD2HTML" >&6; }
8397 else
8398   { echo "$as_me:$LINENO: result: no" >&5
8399 echo "${ECHO_T}no" >&6; }
8400 fi
8401
8402
8403 # Extract the first word of "pod2man", so it can be a program name with args.
8404 set dummy pod2man; ac_word=$2
8405 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8406 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8407 if test "${ac_cv_path_POD2MAN+set}" = set; then
8408   echo $ECHO_N "(cached) $ECHO_C" >&6
8409 else
8410   case $POD2MAN in
8411   [\\/]* | ?:[\\/]*)
8412   ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
8413   ;;
8414   *)
8415   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8416 for as_dir in $PATH
8417 do
8418   IFS=$as_save_IFS
8419   test -z "$as_dir" && as_dir=.
8420   for ac_exec_ext in '' $ac_executable_extensions; do
8421   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8422     ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
8423     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8424     break 2
8425   fi
8426 done
8427 done
8428 IFS=$as_save_IFS
8429
8430   ;;
8431 esac
8432 fi
8433 POD2MAN=$ac_cv_path_POD2MAN
8434 if test -n "$POD2MAN"; then
8435   { echo "$as_me:$LINENO: result: $POD2MAN" >&5
8436 echo "${ECHO_T}$POD2MAN" >&6; }
8437 else
8438   { echo "$as_me:$LINENO: result: no" >&5
8439 echo "${ECHO_T}no" >&6; }
8440 fi
8441
8442
8443 # Extract the first word of "pdfroff", so it can be a program name with args.
8444 set dummy pdfroff; ac_word=$2
8445 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8446 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8447 if test "${ac_cv_path_PDFROFF+set}" = set; then
8448   echo $ECHO_N "(cached) $ECHO_C" >&6
8449 else
8450   case $PDFROFF in
8451   [\\/]* | ?:[\\/]*)
8452   ac_cv_path_PDFROFF="$PDFROFF" # Let the user override the test with a path.
8453   ;;
8454   *)
8455   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8456 for as_dir in $PATH
8457 do
8458   IFS=$as_save_IFS
8459   test -z "$as_dir" && as_dir=.
8460   for ac_exec_ext in '' $ac_executable_extensions; do
8461   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8462     ac_cv_path_PDFROFF="$as_dir/$ac_word$ac_exec_ext"
8463     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8464     break 2
8465   fi
8466 done
8467 done
8468 IFS=$as_save_IFS
8469
8470   ;;
8471 esac
8472 fi
8473 PDFROFF=$ac_cv_path_PDFROFF
8474 if test -n "$PDFROFF"; then
8475   { echo "$as_me:$LINENO: result: $PDFROFF" >&5
8476 echo "${ECHO_T}$PDFROFF" >&6; }
8477 else
8478   { echo "$as_me:$LINENO: result: no" >&5
8479 echo "${ECHO_T}no" >&6; }
8480 fi
8481
8482
8483 # Extract the first word of "runtest", so it can be a program name with args.
8484 set dummy runtest; ac_word=$2
8485 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8486 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8487 if test "${ac_cv_path_RUNTEST+set}" = set; then
8488   echo $ECHO_N "(cached) $ECHO_C" >&6
8489 else
8490   case $RUNTEST in
8491   [\\/]* | ?:[\\/]*)
8492   ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
8493   ;;
8494   *)
8495   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8496 for as_dir in $PATH
8497 do
8498   IFS=$as_save_IFS
8499   test -z "$as_dir" && as_dir=.
8500   for ac_exec_ext in '' $ac_executable_extensions; do
8501   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8502     ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
8503     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8504     break 2
8505   fi
8506 done
8507 done
8508 IFS=$as_save_IFS
8509
8510   ;;
8511 esac
8512 fi
8513 RUNTEST=$ac_cv_path_RUNTEST
8514 if test -n "$RUNTEST"; then
8515   { echo "$as_me:$LINENO: result: $RUNTEST" >&5
8516 echo "${ECHO_T}$RUNTEST" >&6; }
8517 else
8518   { echo "$as_me:$LINENO: result: no" >&5
8519 echo "${ECHO_T}no" >&6; }
8520 fi
8521
8522
8523
8524 no_itcl=true
8525 { echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
8526 echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
8527
8528 # Check whether --with-tclinclude was given.
8529 if test "${with_tclinclude+set}" = set; then
8530   withval=$with_tclinclude; with_tclinclude=${withval}
8531 else
8532   with_tclinclude=''
8533 fi
8534
8535 if test "${ac_cv_path_tclsh+set}" = set; then
8536   echo $ECHO_N "(cached) $ECHO_C" >&6
8537 else
8538
8539 if test x"${with_tclinclude}" != x ; then
8540   if test -f ${with_tclinclude}/tclsh ; then
8541     ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
8542   elif test -f ${with_tclinclude}/src/tclsh ; then
8543     ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
8544   else
8545     { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
8546 echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
8547    { (exit 1); exit 1; }; }
8548   fi
8549 fi
8550 fi
8551
8552
8553 if test x"${ac_cv_path_tclsh}" = x ; then
8554   { echo "$as_me:$LINENO: result: none" >&5
8555 echo "${ECHO_T}none" >&6; }
8556   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
8557 do
8558   # Extract the first word of "$ac_prog", so it can be a program name with args.
8559 set dummy $ac_prog; ac_word=$2
8560 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8561 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8562 if test "${ac_cv_path_TCLSH+set}" = set; then
8563   echo $ECHO_N "(cached) $ECHO_C" >&6
8564 else
8565   case $TCLSH in
8566   [\\/]* | ?:[\\/]*)
8567   ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
8568   ;;
8569   *)
8570   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8571 for as_dir in $PATH
8572 do
8573   IFS=$as_save_IFS
8574   test -z "$as_dir" && as_dir=.
8575   for ac_exec_ext in '' $ac_executable_extensions; do
8576   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8577     ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
8578     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8579     break 2
8580   fi
8581 done
8582 done
8583 IFS=$as_save_IFS
8584
8585   ;;
8586 esac
8587 fi
8588 TCLSH=$ac_cv_path_TCLSH
8589 if test -n "$TCLSH"; then
8590   { echo "$as_me:$LINENO: result: $TCLSH" >&5
8591 echo "${ECHO_T}$TCLSH" >&6; }
8592 else
8593   { echo "$as_me:$LINENO: result: no" >&5
8594 echo "${ECHO_T}no" >&6; }
8595 fi
8596
8597
8598   test -n "$TCLSH" && break
8599 done
8600
8601   if test x"${TCLSH}" = x ; then
8602     ac_cv_path_tclsh='';
8603   else
8604     ac_cv_path_tclsh="${TCLSH}";
8605   fi
8606 else
8607   { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
8608 echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
8609   TCLSH="${ac_cv_path_tclsh}"
8610
8611 fi
8612
8613 # Extract the first word of "zip", so it can be a program name with args.
8614 set dummy zip; ac_word=$2
8615 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8616 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8617 if test "${ac_cv_path_ZIP+set}" = set; then
8618   echo $ECHO_N "(cached) $ECHO_C" >&6
8619 else
8620   case $ZIP in
8621   [\\/]* | ?:[\\/]*)
8622   ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
8623   ;;
8624   *)
8625   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8626 for as_dir in $PATH
8627 do
8628   IFS=$as_save_IFS
8629   test -z "$as_dir" && as_dir=.
8630   for ac_exec_ext in '' $ac_executable_extensions; do
8631   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8632     ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
8633     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8634     break 2
8635   fi
8636 done
8637 done
8638 IFS=$as_save_IFS
8639
8640   ;;
8641 esac
8642 fi
8643 ZIP=$ac_cv_path_ZIP
8644 if test -n "$ZIP"; then
8645   { echo "$as_me:$LINENO: result: $ZIP" >&5
8646 echo "${ECHO_T}$ZIP" >&6; }
8647 else
8648   { echo "$as_me:$LINENO: result: no" >&5
8649 echo "${ECHO_T}no" >&6; }
8650 fi
8651
8652
8653 for ac_prog in ocamlc
8654 do
8655   # Extract the first word of "$ac_prog", so it can be a program name with args.
8656 set dummy $ac_prog; ac_word=$2
8657 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8658 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8659 if test "${ac_cv_path_OCAMLC+set}" = set; then
8660   echo $ECHO_N "(cached) $ECHO_C" >&6
8661 else
8662   case $OCAMLC in
8663   [\\/]* | ?:[\\/]*)
8664   ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
8665   ;;
8666   *)
8667   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8668 for as_dir in $PATH
8669 do
8670   IFS=$as_save_IFS
8671   test -z "$as_dir" && as_dir=.
8672   for ac_exec_ext in '' $ac_executable_extensions; do
8673   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8674     ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
8675     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8676     break 2
8677   fi
8678 done
8679 done
8680 IFS=$as_save_IFS
8681
8682   ;;
8683 esac
8684 fi
8685 OCAMLC=$ac_cv_path_OCAMLC
8686 if test -n "$OCAMLC"; then
8687   { echo "$as_me:$LINENO: result: $OCAMLC" >&5
8688 echo "${ECHO_T}$OCAMLC" >&6; }
8689 else
8690   { echo "$as_me:$LINENO: result: no" >&5
8691 echo "${ECHO_T}no" >&6; }
8692 fi
8693
8694
8695   test -n "$OCAMLC" && break
8696 done
8697
8698 for ac_prog in ocamlopt
8699 do
8700   # Extract the first word of "$ac_prog", so it can be a program name with args.
8701 set dummy $ac_prog; ac_word=$2
8702 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8703 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8704 if test "${ac_cv_path_OCAMLOPT+set}" = set; then
8705   echo $ECHO_N "(cached) $ECHO_C" >&6
8706 else
8707   case $OCAMLOPT in
8708   [\\/]* | ?:[\\/]*)
8709   ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
8710   ;;
8711   *)
8712   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8713 for as_dir in $PATH
8714 do
8715   IFS=$as_save_IFS
8716   test -z "$as_dir" && as_dir=.
8717   for ac_exec_ext in '' $ac_executable_extensions; do
8718   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8719     ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
8720     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8721     break 2
8722   fi
8723 done
8724 done
8725 IFS=$as_save_IFS
8726
8727   ;;
8728 esac
8729 fi
8730 OCAMLOPT=$ac_cv_path_OCAMLOPT
8731 if test -n "$OCAMLOPT"; then
8732   { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
8733 echo "${ECHO_T}$OCAMLOPT" >&6; }
8734 else
8735   { echo "$as_me:$LINENO: result: no" >&5
8736 echo "${ECHO_T}no" >&6; }
8737 fi
8738
8739
8740   test -n "$OCAMLOPT" && break
8741 done
8742
8743 for ac_prog in ocamldep
8744 do
8745   # Extract the first word of "$ac_prog", so it can be a program name with args.
8746 set dummy $ac_prog; ac_word=$2
8747 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8748 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8749 if test "${ac_cv_path_OCAMLDEP+set}" = set; then
8750   echo $ECHO_N "(cached) $ECHO_C" >&6
8751 else
8752   case $OCAMLDEP in
8753   [\\/]* | ?:[\\/]*)
8754   ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
8755   ;;
8756   *)
8757   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8758 for as_dir in $PATH
8759 do
8760   IFS=$as_save_IFS
8761   test -z "$as_dir" && as_dir=.
8762   for ac_exec_ext in '' $ac_executable_extensions; do
8763   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8764     ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
8765     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8766     break 2
8767   fi
8768 done
8769 done
8770 IFS=$as_save_IFS
8771
8772   ;;
8773 esac
8774 fi
8775 OCAMLDEP=$ac_cv_path_OCAMLDEP
8776 if test -n "$OCAMLDEP"; then
8777   { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
8778 echo "${ECHO_T}$OCAMLDEP" >&6; }
8779 else
8780   { echo "$as_me:$LINENO: result: no" >&5
8781 echo "${ECHO_T}no" >&6; }
8782 fi
8783
8784
8785   test -n "$OCAMLDEP" && break
8786 done
8787
8788 for ac_prog in ocamldoc
8789 do
8790   # Extract the first word of "$ac_prog", so it can be a program name with args.
8791 set dummy $ac_prog; ac_word=$2
8792 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8793 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8794 if test "${ac_cv_path_OCAMLDOC+set}" = set; then
8795   echo $ECHO_N "(cached) $ECHO_C" >&6
8796 else
8797   case $OCAMLDOC in
8798   [\\/]* | ?:[\\/]*)
8799   ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
8800   ;;
8801   *)
8802   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8803 for as_dir in $PATH
8804 do
8805   IFS=$as_save_IFS
8806   test -z "$as_dir" && as_dir=.
8807   for ac_exec_ext in '' $ac_executable_extensions; do
8808   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8809     ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
8810     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8811     break 2
8812   fi
8813 done
8814 done
8815 IFS=$as_save_IFS
8816
8817   ;;
8818 esac
8819 fi
8820 OCAMLDOC=$ac_cv_path_OCAMLDOC
8821 if test -n "$OCAMLDOC"; then
8822   { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
8823 echo "${ECHO_T}$OCAMLDOC" >&6; }
8824 else
8825   { echo "$as_me:$LINENO: result: no" >&5
8826 echo "${ECHO_T}no" >&6; }
8827 fi
8828
8829
8830   test -n "$OCAMLDOC" && break
8831 done
8832
8833 for ac_prog in gas as
8834 do
8835   # Extract the first word of "$ac_prog", so it can be a program name with args.
8836 set dummy $ac_prog; ac_word=$2
8837 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8838 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8839 if test "${ac_cv_path_GAS+set}" = set; then
8840   echo $ECHO_N "(cached) $ECHO_C" >&6
8841 else
8842   case $GAS in
8843   [\\/]* | ?:[\\/]*)
8844   ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
8845   ;;
8846   *)
8847   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8848 for as_dir in $PATH
8849 do
8850   IFS=$as_save_IFS
8851   test -z "$as_dir" && as_dir=.
8852   for ac_exec_ext in '' $ac_executable_extensions; do
8853   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8854     ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
8855     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8856     break 2
8857   fi
8858 done
8859 done
8860 IFS=$as_save_IFS
8861
8862   ;;
8863 esac
8864 fi
8865 GAS=$ac_cv_path_GAS
8866 if test -n "$GAS"; then
8867   { echo "$as_me:$LINENO: result: $GAS" >&5
8868 echo "${ECHO_T}$GAS" >&6; }
8869 else
8870   { echo "$as_me:$LINENO: result: no" >&5
8871 echo "${ECHO_T}no" >&6; }
8872 fi
8873
8874
8875   test -n "$GAS" && break
8876 done
8877
8878
8879 { echo "$as_me:$LINENO: checking for linker version" >&5
8880 echo $ECHO_N "checking for linker version... $ECHO_C" >&6; }
8881 if test "${llvm_cv_link_version+set}" = set; then
8882   echo $ECHO_N "(cached) $ECHO_C" >&6
8883 else
8884
8885    version_string="$(ld -v 2>&1 | head -1)"
8886
8887    # Check for ld64.
8888    if (echo "$version_string" | grep -q "ld64"); then
8889      llvm_cv_link_version=$(echo "$version_string" | sed -e "s#.*ld64-\([^ ]*\)#\1#")
8890    else
8891      llvm_cv_link_version=$(echo "$version_string" | sed -e "s#[^0-9]*\([0-9.]*\).*#\1#")
8892    fi
8893
8894 fi
8895 { echo "$as_me:$LINENO: result: $llvm_cv_link_version" >&5
8896 echo "${ECHO_T}$llvm_cv_link_version" >&6; }
8897
8898 cat >>confdefs.h <<_ACEOF
8899 #define HOST_LINK_VERSION "$llvm_cv_link_version"
8900 _ACEOF
8901
8902
8903
8904 { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
8905 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
8906 if test "${llvm_cv_link_use_r+set}" = set; then
8907   echo $ECHO_N "(cached) $ECHO_C" >&6
8908 else
8909    ac_ext=c
8910 ac_cpp='$CPP $CPPFLAGS'
8911 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8912 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8913 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8914
8915   oldcflags="$CFLAGS"
8916   CFLAGS="$CFLAGS -Wl,-R."
8917   cat >conftest.$ac_ext <<_ACEOF
8918 /* confdefs.h.  */
8919 _ACEOF
8920 cat confdefs.h >>conftest.$ac_ext
8921 cat >>conftest.$ac_ext <<_ACEOF
8922 /* end confdefs.h.  */
8923
8924 int
8925 main ()
8926 {
8927
8928   ;
8929   return 0;
8930 }
8931 _ACEOF
8932 rm -f conftest.$ac_objext conftest$ac_exeext
8933 if { (ac_try="$ac_link"
8934 case "(($ac_try" in
8935   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8936   *) ac_try_echo=$ac_try;;
8937 esac
8938 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8939   (eval "$ac_link") 2>conftest.er1
8940   ac_status=$?
8941   grep -v '^ *+' conftest.er1 >conftest.err
8942   rm -f conftest.er1
8943   cat conftest.err >&5
8944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8945   (exit $ac_status); } &&
8946          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8947   { (case "(($ac_try" in
8948   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8949   *) ac_try_echo=$ac_try;;
8950 esac
8951 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8952   (eval "$ac_try") 2>&5
8953   ac_status=$?
8954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8955   (exit $ac_status); }; } &&
8956          { ac_try='test -s conftest$ac_exeext'
8957   { (case "(($ac_try" in
8958   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8959   *) ac_try_echo=$ac_try;;
8960 esac
8961 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8962   (eval "$ac_try") 2>&5
8963   ac_status=$?
8964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8965   (exit $ac_status); }; }; then
8966   llvm_cv_link_use_r=yes
8967 else
8968   echo "$as_me: failed program was:" >&5
8969 sed 's/^/| /' conftest.$ac_ext >&5
8970
8971         llvm_cv_link_use_r=no
8972 fi
8973
8974 rm -f core conftest.err conftest.$ac_objext \
8975       conftest$ac_exeext conftest.$ac_ext
8976   CFLAGS="$oldcflags"
8977   ac_ext=c
8978 ac_cpp='$CPP $CPPFLAGS'
8979 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8980 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8981 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8982
8983
8984 fi
8985 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
8986 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
8987 if test "$llvm_cv_link_use_r" = yes ; then
8988
8989 cat >>confdefs.h <<\_ACEOF
8990 #define HAVE_LINK_R 1
8991 _ACEOF
8992
8993   fi
8994
8995
8996 { echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5
8997 echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; }
8998 if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
8999   echo $ECHO_N "(cached) $ECHO_C" >&6
9000 else
9001    ac_ext=c
9002 ac_cpp='$CPP $CPPFLAGS'
9003 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9004 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9005 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9006
9007   oldcflags="$CFLAGS"
9008   CFLAGS="$CFLAGS -Wl,-export-dynamic"
9009   cat >conftest.$ac_ext <<_ACEOF
9010 /* confdefs.h.  */
9011 _ACEOF
9012 cat confdefs.h >>conftest.$ac_ext
9013 cat >>conftest.$ac_ext <<_ACEOF
9014 /* end confdefs.h.  */
9015
9016 int
9017 main ()
9018 {
9019
9020   ;
9021   return 0;
9022 }
9023 _ACEOF
9024 rm -f conftest.$ac_objext conftest$ac_exeext
9025 if { (ac_try="$ac_link"
9026 case "(($ac_try" in
9027   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9028   *) ac_try_echo=$ac_try;;
9029 esac
9030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9031   (eval "$ac_link") 2>conftest.er1
9032   ac_status=$?
9033   grep -v '^ *+' conftest.er1 >conftest.err
9034   rm -f conftest.er1
9035   cat conftest.err >&5
9036   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9037   (exit $ac_status); } &&
9038          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9039   { (case "(($ac_try" in
9040   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9041   *) ac_try_echo=$ac_try;;
9042 esac
9043 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9044   (eval "$ac_try") 2>&5
9045   ac_status=$?
9046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9047   (exit $ac_status); }; } &&
9048          { ac_try='test -s conftest$ac_exeext'
9049   { (case "(($ac_try" in
9050   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9051   *) ac_try_echo=$ac_try;;
9052 esac
9053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9054   (eval "$ac_try") 2>&5
9055   ac_status=$?
9056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9057   (exit $ac_status); }; }; then
9058   llvm_cv_link_use_export_dynamic=yes
9059 else
9060   echo "$as_me: failed program was:" >&5
9061 sed 's/^/| /' conftest.$ac_ext >&5
9062
9063         llvm_cv_link_use_export_dynamic=no
9064 fi
9065
9066 rm -f core conftest.err conftest.$ac_objext \
9067       conftest$ac_exeext conftest.$ac_ext
9068   CFLAGS="$oldcflags"
9069   ac_ext=c
9070 ac_cpp='$CPP $CPPFLAGS'
9071 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9072 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9073 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9074
9075
9076 fi
9077 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
9078 echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
9079 if test "$llvm_cv_link_use_export_dynamic" = yes ; then
9080
9081 cat >>confdefs.h <<\_ACEOF
9082 #define HAVE_LINK_EXPORT_DYNAMIC 1
9083 _ACEOF
9084
9085   fi
9086
9087
9088 { echo "$as_me:$LINENO: checking for compiler -Wl,--version-script option" >&5
9089 echo $ECHO_N "checking for compiler -Wl,--version-script option... $ECHO_C" >&6; }
9090 if test "${llvm_cv_link_use_version_script+set}" = set; then
9091   echo $ECHO_N "(cached) $ECHO_C" >&6
9092 else
9093    ac_ext=c
9094 ac_cpp='$CPP $CPPFLAGS'
9095 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9096 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9097 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9098
9099   oldcflags="$CFLAGS"
9100
9101   # The following code is from the autoconf manual,
9102   # "11.13: Limitations of Usual Tools".
9103   # Create a temporary directory $tmp in $TMPDIR (default /tmp).
9104   # Use mktemp if possible; otherwise fall back on mkdir,
9105   # with $RANDOM to make collisions less likely.
9106   : ${TMPDIR=/tmp}
9107   {
9108     tmp=`
9109       (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null
9110     ` &&
9111     test -n "$tmp" && test -d "$tmp"
9112   } || {
9113     tmp=$TMPDIR/foo$$-$RANDOM
9114     (umask 077 && mkdir "$tmp")
9115   } || exit $?
9116
9117   echo "{" > "$tmp/export.map"
9118   echo "  global: main;" >> "$tmp/export.map"
9119   echo "  local: *;" >> "$tmp/export.map"
9120   echo "};" >> "$tmp/export.map"
9121
9122   CFLAGS="$CFLAGS -Wl,--version-script=$tmp/export.map"
9123   cat >conftest.$ac_ext <<_ACEOF
9124 /* confdefs.h.  */
9125 _ACEOF
9126 cat confdefs.h >>conftest.$ac_ext
9127 cat >>conftest.$ac_ext <<_ACEOF
9128 /* end confdefs.h.  */
9129
9130 int
9131 main ()
9132 {
9133
9134   ;
9135   return 0;
9136 }
9137 _ACEOF
9138 rm -f conftest.$ac_objext conftest$ac_exeext
9139 if { (ac_try="$ac_link"
9140 case "(($ac_try" in
9141   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9142   *) ac_try_echo=$ac_try;;
9143 esac
9144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9145   (eval "$ac_link") 2>conftest.er1
9146   ac_status=$?
9147   grep -v '^ *+' conftest.er1 >conftest.err
9148   rm -f conftest.er1
9149   cat conftest.err >&5
9150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9151   (exit $ac_status); } &&
9152          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9153   { (case "(($ac_try" in
9154   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9155   *) ac_try_echo=$ac_try;;
9156 esac
9157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9158   (eval "$ac_try") 2>&5
9159   ac_status=$?
9160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9161   (exit $ac_status); }; } &&
9162          { ac_try='test -s conftest$ac_exeext'
9163   { (case "(($ac_try" in
9164   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9165   *) ac_try_echo=$ac_try;;
9166 esac
9167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9168   (eval "$ac_try") 2>&5
9169   ac_status=$?
9170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9171   (exit $ac_status); }; }; then
9172   llvm_cv_link_use_version_script=yes
9173 else
9174   echo "$as_me: failed program was:" >&5
9175 sed 's/^/| /' conftest.$ac_ext >&5
9176
9177         llvm_cv_link_use_version_script=no
9178 fi
9179
9180 rm -f core conftest.err conftest.$ac_objext \
9181       conftest$ac_exeext conftest.$ac_ext
9182   rm "$tmp/export.map"
9183   rmdir "$tmp"
9184   CFLAGS="$oldcflags"
9185   ac_ext=c
9186 ac_cpp='$CPP $CPPFLAGS'
9187 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9188 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9189 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9190
9191
9192 fi
9193 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_version_script" >&5
9194 echo "${ECHO_T}$llvm_cv_link_use_version_script" >&6; }
9195 if test "$llvm_cv_link_use_version_script" = yes ; then
9196   HAVE_LINK_VERSION_SCRIPT=1
9197
9198   fi
9199
9200
9201
9202
9203 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
9204 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
9205 if test "${ac_cv_c_const+set}" = set; then
9206   echo $ECHO_N "(cached) $ECHO_C" >&6
9207 else
9208   cat >conftest.$ac_ext <<_ACEOF
9209 /* confdefs.h.  */
9210 _ACEOF
9211 cat confdefs.h >>conftest.$ac_ext
9212 cat >>conftest.$ac_ext <<_ACEOF
9213 /* end confdefs.h.  */
9214
9215 int
9216 main ()
9217 {
9218 /* FIXME: Include the comments suggested by Paul. */
9219 #ifndef __cplusplus
9220   /* Ultrix mips cc rejects this.  */
9221   typedef int charset[2];
9222   const charset x;
9223   /* SunOS 4.1.1 cc rejects this.  */
9224   char const *const *ccp;
9225   char **p;
9226   /* NEC SVR4.0.2 mips cc rejects this.  */
9227   struct point {int x, y;};
9228   static struct point const zero = {0,0};
9229   /* AIX XL C 1.02.0.0 rejects this.
9230      It does not let you subtract one const X* pointer from another in
9231      an arm of an if-expression whose if-part is not a constant
9232      expression */
9233   const char *g = "string";
9234   ccp = &g + (g ? g-g : 0);
9235   /* HPUX 7.0 cc rejects these. */
9236   ++ccp;
9237   p = (char**) ccp;
9238   ccp = (char const *const *) p;
9239   { /* SCO 3.2v4 cc rejects this.  */
9240     char *t;
9241     char const *s = 0 ? (char *) 0 : (char const *) 0;
9242
9243     *t++ = 0;
9244     if (s) return 0;
9245   }
9246   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
9247     int x[] = {25, 17};
9248     const int *foo = &x[0];
9249     ++foo;
9250   }
9251   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
9252     typedef const int *iptr;
9253     iptr p = 0;
9254     ++p;
9255   }
9256   { /* AIX XL C 1.02.0.0 rejects this saying
9257        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
9258     struct s { int j; const int *ap[3]; };
9259     struct s *b; b->j = 5;
9260   }
9261   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
9262     const int foo = 10;
9263     if (!foo) return 0;
9264   }
9265   return !x[0] && !zero.x;
9266 #endif
9267
9268   ;
9269   return 0;
9270 }
9271 _ACEOF
9272 rm -f conftest.$ac_objext
9273 if { (ac_try="$ac_compile"
9274 case "(($ac_try" in
9275   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9276   *) ac_try_echo=$ac_try;;
9277 esac
9278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9279   (eval "$ac_compile") 2>conftest.er1
9280   ac_status=$?
9281   grep -v '^ *+' conftest.er1 >conftest.err
9282   rm -f conftest.er1
9283   cat conftest.err >&5
9284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9285   (exit $ac_status); } &&
9286          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9287   { (case "(($ac_try" in
9288   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9289   *) ac_try_echo=$ac_try;;
9290 esac
9291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9292   (eval "$ac_try") 2>&5
9293   ac_status=$?
9294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9295   (exit $ac_status); }; } &&
9296          { ac_try='test -s conftest.$ac_objext'
9297   { (case "(($ac_try" in
9298   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9299   *) ac_try_echo=$ac_try;;
9300 esac
9301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9302   (eval "$ac_try") 2>&5
9303   ac_status=$?
9304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9305   (exit $ac_status); }; }; then
9306   ac_cv_c_const=yes
9307 else
9308   echo "$as_me: failed program was:" >&5
9309 sed 's/^/| /' conftest.$ac_ext >&5
9310
9311         ac_cv_c_const=no
9312 fi
9313
9314 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9315 fi
9316 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
9317 echo "${ECHO_T}$ac_cv_c_const" >&6; }
9318 if test $ac_cv_c_const = no; then
9319
9320 cat >>confdefs.h <<\_ACEOF
9321 #define const
9322 _ACEOF
9323
9324 fi
9325
9326
9327
9328
9329
9330
9331 ac_header_dirent=no
9332 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
9333   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
9334 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
9335 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
9336 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9337   echo $ECHO_N "(cached) $ECHO_C" >&6
9338 else
9339   cat >conftest.$ac_ext <<_ACEOF
9340 /* confdefs.h.  */
9341 _ACEOF
9342 cat confdefs.h >>conftest.$ac_ext
9343 cat >>conftest.$ac_ext <<_ACEOF
9344 /* end confdefs.h.  */
9345 #include <sys/types.h>
9346 #include <$ac_hdr>
9347
9348 int
9349 main ()
9350 {
9351 if ((DIR *) 0)
9352 return 0;
9353   ;
9354   return 0;
9355 }
9356 _ACEOF
9357 rm -f conftest.$ac_objext
9358 if { (ac_try="$ac_compile"
9359 case "(($ac_try" in
9360   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9361   *) ac_try_echo=$ac_try;;
9362 esac
9363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9364   (eval "$ac_compile") 2>conftest.er1
9365   ac_status=$?
9366   grep -v '^ *+' conftest.er1 >conftest.err
9367   rm -f conftest.er1
9368   cat conftest.err >&5
9369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9370   (exit $ac_status); } &&
9371          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9372   { (case "(($ac_try" in
9373   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9374   *) ac_try_echo=$ac_try;;
9375 esac
9376 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9377   (eval "$ac_try") 2>&5
9378   ac_status=$?
9379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9380   (exit $ac_status); }; } &&
9381          { ac_try='test -s conftest.$ac_objext'
9382   { (case "(($ac_try" in
9383   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9384   *) ac_try_echo=$ac_try;;
9385 esac
9386 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9387   (eval "$ac_try") 2>&5
9388   ac_status=$?
9389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9390   (exit $ac_status); }; }; then
9391   eval "$as_ac_Header=yes"
9392 else
9393   echo "$as_me: failed program was:" >&5
9394 sed 's/^/| /' conftest.$ac_ext >&5
9395
9396         eval "$as_ac_Header=no"
9397 fi
9398
9399 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9400 fi
9401 ac_res=`eval echo '${'$as_ac_Header'}'`
9402                { echo "$as_me:$LINENO: result: $ac_res" >&5
9403 echo "${ECHO_T}$ac_res" >&6; }
9404 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9405   cat >>confdefs.h <<_ACEOF
9406 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
9407 _ACEOF
9408
9409 ac_header_dirent=$ac_hdr; break
9410 fi
9411
9412 done
9413 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
9414 if test $ac_header_dirent = dirent.h; then
9415   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
9416 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
9417 if test "${ac_cv_search_opendir+set}" = set; then
9418   echo $ECHO_N "(cached) $ECHO_C" >&6
9419 else
9420   ac_func_search_save_LIBS=$LIBS
9421 cat >conftest.$ac_ext <<_ACEOF
9422 /* confdefs.h.  */
9423 _ACEOF
9424 cat confdefs.h >>conftest.$ac_ext
9425 cat >>conftest.$ac_ext <<_ACEOF
9426 /* end confdefs.h.  */
9427
9428 /* Override any GCC internal prototype to avoid an error.
9429    Use char because int might match the return type of a GCC
9430    builtin and then its argument prototype would still apply.  */
9431 #ifdef __cplusplus
9432 extern "C"
9433 #endif
9434 char opendir ();
9435 int
9436 main ()
9437 {
9438 return opendir ();
9439   ;
9440   return 0;
9441 }
9442 _ACEOF
9443 for ac_lib in '' dir; do
9444   if test -z "$ac_lib"; then
9445     ac_res="none required"
9446   else
9447     ac_res=-l$ac_lib
9448     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9449   fi
9450   rm -f conftest.$ac_objext conftest$ac_exeext
9451 if { (ac_try="$ac_link"
9452 case "(($ac_try" in
9453   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9454   *) ac_try_echo=$ac_try;;
9455 esac
9456 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9457   (eval "$ac_link") 2>conftest.er1
9458   ac_status=$?
9459   grep -v '^ *+' conftest.er1 >conftest.err
9460   rm -f conftest.er1
9461   cat conftest.err >&5
9462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9463   (exit $ac_status); } &&
9464          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9465   { (case "(($ac_try" in
9466   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9467   *) ac_try_echo=$ac_try;;
9468 esac
9469 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9470   (eval "$ac_try") 2>&5
9471   ac_status=$?
9472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9473   (exit $ac_status); }; } &&
9474          { ac_try='test -s conftest$ac_exeext'
9475   { (case "(($ac_try" in
9476   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9477   *) ac_try_echo=$ac_try;;
9478 esac
9479 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9480   (eval "$ac_try") 2>&5
9481   ac_status=$?
9482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9483   (exit $ac_status); }; }; then
9484   ac_cv_search_opendir=$ac_res
9485 else
9486   echo "$as_me: failed program was:" >&5
9487 sed 's/^/| /' conftest.$ac_ext >&5
9488
9489
9490 fi
9491
9492 rm -f core conftest.err conftest.$ac_objext \
9493       conftest$ac_exeext
9494   if test "${ac_cv_search_opendir+set}" = set; then
9495   break
9496 fi
9497 done
9498 if test "${ac_cv_search_opendir+set}" = set; then
9499   :
9500 else
9501   ac_cv_search_opendir=no
9502 fi
9503 rm conftest.$ac_ext
9504 LIBS=$ac_func_search_save_LIBS
9505 fi
9506 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9507 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
9508 ac_res=$ac_cv_search_opendir
9509 if test "$ac_res" != no; then
9510   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9511
9512 fi
9513
9514 else
9515   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
9516 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
9517 if test "${ac_cv_search_opendir+set}" = set; then
9518   echo $ECHO_N "(cached) $ECHO_C" >&6
9519 else
9520   ac_func_search_save_LIBS=$LIBS
9521 cat >conftest.$ac_ext <<_ACEOF
9522 /* confdefs.h.  */
9523 _ACEOF
9524 cat confdefs.h >>conftest.$ac_ext
9525 cat >>conftest.$ac_ext <<_ACEOF
9526 /* end confdefs.h.  */
9527
9528 /* Override any GCC internal prototype to avoid an error.
9529    Use char because int might match the return type of a GCC
9530    builtin and then its argument prototype would still apply.  */
9531 #ifdef __cplusplus
9532 extern "C"
9533 #endif
9534 char opendir ();
9535 int
9536 main ()
9537 {
9538 return opendir ();
9539   ;
9540   return 0;
9541 }
9542 _ACEOF
9543 for ac_lib in '' x; do
9544   if test -z "$ac_lib"; then
9545     ac_res="none required"
9546   else
9547     ac_res=-l$ac_lib
9548     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9549   fi
9550   rm -f conftest.$ac_objext conftest$ac_exeext
9551 if { (ac_try="$ac_link"
9552 case "(($ac_try" in
9553   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9554   *) ac_try_echo=$ac_try;;
9555 esac
9556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9557   (eval "$ac_link") 2>conftest.er1
9558   ac_status=$?
9559   grep -v '^ *+' conftest.er1 >conftest.err
9560   rm -f conftest.er1
9561   cat conftest.err >&5
9562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9563   (exit $ac_status); } &&
9564          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9565   { (case "(($ac_try" in
9566   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9567   *) ac_try_echo=$ac_try;;
9568 esac
9569 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9570   (eval "$ac_try") 2>&5
9571   ac_status=$?
9572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9573   (exit $ac_status); }; } &&
9574          { ac_try='test -s conftest$ac_exeext'
9575   { (case "(($ac_try" in
9576   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9577   *) ac_try_echo=$ac_try;;
9578 esac
9579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9580   (eval "$ac_try") 2>&5
9581   ac_status=$?
9582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9583   (exit $ac_status); }; }; then
9584   ac_cv_search_opendir=$ac_res
9585 else
9586   echo "$as_me: failed program was:" >&5
9587 sed 's/^/| /' conftest.$ac_ext >&5
9588
9589
9590 fi
9591
9592 rm -f core conftest.err conftest.$ac_objext \
9593       conftest$ac_exeext
9594   if test "${ac_cv_search_opendir+set}" = set; then
9595   break
9596 fi
9597 done
9598 if test "${ac_cv_search_opendir+set}" = set; then
9599   :
9600 else
9601   ac_cv_search_opendir=no
9602 fi
9603 rm conftest.$ac_ext
9604 LIBS=$ac_func_search_save_LIBS
9605 fi
9606 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9607 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
9608 ac_res=$ac_cv_search_opendir
9609 if test "$ac_res" != no; then
9610   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9611
9612 fi
9613
9614 fi
9615
9616
9617 for ac_header in dlfcn.h
9618 do
9619 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9620 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9621   { echo "$as_me:$LINENO: checking for $ac_header" >&5
9622 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9623 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9624   echo $ECHO_N "(cached) $ECHO_C" >&6
9625 fi
9626 ac_res=`eval echo '${'$as_ac_Header'}'`
9627                { echo "$as_me:$LINENO: result: $ac_res" >&5
9628 echo "${ECHO_T}$ac_res" >&6; }
9629 else
9630   # Is the header compilable?
9631 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9632 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9633 cat >conftest.$ac_ext <<_ACEOF
9634 /* confdefs.h.  */
9635 _ACEOF
9636 cat confdefs.h >>conftest.$ac_ext
9637 cat >>conftest.$ac_ext <<_ACEOF
9638 /* end confdefs.h.  */
9639 $ac_includes_default
9640 #include <$ac_header>
9641 _ACEOF
9642 rm -f conftest.$ac_objext
9643 if { (ac_try="$ac_compile"
9644 case "(($ac_try" in
9645   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9646   *) ac_try_echo=$ac_try;;
9647 esac
9648 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9649   (eval "$ac_compile") 2>conftest.er1
9650   ac_status=$?
9651   grep -v '^ *+' conftest.er1 >conftest.err
9652   rm -f conftest.er1
9653   cat conftest.err >&5
9654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9655   (exit $ac_status); } &&
9656          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9657   { (case "(($ac_try" in
9658   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9659   *) ac_try_echo=$ac_try;;
9660 esac
9661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9662   (eval "$ac_try") 2>&5
9663   ac_status=$?
9664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9665   (exit $ac_status); }; } &&
9666          { ac_try='test -s conftest.$ac_objext'
9667   { (case "(($ac_try" in
9668   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9669   *) ac_try_echo=$ac_try;;
9670 esac
9671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9672   (eval "$ac_try") 2>&5
9673   ac_status=$?
9674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9675   (exit $ac_status); }; }; then
9676   ac_header_compiler=yes
9677 else
9678   echo "$as_me: failed program was:" >&5
9679 sed 's/^/| /' conftest.$ac_ext >&5
9680
9681         ac_header_compiler=no
9682 fi
9683
9684 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9685 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9686 echo "${ECHO_T}$ac_header_compiler" >&6; }
9687
9688 # Is the header present?
9689 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9690 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9691 cat >conftest.$ac_ext <<_ACEOF
9692 /* confdefs.h.  */
9693 _ACEOF
9694 cat confdefs.h >>conftest.$ac_ext
9695 cat >>conftest.$ac_ext <<_ACEOF
9696 /* end confdefs.h.  */
9697 #include <$ac_header>
9698 _ACEOF
9699 if { (ac_try="$ac_cpp conftest.$ac_ext"
9700 case "(($ac_try" in
9701   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9702   *) ac_try_echo=$ac_try;;
9703 esac
9704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9705   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9706   ac_status=$?
9707   grep -v '^ *+' conftest.er1 >conftest.err
9708   rm -f conftest.er1
9709   cat conftest.err >&5
9710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9711   (exit $ac_status); } >/dev/null; then
9712   if test -s conftest.err; then
9713     ac_cpp_err=$ac_c_preproc_warn_flag
9714     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9715   else
9716     ac_cpp_err=
9717   fi
9718 else
9719   ac_cpp_err=yes
9720 fi
9721 if test -z "$ac_cpp_err"; then
9722   ac_header_preproc=yes
9723 else
9724   echo "$as_me: failed program was:" >&5
9725 sed 's/^/| /' conftest.$ac_ext >&5
9726
9727   ac_header_preproc=no
9728 fi
9729
9730 rm -f conftest.err conftest.$ac_ext
9731 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9732 echo "${ECHO_T}$ac_header_preproc" >&6; }
9733
9734 # So?  What about this header?
9735 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9736   yes:no: )
9737     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9738 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9739     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9740 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9741     ac_header_preproc=yes
9742     ;;
9743   no:yes:* )
9744     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9745 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9746     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9747 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9748     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9749 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9750     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9751 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9752     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9753 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9754     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9755 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9756     ( cat <<\_ASBOX
9757 ## ----------------------------------- ##
9758 ## Report this to llvmbugs@cs.uiuc.edu ##
9759 ## ----------------------------------- ##
9760 _ASBOX
9761      ) | sed "s/^/$as_me: WARNING:     /" >&2
9762     ;;
9763 esac
9764 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9765 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9766 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9767   echo $ECHO_N "(cached) $ECHO_C" >&6
9768 else
9769   eval "$as_ac_Header=\$ac_header_preproc"
9770 fi
9771 ac_res=`eval echo '${'$as_ac_Header'}'`
9772                { echo "$as_me:$LINENO: result: $ac_res" >&5
9773 echo "${ECHO_T}$ac_res" >&6; }
9774
9775 fi
9776 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9777   cat >>confdefs.h <<_ACEOF
9778 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9779 _ACEOF
9780
9781 fi
9782
9783 done
9784
9785 # Check whether --enable-ltdl-install was given.
9786 if test "${enable_ltdl_install+set}" = set; then
9787   enableval=$enable_ltdl_install;
9788 fi
9789
9790
9791
9792
9793 if test x"${enable_ltdl_install-no}" != xno; then
9794   INSTALL_LTDL_TRUE=
9795   INSTALL_LTDL_FALSE='#'
9796 else
9797   INSTALL_LTDL_TRUE='#'
9798   INSTALL_LTDL_FALSE=
9799 fi
9800
9801
9802
9803 if test x"${enable_ltdl_convenience-no}" != xno; then
9804   CONVENIENCE_LTDL_TRUE=
9805   CONVENIENCE_LTDL_FALSE='#'
9806 else
9807   CONVENIENCE_LTDL_TRUE='#'
9808   CONVENIENCE_LTDL_FALSE=
9809 fi
9810
9811
9812 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9813 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
9814 library_names_spec=
9815 libname_spec='lib$name'
9816 soname_spec=
9817 shrext_cmds=".so"
9818 postinstall_cmds=
9819 postuninstall_cmds=
9820 finish_cmds=
9821 finish_eval=
9822 shlibpath_var=
9823 shlibpath_overrides_runpath=unknown
9824 version_type=none
9825 dynamic_linker="$host_os ld.so"
9826 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9827 if test "$GCC" = yes; then
9828   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9829   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9830     # if the path contains ";" then we assume it to be the separator
9831     # otherwise default to the standard path separator (i.e. ":") - it is
9832     # assumed that no part of a normal pathname contains ";" but that should
9833     # okay in the real world where ";" in dirpaths is itself problematic.
9834     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9835   else
9836     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9837   fi
9838 else
9839   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9840 fi
9841 need_lib_prefix=unknown
9842 hardcode_into_libs=no
9843
9844 # when you set need_version to no, make sure it does not cause -set_version
9845 # flags to be left without arguments
9846 need_version=unknown
9847
9848 case $host_os in
9849 aix3*)
9850   version_type=linux
9851   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9852   shlibpath_var=LIBPATH
9853
9854   # AIX 3 has no versioning support, so we append a major version to the name.
9855   soname_spec='${libname}${release}${shared_ext}$major'
9856   ;;
9857
9858 aix4* | aix5*)
9859   version_type=linux
9860   need_lib_prefix=no
9861   need_version=no
9862   hardcode_into_libs=yes
9863   if test "$host_cpu" = ia64; then
9864     # AIX 5 supports IA64
9865     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9866     shlibpath_var=LD_LIBRARY_PATH
9867   else
9868     # With GCC up to 2.95.x, collect2 would create an import file
9869     # for dependence libraries.  The import file would start with
9870     # the line `#! .'.  This would cause the generated library to
9871     # depend on `.', always an invalid library.  This was fixed in
9872     # development snapshots of GCC prior to 3.0.
9873     case $host_os in
9874       aix4 | aix4.[01] | aix4.[01].*)
9875       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9876            echo ' yes '
9877            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9878         :
9879       else
9880         can_build_shared=no
9881       fi
9882       ;;
9883     esac
9884     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9885     # soname into executable. Probably we can add versioning support to
9886     # collect2, so additional links can be useful in future.
9887     if test "$aix_use_runtimelinking" = yes; then
9888       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9889       # instead of lib<name>.a to let people know that these are not
9890       # typical AIX shared libraries.
9891       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9892     else
9893       # We preserve .a as extension for shared libraries through AIX4.2
9894       # and later when we are not doing run time linking.
9895       library_names_spec='${libname}${release}.a $libname.a'
9896       soname_spec='${libname}${release}${shared_ext}$major'
9897     fi
9898     shlibpath_var=LIBPATH
9899   fi
9900   ;;
9901
9902 amigaos*)
9903   library_names_spec='$libname.ixlibrary $libname.a'
9904   # Create ${libname}_ixlibrary.a entries in /sys/libs.
9905   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'
9906   ;;
9907
9908 beos*)
9909   library_names_spec='${libname}${shared_ext}'
9910   dynamic_linker="$host_os ld.so"
9911   shlibpath_var=LIBRARY_PATH
9912   ;;
9913
9914 bsdi[45]*)
9915   version_type=linux
9916   need_version=no
9917   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9918   soname_spec='${libname}${release}${shared_ext}$major'
9919   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9920   shlibpath_var=LD_LIBRARY_PATH
9921   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9922   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9923   # the default ld.so.conf also contains /usr/contrib/lib and
9924   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9925   # libtool to hard-code these into programs
9926   ;;
9927
9928 cygwin* | mingw* | pw32*)
9929   version_type=windows
9930   shrext_cmds=".dll"
9931   need_version=no
9932   need_lib_prefix=no
9933
9934   case $GCC,$host_os in
9935   yes,cygwin* | yes,mingw* | yes,pw32*)
9936     library_names_spec='$libname.dll.a'
9937     # DLL is installed to $(libdir)/../bin by postinstall_cmds
9938     postinstall_cmds='base_file=`basename \${file}`~
9939       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9940       dldir=$destdir/`dirname \$dlpath`~
9941       test -d \$dldir || mkdir -p \$dldir~
9942       $install_prog $dir/$dlname \$dldir/$dlname~
9943       chmod a+x \$dldir/$dlname'
9944     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9945       dlpath=$dir/\$dldll~
9946        $rm \$dlpath'
9947     shlibpath_overrides_runpath=yes
9948
9949     case $host_os in
9950     cygwin*)
9951       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9952       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9953       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9954       ;;
9955     mingw*)
9956       # MinGW DLLs use traditional 'lib' prefix
9957       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9958       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9959       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9960         # It is most probably a Windows format PATH printed by
9961         # mingw gcc, but we are running on Cygwin. Gcc prints its search
9962         # path with ; separators, and with drive letters. We can handle the
9963         # drive letters (cygwin fileutils understands them), so leave them,
9964         # especially as we might pass files found there to a mingw objdump,
9965         # which wouldn't understand a cygwinified path. Ahh.
9966         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9967       else
9968         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9969       fi
9970       ;;
9971     pw32*)
9972       # pw32 DLLs use 'pw' prefix rather than 'lib'
9973       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9974       ;;
9975     esac
9976     ;;
9977
9978   *)
9979     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9980     ;;
9981   esac
9982   dynamic_linker='Win32 ld.exe'
9983   # FIXME: first we should search . and the directory the executable is in
9984   shlibpath_var=PATH
9985   ;;
9986
9987 darwin* | rhapsody*)
9988   dynamic_linker="$host_os dyld"
9989   version_type=darwin
9990   need_lib_prefix=no
9991   need_version=no
9992   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9993   soname_spec='${libname}${release}${major}$shared_ext'
9994   shlibpath_overrides_runpath=yes
9995   shlibpath_var=DYLD_LIBRARY_PATH
9996   shrext_cmds='.dylib'
9997   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9998   if test "$GCC" = yes; then
9999     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"`
10000   else
10001     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
10002   fi
10003   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10004   ;;
10005
10006 dgux*)
10007   version_type=linux
10008   need_lib_prefix=no
10009   need_version=no
10010   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10011   soname_spec='${libname}${release}${shared_ext}$major'
10012   shlibpath_var=LD_LIBRARY_PATH
10013   ;;
10014
10015 freebsd1*)
10016   dynamic_linker=no
10017   ;;
10018
10019 kfreebsd*-gnu)
10020   version_type=linux
10021   need_lib_prefix=no
10022   need_version=no
10023   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10024   soname_spec='${libname}${release}${shared_ext}$major'
10025   shlibpath_var=LD_LIBRARY_PATH
10026   shlibpath_overrides_runpath=no
10027   hardcode_into_libs=yes
10028   dynamic_linker='GNU ld.so'
10029   ;;
10030
10031 freebsd* | dragonfly*)
10032   # DragonFly does not have aout.  When/if they implement a new
10033   # versioning mechanism, adjust this.
10034   if test -x /usr/bin/objformat; then
10035     objformat=`/usr/bin/objformat`
10036   else
10037     case $host_os in
10038     freebsd[123]*) objformat=aout ;;
10039     *) objformat=elf ;;
10040     esac
10041   fi
10042   version_type=freebsd-$objformat
10043   case $version_type in
10044     freebsd-elf*)
10045       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10046       need_version=no
10047       need_lib_prefix=no
10048       ;;
10049     freebsd-*)
10050       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10051       need_version=yes
10052       ;;
10053   esac
10054   shlibpath_var=LD_LIBRARY_PATH
10055   case $host_os in
10056   freebsd2*)
10057     shlibpath_overrides_runpath=yes
10058     ;;
10059   freebsd3.[01]* | freebsdelf3.[01]*)
10060     shlibpath_overrides_runpath=yes
10061     hardcode_into_libs=yes
10062     ;;
10063   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10064   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10065     shlibpath_overrides_runpath=no
10066     hardcode_into_libs=yes
10067     ;;
10068   freebsd*) # from 4.6 on
10069     shlibpath_overrides_runpath=yes
10070     hardcode_into_libs=yes
10071     ;;
10072   esac
10073   ;;
10074
10075 gnu*)
10076   version_type=linux
10077   need_lib_prefix=no
10078   need_version=no
10079   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10080   soname_spec='${libname}${release}${shared_ext}$major'
10081   shlibpath_var=LD_LIBRARY_PATH
10082   hardcode_into_libs=yes
10083   ;;
10084
10085 hpux9* | hpux10* | hpux11*)
10086   # Give a soname corresponding to the major version so that dld.sl refuses to
10087   # link against other versions.
10088   version_type=sunos
10089   need_lib_prefix=no
10090   need_version=no
10091   case $host_cpu in
10092   ia64*)
10093     shrext_cmds='.so'
10094     hardcode_into_libs=yes
10095     dynamic_linker="$host_os dld.so"
10096     shlibpath_var=LD_LIBRARY_PATH
10097     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10098     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10099     soname_spec='${libname}${release}${shared_ext}$major'
10100     if test "X$HPUX_IA64_MODE" = X32; then
10101       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10102     else
10103       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10104     fi
10105     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10106     ;;
10107    hppa*64*)
10108      shrext_cmds='.sl'
10109      hardcode_into_libs=yes
10110      dynamic_linker="$host_os dld.sl"
10111      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10112      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10113      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10114      soname_spec='${libname}${release}${shared_ext}$major'
10115      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10116      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10117      ;;
10118    *)
10119     shrext_cmds='.sl'
10120     dynamic_linker="$host_os dld.sl"
10121     shlibpath_var=SHLIB_PATH
10122     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10123     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10124     soname_spec='${libname}${release}${shared_ext}$major'
10125     ;;
10126   esac
10127   # HP-UX runs *really* slowly unless shared libraries are mode 555.
10128   postinstall_cmds='chmod 555 $lib'
10129   ;;
10130
10131 interix3*)
10132   version_type=linux
10133   need_lib_prefix=no
10134   need_version=no
10135   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10136   soname_spec='${libname}${release}${shared_ext}$major'
10137   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10138   shlibpath_var=LD_LIBRARY_PATH
10139   shlibpath_overrides_runpath=no
10140   hardcode_into_libs=yes
10141   ;;
10142
10143 irix5* | irix6* | nonstopux*)
10144   case $host_os in
10145     nonstopux*) version_type=nonstopux ;;
10146     *)
10147         if test "$lt_cv_prog_gnu_ld" = yes; then
10148                 version_type=linux
10149         else
10150                 version_type=irix
10151         fi ;;
10152   esac
10153   need_lib_prefix=no
10154   need_version=no
10155   soname_spec='${libname}${release}${shared_ext}$major'
10156   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10157   case $host_os in
10158   irix5* | nonstopux*)
10159     libsuff= shlibsuff=
10160     ;;
10161   *)
10162     case $LD in # libtool.m4 will add one of these switches to LD
10163     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10164       libsuff= shlibsuff= libmagic=32-bit;;
10165     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10166       libsuff=32 shlibsuff=N32 libmagic=N32;;
10167     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10168       libsuff=64 shlibsuff=64 libmagic=64-bit;;
10169     *) libsuff= shlibsuff= libmagic=never-match;;
10170     esac
10171     ;;
10172   esac
10173   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10174   shlibpath_overrides_runpath=no
10175   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10176   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10177   hardcode_into_libs=yes
10178   ;;
10179
10180 # No shared lib support for Linux oldld, aout, or coff.
10181 linux*oldld* | linux*aout* | linux*coff*)
10182   dynamic_linker=no
10183   ;;
10184
10185 # This must be Linux ELF.
10186 linux*)
10187   version_type=linux
10188   need_lib_prefix=no
10189   need_version=no
10190   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10191   soname_spec='${libname}${release}${shared_ext}$major'
10192   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10193   shlibpath_var=LD_LIBRARY_PATH
10194   shlibpath_overrides_runpath=no
10195   # This implies no fast_install, which is unacceptable.
10196   # Some rework will be needed to allow for fast_install
10197   # before this can be enabled.
10198   hardcode_into_libs=yes
10199
10200   # Append ld.so.conf contents to the search path
10201   if test -f /etc/ld.so.conf; then
10202     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' ' '`
10203     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10204   fi
10205
10206   # We used to test for /lib/ld.so.1 and disable shared libraries on
10207   # powerpc, because MkLinux only supported shared libraries with the
10208   # GNU dynamic linker.  Since this was broken with cross compilers,
10209   # most powerpc-linux boxes support dynamic linking these days and
10210   # people can always --disable-shared, the test was removed, and we
10211   # assume the GNU/Linux dynamic linker is in use.
10212   dynamic_linker='GNU/Linux ld.so'
10213   ;;
10214
10215 knetbsd*-gnu)
10216   version_type=linux
10217   need_lib_prefix=no
10218   need_version=no
10219   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10220   soname_spec='${libname}${release}${shared_ext}$major'
10221   shlibpath_var=LD_LIBRARY_PATH
10222   shlibpath_overrides_runpath=no
10223   hardcode_into_libs=yes
10224   dynamic_linker='GNU ld.so'
10225   ;;
10226
10227 netbsd*)
10228   version_type=sunos
10229   need_lib_prefix=no
10230   need_version=no
10231   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10232     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10233     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10234     dynamic_linker='NetBSD (a.out) ld.so'
10235   else
10236     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10237     soname_spec='${libname}${release}${shared_ext}$major'
10238     dynamic_linker='NetBSD ld.elf_so'
10239   fi
10240   shlibpath_var=LD_LIBRARY_PATH
10241   shlibpath_overrides_runpath=yes
10242   hardcode_into_libs=yes
10243   ;;
10244
10245 newsos6)
10246   version_type=linux
10247   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10248   shlibpath_var=LD_LIBRARY_PATH
10249   shlibpath_overrides_runpath=yes
10250   ;;
10251
10252 nto-qnx*)
10253   version_type=linux
10254   need_lib_prefix=no
10255   need_version=no
10256   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10257   soname_spec='${libname}${release}${shared_ext}$major'
10258   shlibpath_var=LD_LIBRARY_PATH
10259   shlibpath_overrides_runpath=yes
10260   ;;
10261
10262 openbsd*)
10263   version_type=sunos
10264   sys_lib_dlsearch_path_spec="/usr/lib"
10265   need_lib_prefix=no
10266   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10267   case $host_os in
10268     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10269     *)                         need_version=no  ;;
10270   esac
10271   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10272   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10273   shlibpath_var=LD_LIBRARY_PATH
10274   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10275     case $host_os in
10276       openbsd2.[89] | openbsd2.[89].*)
10277         shlibpath_overrides_runpath=no
10278         ;;
10279       *)
10280         shlibpath_overrides_runpath=yes
10281         ;;
10282       esac
10283   else
10284     shlibpath_overrides_runpath=yes
10285   fi
10286   ;;
10287
10288 os2*)
10289   libname_spec='$name'
10290   shrext_cmds=".dll"
10291   need_lib_prefix=no
10292   library_names_spec='$libname${shared_ext} $libname.a'
10293   dynamic_linker='OS/2 ld.exe'
10294   shlibpath_var=LIBPATH
10295   ;;
10296
10297 osf3* | osf4* | osf5*)
10298   version_type=osf
10299   need_lib_prefix=no
10300   need_version=no
10301   soname_spec='${libname}${release}${shared_ext}$major'
10302   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10303   shlibpath_var=LD_LIBRARY_PATH
10304   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10305   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10306   ;;
10307
10308 solaris*)
10309   version_type=linux
10310   need_lib_prefix=no
10311   need_version=no
10312   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10313   soname_spec='${libname}${release}${shared_ext}$major'
10314   shlibpath_var=LD_LIBRARY_PATH
10315   shlibpath_overrides_runpath=yes
10316   hardcode_into_libs=yes
10317   # ldd complains unless libraries are executable
10318   postinstall_cmds='chmod +x $lib'
10319   ;;
10320
10321 sunos4*)
10322   version_type=sunos
10323   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10324   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10325   shlibpath_var=LD_LIBRARY_PATH
10326   shlibpath_overrides_runpath=yes
10327   if test "$with_gnu_ld" = yes; then
10328     need_lib_prefix=no
10329   fi
10330   need_version=yes
10331   ;;
10332
10333 sysv4 | sysv4.3*)
10334   version_type=linux
10335   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10336   soname_spec='${libname}${release}${shared_ext}$major'
10337   shlibpath_var=LD_LIBRARY_PATH
10338   case $host_vendor in
10339     sni)
10340       shlibpath_overrides_runpath=no
10341       need_lib_prefix=no
10342       export_dynamic_flag_spec='${wl}-Blargedynsym'
10343       runpath_var=LD_RUN_PATH
10344       ;;
10345     siemens)
10346       need_lib_prefix=no
10347       ;;
10348     motorola)
10349       need_lib_prefix=no
10350       need_version=no
10351       shlibpath_overrides_runpath=no
10352       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10353       ;;
10354   esac
10355   ;;
10356
10357 sysv4*MP*)
10358   if test -d /usr/nec ;then
10359     version_type=linux
10360     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10361     soname_spec='$libname${shared_ext}.$major'
10362     shlibpath_var=LD_LIBRARY_PATH
10363   fi
10364   ;;
10365
10366 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10367   version_type=freebsd-elf
10368   need_lib_prefix=no
10369   need_version=no
10370   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10371   soname_spec='${libname}${release}${shared_ext}$major'
10372   shlibpath_var=LD_LIBRARY_PATH
10373   hardcode_into_libs=yes
10374   if test "$with_gnu_ld" = yes; then
10375     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10376     shlibpath_overrides_runpath=no
10377   else
10378     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10379     shlibpath_overrides_runpath=yes
10380     case $host_os in
10381       sco3.2v5*)
10382         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10383         ;;
10384     esac
10385   fi
10386   sys_lib_dlsearch_path_spec='/usr/lib'
10387   ;;
10388
10389 uts4*)
10390   version_type=linux
10391   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10392   soname_spec='${libname}${release}${shared_ext}$major'
10393   shlibpath_var=LD_LIBRARY_PATH
10394   ;;
10395
10396 *)
10397   dynamic_linker=no
10398   ;;
10399 esac
10400 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10401 echo "${ECHO_T}$dynamic_linker" >&6; }
10402 test "$dynamic_linker" = no && can_build_shared=no
10403
10404 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10405 if test "$GCC" = yes; then
10406   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10407 fi
10408
10409
10410 { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
10411 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
10412 if test "${libltdl_cv_shlibext+set}" = set; then
10413   echo $ECHO_N "(cached) $ECHO_C" >&6
10414 else
10415
10416 module=yes
10417 eval libltdl_cv_shlibext=$shrext_cmds
10418
10419 fi
10420 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
10421 echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
10422 if test -n "$libltdl_cv_shlibext"; then
10423
10424 cat >>confdefs.h <<_ACEOF
10425 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
10426 _ACEOF
10427
10428 fi
10429
10430
10431 { echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
10432 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
10433 if test "${libltdl_cv_shlibpath_var+set}" = set; then
10434   echo $ECHO_N "(cached) $ECHO_C" >&6
10435 else
10436   libltdl_cv_shlibpath_var="$shlibpath_var"
10437 fi
10438 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
10439 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
10440 if test -n "$libltdl_cv_shlibpath_var"; then
10441
10442 cat >>confdefs.h <<_ACEOF
10443 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
10444 _ACEOF
10445
10446 fi
10447
10448
10449 { echo "$as_me:$LINENO: checking for the default library search path" >&5
10450 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
10451 if test "${libltdl_cv_sys_search_path+set}" = set; then
10452   echo $ECHO_N "(cached) $ECHO_C" >&6
10453 else
10454   libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
10455 fi
10456 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
10457 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
10458 if test -n "$libltdl_cv_sys_search_path"; then
10459   sys_search_path=
10460   for dir in $libltdl_cv_sys_search_path; do
10461     if test -z "$sys_search_path"; then
10462       sys_search_path="$dir"
10463     else
10464       sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
10465     fi
10466   done
10467
10468 cat >>confdefs.h <<_ACEOF
10469 #define LTDL_SYSSEARCHPATH "$sys_search_path"
10470 _ACEOF
10471
10472 fi
10473
10474 { echo "$as_me:$LINENO: checking for objdir" >&5
10475 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
10476 if test "${libltdl_cv_objdir+set}" = set; then
10477   echo $ECHO_N "(cached) $ECHO_C" >&6
10478 else
10479   libltdl_cv_objdir="$objdir"
10480   if test -n "$objdir"; then
10481     :
10482   else
10483     rm -f .libs 2>/dev/null
10484     mkdir .libs 2>/dev/null
10485     if test -d .libs; then
10486       libltdl_cv_objdir=.libs
10487     else
10488       # MS-DOS does not allow filenames that begin with a dot.
10489       libltdl_cv_objdir=_libs
10490     fi
10491   rmdir .libs 2>/dev/null
10492   fi
10493
10494 fi
10495 { echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
10496 echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
10497
10498 cat >>confdefs.h <<_ACEOF
10499 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
10500 _ACEOF
10501
10502
10503
10504
10505
10506
10507 # Check for command to grab the raw symbol name followed by C symbol from nm.
10508 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
10509 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
10510 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
10511   echo $ECHO_N "(cached) $ECHO_C" >&6
10512 else
10513
10514 # These are sane defaults that work on at least a few old systems.
10515 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
10516
10517 # Character class describing NM global symbol codes.
10518 symcode='[BCDEGRST]'
10519
10520 # Regexp to match symbols that can be accessed directly from C.
10521 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
10522
10523 # Transform an extracted symbol line into a proper C declaration
10524 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
10525
10526 # Transform an extracted symbol line into symbol name and symbol address
10527 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'"
10528
10529 # Define system-specific variables.
10530 case $host_os in
10531 aix*)
10532   symcode='[BCDT]'
10533   ;;
10534 cygwin* | mingw* | pw32*)
10535   symcode='[ABCDGISTW]'
10536   ;;
10537 hpux*) # Its linker distinguishes data from code symbols
10538   if test "$host_cpu" = ia64; then
10539     symcode='[ABCDEGRST]'
10540   fi
10541   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10542   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'"
10543   ;;
10544 linux*)
10545   if test "$host_cpu" = ia64; then
10546     symcode='[ABCDGIRSTW]'
10547     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10548     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'"
10549   fi
10550   ;;
10551 irix* | nonstopux*)
10552   symcode='[BCDEGRST]'
10553   ;;
10554 osf*)
10555   symcode='[BCDEGQRST]'
10556   ;;
10557 solaris*)
10558   symcode='[BDRT]'
10559   ;;
10560 sco3.2v5*)
10561   symcode='[DT]'
10562   ;;
10563 sysv4.2uw2*)
10564   symcode='[DT]'
10565   ;;
10566 sysv5* | sco5v6* | unixware* | OpenUNIX*)
10567   symcode='[ABDT]'
10568   ;;
10569 sysv4)
10570   symcode='[DFNSTU]'
10571   ;;
10572 esac
10573
10574 # Handle CRLF in mingw tool chain
10575 opt_cr=
10576 case $build_os in
10577 mingw*)
10578   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
10579   ;;
10580 esac
10581
10582 # If we're using GNU nm, then use its standard symbol codes.
10583 case `$NM -V 2>&1` in
10584 *GNU* | *'with BFD'*)
10585   symcode='[ABCDGIRSTW]' ;;
10586 esac
10587
10588 # Try without a prefix undercore, then with it.
10589 for ac_symprfx in "" "_"; do
10590
10591   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
10592   symxfrm="\\1 $ac_symprfx\\2 \\2"
10593
10594   # Write the raw and C identifiers.
10595   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
10596
10597   # Check to see that the pipe works correctly.
10598   pipe_works=no
10599
10600   rm -f conftest*
10601   cat > conftest.$ac_ext <<EOF
10602 #ifdef __cplusplus
10603 extern "C" {
10604 #endif
10605 char nm_test_var;
10606 void nm_test_func(){}
10607 #ifdef __cplusplus
10608 }
10609 #endif
10610 int main(){nm_test_var='a';nm_test_func();return(0);}
10611 EOF
10612
10613   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10614   (eval $ac_compile) 2>&5
10615   ac_status=$?
10616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10617   (exit $ac_status); }; then
10618     # Now try to grab the symbols.
10619     nlist=conftest.nm
10620     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
10621   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
10622   ac_status=$?
10623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10624   (exit $ac_status); } && test -s "$nlist"; then
10625       # Try sorting and uniquifying the output.
10626       if sort "$nlist" | uniq > "$nlist"T; then
10627         mv -f "$nlist"T "$nlist"
10628       else
10629         rm -f "$nlist"T
10630       fi
10631
10632       # Make sure that we snagged all the symbols we need.
10633       if grep ' nm_test_var$' "$nlist" >/dev/null; then
10634         if grep ' nm_test_func$' "$nlist" >/dev/null; then
10635           cat <<EOF > conftest.$ac_ext
10636 #ifdef __cplusplus
10637 extern "C" {
10638 #endif
10639
10640 EOF
10641           # Now generate the symbol file.
10642           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
10643
10644           cat <<EOF >> conftest.$ac_ext
10645 #if defined (__STDC__) && __STDC__
10646 # define lt_ptr_t void *
10647 #else
10648 # define lt_ptr_t char *
10649 # define const
10650 #endif
10651
10652 /* The mapping between symbol names and symbols. */
10653 const struct {
10654   const char *name;
10655   lt_ptr_t address;
10656 }
10657 lt_preloaded_symbols[] =
10658 {
10659 EOF
10660           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
10661           cat <<\EOF >> conftest.$ac_ext
10662   {0, (lt_ptr_t) 0}
10663 };
10664
10665 #ifdef __cplusplus
10666 }
10667 #endif
10668 EOF
10669           # Now try linking the two files.
10670           mv conftest.$ac_objext conftstm.$ac_objext
10671           lt_save_LIBS="$LIBS"
10672           lt_save_CFLAGS="$CFLAGS"
10673           LIBS="conftstm.$ac_objext"
10674           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
10675           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10676   (eval $ac_link) 2>&5
10677   ac_status=$?
10678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10679   (exit $ac_status); } && test -s conftest${ac_exeext}; then
10680             pipe_works=yes
10681           fi
10682           LIBS="$lt_save_LIBS"
10683           CFLAGS="$lt_save_CFLAGS"
10684         else
10685           echo "cannot find nm_test_func in $nlist" >&5
10686         fi
10687       else
10688         echo "cannot find nm_test_var in $nlist" >&5
10689       fi
10690     else
10691       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
10692     fi
10693   else
10694     echo "$progname: failed program was:" >&5
10695     cat conftest.$ac_ext >&5
10696   fi
10697   rm -f conftest* conftst*
10698
10699   # Do not use the global_symbol_pipe unless it works.
10700   if test "$pipe_works" = yes; then
10701     break
10702   else
10703     lt_cv_sys_global_symbol_pipe=
10704   fi
10705 done
10706
10707 fi
10708
10709 if test -z "$lt_cv_sys_global_symbol_pipe"; then
10710   lt_cv_sys_global_symbol_to_cdecl=
10711 fi
10712 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
10713   { echo "$as_me:$LINENO: result: failed" >&5
10714 echo "${ECHO_T}failed" >&6; }
10715 else
10716   { echo "$as_me:$LINENO: result: ok" >&5
10717 echo "${ECHO_T}ok" >&6; }
10718 fi
10719
10720
10721 { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
10722 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
10723 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
10724   echo $ECHO_N "(cached) $ECHO_C" >&6
10725 else
10726   if test -n "$lt_cv_sys_global_symbol_pipe"; then
10727     libltdl_cv_preloaded_symbols=yes
10728   else
10729     libltdl_cv_preloaded_symbols=no
10730   fi
10731
10732 fi
10733 { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
10734 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
10735 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
10736
10737 cat >>confdefs.h <<\_ACEOF
10738 #define HAVE_PRELOADED_SYMBOLS 1
10739 _ACEOF
10740
10741 fi
10742
10743 LIBADD_DL=
10744
10745 ac_ext=c
10746 ac_cpp='$CPP $CPPFLAGS'
10747 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10748 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10749 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10750
10751
10752 { echo "$as_me:$LINENO: checking for shl_load" >&5
10753 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
10754 if test "${ac_cv_func_shl_load+set}" = set; then
10755   echo $ECHO_N "(cached) $ECHO_C" >&6
10756 else
10757   cat >conftest.$ac_ext <<_ACEOF
10758 /* confdefs.h.  */
10759 _ACEOF
10760 cat confdefs.h >>conftest.$ac_ext
10761 cat >>conftest.$ac_ext <<_ACEOF
10762 /* end confdefs.h.  */
10763 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10764    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10765 #define shl_load innocuous_shl_load
10766
10767 /* System header to define __stub macros and hopefully few prototypes,
10768     which can conflict with char shl_load (); below.
10769     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10770     <limits.h> exists even on freestanding compilers.  */
10771
10772 #ifdef __STDC__
10773 # include <limits.h>
10774 #else
10775 # include <assert.h>
10776 #endif
10777
10778 #undef shl_load
10779
10780 /* Override any GCC internal prototype to avoid an error.
10781    Use char because int might match the return type of a GCC
10782    builtin and then its argument prototype would still apply.  */
10783 #ifdef __cplusplus
10784 extern "C"
10785 #endif
10786 char shl_load ();
10787 /* The GNU C library defines this for functions which it implements
10788     to always fail with ENOSYS.  Some functions are actually named
10789     something starting with __ and the normal name is an alias.  */
10790 #if defined __stub_shl_load || defined __stub___shl_load
10791 choke me
10792 #endif
10793
10794 int
10795 main ()
10796 {
10797 return shl_load ();
10798   ;
10799   return 0;
10800 }
10801 _ACEOF
10802 rm -f conftest.$ac_objext conftest$ac_exeext
10803 if { (ac_try="$ac_link"
10804 case "(($ac_try" in
10805   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10806   *) ac_try_echo=$ac_try;;
10807 esac
10808 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10809   (eval "$ac_link") 2>conftest.er1
10810   ac_status=$?
10811   grep -v '^ *+' conftest.er1 >conftest.err
10812   rm -f conftest.er1
10813   cat conftest.err >&5
10814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10815   (exit $ac_status); } &&
10816          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10817   { (case "(($ac_try" in
10818   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10819   *) ac_try_echo=$ac_try;;
10820 esac
10821 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10822   (eval "$ac_try") 2>&5
10823   ac_status=$?
10824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10825   (exit $ac_status); }; } &&
10826          { ac_try='test -s conftest$ac_exeext'
10827   { (case "(($ac_try" in
10828   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10829   *) ac_try_echo=$ac_try;;
10830 esac
10831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10832   (eval "$ac_try") 2>&5
10833   ac_status=$?
10834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10835   (exit $ac_status); }; }; then
10836   ac_cv_func_shl_load=yes
10837 else
10838   echo "$as_me: failed program was:" >&5
10839 sed 's/^/| /' conftest.$ac_ext >&5
10840
10841         ac_cv_func_shl_load=no
10842 fi
10843
10844 rm -f core conftest.err conftest.$ac_objext \
10845       conftest$ac_exeext conftest.$ac_ext
10846 fi
10847 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10848 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
10849 if test $ac_cv_func_shl_load = yes; then
10850
10851 cat >>confdefs.h <<\_ACEOF
10852 #define HAVE_SHL_LOAD 1
10853 _ACEOF
10854
10855 else
10856   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10857 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
10858 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10859   echo $ECHO_N "(cached) $ECHO_C" >&6
10860 else
10861   ac_check_lib_save_LIBS=$LIBS
10862 LIBS="-ldld  $LIBS"
10863 cat >conftest.$ac_ext <<_ACEOF
10864 /* confdefs.h.  */
10865 _ACEOF
10866 cat confdefs.h >>conftest.$ac_ext
10867 cat >>conftest.$ac_ext <<_ACEOF
10868 /* end confdefs.h.  */
10869
10870 /* Override any GCC internal prototype to avoid an error.
10871    Use char because int might match the return type of a GCC
10872    builtin and then its argument prototype would still apply.  */
10873 #ifdef __cplusplus
10874 extern "C"
10875 #endif
10876 char shl_load ();
10877 int
10878 main ()
10879 {
10880 return shl_load ();
10881   ;
10882   return 0;
10883 }
10884 _ACEOF
10885 rm -f conftest.$ac_objext conftest$ac_exeext
10886 if { (ac_try="$ac_link"
10887 case "(($ac_try" in
10888   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10889   *) ac_try_echo=$ac_try;;
10890 esac
10891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10892   (eval "$ac_link") 2>conftest.er1
10893   ac_status=$?
10894   grep -v '^ *+' conftest.er1 >conftest.err
10895   rm -f conftest.er1
10896   cat conftest.err >&5
10897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10898   (exit $ac_status); } &&
10899          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10900   { (case "(($ac_try" in
10901   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10902   *) ac_try_echo=$ac_try;;
10903 esac
10904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10905   (eval "$ac_try") 2>&5
10906   ac_status=$?
10907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10908   (exit $ac_status); }; } &&
10909          { ac_try='test -s conftest$ac_exeext'
10910   { (case "(($ac_try" in
10911   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10912   *) ac_try_echo=$ac_try;;
10913 esac
10914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10915   (eval "$ac_try") 2>&5
10916   ac_status=$?
10917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10918   (exit $ac_status); }; }; then
10919   ac_cv_lib_dld_shl_load=yes
10920 else
10921   echo "$as_me: failed program was:" >&5
10922 sed 's/^/| /' conftest.$ac_ext >&5
10923
10924         ac_cv_lib_dld_shl_load=no
10925 fi
10926
10927 rm -f core conftest.err conftest.$ac_objext \
10928       conftest$ac_exeext conftest.$ac_ext
10929 LIBS=$ac_check_lib_save_LIBS
10930 fi
10931 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10932 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
10933 if test $ac_cv_lib_dld_shl_load = yes; then
10934
10935 cat >>confdefs.h <<\_ACEOF
10936 #define HAVE_SHL_LOAD 1
10937 _ACEOF
10938
10939         LIBADD_DL="$LIBADD_DL -ldld"
10940 else
10941   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10942 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10943 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10944   echo $ECHO_N "(cached) $ECHO_C" >&6
10945 else
10946   ac_check_lib_save_LIBS=$LIBS
10947 LIBS="-ldl  $LIBS"
10948 cat >conftest.$ac_ext <<_ACEOF
10949 /* confdefs.h.  */
10950 _ACEOF
10951 cat confdefs.h >>conftest.$ac_ext
10952 cat >>conftest.$ac_ext <<_ACEOF
10953 /* end confdefs.h.  */
10954
10955 /* Override any GCC internal prototype to avoid an error.
10956    Use char because int might match the return type of a GCC
10957    builtin and then its argument prototype would still apply.  */
10958 #ifdef __cplusplus
10959 extern "C"
10960 #endif
10961 char dlopen ();
10962 int
10963 main ()
10964 {
10965 return dlopen ();
10966   ;
10967   return 0;
10968 }
10969 _ACEOF
10970 rm -f conftest.$ac_objext conftest$ac_exeext
10971 if { (ac_try="$ac_link"
10972 case "(($ac_try" in
10973   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10974   *) ac_try_echo=$ac_try;;
10975 esac
10976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10977   (eval "$ac_link") 2>conftest.er1
10978   ac_status=$?
10979   grep -v '^ *+' conftest.er1 >conftest.err
10980   rm -f conftest.er1
10981   cat conftest.err >&5
10982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10983   (exit $ac_status); } &&
10984          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10985   { (case "(($ac_try" in
10986   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10987   *) ac_try_echo=$ac_try;;
10988 esac
10989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10990   (eval "$ac_try") 2>&5
10991   ac_status=$?
10992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10993   (exit $ac_status); }; } &&
10994          { ac_try='test -s conftest$ac_exeext'
10995   { (case "(($ac_try" in
10996   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10997   *) ac_try_echo=$ac_try;;
10998 esac
10999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11000   (eval "$ac_try") 2>&5
11001   ac_status=$?
11002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11003   (exit $ac_status); }; }; then
11004   ac_cv_lib_dl_dlopen=yes
11005 else
11006   echo "$as_me: failed program was:" >&5
11007 sed 's/^/| /' conftest.$ac_ext >&5
11008
11009         ac_cv_lib_dl_dlopen=no
11010 fi
11011
11012 rm -f core conftest.err conftest.$ac_objext \
11013       conftest$ac_exeext conftest.$ac_ext
11014 LIBS=$ac_check_lib_save_LIBS
11015 fi
11016 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11017 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
11018 if test $ac_cv_lib_dl_dlopen = yes; then
11019
11020 cat >>confdefs.h <<\_ACEOF
11021 #define HAVE_LIBDL 1
11022 _ACEOF
11023
11024                 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
11025 else
11026   cat >conftest.$ac_ext <<_ACEOF
11027 /* confdefs.h.  */
11028 _ACEOF
11029 cat confdefs.h >>conftest.$ac_ext
11030 cat >>conftest.$ac_ext <<_ACEOF
11031 /* end confdefs.h.  */
11032 #if HAVE_DLFCN_H
11033 #  include <dlfcn.h>
11034 #endif
11035
11036 int
11037 main ()
11038 {
11039 dlopen(0, 0);
11040   ;
11041   return 0;
11042 }
11043 _ACEOF
11044 rm -f conftest.$ac_objext conftest$ac_exeext
11045 if { (ac_try="$ac_link"
11046 case "(($ac_try" in
11047   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11048   *) ac_try_echo=$ac_try;;
11049 esac
11050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11051   (eval "$ac_link") 2>conftest.er1
11052   ac_status=$?
11053   grep -v '^ *+' conftest.er1 >conftest.err
11054   rm -f conftest.er1
11055   cat conftest.err >&5
11056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11057   (exit $ac_status); } &&
11058          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11059   { (case "(($ac_try" in
11060   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11061   *) ac_try_echo=$ac_try;;
11062 esac
11063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11064   (eval "$ac_try") 2>&5
11065   ac_status=$?
11066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11067   (exit $ac_status); }; } &&
11068          { ac_try='test -s conftest$ac_exeext'
11069   { (case "(($ac_try" in
11070   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11071   *) ac_try_echo=$ac_try;;
11072 esac
11073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11074   (eval "$ac_try") 2>&5
11075   ac_status=$?
11076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11077   (exit $ac_status); }; }; then
11078
11079 cat >>confdefs.h <<\_ACEOF
11080 #define HAVE_LIBDL 1
11081 _ACEOF
11082  libltdl_cv_func_dlopen="yes"
11083 else
11084   echo "$as_me: failed program was:" >&5
11085 sed 's/^/| /' conftest.$ac_ext >&5
11086
11087         { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
11088 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
11089 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
11090   echo $ECHO_N "(cached) $ECHO_C" >&6
11091 else
11092   ac_check_lib_save_LIBS=$LIBS
11093 LIBS="-lsvld  $LIBS"
11094 cat >conftest.$ac_ext <<_ACEOF
11095 /* confdefs.h.  */
11096 _ACEOF
11097 cat confdefs.h >>conftest.$ac_ext
11098 cat >>conftest.$ac_ext <<_ACEOF
11099 /* end confdefs.h.  */
11100
11101 /* Override any GCC internal prototype to avoid an error.
11102    Use char because int might match the return type of a GCC
11103    builtin and then its argument prototype would still apply.  */
11104 #ifdef __cplusplus
11105 extern "C"
11106 #endif
11107 char dlopen ();
11108 int
11109 main ()
11110 {
11111 return dlopen ();
11112   ;
11113   return 0;
11114 }
11115 _ACEOF
11116 rm -f conftest.$ac_objext conftest$ac_exeext
11117 if { (ac_try="$ac_link"
11118 case "(($ac_try" in
11119   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11120   *) ac_try_echo=$ac_try;;
11121 esac
11122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11123   (eval "$ac_link") 2>conftest.er1
11124   ac_status=$?
11125   grep -v '^ *+' conftest.er1 >conftest.err
11126   rm -f conftest.er1
11127   cat conftest.err >&5
11128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11129   (exit $ac_status); } &&
11130          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11131   { (case "(($ac_try" in
11132   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11133   *) ac_try_echo=$ac_try;;
11134 esac
11135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11136   (eval "$ac_try") 2>&5
11137   ac_status=$?
11138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11139   (exit $ac_status); }; } &&
11140          { ac_try='test -s conftest$ac_exeext'
11141   { (case "(($ac_try" in
11142   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11143   *) ac_try_echo=$ac_try;;
11144 esac
11145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11146   (eval "$ac_try") 2>&5
11147   ac_status=$?
11148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11149   (exit $ac_status); }; }; then
11150   ac_cv_lib_svld_dlopen=yes
11151 else
11152   echo "$as_me: failed program was:" >&5
11153 sed 's/^/| /' conftest.$ac_ext >&5
11154
11155         ac_cv_lib_svld_dlopen=no
11156 fi
11157
11158 rm -f core conftest.err conftest.$ac_objext \
11159       conftest$ac_exeext conftest.$ac_ext
11160 LIBS=$ac_check_lib_save_LIBS
11161 fi
11162 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
11163 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
11164 if test $ac_cv_lib_svld_dlopen = yes; then
11165
11166 cat >>confdefs.h <<\_ACEOF
11167 #define HAVE_LIBDL 1
11168 _ACEOF
11169
11170                     LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
11171 else
11172   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
11173 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
11174 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
11175   echo $ECHO_N "(cached) $ECHO_C" >&6
11176 else
11177   ac_check_lib_save_LIBS=$LIBS
11178 LIBS="-ldld  $LIBS"
11179 cat >conftest.$ac_ext <<_ACEOF
11180 /* confdefs.h.  */
11181 _ACEOF
11182 cat confdefs.h >>conftest.$ac_ext
11183 cat >>conftest.$ac_ext <<_ACEOF
11184 /* end confdefs.h.  */
11185
11186 /* Override any GCC internal prototype to avoid an error.
11187    Use char because int might match the return type of a GCC
11188    builtin and then its argument prototype would still apply.  */
11189 #ifdef __cplusplus
11190 extern "C"
11191 #endif
11192 char dld_link ();
11193 int
11194 main ()
11195 {
11196 return dld_link ();
11197   ;
11198   return 0;
11199 }
11200 _ACEOF
11201 rm -f conftest.$ac_objext conftest$ac_exeext
11202 if { (ac_try="$ac_link"
11203 case "(($ac_try" in
11204   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11205   *) ac_try_echo=$ac_try;;
11206 esac
11207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11208   (eval "$ac_link") 2>conftest.er1
11209   ac_status=$?
11210   grep -v '^ *+' conftest.er1 >conftest.err
11211   rm -f conftest.er1
11212   cat conftest.err >&5
11213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11214   (exit $ac_status); } &&
11215          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11216   { (case "(($ac_try" in
11217   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11218   *) ac_try_echo=$ac_try;;
11219 esac
11220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11221   (eval "$ac_try") 2>&5
11222   ac_status=$?
11223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11224   (exit $ac_status); }; } &&
11225          { ac_try='test -s conftest$ac_exeext'
11226   { (case "(($ac_try" in
11227   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11228   *) ac_try_echo=$ac_try;;
11229 esac
11230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11231   (eval "$ac_try") 2>&5
11232   ac_status=$?
11233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11234   (exit $ac_status); }; }; then
11235   ac_cv_lib_dld_dld_link=yes
11236 else
11237   echo "$as_me: failed program was:" >&5
11238 sed 's/^/| /' conftest.$ac_ext >&5
11239
11240         ac_cv_lib_dld_dld_link=no
11241 fi
11242
11243 rm -f core conftest.err conftest.$ac_objext \
11244       conftest$ac_exeext conftest.$ac_ext
11245 LIBS=$ac_check_lib_save_LIBS
11246 fi
11247 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11248 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
11249 if test $ac_cv_lib_dld_dld_link = yes; then
11250
11251 cat >>confdefs.h <<\_ACEOF
11252 #define HAVE_DLD 1
11253 _ACEOF
11254
11255                 LIBADD_DL="$LIBADD_DL -ldld"
11256 else
11257   { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
11258 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
11259 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
11260   echo $ECHO_N "(cached) $ECHO_C" >&6
11261 else
11262   cat >conftest.$ac_ext <<_ACEOF
11263 /* confdefs.h.  */
11264 _ACEOF
11265 cat confdefs.h >>conftest.$ac_ext
11266 cat >>conftest.$ac_ext <<_ACEOF
11267 /* end confdefs.h.  */
11268 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
11269    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11270 #define _dyld_func_lookup innocuous__dyld_func_lookup
11271
11272 /* System header to define __stub macros and hopefully few prototypes,
11273     which can conflict with char _dyld_func_lookup (); below.
11274     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11275     <limits.h> exists even on freestanding compilers.  */
11276
11277 #ifdef __STDC__
11278 # include <limits.h>
11279 #else
11280 # include <assert.h>
11281 #endif
11282
11283 #undef _dyld_func_lookup
11284
11285 /* Override any GCC internal prototype to avoid an error.
11286    Use char because int might match the return type of a GCC
11287    builtin and then its argument prototype would still apply.  */
11288 #ifdef __cplusplus
11289 extern "C"
11290 #endif
11291 char _dyld_func_lookup ();
11292 /* The GNU C library defines this for functions which it implements
11293     to always fail with ENOSYS.  Some functions are actually named
11294     something starting with __ and the normal name is an alias.  */
11295 #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
11296 choke me
11297 #endif
11298
11299 int
11300 main ()
11301 {
11302 return _dyld_func_lookup ();
11303   ;
11304   return 0;
11305 }
11306 _ACEOF
11307 rm -f conftest.$ac_objext conftest$ac_exeext
11308 if { (ac_try="$ac_link"
11309 case "(($ac_try" in
11310   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11311   *) ac_try_echo=$ac_try;;
11312 esac
11313 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11314   (eval "$ac_link") 2>conftest.er1
11315   ac_status=$?
11316   grep -v '^ *+' conftest.er1 >conftest.err
11317   rm -f conftest.er1
11318   cat conftest.err >&5
11319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11320   (exit $ac_status); } &&
11321          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11322   { (case "(($ac_try" in
11323   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11324   *) ac_try_echo=$ac_try;;
11325 esac
11326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11327   (eval "$ac_try") 2>&5
11328   ac_status=$?
11329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11330   (exit $ac_status); }; } &&
11331          { ac_try='test -s conftest$ac_exeext'
11332   { (case "(($ac_try" in
11333   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11334   *) ac_try_echo=$ac_try;;
11335 esac
11336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11337   (eval "$ac_try") 2>&5
11338   ac_status=$?
11339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11340   (exit $ac_status); }; }; then
11341   ac_cv_func__dyld_func_lookup=yes
11342 else
11343   echo "$as_me: failed program was:" >&5
11344 sed 's/^/| /' conftest.$ac_ext >&5
11345
11346         ac_cv_func__dyld_func_lookup=no
11347 fi
11348
11349 rm -f core conftest.err conftest.$ac_objext \
11350       conftest$ac_exeext conftest.$ac_ext
11351 fi
11352 { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
11353 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
11354 if test $ac_cv_func__dyld_func_lookup = yes; then
11355
11356 cat >>confdefs.h <<\_ACEOF
11357 #define HAVE_DYLD 1
11358 _ACEOF
11359
11360 fi
11361
11362
11363 fi
11364
11365
11366 fi
11367
11368
11369 fi
11370
11371 rm -f core conftest.err conftest.$ac_objext \
11372       conftest$ac_exeext conftest.$ac_ext
11373
11374 fi
11375
11376
11377 fi
11378
11379
11380 fi
11381
11382
11383 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
11384 then
11385   lt_save_LIBS="$LIBS"
11386   LIBS="$LIBS $LIBADD_DL"
11387
11388 for ac_func in dlerror
11389 do
11390 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11391 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11392 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11393 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11394   echo $ECHO_N "(cached) $ECHO_C" >&6
11395 else
11396   cat >conftest.$ac_ext <<_ACEOF
11397 /* confdefs.h.  */
11398 _ACEOF
11399 cat confdefs.h >>conftest.$ac_ext
11400 cat >>conftest.$ac_ext <<_ACEOF
11401 /* end confdefs.h.  */
11402 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11403    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11404 #define $ac_func innocuous_$ac_func
11405
11406 /* System header to define __stub macros and hopefully few prototypes,
11407     which can conflict with char $ac_func (); below.
11408     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11409     <limits.h> exists even on freestanding compilers.  */
11410
11411 #ifdef __STDC__
11412 # include <limits.h>
11413 #else
11414 # include <assert.h>
11415 #endif
11416
11417 #undef $ac_func
11418
11419 /* Override any GCC internal prototype to avoid an error.
11420    Use char because int might match the return type of a GCC
11421    builtin and then its argument prototype would still apply.  */
11422 #ifdef __cplusplus
11423 extern "C"
11424 #endif
11425 char $ac_func ();
11426 /* The GNU C library defines this for functions which it implements
11427     to always fail with ENOSYS.  Some functions are actually named
11428     something starting with __ and the normal name is an alias.  */
11429 #if defined __stub_$ac_func || defined __stub___$ac_func
11430 choke me
11431 #endif
11432
11433 int
11434 main ()
11435 {
11436 return $ac_func ();
11437   ;
11438   return 0;
11439 }
11440 _ACEOF
11441 rm -f conftest.$ac_objext conftest$ac_exeext
11442 if { (ac_try="$ac_link"
11443 case "(($ac_try" in
11444   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11445   *) ac_try_echo=$ac_try;;
11446 esac
11447 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11448   (eval "$ac_link") 2>conftest.er1
11449   ac_status=$?
11450   grep -v '^ *+' conftest.er1 >conftest.err
11451   rm -f conftest.er1
11452   cat conftest.err >&5
11453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11454   (exit $ac_status); } &&
11455          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11456   { (case "(($ac_try" in
11457   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11458   *) ac_try_echo=$ac_try;;
11459 esac
11460 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11461   (eval "$ac_try") 2>&5
11462   ac_status=$?
11463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11464   (exit $ac_status); }; } &&
11465          { ac_try='test -s conftest$ac_exeext'
11466   { (case "(($ac_try" in
11467   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11468   *) ac_try_echo=$ac_try;;
11469 esac
11470 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11471   (eval "$ac_try") 2>&5
11472   ac_status=$?
11473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11474   (exit $ac_status); }; }; then
11475   eval "$as_ac_var=yes"
11476 else
11477   echo "$as_me: failed program was:" >&5
11478 sed 's/^/| /' conftest.$ac_ext >&5
11479
11480         eval "$as_ac_var=no"
11481 fi
11482
11483 rm -f core conftest.err conftest.$ac_objext \
11484       conftest$ac_exeext conftest.$ac_ext
11485 fi
11486 ac_res=`eval echo '${'$as_ac_var'}'`
11487                { echo "$as_me:$LINENO: result: $ac_res" >&5
11488 echo "${ECHO_T}$ac_res" >&6; }
11489 if test `eval echo '${'$as_ac_var'}'` = yes; then
11490   cat >>confdefs.h <<_ACEOF
11491 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11492 _ACEOF
11493
11494 fi
11495 done
11496
11497   LIBS="$lt_save_LIBS"
11498 fi
11499 ac_ext=c
11500 ac_cpp='$CPP $CPPFLAGS'
11501 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11502 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11503 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11504
11505
11506
11507 { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
11508 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
11509 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
11510   echo $ECHO_N "(cached) $ECHO_C" >&6
11511 else
11512   ac_cv_sys_symbol_underscore=no
11513   cat > conftest.$ac_ext <<EOF
11514 void nm_test_func(){}
11515 int main(){nm_test_func;return 0;}
11516 EOF
11517   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11518   (eval $ac_compile) 2>&5
11519   ac_status=$?
11520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11521   (exit $ac_status); }; then
11522     # Now try to grab the symbols.
11523     ac_nlist=conftest.nm
11524     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
11525   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
11526   ac_status=$?
11527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11528   (exit $ac_status); } && test -s "$ac_nlist"; then
11529       # See whether the symbols have a leading underscore.
11530       if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
11531         ac_cv_sys_symbol_underscore=yes
11532       else
11533         if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
11534           :
11535         else
11536           echo "configure: cannot find nm_test_func in $ac_nlist" >&5
11537         fi
11538       fi
11539     else
11540       echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
11541     fi
11542   else
11543     echo "configure: failed program was:" >&5
11544     cat conftest.c >&5
11545   fi
11546   rm -rf conftest*
11547
11548 fi
11549 { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
11550 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
11551
11552
11553 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
11554   if test x"$libltdl_cv_func_dlopen" = xyes ||
11555      test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
11556         { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
11557 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
11558 if test "${libltdl_cv_need_uscore+set}" = set; then
11559   echo $ECHO_N "(cached) $ECHO_C" >&6
11560 else
11561   libltdl_cv_need_uscore=unknown
11562           save_LIBS="$LIBS"
11563           LIBS="$LIBS $LIBADD_DL"
11564           if test "$cross_compiling" = yes; then :
11565   libltdl_cv_need_uscore=cross
11566 else
11567   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11568   lt_status=$lt_dlunknown
11569   cat > conftest.$ac_ext <<EOF
11570 #line 11570 "configure"
11571 #include "confdefs.h"
11572
11573 #if HAVE_DLFCN_H
11574 #include <dlfcn.h>
11575 #endif
11576
11577 #include <stdio.h>
11578
11579 #ifdef RTLD_GLOBAL
11580 #  define LT_DLGLOBAL           RTLD_GLOBAL
11581 #else
11582 #  ifdef DL_GLOBAL
11583 #    define LT_DLGLOBAL         DL_GLOBAL
11584 #  else
11585 #    define LT_DLGLOBAL         0
11586 #  endif
11587 #endif
11588
11589 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11590    find out it does not work in some platform. */
11591 #ifndef LT_DLLAZY_OR_NOW
11592 #  ifdef RTLD_LAZY
11593 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11594 #  else
11595 #    ifdef DL_LAZY
11596 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11597 #    else
11598 #      ifdef RTLD_NOW
11599 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11600 #      else
11601 #        ifdef DL_NOW
11602 #          define LT_DLLAZY_OR_NOW      DL_NOW
11603 #        else
11604 #          define LT_DLLAZY_OR_NOW      0
11605 #        endif
11606 #      endif
11607 #    endif
11608 #  endif
11609 #endif
11610
11611 #ifdef __cplusplus
11612 extern "C" void exit (int);
11613 #endif
11614
11615 void fnord() { int i=42;}
11616 int main ()
11617 {
11618   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11619   int status = $lt_dlunknown;
11620
11621   if (self)
11622     {
11623       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11624       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11625       /* dlclose (self); */
11626     }
11627   else
11628     puts (dlerror ());
11629
11630     exit (status);
11631 }
11632 EOF
11633   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11634   (eval $ac_link) 2>&5
11635   ac_status=$?
11636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11637   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11638     (./conftest; exit; ) >&5 2>/dev/null
11639     lt_status=$?
11640     case x$lt_status in
11641       x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
11642       x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
11643       x$lt_dlunknown|x*)  ;;
11644     esac
11645   else :
11646     # compilation failed
11647
11648   fi
11649 fi
11650 rm -fr conftest*
11651
11652           LIBS="$save_LIBS"
11653
11654 fi
11655 { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
11656 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
11657   fi
11658 fi
11659
11660 if test x"$libltdl_cv_need_uscore" = xyes; then
11661
11662 cat >>confdefs.h <<\_ACEOF
11663 #define NEED_USCORE 1
11664 _ACEOF
11665
11666 fi
11667
11668
11669 { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
11670 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
11671 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
11672   echo $ECHO_N "(cached) $ECHO_C" >&6
11673 else
11674   # PORTME does your system automatically load deplibs for dlopen?
11675   # or its logical equivalent (e.g. shl_load for HP-UX < 11)
11676   # For now, we just catch OSes we know something about -- in the
11677   # future, we'll try test this programmatically.
11678   libltdl_cv_sys_dlopen_deplibs=unknown
11679   case "$host_os" in
11680   aix3*|aix4.1.*|aix4.2.*)
11681     # Unknown whether this is true for these versions of AIX, but
11682     # we want this `case' here to explicitly catch those versions.
11683     libltdl_cv_sys_dlopen_deplibs=unknown
11684     ;;
11685   aix[45]*)
11686     libltdl_cv_sys_dlopen_deplibs=yes
11687     ;;
11688   darwin*)
11689     # Assuming the user has installed a libdl from somewhere, this is true
11690     # If you are looking for one http://www.opendarwin.org/projects/dlcompat
11691     libltdl_cv_sys_dlopen_deplibs=yes
11692     ;;
11693   gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
11694     # GNU and its variants, using gnu ld.so (Glibc)
11695     libltdl_cv_sys_dlopen_deplibs=yes
11696     ;;
11697   hpux10*|hpux11*)
11698     libltdl_cv_sys_dlopen_deplibs=yes
11699     ;;
11700   interix*)
11701     libltdl_cv_sys_dlopen_deplibs=yes
11702     ;;
11703   irix[12345]*|irix6.[01]*)
11704     # Catch all versions of IRIX before 6.2, and indicate that we don't
11705     # know how it worked for any of those versions.
11706     libltdl_cv_sys_dlopen_deplibs=unknown
11707     ;;
11708   irix*)
11709     # The case above catches anything before 6.2, and it's known that
11710     # at 6.2 and later dlopen does load deplibs.
11711     libltdl_cv_sys_dlopen_deplibs=yes
11712     ;;
11713   netbsd*)
11714     libltdl_cv_sys_dlopen_deplibs=yes
11715     ;;
11716   openbsd*)
11717     libltdl_cv_sys_dlopen_deplibs=yes
11718     ;;
11719   osf[1234]*)
11720     # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
11721     # it did *not* use an RPATH in a shared library to find objects the
11722     # library depends on, so we explictly say `no'.
11723     libltdl_cv_sys_dlopen_deplibs=no
11724     ;;
11725   osf5.0|osf5.0a|osf5.1)
11726     # dlopen *does* load deplibs and with the right loader patch applied
11727     # it even uses RPATH in a shared library to search for shared objects
11728     # that the library depends on, but there's no easy way to know if that
11729     # patch is installed.  Since this is the case, all we can really
11730     # say is unknown -- it depends on the patch being installed.  If
11731     # it is, this changes to `yes'.  Without it, it would be `no'.
11732     libltdl_cv_sys_dlopen_deplibs=unknown
11733     ;;
11734   osf*)
11735     # the two cases above should catch all versions of osf <= 5.1.  Read
11736     # the comments above for what we know about them.
11737     # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
11738     # is used to find them so we can finally say `yes'.
11739     libltdl_cv_sys_dlopen_deplibs=yes
11740     ;;
11741   solaris*)
11742     libltdl_cv_sys_dlopen_deplibs=yes
11743     ;;
11744   sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11745     libltdl_cv_sys_dlopen_deplibs=yes
11746     ;;
11747   esac
11748
11749 fi
11750 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
11751 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
11752 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
11753
11754 cat >>confdefs.h <<\_ACEOF
11755 #define LTDL_DLOPEN_DEPLIBS 1
11756 _ACEOF
11757
11758 fi
11759
11760
11761 for ac_header in argz.h
11762 do
11763 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11764 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11765   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11766 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11767 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11768   echo $ECHO_N "(cached) $ECHO_C" >&6
11769 fi
11770 ac_res=`eval echo '${'$as_ac_Header'}'`
11771                { echo "$as_me:$LINENO: result: $ac_res" >&5
11772 echo "${ECHO_T}$ac_res" >&6; }
11773 else
11774   # Is the header compilable?
11775 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11776 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11777 cat >conftest.$ac_ext <<_ACEOF
11778 /* confdefs.h.  */
11779 _ACEOF
11780 cat confdefs.h >>conftest.$ac_ext
11781 cat >>conftest.$ac_ext <<_ACEOF
11782 /* end confdefs.h.  */
11783 $ac_includes_default
11784 #include <$ac_header>
11785 _ACEOF
11786 rm -f conftest.$ac_objext
11787 if { (ac_try="$ac_compile"
11788 case "(($ac_try" in
11789   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11790   *) ac_try_echo=$ac_try;;
11791 esac
11792 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11793   (eval "$ac_compile") 2>conftest.er1
11794   ac_status=$?
11795   grep -v '^ *+' conftest.er1 >conftest.err
11796   rm -f conftest.er1
11797   cat conftest.err >&5
11798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11799   (exit $ac_status); } &&
11800          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11801   { (case "(($ac_try" in
11802   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11803   *) ac_try_echo=$ac_try;;
11804 esac
11805 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11806   (eval "$ac_try") 2>&5
11807   ac_status=$?
11808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11809   (exit $ac_status); }; } &&
11810          { ac_try='test -s conftest.$ac_objext'
11811   { (case "(($ac_try" in
11812   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11813   *) ac_try_echo=$ac_try;;
11814 esac
11815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11816   (eval "$ac_try") 2>&5
11817   ac_status=$?
11818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11819   (exit $ac_status); }; }; then
11820   ac_header_compiler=yes
11821 else
11822   echo "$as_me: failed program was:" >&5
11823 sed 's/^/| /' conftest.$ac_ext >&5
11824
11825         ac_header_compiler=no
11826 fi
11827
11828 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11829 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11830 echo "${ECHO_T}$ac_header_compiler" >&6; }
11831
11832 # Is the header present?
11833 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11834 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11835 cat >conftest.$ac_ext <<_ACEOF
11836 /* confdefs.h.  */
11837 _ACEOF
11838 cat confdefs.h >>conftest.$ac_ext
11839 cat >>conftest.$ac_ext <<_ACEOF
11840 /* end confdefs.h.  */
11841 #include <$ac_header>
11842 _ACEOF
11843 if { (ac_try="$ac_cpp conftest.$ac_ext"
11844 case "(($ac_try" in
11845   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11846   *) ac_try_echo=$ac_try;;
11847 esac
11848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11849   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11850   ac_status=$?
11851   grep -v '^ *+' conftest.er1 >conftest.err
11852   rm -f conftest.er1
11853   cat conftest.err >&5
11854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11855   (exit $ac_status); } >/dev/null; then
11856   if test -s conftest.err; then
11857     ac_cpp_err=$ac_c_preproc_warn_flag
11858     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11859   else
11860     ac_cpp_err=
11861   fi
11862 else
11863   ac_cpp_err=yes
11864 fi
11865 if test -z "$ac_cpp_err"; then
11866   ac_header_preproc=yes
11867 else
11868   echo "$as_me: failed program was:" >&5
11869 sed 's/^/| /' conftest.$ac_ext >&5
11870
11871   ac_header_preproc=no
11872 fi
11873
11874 rm -f conftest.err conftest.$ac_ext
11875 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11876 echo "${ECHO_T}$ac_header_preproc" >&6; }
11877
11878 # So?  What about this header?
11879 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11880   yes:no: )
11881     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11882 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11883     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11884 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11885     ac_header_preproc=yes
11886     ;;
11887   no:yes:* )
11888     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11889 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11890     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11891 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11892     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11893 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11894     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11895 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11896     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11897 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11898     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11899 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11900     ( cat <<\_ASBOX
11901 ## ----------------------------------- ##
11902 ## Report this to llvmbugs@cs.uiuc.edu ##
11903 ## ----------------------------------- ##
11904 _ASBOX
11905      ) | sed "s/^/$as_me: WARNING:     /" >&2
11906     ;;
11907 esac
11908 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11909 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11910 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11911   echo $ECHO_N "(cached) $ECHO_C" >&6
11912 else
11913   eval "$as_ac_Header=\$ac_header_preproc"
11914 fi
11915 ac_res=`eval echo '${'$as_ac_Header'}'`
11916                { echo "$as_me:$LINENO: result: $ac_res" >&5
11917 echo "${ECHO_T}$ac_res" >&6; }
11918
11919 fi
11920 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11921   cat >>confdefs.h <<_ACEOF
11922 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11923 _ACEOF
11924
11925 fi
11926
11927 done
11928
11929
11930 { echo "$as_me:$LINENO: checking for error_t" >&5
11931 echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
11932 if test "${ac_cv_type_error_t+set}" = set; then
11933   echo $ECHO_N "(cached) $ECHO_C" >&6
11934 else
11935   cat >conftest.$ac_ext <<_ACEOF
11936 /* confdefs.h.  */
11937 _ACEOF
11938 cat confdefs.h >>conftest.$ac_ext
11939 cat >>conftest.$ac_ext <<_ACEOF
11940 /* end confdefs.h.  */
11941 #if HAVE_ARGZ_H
11942 #  include <argz.h>
11943 #endif
11944
11945 typedef error_t ac__type_new_;
11946 int
11947 main ()
11948 {
11949 if ((ac__type_new_ *) 0)
11950   return 0;
11951 if (sizeof (ac__type_new_))
11952   return 0;
11953   ;
11954   return 0;
11955 }
11956 _ACEOF
11957 rm -f conftest.$ac_objext
11958 if { (ac_try="$ac_compile"
11959 case "(($ac_try" in
11960   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11961   *) ac_try_echo=$ac_try;;
11962 esac
11963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11964   (eval "$ac_compile") 2>conftest.er1
11965   ac_status=$?
11966   grep -v '^ *+' conftest.er1 >conftest.err
11967   rm -f conftest.er1
11968   cat conftest.err >&5
11969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11970   (exit $ac_status); } &&
11971          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11972   { (case "(($ac_try" in
11973   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11974   *) ac_try_echo=$ac_try;;
11975 esac
11976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11977   (eval "$ac_try") 2>&5
11978   ac_status=$?
11979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11980   (exit $ac_status); }; } &&
11981          { ac_try='test -s conftest.$ac_objext'
11982   { (case "(($ac_try" in
11983   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11984   *) ac_try_echo=$ac_try;;
11985 esac
11986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11987   (eval "$ac_try") 2>&5
11988   ac_status=$?
11989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11990   (exit $ac_status); }; }; then
11991   ac_cv_type_error_t=yes
11992 else
11993   echo "$as_me: failed program was:" >&5
11994 sed 's/^/| /' conftest.$ac_ext >&5
11995
11996         ac_cv_type_error_t=no
11997 fi
11998
11999 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12000 fi
12001 { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
12002 echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
12003 if test $ac_cv_type_error_t = yes; then
12004
12005 cat >>confdefs.h <<_ACEOF
12006 #define HAVE_ERROR_T 1
12007 _ACEOF
12008
12009
12010 else
12011
12012 cat >>confdefs.h <<\_ACEOF
12013 #define error_t int
12014 _ACEOF
12015
12016 fi
12017
12018
12019
12020
12021
12022
12023
12024 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
12025 do
12026 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12027 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12028 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12029 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12030   echo $ECHO_N "(cached) $ECHO_C" >&6
12031 else
12032   cat >conftest.$ac_ext <<_ACEOF
12033 /* confdefs.h.  */
12034 _ACEOF
12035 cat confdefs.h >>conftest.$ac_ext
12036 cat >>conftest.$ac_ext <<_ACEOF
12037 /* end confdefs.h.  */
12038 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12039    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12040 #define $ac_func innocuous_$ac_func
12041
12042 /* System header to define __stub macros and hopefully few prototypes,
12043     which can conflict with char $ac_func (); below.
12044     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12045     <limits.h> exists even on freestanding compilers.  */
12046
12047 #ifdef __STDC__
12048 # include <limits.h>
12049 #else
12050 # include <assert.h>
12051 #endif
12052
12053 #undef $ac_func
12054
12055 /* Override any GCC internal prototype to avoid an error.
12056    Use char because int might match the return type of a GCC
12057    builtin and then its argument prototype would still apply.  */
12058 #ifdef __cplusplus
12059 extern "C"
12060 #endif
12061 char $ac_func ();
12062 /* The GNU C library defines this for functions which it implements
12063     to always fail with ENOSYS.  Some functions are actually named
12064     something starting with __ and the normal name is an alias.  */
12065 #if defined __stub_$ac_func || defined __stub___$ac_func
12066 choke me
12067 #endif
12068
12069 int
12070 main ()
12071 {
12072 return $ac_func ();
12073   ;
12074   return 0;
12075 }
12076 _ACEOF
12077 rm -f conftest.$ac_objext conftest$ac_exeext
12078 if { (ac_try="$ac_link"
12079 case "(($ac_try" in
12080   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12081   *) ac_try_echo=$ac_try;;
12082 esac
12083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12084   (eval "$ac_link") 2>conftest.er1
12085   ac_status=$?
12086   grep -v '^ *+' conftest.er1 >conftest.err
12087   rm -f conftest.er1
12088   cat conftest.err >&5
12089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12090   (exit $ac_status); } &&
12091          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12092   { (case "(($ac_try" in
12093   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12094   *) ac_try_echo=$ac_try;;
12095 esac
12096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12097   (eval "$ac_try") 2>&5
12098   ac_status=$?
12099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12100   (exit $ac_status); }; } &&
12101          { ac_try='test -s conftest$ac_exeext'
12102   { (case "(($ac_try" in
12103   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12104   *) ac_try_echo=$ac_try;;
12105 esac
12106 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12107   (eval "$ac_try") 2>&5
12108   ac_status=$?
12109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12110   (exit $ac_status); }; }; then
12111   eval "$as_ac_var=yes"
12112 else
12113   echo "$as_me: failed program was:" >&5
12114 sed 's/^/| /' conftest.$ac_ext >&5
12115
12116         eval "$as_ac_var=no"
12117 fi
12118
12119 rm -f core conftest.err conftest.$ac_objext \
12120       conftest$ac_exeext conftest.$ac_ext
12121 fi
12122 ac_res=`eval echo '${'$as_ac_var'}'`
12123                { echo "$as_me:$LINENO: result: $ac_res" >&5
12124 echo "${ECHO_T}$ac_res" >&6; }
12125 if test `eval echo '${'$as_ac_var'}'` = yes; then
12126   cat >>confdefs.h <<_ACEOF
12127 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12128 _ACEOF
12129
12130 fi
12131 done
12132
12133
12134
12135
12136
12137
12138
12139
12140
12141
12142
12143
12144
12145
12146
12147
12148
12149
12150
12151
12152
12153
12154
12155
12156
12157
12158
12159
12160 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
12161                   stdio.h unistd.h
12162 do
12163 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12164 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12165   { echo "$as_me:$LINENO: checking for $ac_header" >&5
12166 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12167 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12168   echo $ECHO_N "(cached) $ECHO_C" >&6
12169 fi
12170 ac_res=`eval echo '${'$as_ac_Header'}'`
12171                { echo "$as_me:$LINENO: result: $ac_res" >&5
12172 echo "${ECHO_T}$ac_res" >&6; }
12173 else
12174   # Is the header compilable?
12175 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12176 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12177 cat >conftest.$ac_ext <<_ACEOF
12178 /* confdefs.h.  */
12179 _ACEOF
12180 cat confdefs.h >>conftest.$ac_ext
12181 cat >>conftest.$ac_ext <<_ACEOF
12182 /* end confdefs.h.  */
12183 $ac_includes_default
12184 #include <$ac_header>
12185 _ACEOF
12186 rm -f conftest.$ac_objext
12187 if { (ac_try="$ac_compile"
12188 case "(($ac_try" in
12189   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12190   *) ac_try_echo=$ac_try;;
12191 esac
12192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12193   (eval "$ac_compile") 2>conftest.er1
12194   ac_status=$?
12195   grep -v '^ *+' conftest.er1 >conftest.err
12196   rm -f conftest.er1
12197   cat conftest.err >&5
12198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12199   (exit $ac_status); } &&
12200          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12201   { (case "(($ac_try" in
12202   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12203   *) ac_try_echo=$ac_try;;
12204 esac
12205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12206   (eval "$ac_try") 2>&5
12207   ac_status=$?
12208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12209   (exit $ac_status); }; } &&
12210          { ac_try='test -s conftest.$ac_objext'
12211   { (case "(($ac_try" in
12212   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12213   *) ac_try_echo=$ac_try;;
12214 esac
12215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12216   (eval "$ac_try") 2>&5
12217   ac_status=$?
12218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12219   (exit $ac_status); }; }; then
12220   ac_header_compiler=yes
12221 else
12222   echo "$as_me: failed program was:" >&5
12223 sed 's/^/| /' conftest.$ac_ext >&5
12224
12225         ac_header_compiler=no
12226 fi
12227
12228 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12229 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12230 echo "${ECHO_T}$ac_header_compiler" >&6; }
12231
12232 # Is the header present?
12233 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12234 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12235 cat >conftest.$ac_ext <<_ACEOF
12236 /* confdefs.h.  */
12237 _ACEOF
12238 cat confdefs.h >>conftest.$ac_ext
12239 cat >>conftest.$ac_ext <<_ACEOF
12240 /* end confdefs.h.  */
12241 #include <$ac_header>
12242 _ACEOF
12243 if { (ac_try="$ac_cpp conftest.$ac_ext"
12244 case "(($ac_try" in
12245   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12246   *) ac_try_echo=$ac_try;;
12247 esac
12248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12249   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12250   ac_status=$?
12251   grep -v '^ *+' conftest.er1 >conftest.err
12252   rm -f conftest.er1
12253   cat conftest.err >&5
12254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12255   (exit $ac_status); } >/dev/null; then
12256   if test -s conftest.err; then
12257     ac_cpp_err=$ac_c_preproc_warn_flag
12258     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12259   else
12260     ac_cpp_err=
12261   fi
12262 else
12263   ac_cpp_err=yes
12264 fi
12265 if test -z "$ac_cpp_err"; then
12266   ac_header_preproc=yes
12267 else
12268   echo "$as_me: failed program was:" >&5
12269 sed 's/^/| /' conftest.$ac_ext >&5
12270
12271   ac_header_preproc=no
12272 fi
12273
12274 rm -f conftest.err conftest.$ac_ext
12275 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12276 echo "${ECHO_T}$ac_header_preproc" >&6; }
12277
12278 # So?  What about this header?
12279 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12280   yes:no: )
12281     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12282 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12283     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12284 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12285     ac_header_preproc=yes
12286     ;;
12287   no:yes:* )
12288     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12289 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12290     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12291 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12292     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12293 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12294     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12295 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12296     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12297 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12298     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12299 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12300     ( cat <<\_ASBOX
12301 ## ----------------------------------- ##
12302 ## Report this to llvmbugs@cs.uiuc.edu ##
12303 ## ----------------------------------- ##
12304 _ASBOX
12305      ) | sed "s/^/$as_me: WARNING:     /" >&2
12306     ;;
12307 esac
12308 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12309 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12310 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12311   echo $ECHO_N "(cached) $ECHO_C" >&6
12312 else
12313   eval "$as_ac_Header=\$ac_header_preproc"
12314 fi
12315 ac_res=`eval echo '${'$as_ac_Header'}'`
12316                { echo "$as_me:$LINENO: result: $ac_res" >&5
12317 echo "${ECHO_T}$ac_res" >&6; }
12318
12319 fi
12320 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12321   cat >>confdefs.h <<_ACEOF
12322 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12323 _ACEOF
12324
12325 fi
12326
12327 done
12328
12329
12330
12331
12332
12333 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
12334 do
12335 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12336 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12337   { echo "$as_me:$LINENO: checking for $ac_header" >&5
12338 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12339 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12340   echo $ECHO_N "(cached) $ECHO_C" >&6
12341 fi
12342 ac_res=`eval echo '${'$as_ac_Header'}'`
12343                { echo "$as_me:$LINENO: result: $ac_res" >&5
12344 echo "${ECHO_T}$ac_res" >&6; }
12345 else
12346   # Is the header compilable?
12347 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12348 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12349 cat >conftest.$ac_ext <<_ACEOF
12350 /* confdefs.h.  */
12351 _ACEOF
12352 cat confdefs.h >>conftest.$ac_ext
12353 cat >>conftest.$ac_ext <<_ACEOF
12354 /* end confdefs.h.  */
12355 $ac_includes_default
12356 #include <$ac_header>
12357 _ACEOF
12358 rm -f conftest.$ac_objext
12359 if { (ac_try="$ac_compile"
12360 case "(($ac_try" in
12361   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12362   *) ac_try_echo=$ac_try;;
12363 esac
12364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12365   (eval "$ac_compile") 2>conftest.er1
12366   ac_status=$?
12367   grep -v '^ *+' conftest.er1 >conftest.err
12368   rm -f conftest.er1
12369   cat conftest.err >&5
12370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12371   (exit $ac_status); } &&
12372          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12373   { (case "(($ac_try" in
12374   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12375   *) ac_try_echo=$ac_try;;
12376 esac
12377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12378   (eval "$ac_try") 2>&5
12379   ac_status=$?
12380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12381   (exit $ac_status); }; } &&
12382          { ac_try='test -s conftest.$ac_objext'
12383   { (case "(($ac_try" in
12384   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12385   *) ac_try_echo=$ac_try;;
12386 esac
12387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12388   (eval "$ac_try") 2>&5
12389   ac_status=$?
12390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12391   (exit $ac_status); }; }; then
12392   ac_header_compiler=yes
12393 else
12394   echo "$as_me: failed program was:" >&5
12395 sed 's/^/| /' conftest.$ac_ext >&5
12396
12397         ac_header_compiler=no
12398 fi
12399
12400 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12401 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12402 echo "${ECHO_T}$ac_header_compiler" >&6; }
12403
12404 # Is the header present?
12405 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12406 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12407 cat >conftest.$ac_ext <<_ACEOF
12408 /* confdefs.h.  */
12409 _ACEOF
12410 cat confdefs.h >>conftest.$ac_ext
12411 cat >>conftest.$ac_ext <<_ACEOF
12412 /* end confdefs.h.  */
12413 #include <$ac_header>
12414 _ACEOF
12415 if { (ac_try="$ac_cpp conftest.$ac_ext"
12416 case "(($ac_try" in
12417   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12418   *) ac_try_echo=$ac_try;;
12419 esac
12420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12421   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12422   ac_status=$?
12423   grep -v '^ *+' conftest.er1 >conftest.err
12424   rm -f conftest.er1
12425   cat conftest.err >&5
12426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12427   (exit $ac_status); } >/dev/null; then
12428   if test -s conftest.err; then
12429     ac_cpp_err=$ac_c_preproc_warn_flag
12430     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12431   else
12432     ac_cpp_err=
12433   fi
12434 else
12435   ac_cpp_err=yes
12436 fi
12437 if test -z "$ac_cpp_err"; then
12438   ac_header_preproc=yes
12439 else
12440   echo "$as_me: failed program was:" >&5
12441 sed 's/^/| /' conftest.$ac_ext >&5
12442
12443   ac_header_preproc=no
12444 fi
12445
12446 rm -f conftest.err conftest.$ac_ext
12447 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12448 echo "${ECHO_T}$ac_header_preproc" >&6; }
12449
12450 # So?  What about this header?
12451 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12452   yes:no: )
12453     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12454 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12455     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12456 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12457     ac_header_preproc=yes
12458     ;;
12459   no:yes:* )
12460     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12461 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12462     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12463 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12464     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12465 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12466     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12467 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12468     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12469 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12470     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12471 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12472     ( cat <<\_ASBOX
12473 ## ----------------------------------- ##
12474 ## Report this to llvmbugs@cs.uiuc.edu ##
12475 ## ----------------------------------- ##
12476 _ASBOX
12477      ) | sed "s/^/$as_me: WARNING:     /" >&2
12478     ;;
12479 esac
12480 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12481 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12482 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12483   echo $ECHO_N "(cached) $ECHO_C" >&6
12484 else
12485   eval "$as_ac_Header=\$ac_header_preproc"
12486 fi
12487 ac_res=`eval echo '${'$as_ac_Header'}'`
12488                { echo "$as_me:$LINENO: result: $ac_res" >&5
12489 echo "${ECHO_T}$ac_res" >&6; }
12490
12491 fi
12492 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12493   cat >>confdefs.h <<_ACEOF
12494 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12495 _ACEOF
12496
12497 fi
12498
12499 done
12500
12501
12502
12503 for ac_header in string.h strings.h
12504 do
12505 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12506 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12507   { echo "$as_me:$LINENO: checking for $ac_header" >&5
12508 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12509 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12510   echo $ECHO_N "(cached) $ECHO_C" >&6
12511 fi
12512 ac_res=`eval echo '${'$as_ac_Header'}'`
12513                { echo "$as_me:$LINENO: result: $ac_res" >&5
12514 echo "${ECHO_T}$ac_res" >&6; }
12515 else
12516   # Is the header compilable?
12517 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12518 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12519 cat >conftest.$ac_ext <<_ACEOF
12520 /* confdefs.h.  */
12521 _ACEOF
12522 cat confdefs.h >>conftest.$ac_ext
12523 cat >>conftest.$ac_ext <<_ACEOF
12524 /* end confdefs.h.  */
12525 $ac_includes_default
12526 #include <$ac_header>
12527 _ACEOF
12528 rm -f conftest.$ac_objext
12529 if { (ac_try="$ac_compile"
12530 case "(($ac_try" in
12531   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12532   *) ac_try_echo=$ac_try;;
12533 esac
12534 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12535   (eval "$ac_compile") 2>conftest.er1
12536   ac_status=$?
12537   grep -v '^ *+' conftest.er1 >conftest.err
12538   rm -f conftest.er1
12539   cat conftest.err >&5
12540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12541   (exit $ac_status); } &&
12542          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12543   { (case "(($ac_try" in
12544   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12545   *) ac_try_echo=$ac_try;;
12546 esac
12547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12548   (eval "$ac_try") 2>&5
12549   ac_status=$?
12550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12551   (exit $ac_status); }; } &&
12552          { ac_try='test -s conftest.$ac_objext'
12553   { (case "(($ac_try" in
12554   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12555   *) ac_try_echo=$ac_try;;
12556 esac
12557 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12558   (eval "$ac_try") 2>&5
12559   ac_status=$?
12560   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12561   (exit $ac_status); }; }; then
12562   ac_header_compiler=yes
12563 else
12564   echo "$as_me: failed program was:" >&5
12565 sed 's/^/| /' conftest.$ac_ext >&5
12566
12567         ac_header_compiler=no
12568 fi
12569
12570 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12571 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12572 echo "${ECHO_T}$ac_header_compiler" >&6; }
12573
12574 # Is the header present?
12575 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12576 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12577 cat >conftest.$ac_ext <<_ACEOF
12578 /* confdefs.h.  */
12579 _ACEOF
12580 cat confdefs.h >>conftest.$ac_ext
12581 cat >>conftest.$ac_ext <<_ACEOF
12582 /* end confdefs.h.  */
12583 #include <$ac_header>
12584 _ACEOF
12585 if { (ac_try="$ac_cpp conftest.$ac_ext"
12586 case "(($ac_try" in
12587   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12588   *) ac_try_echo=$ac_try;;
12589 esac
12590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12591   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12592   ac_status=$?
12593   grep -v '^ *+' conftest.er1 >conftest.err
12594   rm -f conftest.er1
12595   cat conftest.err >&5
12596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12597   (exit $ac_status); } >/dev/null; then
12598   if test -s conftest.err; then
12599     ac_cpp_err=$ac_c_preproc_warn_flag
12600     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12601   else
12602     ac_cpp_err=
12603   fi
12604 else
12605   ac_cpp_err=yes
12606 fi
12607 if test -z "$ac_cpp_err"; then
12608   ac_header_preproc=yes
12609 else
12610   echo "$as_me: failed program was:" >&5
12611 sed 's/^/| /' conftest.$ac_ext >&5
12612
12613   ac_header_preproc=no
12614 fi
12615
12616 rm -f conftest.err conftest.$ac_ext
12617 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12618 echo "${ECHO_T}$ac_header_preproc" >&6; }
12619
12620 # So?  What about this header?
12621 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12622   yes:no: )
12623     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12624 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12625     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12626 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12627     ac_header_preproc=yes
12628     ;;
12629   no:yes:* )
12630     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12631 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12632     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12633 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12634     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12635 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12636     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12637 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12638     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12639 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12640     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12641 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12642     ( cat <<\_ASBOX
12643 ## ----------------------------------- ##
12644 ## Report this to llvmbugs@cs.uiuc.edu ##
12645 ## ----------------------------------- ##
12646 _ASBOX
12647      ) | sed "s/^/$as_me: WARNING:     /" >&2
12648     ;;
12649 esac
12650 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12651 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12652 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12653   echo $ECHO_N "(cached) $ECHO_C" >&6
12654 else
12655   eval "$as_ac_Header=\$ac_header_preproc"
12656 fi
12657 ac_res=`eval echo '${'$as_ac_Header'}'`
12658                { echo "$as_me:$LINENO: result: $ac_res" >&5
12659 echo "${ECHO_T}$ac_res" >&6; }
12660
12661 fi
12662 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12663   cat >>confdefs.h <<_ACEOF
12664 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12665 _ACEOF
12666  break
12667 fi
12668
12669 done
12670
12671
12672
12673
12674 for ac_func in strchr index
12675 do
12676 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12677 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12678 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12679 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12680   echo $ECHO_N "(cached) $ECHO_C" >&6
12681 else
12682   cat >conftest.$ac_ext <<_ACEOF
12683 /* confdefs.h.  */
12684 _ACEOF
12685 cat confdefs.h >>conftest.$ac_ext
12686 cat >>conftest.$ac_ext <<_ACEOF
12687 /* end confdefs.h.  */
12688 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12689    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12690 #define $ac_func innocuous_$ac_func
12691
12692 /* System header to define __stub macros and hopefully few prototypes,
12693     which can conflict with char $ac_func (); below.
12694     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12695     <limits.h> exists even on freestanding compilers.  */
12696
12697 #ifdef __STDC__
12698 # include <limits.h>
12699 #else
12700 # include <assert.h>
12701 #endif
12702
12703 #undef $ac_func
12704
12705 /* Override any GCC internal prototype to avoid an error.
12706    Use char because int might match the return type of a GCC
12707    builtin and then its argument prototype would still apply.  */
12708 #ifdef __cplusplus
12709 extern "C"
12710 #endif
12711 char $ac_func ();
12712 /* The GNU C library defines this for functions which it implements
12713     to always fail with ENOSYS.  Some functions are actually named
12714     something starting with __ and the normal name is an alias.  */
12715 #if defined __stub_$ac_func || defined __stub___$ac_func
12716 choke me
12717 #endif
12718
12719 int
12720 main ()
12721 {
12722 return $ac_func ();
12723   ;
12724   return 0;
12725 }
12726 _ACEOF
12727 rm -f conftest.$ac_objext conftest$ac_exeext
12728 if { (ac_try="$ac_link"
12729 case "(($ac_try" in
12730   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12731   *) ac_try_echo=$ac_try;;
12732 esac
12733 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12734   (eval "$ac_link") 2>conftest.er1
12735   ac_status=$?
12736   grep -v '^ *+' conftest.er1 >conftest.err
12737   rm -f conftest.er1
12738   cat conftest.err >&5
12739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12740   (exit $ac_status); } &&
12741          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12742   { (case "(($ac_try" in
12743   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12744   *) ac_try_echo=$ac_try;;
12745 esac
12746 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12747   (eval "$ac_try") 2>&5
12748   ac_status=$?
12749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12750   (exit $ac_status); }; } &&
12751          { ac_try='test -s conftest$ac_exeext'
12752   { (case "(($ac_try" in
12753   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12754   *) ac_try_echo=$ac_try;;
12755 esac
12756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12757   (eval "$ac_try") 2>&5
12758   ac_status=$?
12759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12760   (exit $ac_status); }; }; then
12761   eval "$as_ac_var=yes"
12762 else
12763   echo "$as_me: failed program was:" >&5
12764 sed 's/^/| /' conftest.$ac_ext >&5
12765
12766         eval "$as_ac_var=no"
12767 fi
12768
12769 rm -f core conftest.err conftest.$ac_objext \
12770       conftest$ac_exeext conftest.$ac_ext
12771 fi
12772 ac_res=`eval echo '${'$as_ac_var'}'`
12773                { echo "$as_me:$LINENO: result: $ac_res" >&5
12774 echo "${ECHO_T}$ac_res" >&6; }
12775 if test `eval echo '${'$as_ac_var'}'` = yes; then
12776   cat >>confdefs.h <<_ACEOF
12777 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12778 _ACEOF
12779  break
12780 fi
12781 done
12782
12783
12784
12785 for ac_func in strrchr rindex
12786 do
12787 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12788 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12789 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12790 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12791   echo $ECHO_N "(cached) $ECHO_C" >&6
12792 else
12793   cat >conftest.$ac_ext <<_ACEOF
12794 /* confdefs.h.  */
12795 _ACEOF
12796 cat confdefs.h >>conftest.$ac_ext
12797 cat >>conftest.$ac_ext <<_ACEOF
12798 /* end confdefs.h.  */
12799 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12800    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12801 #define $ac_func innocuous_$ac_func
12802
12803 /* System header to define __stub macros and hopefully few prototypes,
12804     which can conflict with char $ac_func (); below.
12805     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12806     <limits.h> exists even on freestanding compilers.  */
12807
12808 #ifdef __STDC__
12809 # include <limits.h>
12810 #else
12811 # include <assert.h>
12812 #endif
12813
12814 #undef $ac_func
12815
12816 /* Override any GCC internal prototype to avoid an error.
12817    Use char because int might match the return type of a GCC
12818    builtin and then its argument prototype would still apply.  */
12819 #ifdef __cplusplus
12820 extern "C"
12821 #endif
12822 char $ac_func ();
12823 /* The GNU C library defines this for functions which it implements
12824     to always fail with ENOSYS.  Some functions are actually named
12825     something starting with __ and the normal name is an alias.  */
12826 #if defined __stub_$ac_func || defined __stub___$ac_func
12827 choke me
12828 #endif
12829
12830 int
12831 main ()
12832 {
12833 return $ac_func ();
12834   ;
12835   return 0;
12836 }
12837 _ACEOF
12838 rm -f conftest.$ac_objext conftest$ac_exeext
12839 if { (ac_try="$ac_link"
12840 case "(($ac_try" in
12841   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12842   *) ac_try_echo=$ac_try;;
12843 esac
12844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12845   (eval "$ac_link") 2>conftest.er1
12846   ac_status=$?
12847   grep -v '^ *+' conftest.er1 >conftest.err
12848   rm -f conftest.er1
12849   cat conftest.err >&5
12850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12851   (exit $ac_status); } &&
12852          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12853   { (case "(($ac_try" in
12854   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12855   *) ac_try_echo=$ac_try;;
12856 esac
12857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12858   (eval "$ac_try") 2>&5
12859   ac_status=$?
12860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12861   (exit $ac_status); }; } &&
12862          { ac_try='test -s conftest$ac_exeext'
12863   { (case "(($ac_try" in
12864   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12865   *) ac_try_echo=$ac_try;;
12866 esac
12867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12868   (eval "$ac_try") 2>&5
12869   ac_status=$?
12870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12871   (exit $ac_status); }; }; then
12872   eval "$as_ac_var=yes"
12873 else
12874   echo "$as_me: failed program was:" >&5
12875 sed 's/^/| /' conftest.$ac_ext >&5
12876
12877         eval "$as_ac_var=no"
12878 fi
12879
12880 rm -f core conftest.err conftest.$ac_objext \
12881       conftest$ac_exeext conftest.$ac_ext
12882 fi
12883 ac_res=`eval echo '${'$as_ac_var'}'`
12884                { echo "$as_me:$LINENO: result: $ac_res" >&5
12885 echo "${ECHO_T}$ac_res" >&6; }
12886 if test `eval echo '${'$as_ac_var'}'` = yes; then
12887   cat >>confdefs.h <<_ACEOF
12888 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12889 _ACEOF
12890  break
12891 fi
12892 done
12893
12894
12895
12896 for ac_func in memcpy bcopy
12897 do
12898 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12899 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12900 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12901 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12902   echo $ECHO_N "(cached) $ECHO_C" >&6
12903 else
12904   cat >conftest.$ac_ext <<_ACEOF
12905 /* confdefs.h.  */
12906 _ACEOF
12907 cat confdefs.h >>conftest.$ac_ext
12908 cat >>conftest.$ac_ext <<_ACEOF
12909 /* end confdefs.h.  */
12910 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12911    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12912 #define $ac_func innocuous_$ac_func
12913
12914 /* System header to define __stub macros and hopefully few prototypes,
12915     which can conflict with char $ac_func (); below.
12916     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12917     <limits.h> exists even on freestanding compilers.  */
12918
12919 #ifdef __STDC__
12920 # include <limits.h>
12921 #else
12922 # include <assert.h>
12923 #endif
12924
12925 #undef $ac_func
12926
12927 /* Override any GCC internal prototype to avoid an error.
12928    Use char because int might match the return type of a GCC
12929    builtin and then its argument prototype would still apply.  */
12930 #ifdef __cplusplus
12931 extern "C"
12932 #endif
12933 char $ac_func ();
12934 /* The GNU C library defines this for functions which it implements
12935     to always fail with ENOSYS.  Some functions are actually named
12936     something starting with __ and the normal name is an alias.  */
12937 #if defined __stub_$ac_func || defined __stub___$ac_func
12938 choke me
12939 #endif
12940
12941 int
12942 main ()
12943 {
12944 return $ac_func ();
12945   ;
12946   return 0;
12947 }
12948 _ACEOF
12949 rm -f conftest.$ac_objext conftest$ac_exeext
12950 if { (ac_try="$ac_link"
12951 case "(($ac_try" in
12952   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12953   *) ac_try_echo=$ac_try;;
12954 esac
12955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12956   (eval "$ac_link") 2>conftest.er1
12957   ac_status=$?
12958   grep -v '^ *+' conftest.er1 >conftest.err
12959   rm -f conftest.er1
12960   cat conftest.err >&5
12961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12962   (exit $ac_status); } &&
12963          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12964   { (case "(($ac_try" in
12965   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12966   *) ac_try_echo=$ac_try;;
12967 esac
12968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12969   (eval "$ac_try") 2>&5
12970   ac_status=$?
12971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12972   (exit $ac_status); }; } &&
12973          { ac_try='test -s conftest$ac_exeext'
12974   { (case "(($ac_try" in
12975   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12976   *) ac_try_echo=$ac_try;;
12977 esac
12978 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12979   (eval "$ac_try") 2>&5
12980   ac_status=$?
12981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12982   (exit $ac_status); }; }; then
12983   eval "$as_ac_var=yes"
12984 else
12985   echo "$as_me: failed program was:" >&5
12986 sed 's/^/| /' conftest.$ac_ext >&5
12987
12988         eval "$as_ac_var=no"
12989 fi
12990
12991 rm -f core conftest.err conftest.$ac_objext \
12992       conftest$ac_exeext conftest.$ac_ext
12993 fi
12994 ac_res=`eval echo '${'$as_ac_var'}'`
12995                { echo "$as_me:$LINENO: result: $ac_res" >&5
12996 echo "${ECHO_T}$ac_res" >&6; }
12997 if test `eval echo '${'$as_ac_var'}'` = yes; then
12998   cat >>confdefs.h <<_ACEOF
12999 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13000 _ACEOF
13001  break
13002 fi
13003 done
13004
13005
13006
13007 for ac_func in memmove strcmp
13008 do
13009 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13010 { echo "$as_me:$LINENO: checking for $ac_func" >&5
13011 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
13012 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13013   echo $ECHO_N "(cached) $ECHO_C" >&6
13014 else
13015   cat >conftest.$ac_ext <<_ACEOF
13016 /* confdefs.h.  */
13017 _ACEOF
13018 cat confdefs.h >>conftest.$ac_ext
13019 cat >>conftest.$ac_ext <<_ACEOF
13020 /* end confdefs.h.  */
13021 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13022    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
13023 #define $ac_func innocuous_$ac_func
13024
13025 /* System header to define __stub macros and hopefully few prototypes,
13026     which can conflict with char $ac_func (); below.
13027     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13028     <limits.h> exists even on freestanding compilers.  */
13029
13030 #ifdef __STDC__
13031 # include <limits.h>
13032 #else
13033 # include <assert.h>
13034 #endif
13035
13036 #undef $ac_func
13037
13038 /* Override any GCC internal prototype to avoid an error.
13039    Use char because int might match the return type of a GCC
13040    builtin and then its argument prototype would still apply.  */
13041 #ifdef __cplusplus
13042 extern "C"
13043 #endif
13044 char $ac_func ();
13045 /* The GNU C library defines this for functions which it implements
13046     to always fail with ENOSYS.  Some functions are actually named
13047     something starting with __ and the normal name is an alias.  */
13048 #if defined __stub_$ac_func || defined __stub___$ac_func
13049 choke me
13050 #endif
13051
13052 int
13053 main ()
13054 {
13055 return $ac_func ();
13056   ;
13057   return 0;
13058 }
13059 _ACEOF
13060 rm -f conftest.$ac_objext conftest$ac_exeext
13061 if { (ac_try="$ac_link"
13062 case "(($ac_try" in
13063   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13064   *) ac_try_echo=$ac_try;;
13065 esac
13066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13067   (eval "$ac_link") 2>conftest.er1
13068   ac_status=$?
13069   grep -v '^ *+' conftest.er1 >conftest.err
13070   rm -f conftest.er1
13071   cat conftest.err >&5
13072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13073   (exit $ac_status); } &&
13074          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13075   { (case "(($ac_try" in
13076   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13077   *) ac_try_echo=$ac_try;;
13078 esac
13079 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13080   (eval "$ac_try") 2>&5
13081   ac_status=$?
13082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13083   (exit $ac_status); }; } &&
13084          { ac_try='test -s conftest$ac_exeext'
13085   { (case "(($ac_try" in
13086   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13087   *) ac_try_echo=$ac_try;;
13088 esac
13089 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13090   (eval "$ac_try") 2>&5
13091   ac_status=$?
13092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13093   (exit $ac_status); }; }; then
13094   eval "$as_ac_var=yes"
13095 else
13096   echo "$as_me: failed program was:" >&5
13097 sed 's/^/| /' conftest.$ac_ext >&5
13098
13099         eval "$as_ac_var=no"
13100 fi
13101
13102 rm -f core conftest.err conftest.$ac_objext \
13103       conftest$ac_exeext conftest.$ac_ext
13104 fi
13105 ac_res=`eval echo '${'$as_ac_var'}'`
13106                { echo "$as_me:$LINENO: result: $ac_res" >&5
13107 echo "${ECHO_T}$ac_res" >&6; }
13108 if test `eval echo '${'$as_ac_var'}'` = yes; then
13109   cat >>confdefs.h <<_ACEOF
13110 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13111 _ACEOF
13112
13113 fi
13114 done
13115
13116
13117
13118
13119 for ac_func in closedir opendir readdir
13120 do
13121 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13122 { echo "$as_me:$LINENO: checking for $ac_func" >&5
13123 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
13124 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13125   echo $ECHO_N "(cached) $ECHO_C" >&6
13126 else
13127   cat >conftest.$ac_ext <<_ACEOF
13128 /* confdefs.h.  */
13129 _ACEOF
13130 cat confdefs.h >>conftest.$ac_ext
13131 cat >>conftest.$ac_ext <<_ACEOF
13132 /* end confdefs.h.  */
13133 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13134    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
13135 #define $ac_func innocuous_$ac_func
13136
13137 /* System header to define __stub macros and hopefully few prototypes,
13138     which can conflict with char $ac_func (); below.
13139     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13140     <limits.h> exists even on freestanding compilers.  */
13141
13142 #ifdef __STDC__
13143 # include <limits.h>
13144 #else
13145 # include <assert.h>
13146 #endif
13147
13148 #undef $ac_func
13149
13150 /* Override any GCC internal prototype to avoid an error.
13151    Use char because int might match the return type of a GCC
13152    builtin and then its argument prototype would still apply.  */
13153 #ifdef __cplusplus
13154 extern "C"
13155 #endif
13156 char $ac_func ();
13157 /* The GNU C library defines this for functions which it implements
13158     to always fail with ENOSYS.  Some functions are actually named
13159     something starting with __ and the normal name is an alias.  */
13160 #if defined __stub_$ac_func || defined __stub___$ac_func
13161 choke me
13162 #endif
13163
13164 int
13165 main ()
13166 {
13167 return $ac_func ();
13168   ;
13169   return 0;
13170 }
13171 _ACEOF
13172 rm -f conftest.$ac_objext conftest$ac_exeext
13173 if { (ac_try="$ac_link"
13174 case "(($ac_try" in
13175   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13176   *) ac_try_echo=$ac_try;;
13177 esac
13178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13179   (eval "$ac_link") 2>conftest.er1
13180   ac_status=$?
13181   grep -v '^ *+' conftest.er1 >conftest.err
13182   rm -f conftest.er1
13183   cat conftest.err >&5
13184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13185   (exit $ac_status); } &&
13186          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13187   { (case "(($ac_try" in
13188   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13189   *) ac_try_echo=$ac_try;;
13190 esac
13191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13192   (eval "$ac_try") 2>&5
13193   ac_status=$?
13194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13195   (exit $ac_status); }; } &&
13196          { ac_try='test -s conftest$ac_exeext'
13197   { (case "(($ac_try" in
13198   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13199   *) ac_try_echo=$ac_try;;
13200 esac
13201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13202   (eval "$ac_try") 2>&5
13203   ac_status=$?
13204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13205   (exit $ac_status); }; }; then
13206   eval "$as_ac_var=yes"
13207 else
13208   echo "$as_me: failed program was:" >&5
13209 sed 's/^/| /' conftest.$ac_ext >&5
13210
13211         eval "$as_ac_var=no"
13212 fi
13213
13214 rm -f core conftest.err conftest.$ac_objext \
13215       conftest$ac_exeext conftest.$ac_ext
13216 fi
13217 ac_res=`eval echo '${'$as_ac_var'}'`
13218                { echo "$as_me:$LINENO: result: $ac_res" >&5
13219 echo "${ECHO_T}$ac_res" >&6; }
13220 if test `eval echo '${'$as_ac_var'}'` = yes; then
13221   cat >>confdefs.h <<_ACEOF
13222 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13223 _ACEOF
13224
13225 fi
13226 done
13227
13228
13229
13230 if test "$WITH_LLVMGCCDIR" = "default" ; then
13231   LLVMGCC="llvm-gcc${EXEEXT}"
13232   LLVMGXX="llvm-g++${EXEEXT}"
13233   LLVMGCCCOMMAND="$LLVMGCC"
13234   LLVMGXXCOMMAND="$LLVMGXX"
13235   LLVMGCCCOMMAND=$LLVMGCCCOMMAND
13236
13237   LLVMGXXCOMMAND=$LLVMGXXCOMMAND
13238
13239   # Extract the first word of "$LLVMGCC", so it can be a program name with args.
13240 set dummy $LLVMGCC; ac_word=$2
13241 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13242 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13243 if test "${ac_cv_path_LLVMGCC+set}" = set; then
13244   echo $ECHO_N "(cached) $ECHO_C" >&6
13245 else
13246   case $LLVMGCC in
13247   [\\/]* | ?:[\\/]*)
13248   ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path.
13249   ;;
13250   *)
13251   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13252 for as_dir in $PATH
13253 do
13254   IFS=$as_save_IFS
13255   test -z "$as_dir" && as_dir=.
13256   for ac_exec_ext in '' $ac_executable_extensions; do
13257   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13258     ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext"
13259     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13260     break 2
13261   fi
13262 done
13263 done
13264 IFS=$as_save_IFS
13265
13266   ;;
13267 esac
13268 fi
13269 LLVMGCC=$ac_cv_path_LLVMGCC
13270 if test -n "$LLVMGCC"; then
13271   { echo "$as_me:$LINENO: result: $LLVMGCC" >&5
13272 echo "${ECHO_T}$LLVMGCC" >&6; }
13273 else
13274   { echo "$as_me:$LINENO: result: no" >&5
13275 echo "${ECHO_T}no" >&6; }
13276 fi
13277
13278
13279   # Extract the first word of "$LLVMGXX", so it can be a program name with args.
13280 set dummy $LLVMGXX; ac_word=$2
13281 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13282 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13283 if test "${ac_cv_path_LLVMGXX+set}" = set; then
13284   echo $ECHO_N "(cached) $ECHO_C" >&6
13285 else
13286   case $LLVMGXX in
13287   [\\/]* | ?:[\\/]*)
13288   ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path.
13289   ;;
13290   *)
13291   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13292 for as_dir in $PATH
13293 do
13294   IFS=$as_save_IFS
13295   test -z "$as_dir" && as_dir=.
13296   for ac_exec_ext in '' $ac_executable_extensions; do
13297   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13298     ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext"
13299     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13300     break 2
13301   fi
13302 done
13303 done
13304 IFS=$as_save_IFS
13305
13306   ;;
13307 esac
13308 fi
13309 LLVMGXX=$ac_cv_path_LLVMGXX
13310 if test -n "$LLVMGXX"; then
13311   { echo "$as_me:$LINENO: result: $LLVMGXX" >&5
13312 echo "${ECHO_T}$LLVMGXX" >&6; }
13313 else
13314   { echo "$as_me:$LINENO: result: no" >&5
13315 echo "${ECHO_T}no" >&6; }
13316 fi
13317
13318
13319 else
13320   if test -z "$LLVMGCC"; then
13321     LLVMGCC="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}"
13322     LLVMGCCCOMMAND="$LLVMGCC"
13323   fi
13324   if test -z "$LLVMGXX"; then
13325     LLVMGXX="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}"
13326     LLVMGXXCOMMAND="$LLVMGXX"
13327   fi
13328
13329   LLVMGCC=$LLVMGCC
13330
13331   LLVMGXX=$LLVMGXX
13332
13333   LLVMGCCCOMMAND=$LLVMGCCCOMMAND
13334
13335   LLVMGXXCOMMAND=$LLVMGXXCOMMAND
13336
13337 fi
13338
13339
13340 # Check whether --with-llvmcc was given.
13341 if test "${with_llvmcc+set}" = set; then
13342   withval=$with_llvmcc;
13343 else
13344   with_llvmcc=check
13345 fi
13346
13347 { echo "$as_me:$LINENO: checking LLVM capable compiler" >&5
13348 echo $ECHO_N "checking LLVM capable compiler... $ECHO_C" >&6; }
13349 if test "$with_llvmcc" != "check"; then
13350    if (test "$with_llvmcc" != "llvm-gcc" &&
13351        test "$with_llvmcc" != "clang" &&
13352        test "$with_llvmcc" != "none"); then
13353       { { echo "$as_me:$LINENO: error: invalid value for --with-llvmcc, expected 'llvm-gcc', 'clang', or 'none'." >&5
13354 echo "$as_me: error: invalid value for --with-llvmcc, expected 'llvm-gcc', 'clang', or 'none'." >&2;}
13355    { (exit 1); exit 1; }; }
13356    fi
13357    WITH_LLVMCC="$with_llvmcc"
13358 elif test -n "$LLVMGCC"; then
13359    WITH_LLVMCC=llvm-gcc
13360 elif test -n "$WITH_CLANGPATH" || test "$WITH_BUILT_CLANG" -ne "0"; then
13361    WITH_LLVMCC=clang
13362 else
13363    WITH_LLVMCC=none
13364 fi
13365 { echo "$as_me:$LINENO: result: $WITH_LLVMCC" >&5
13366 echo "${ECHO_T}$WITH_LLVMCC" >&6; }
13367 LLVMCC_OPTION=$WITH_LLVMCC
13368
13369
13370 { echo "$as_me:$LINENO: checking tool compatibility" >&5
13371 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
13372
13373 ICC=no
13374 IXX=no
13375 case $CC in
13376   icc*|icpc*)
13377     ICC=yes
13378     IXX=yes
13379     ;;
13380    *)
13381     ;;
13382 esac
13383
13384 if test "$GCC" != "yes" && test "$ICC" != "yes"
13385 then
13386   { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
13387 echo "$as_me: error: gcc|icc required but not found" >&2;}
13388    { (exit 1); exit 1; }; }
13389 fi
13390
13391 if test "$GXX" != "yes" && test "$IXX" != "yes"
13392 then
13393   { { echo "$as_me:$LINENO: error: g++|clang++|icc required but not found" >&5
13394 echo "$as_me: error: g++|clang++|icc required but not found" >&2;}
13395    { (exit 1); exit 1; }; }
13396 fi
13397
13398 if test "$GCC" = "yes"
13399 then
13400   cat >conftest.$ac_ext <<_ACEOF
13401 #if !defined(__GNUC__) || __GNUC__ < 3
13402 #error Unsupported GCC version
13403 #endif
13404
13405 _ACEOF
13406 rm -f conftest.$ac_objext
13407 if { (ac_try="$ac_compile"
13408 case "(($ac_try" in
13409   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13410   *) ac_try_echo=$ac_try;;
13411 esac
13412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13413   (eval "$ac_compile") 2>conftest.er1
13414   ac_status=$?
13415   grep -v '^ *+' conftest.er1 >conftest.err
13416   rm -f conftest.er1
13417   cat conftest.err >&5
13418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13419   (exit $ac_status); } &&
13420          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13421   { (case "(($ac_try" in
13422   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13423   *) ac_try_echo=$ac_try;;
13424 esac
13425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13426   (eval "$ac_try") 2>&5
13427   ac_status=$?
13428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13429   (exit $ac_status); }; } &&
13430          { ac_try='test -s conftest.$ac_objext'
13431   { (case "(($ac_try" in
13432   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13433   *) ac_try_echo=$ac_try;;
13434 esac
13435 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13436   (eval "$ac_try") 2>&5
13437   ac_status=$?
13438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13439   (exit $ac_status); }; }; then
13440   :
13441 else
13442   echo "$as_me: failed program was:" >&5
13443 sed 's/^/| /' conftest.$ac_ext >&5
13444
13445         { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
13446 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
13447    { (exit 1); exit 1; }; }
13448 fi
13449
13450 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13451 fi
13452
13453 if test -z "$llvm_cv_gnu_make_command"
13454 then
13455   { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
13456 echo "$as_me: error: GNU Make required but not found" >&2;}
13457    { (exit 1); exit 1; }; }
13458 fi
13459
13460 { echo "$as_me:$LINENO: result: ok" >&5
13461 echo "${ECHO_T}ok" >&6; }
13462
13463 { echo "$as_me:$LINENO: checking optional compiler flags" >&5
13464 echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
13465 NO_VARIADIC_MACROS=`$CXX -Wno-variadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
13466
13467 NO_MISSING_FIELD_INITIALIZERS=`$CXX -Wno-missing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
13468
13469 { echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&5
13470 echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&6; }
13471
13472
13473
13474 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
13475 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
13476 if test "${ac_cv_lib_m_sin+set}" = set; then
13477   echo $ECHO_N "(cached) $ECHO_C" >&6
13478 else
13479   ac_check_lib_save_LIBS=$LIBS
13480 LIBS="-lm  $LIBS"
13481 cat >conftest.$ac_ext <<_ACEOF
13482 /* confdefs.h.  */
13483 _ACEOF
13484 cat confdefs.h >>conftest.$ac_ext
13485 cat >>conftest.$ac_ext <<_ACEOF
13486 /* end confdefs.h.  */
13487
13488 /* Override any GCC internal prototype to avoid an error.
13489    Use char because int might match the return type of a GCC
13490    builtin and then its argument prototype would still apply.  */
13491 #ifdef __cplusplus
13492 extern "C"
13493 #endif
13494 char sin ();
13495 int
13496 main ()
13497 {
13498 return sin ();
13499   ;
13500   return 0;
13501 }
13502 _ACEOF
13503 rm -f conftest.$ac_objext conftest$ac_exeext
13504 if { (ac_try="$ac_link"
13505 case "(($ac_try" in
13506   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13507   *) ac_try_echo=$ac_try;;
13508 esac
13509 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13510   (eval "$ac_link") 2>conftest.er1
13511   ac_status=$?
13512   grep -v '^ *+' conftest.er1 >conftest.err
13513   rm -f conftest.er1
13514   cat conftest.err >&5
13515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13516   (exit $ac_status); } &&
13517          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13518   { (case "(($ac_try" in
13519   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13520   *) ac_try_echo=$ac_try;;
13521 esac
13522 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13523   (eval "$ac_try") 2>&5
13524   ac_status=$?
13525   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13526   (exit $ac_status); }; } &&
13527          { ac_try='test -s conftest$ac_exeext'
13528   { (case "(($ac_try" in
13529   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13530   *) ac_try_echo=$ac_try;;
13531 esac
13532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13533   (eval "$ac_try") 2>&5
13534   ac_status=$?
13535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13536   (exit $ac_status); }; }; then
13537   ac_cv_lib_m_sin=yes
13538 else
13539   echo "$as_me: failed program was:" >&5
13540 sed 's/^/| /' conftest.$ac_ext >&5
13541
13542         ac_cv_lib_m_sin=no
13543 fi
13544
13545 rm -f core conftest.err conftest.$ac_objext \
13546       conftest$ac_exeext conftest.$ac_ext
13547 LIBS=$ac_check_lib_save_LIBS
13548 fi
13549 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
13550 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
13551 if test $ac_cv_lib_m_sin = yes; then
13552   cat >>confdefs.h <<_ACEOF
13553 #define HAVE_LIBM 1
13554 _ACEOF
13555
13556   LIBS="-lm $LIBS"
13557
13558 fi
13559
13560 if test "$llvm_cv_os_type" = "MingW" ; then
13561
13562 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
13563 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
13564 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
13565   echo $ECHO_N "(cached) $ECHO_C" >&6
13566 else
13567   ac_check_lib_save_LIBS=$LIBS
13568 LIBS="-limagehlp  $LIBS"
13569 cat >conftest.$ac_ext <<_ACEOF
13570 /* confdefs.h.  */
13571 _ACEOF
13572 cat confdefs.h >>conftest.$ac_ext
13573 cat >>conftest.$ac_ext <<_ACEOF
13574 /* end confdefs.h.  */
13575
13576
13577 int
13578 main ()
13579 {
13580 return main ();
13581   ;
13582   return 0;
13583 }
13584 _ACEOF
13585 rm -f conftest.$ac_objext conftest$ac_exeext
13586 if { (ac_try="$ac_link"
13587 case "(($ac_try" in
13588   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13589   *) ac_try_echo=$ac_try;;
13590 esac
13591 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13592   (eval "$ac_link") 2>conftest.er1
13593   ac_status=$?
13594   grep -v '^ *+' conftest.er1 >conftest.err
13595   rm -f conftest.er1
13596   cat conftest.err >&5
13597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13598   (exit $ac_status); } &&
13599          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13600   { (case "(($ac_try" in
13601   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13602   *) ac_try_echo=$ac_try;;
13603 esac
13604 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13605   (eval "$ac_try") 2>&5
13606   ac_status=$?
13607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13608   (exit $ac_status); }; } &&
13609          { ac_try='test -s conftest$ac_exeext'
13610   { (case "(($ac_try" in
13611   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13612   *) ac_try_echo=$ac_try;;
13613 esac
13614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13615   (eval "$ac_try") 2>&5
13616   ac_status=$?
13617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13618   (exit $ac_status); }; }; then
13619   ac_cv_lib_imagehlp_main=yes
13620 else
13621   echo "$as_me: failed program was:" >&5
13622 sed 's/^/| /' conftest.$ac_ext >&5
13623
13624         ac_cv_lib_imagehlp_main=no
13625 fi
13626
13627 rm -f core conftest.err conftest.$ac_objext \
13628       conftest$ac_exeext conftest.$ac_ext
13629 LIBS=$ac_check_lib_save_LIBS
13630 fi
13631 { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
13632 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
13633 if test $ac_cv_lib_imagehlp_main = yes; then
13634   cat >>confdefs.h <<_ACEOF
13635 #define HAVE_LIBIMAGEHLP 1
13636 _ACEOF
13637
13638   LIBS="-limagehlp $LIBS"
13639
13640 fi
13641
13642
13643 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
13644 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
13645 if test "${ac_cv_lib_psapi_main+set}" = set; then
13646   echo $ECHO_N "(cached) $ECHO_C" >&6
13647 else
13648   ac_check_lib_save_LIBS=$LIBS
13649 LIBS="-lpsapi  $LIBS"
13650 cat >conftest.$ac_ext <<_ACEOF
13651 /* confdefs.h.  */
13652 _ACEOF
13653 cat confdefs.h >>conftest.$ac_ext
13654 cat >>conftest.$ac_ext <<_ACEOF
13655 /* end confdefs.h.  */
13656
13657
13658 int
13659 main ()
13660 {
13661 return main ();
13662   ;
13663   return 0;
13664 }
13665 _ACEOF
13666 rm -f conftest.$ac_objext conftest$ac_exeext
13667 if { (ac_try="$ac_link"
13668 case "(($ac_try" in
13669   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13670   *) ac_try_echo=$ac_try;;
13671 esac
13672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13673   (eval "$ac_link") 2>conftest.er1
13674   ac_status=$?
13675   grep -v '^ *+' conftest.er1 >conftest.err
13676   rm -f conftest.er1
13677   cat conftest.err >&5
13678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13679   (exit $ac_status); } &&
13680          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13681   { (case "(($ac_try" in
13682   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13683   *) ac_try_echo=$ac_try;;
13684 esac
13685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13686   (eval "$ac_try") 2>&5
13687   ac_status=$?
13688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13689   (exit $ac_status); }; } &&
13690          { ac_try='test -s conftest$ac_exeext'
13691   { (case "(($ac_try" in
13692   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13693   *) ac_try_echo=$ac_try;;
13694 esac
13695 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13696   (eval "$ac_try") 2>&5
13697   ac_status=$?
13698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13699   (exit $ac_status); }; }; then
13700   ac_cv_lib_psapi_main=yes
13701 else
13702   echo "$as_me: failed program was:" >&5
13703 sed 's/^/| /' conftest.$ac_ext >&5
13704
13705         ac_cv_lib_psapi_main=no
13706 fi
13707
13708 rm -f core conftest.err conftest.$ac_objext \
13709       conftest$ac_exeext conftest.$ac_ext
13710 LIBS=$ac_check_lib_save_LIBS
13711 fi
13712 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
13713 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
13714 if test $ac_cv_lib_psapi_main = yes; then
13715   cat >>confdefs.h <<_ACEOF
13716 #define HAVE_LIBPSAPI 1
13717 _ACEOF
13718
13719   LIBS="-lpsapi $LIBS"
13720
13721 fi
13722
13723 fi
13724
13725 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
13726 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
13727 if test "${ac_cv_search_dlopen+set}" = set; then
13728   echo $ECHO_N "(cached) $ECHO_C" >&6
13729 else
13730   ac_func_search_save_LIBS=$LIBS
13731 cat >conftest.$ac_ext <<_ACEOF
13732 /* confdefs.h.  */
13733 _ACEOF
13734 cat confdefs.h >>conftest.$ac_ext
13735 cat >>conftest.$ac_ext <<_ACEOF
13736 /* end confdefs.h.  */
13737
13738 /* Override any GCC internal prototype to avoid an error.
13739    Use char because int might match the return type of a GCC
13740    builtin and then its argument prototype would still apply.  */
13741 #ifdef __cplusplus
13742 extern "C"
13743 #endif
13744 char dlopen ();
13745 int
13746 main ()
13747 {
13748 return dlopen ();
13749   ;
13750   return 0;
13751 }
13752 _ACEOF
13753 for ac_lib in '' dl; do
13754   if test -z "$ac_lib"; then
13755     ac_res="none required"
13756   else
13757     ac_res=-l$ac_lib
13758     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13759   fi
13760   rm -f conftest.$ac_objext conftest$ac_exeext
13761 if { (ac_try="$ac_link"
13762 case "(($ac_try" in
13763   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13764   *) ac_try_echo=$ac_try;;
13765 esac
13766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13767   (eval "$ac_link") 2>conftest.er1
13768   ac_status=$?
13769   grep -v '^ *+' conftest.er1 >conftest.err
13770   rm -f conftest.er1
13771   cat conftest.err >&5
13772   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13773   (exit $ac_status); } &&
13774          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13775   { (case "(($ac_try" in
13776   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13777   *) ac_try_echo=$ac_try;;
13778 esac
13779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13780   (eval "$ac_try") 2>&5
13781   ac_status=$?
13782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13783   (exit $ac_status); }; } &&
13784          { ac_try='test -s conftest$ac_exeext'
13785   { (case "(($ac_try" in
13786   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13787   *) ac_try_echo=$ac_try;;
13788 esac
13789 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13790   (eval "$ac_try") 2>&5
13791   ac_status=$?
13792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13793   (exit $ac_status); }; }; then
13794   ac_cv_search_dlopen=$ac_res
13795 else
13796   echo "$as_me: failed program was:" >&5
13797 sed 's/^/| /' conftest.$ac_ext >&5
13798
13799
13800 fi
13801
13802 rm -f core conftest.err conftest.$ac_objext \
13803       conftest$ac_exeext
13804   if test "${ac_cv_search_dlopen+set}" = set; then
13805   break
13806 fi
13807 done
13808 if test "${ac_cv_search_dlopen+set}" = set; then
13809   :
13810 else
13811   ac_cv_search_dlopen=no
13812 fi
13813 rm conftest.$ac_ext
13814 LIBS=$ac_func_search_save_LIBS
13815 fi
13816 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
13817 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
13818 ac_res=$ac_cv_search_dlopen
13819 if test "$ac_res" != no; then
13820   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13821
13822 cat >>confdefs.h <<\_ACEOF
13823 #define HAVE_DLOPEN 1
13824 _ACEOF
13825
13826 else
13827   { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
13828 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
13829 fi
13830
13831
13832 if test "$llvm_cv_enable_libffi" = "yes" ; then
13833   { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
13834 echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
13835 if test "${ac_cv_search_ffi_call+set}" = set; then
13836   echo $ECHO_N "(cached) $ECHO_C" >&6
13837 else
13838   ac_func_search_save_LIBS=$LIBS
13839 cat >conftest.$ac_ext <<_ACEOF
13840 /* confdefs.h.  */
13841 _ACEOF
13842 cat confdefs.h >>conftest.$ac_ext
13843 cat >>conftest.$ac_ext <<_ACEOF
13844 /* end confdefs.h.  */
13845
13846 /* Override any GCC internal prototype to avoid an error.
13847    Use char because int might match the return type of a GCC
13848    builtin and then its argument prototype would still apply.  */
13849 #ifdef __cplusplus
13850 extern "C"
13851 #endif
13852 char ffi_call ();
13853 int
13854 main ()
13855 {
13856 return ffi_call ();
13857   ;
13858   return 0;
13859 }
13860 _ACEOF
13861 for ac_lib in '' ffi; do
13862   if test -z "$ac_lib"; then
13863     ac_res="none required"
13864   else
13865     ac_res=-l$ac_lib
13866     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13867   fi
13868   rm -f conftest.$ac_objext conftest$ac_exeext
13869 if { (ac_try="$ac_link"
13870 case "(($ac_try" in
13871   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13872   *) ac_try_echo=$ac_try;;
13873 esac
13874 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13875   (eval "$ac_link") 2>conftest.er1
13876   ac_status=$?
13877   grep -v '^ *+' conftest.er1 >conftest.err
13878   rm -f conftest.er1
13879   cat conftest.err >&5
13880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13881   (exit $ac_status); } &&
13882          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13883   { (case "(($ac_try" in
13884   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13885   *) ac_try_echo=$ac_try;;
13886 esac
13887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13888   (eval "$ac_try") 2>&5
13889   ac_status=$?
13890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13891   (exit $ac_status); }; } &&
13892          { ac_try='test -s conftest$ac_exeext'
13893   { (case "(($ac_try" in
13894   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13895   *) ac_try_echo=$ac_try;;
13896 esac
13897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13898   (eval "$ac_try") 2>&5
13899   ac_status=$?
13900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13901   (exit $ac_status); }; }; then
13902   ac_cv_search_ffi_call=$ac_res
13903 else
13904   echo "$as_me: failed program was:" >&5
13905 sed 's/^/| /' conftest.$ac_ext >&5
13906
13907
13908 fi
13909
13910 rm -f core conftest.err conftest.$ac_objext \
13911       conftest$ac_exeext
13912   if test "${ac_cv_search_ffi_call+set}" = set; then
13913   break
13914 fi
13915 done
13916 if test "${ac_cv_search_ffi_call+set}" = set; then
13917   :
13918 else
13919   ac_cv_search_ffi_call=no
13920 fi
13921 rm conftest.$ac_ext
13922 LIBS=$ac_func_search_save_LIBS
13923 fi
13924 { echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
13925 echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
13926 ac_res=$ac_cv_search_ffi_call
13927 if test "$ac_res" != no; then
13928   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13929
13930 cat >>confdefs.h <<\_ACEOF
13931 #define HAVE_FFI_CALL 1
13932 _ACEOF
13933
13934 else
13935   { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
13936 echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
13937    { (exit 1); exit 1; }; }
13938 fi
13939
13940 fi
13941
13942 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
13943 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
13944 if test "${ac_cv_search_mallinfo+set}" = set; then
13945   echo $ECHO_N "(cached) $ECHO_C" >&6
13946 else
13947   ac_func_search_save_LIBS=$LIBS
13948 cat >conftest.$ac_ext <<_ACEOF
13949 /* confdefs.h.  */
13950 _ACEOF
13951 cat confdefs.h >>conftest.$ac_ext
13952 cat >>conftest.$ac_ext <<_ACEOF
13953 /* end confdefs.h.  */
13954
13955 /* Override any GCC internal prototype to avoid an error.
13956    Use char because int might match the return type of a GCC
13957    builtin and then its argument prototype would still apply.  */
13958 #ifdef __cplusplus
13959 extern "C"
13960 #endif
13961 char mallinfo ();
13962 int
13963 main ()
13964 {
13965 return mallinfo ();
13966   ;
13967   return 0;
13968 }
13969 _ACEOF
13970 for ac_lib in '' malloc; do
13971   if test -z "$ac_lib"; then
13972     ac_res="none required"
13973   else
13974     ac_res=-l$ac_lib
13975     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13976   fi
13977   rm -f conftest.$ac_objext conftest$ac_exeext
13978 if { (ac_try="$ac_link"
13979 case "(($ac_try" in
13980   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13981   *) ac_try_echo=$ac_try;;
13982 esac
13983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13984   (eval "$ac_link") 2>conftest.er1
13985   ac_status=$?
13986   grep -v '^ *+' conftest.er1 >conftest.err
13987   rm -f conftest.er1
13988   cat conftest.err >&5
13989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13990   (exit $ac_status); } &&
13991          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13992   { (case "(($ac_try" in
13993   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13994   *) ac_try_echo=$ac_try;;
13995 esac
13996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13997   (eval "$ac_try") 2>&5
13998   ac_status=$?
13999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14000   (exit $ac_status); }; } &&
14001          { ac_try='test -s conftest$ac_exeext'
14002   { (case "(($ac_try" in
14003   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14004   *) ac_try_echo=$ac_try;;
14005 esac
14006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14007   (eval "$ac_try") 2>&5
14008   ac_status=$?
14009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14010   (exit $ac_status); }; }; then
14011   ac_cv_search_mallinfo=$ac_res
14012 else
14013   echo "$as_me: failed program was:" >&5
14014 sed 's/^/| /' conftest.$ac_ext >&5
14015
14016
14017 fi
14018
14019 rm -f core conftest.err conftest.$ac_objext \
14020       conftest$ac_exeext
14021   if test "${ac_cv_search_mallinfo+set}" = set; then
14022   break
14023 fi
14024 done
14025 if test "${ac_cv_search_mallinfo+set}" = set; then
14026   :
14027 else
14028   ac_cv_search_mallinfo=no
14029 fi
14030 rm conftest.$ac_ext
14031 LIBS=$ac_func_search_save_LIBS
14032 fi
14033 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
14034 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
14035 ac_res=$ac_cv_search_mallinfo
14036 if test "$ac_res" != no; then
14037   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14038
14039 cat >>confdefs.h <<\_ACEOF
14040 #define HAVE_MALLINFO 1
14041 _ACEOF
14042
14043 fi
14044
14045
14046 if test "$ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
14047
14048 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
14049 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
14050 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
14051   echo $ECHO_N "(cached) $ECHO_C" >&6
14052 else
14053   ac_check_lib_save_LIBS=$LIBS
14054 LIBS="-lpthread  $LIBS"
14055 cat >conftest.$ac_ext <<_ACEOF
14056 /* confdefs.h.  */
14057 _ACEOF
14058 cat confdefs.h >>conftest.$ac_ext
14059 cat >>conftest.$ac_ext <<_ACEOF
14060 /* end confdefs.h.  */
14061
14062 /* Override any GCC internal prototype to avoid an error.
14063    Use char because int might match the return type of a GCC
14064    builtin and then its argument prototype would still apply.  */
14065 #ifdef __cplusplus
14066 extern "C"
14067 #endif
14068 char pthread_mutex_init ();
14069 int
14070 main ()
14071 {
14072 return pthread_mutex_init ();
14073   ;
14074   return 0;
14075 }
14076 _ACEOF
14077 rm -f conftest.$ac_objext conftest$ac_exeext
14078 if { (ac_try="$ac_link"
14079 case "(($ac_try" in
14080   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14081   *) ac_try_echo=$ac_try;;
14082 esac
14083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14084   (eval "$ac_link") 2>conftest.er1
14085   ac_status=$?
14086   grep -v '^ *+' conftest.er1 >conftest.err
14087   rm -f conftest.er1
14088   cat conftest.err >&5
14089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14090   (exit $ac_status); } &&
14091          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14092   { (case "(($ac_try" in
14093   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14094   *) ac_try_echo=$ac_try;;
14095 esac
14096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14097   (eval "$ac_try") 2>&5
14098   ac_status=$?
14099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14100   (exit $ac_status); }; } &&
14101          { ac_try='test -s conftest$ac_exeext'
14102   { (case "(($ac_try" in
14103   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14104   *) ac_try_echo=$ac_try;;
14105 esac
14106 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14107   (eval "$ac_try") 2>&5
14108   ac_status=$?
14109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14110   (exit $ac_status); }; }; then
14111   ac_cv_lib_pthread_pthread_mutex_init=yes
14112 else
14113   echo "$as_me: failed program was:" >&5
14114 sed 's/^/| /' conftest.$ac_ext >&5
14115
14116         ac_cv_lib_pthread_pthread_mutex_init=no
14117 fi
14118
14119 rm -f core conftest.err conftest.$ac_objext \
14120       conftest$ac_exeext conftest.$ac_ext
14121 LIBS=$ac_check_lib_save_LIBS
14122 fi
14123 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
14124 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
14125 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
14126   cat >>confdefs.h <<_ACEOF
14127 #define HAVE_LIBPTHREAD 1
14128 _ACEOF
14129
14130   LIBS="-lpthread $LIBS"
14131
14132 fi
14133
14134   { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
14135 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
14136 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
14137   echo $ECHO_N "(cached) $ECHO_C" >&6
14138 else
14139   ac_func_search_save_LIBS=$LIBS
14140 cat >conftest.$ac_ext <<_ACEOF
14141 /* confdefs.h.  */
14142 _ACEOF
14143 cat confdefs.h >>conftest.$ac_ext
14144 cat >>conftest.$ac_ext <<_ACEOF
14145 /* end confdefs.h.  */
14146
14147 /* Override any GCC internal prototype to avoid an error.
14148    Use char because int might match the return type of a GCC
14149    builtin and then its argument prototype would still apply.  */
14150 #ifdef __cplusplus
14151 extern "C"
14152 #endif
14153 char pthread_mutex_lock ();
14154 int
14155 main ()
14156 {
14157 return pthread_mutex_lock ();
14158   ;
14159   return 0;
14160 }
14161 _ACEOF
14162 for ac_lib in '' pthread; do
14163   if test -z "$ac_lib"; then
14164     ac_res="none required"
14165   else
14166     ac_res=-l$ac_lib
14167     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14168   fi
14169   rm -f conftest.$ac_objext conftest$ac_exeext
14170 if { (ac_try="$ac_link"
14171 case "(($ac_try" in
14172   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14173   *) ac_try_echo=$ac_try;;
14174 esac
14175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14176   (eval "$ac_link") 2>conftest.er1
14177   ac_status=$?
14178   grep -v '^ *+' conftest.er1 >conftest.err
14179   rm -f conftest.er1
14180   cat conftest.err >&5
14181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14182   (exit $ac_status); } &&
14183          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14184   { (case "(($ac_try" in
14185   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14186   *) ac_try_echo=$ac_try;;
14187 esac
14188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14189   (eval "$ac_try") 2>&5
14190   ac_status=$?
14191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14192   (exit $ac_status); }; } &&
14193          { ac_try='test -s conftest$ac_exeext'
14194   { (case "(($ac_try" in
14195   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14196   *) ac_try_echo=$ac_try;;
14197 esac
14198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14199   (eval "$ac_try") 2>&5
14200   ac_status=$?
14201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14202   (exit $ac_status); }; }; then
14203   ac_cv_search_pthread_mutex_lock=$ac_res
14204 else
14205   echo "$as_me: failed program was:" >&5
14206 sed 's/^/| /' conftest.$ac_ext >&5
14207
14208
14209 fi
14210
14211 rm -f core conftest.err conftest.$ac_objext \
14212       conftest$ac_exeext
14213   if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
14214   break
14215 fi
14216 done
14217 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
14218   :
14219 else
14220   ac_cv_search_pthread_mutex_lock=no
14221 fi
14222 rm conftest.$ac_ext
14223 LIBS=$ac_func_search_save_LIBS
14224 fi
14225 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
14226 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
14227 ac_res=$ac_cv_search_pthread_mutex_lock
14228 if test "$ac_res" != no; then
14229   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14230
14231 cat >>confdefs.h <<\_ACEOF
14232 #define HAVE_PTHREAD_MUTEX_LOCK 1
14233 _ACEOF
14234
14235 fi
14236
14237   { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
14238 echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
14239 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
14240   echo $ECHO_N "(cached) $ECHO_C" >&6
14241 else
14242   ac_func_search_save_LIBS=$LIBS
14243 cat >conftest.$ac_ext <<_ACEOF
14244 /* confdefs.h.  */
14245 _ACEOF
14246 cat confdefs.h >>conftest.$ac_ext
14247 cat >>conftest.$ac_ext <<_ACEOF
14248 /* end confdefs.h.  */
14249
14250 /* Override any GCC internal prototype to avoid an error.
14251    Use char because int might match the return type of a GCC
14252    builtin and then its argument prototype would still apply.  */
14253 #ifdef __cplusplus
14254 extern "C"
14255 #endif
14256 char pthread_rwlock_init ();
14257 int
14258 main ()
14259 {
14260 return pthread_rwlock_init ();
14261   ;
14262   return 0;
14263 }
14264 _ACEOF
14265 for ac_lib in '' pthread; do
14266   if test -z "$ac_lib"; then
14267     ac_res="none required"
14268   else
14269     ac_res=-l$ac_lib
14270     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14271   fi
14272   rm -f conftest.$ac_objext conftest$ac_exeext
14273 if { (ac_try="$ac_link"
14274 case "(($ac_try" in
14275   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14276   *) ac_try_echo=$ac_try;;
14277 esac
14278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14279   (eval "$ac_link") 2>conftest.er1
14280   ac_status=$?
14281   grep -v '^ *+' conftest.er1 >conftest.err
14282   rm -f conftest.er1
14283   cat conftest.err >&5
14284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14285   (exit $ac_status); } &&
14286          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14287   { (case "(($ac_try" in
14288   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14289   *) ac_try_echo=$ac_try;;
14290 esac
14291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14292   (eval "$ac_try") 2>&5
14293   ac_status=$?
14294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14295   (exit $ac_status); }; } &&
14296          { ac_try='test -s conftest$ac_exeext'
14297   { (case "(($ac_try" in
14298   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14299   *) ac_try_echo=$ac_try;;
14300 esac
14301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14302   (eval "$ac_try") 2>&5
14303   ac_status=$?
14304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14305   (exit $ac_status); }; }; then
14306   ac_cv_search_pthread_rwlock_init=$ac_res
14307 else
14308   echo "$as_me: failed program was:" >&5
14309 sed 's/^/| /' conftest.$ac_ext >&5
14310
14311
14312 fi
14313
14314 rm -f core conftest.err conftest.$ac_objext \
14315       conftest$ac_exeext
14316   if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
14317   break
14318 fi
14319 done
14320 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
14321   :
14322 else
14323   ac_cv_search_pthread_rwlock_init=no
14324 fi
14325 rm conftest.$ac_ext
14326 LIBS=$ac_func_search_save_LIBS
14327 fi
14328 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
14329 echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
14330 ac_res=$ac_cv_search_pthread_rwlock_init
14331 if test "$ac_res" != no; then
14332   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14333
14334 cat >>confdefs.h <<\_ACEOF
14335 #define HAVE_PTHREAD_RWLOCK_INIT 1
14336 _ACEOF
14337
14338 fi
14339
14340   { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
14341 echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
14342 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
14343   echo $ECHO_N "(cached) $ECHO_C" >&6
14344 else
14345   ac_func_search_save_LIBS=$LIBS
14346 cat >conftest.$ac_ext <<_ACEOF
14347 /* confdefs.h.  */
14348 _ACEOF
14349 cat confdefs.h >>conftest.$ac_ext
14350 cat >>conftest.$ac_ext <<_ACEOF
14351 /* end confdefs.h.  */
14352
14353 /* Override any GCC internal prototype to avoid an error.
14354    Use char because int might match the return type of a GCC
14355    builtin and then its argument prototype would still apply.  */
14356 #ifdef __cplusplus
14357 extern "C"
14358 #endif
14359 char pthread_getspecific ();
14360 int
14361 main ()
14362 {
14363 return pthread_getspecific ();
14364   ;
14365   return 0;
14366 }
14367 _ACEOF
14368 for ac_lib in '' pthread; do
14369   if test -z "$ac_lib"; then
14370     ac_res="none required"
14371   else
14372     ac_res=-l$ac_lib
14373     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14374   fi
14375   rm -f conftest.$ac_objext conftest$ac_exeext
14376 if { (ac_try="$ac_link"
14377 case "(($ac_try" in
14378   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14379   *) ac_try_echo=$ac_try;;
14380 esac
14381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14382   (eval "$ac_link") 2>conftest.er1
14383   ac_status=$?
14384   grep -v '^ *+' conftest.er1 >conftest.err
14385   rm -f conftest.er1
14386   cat conftest.err >&5
14387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14388   (exit $ac_status); } &&
14389          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14390   { (case "(($ac_try" in
14391   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14392   *) ac_try_echo=$ac_try;;
14393 esac
14394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14395   (eval "$ac_try") 2>&5
14396   ac_status=$?
14397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14398   (exit $ac_status); }; } &&
14399          { ac_try='test -s conftest$ac_exeext'
14400   { (case "(($ac_try" in
14401   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14402   *) ac_try_echo=$ac_try;;
14403 esac
14404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14405   (eval "$ac_try") 2>&5
14406   ac_status=$?
14407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14408   (exit $ac_status); }; }; then
14409   ac_cv_search_pthread_getspecific=$ac_res
14410 else
14411   echo "$as_me: failed program was:" >&5
14412 sed 's/^/| /' conftest.$ac_ext >&5
14413
14414
14415 fi
14416
14417 rm -f core conftest.err conftest.$ac_objext \
14418       conftest$ac_exeext
14419   if test "${ac_cv_search_pthread_getspecific+set}" = set; then
14420   break
14421 fi
14422 done
14423 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
14424   :
14425 else
14426   ac_cv_search_pthread_getspecific=no
14427 fi
14428 rm conftest.$ac_ext
14429 LIBS=$ac_func_search_save_LIBS
14430 fi
14431 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
14432 echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
14433 ac_res=$ac_cv_search_pthread_getspecific
14434 if test "$ac_res" != no; then
14435   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14436
14437 cat >>confdefs.h <<\_ACEOF
14438 #define HAVE_PTHREAD_GETSPECIFIC 1
14439 _ACEOF
14440
14441 fi
14442
14443 fi
14444
14445
14446 # Check whether --with-udis86 was given.
14447 if test "${with_udis86+set}" = set; then
14448   withval=$with_udis86;
14449       USE_UDIS86=1
14450
14451       case "$withval" in
14452         /usr/lib|yes) ;;
14453         *) LDFLAGS="$LDFLAGS -L${withval}" ;;
14454       esac
14455
14456 { echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
14457 echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
14458 if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
14459   echo $ECHO_N "(cached) $ECHO_C" >&6
14460 else
14461   ac_check_lib_save_LIBS=$LIBS
14462 LIBS="-ludis86  $LIBS"
14463 cat >conftest.$ac_ext <<_ACEOF
14464 /* confdefs.h.  */
14465 _ACEOF
14466 cat confdefs.h >>conftest.$ac_ext
14467 cat >>conftest.$ac_ext <<_ACEOF
14468 /* end confdefs.h.  */
14469
14470 /* Override any GCC internal prototype to avoid an error.
14471    Use char because int might match the return type of a GCC
14472    builtin and then its argument prototype would still apply.  */
14473 #ifdef __cplusplus
14474 extern "C"
14475 #endif
14476 char ud_init ();
14477 int
14478 main ()
14479 {
14480 return ud_init ();
14481   ;
14482   return 0;
14483 }
14484 _ACEOF
14485 rm -f conftest.$ac_objext conftest$ac_exeext
14486 if { (ac_try="$ac_link"
14487 case "(($ac_try" in
14488   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14489   *) ac_try_echo=$ac_try;;
14490 esac
14491 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14492   (eval "$ac_link") 2>conftest.er1
14493   ac_status=$?
14494   grep -v '^ *+' conftest.er1 >conftest.err
14495   rm -f conftest.er1
14496   cat conftest.err >&5
14497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14498   (exit $ac_status); } &&
14499          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14500   { (case "(($ac_try" in
14501   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14502   *) ac_try_echo=$ac_try;;
14503 esac
14504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14505   (eval "$ac_try") 2>&5
14506   ac_status=$?
14507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14508   (exit $ac_status); }; } &&
14509          { ac_try='test -s conftest$ac_exeext'
14510   { (case "(($ac_try" in
14511   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14512   *) ac_try_echo=$ac_try;;
14513 esac
14514 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14515   (eval "$ac_try") 2>&5
14516   ac_status=$?
14517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14518   (exit $ac_status); }; }; then
14519   ac_cv_lib_udis86_ud_init=yes
14520 else
14521   echo "$as_me: failed program was:" >&5
14522 sed 's/^/| /' conftest.$ac_ext >&5
14523
14524         ac_cv_lib_udis86_ud_init=no
14525 fi
14526
14527 rm -f core conftest.err conftest.$ac_objext \
14528       conftest$ac_exeext conftest.$ac_ext
14529 LIBS=$ac_check_lib_save_LIBS
14530 fi
14531 { echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
14532 echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
14533 if test $ac_cv_lib_udis86_ud_init = yes; then
14534   cat >>confdefs.h <<_ACEOF
14535 #define HAVE_LIBUDIS86 1
14536 _ACEOF
14537
14538   LIBS="-ludis86 $LIBS"
14539
14540 else
14541
14542         echo "Error! You need to have libudis86 around."
14543         exit -1
14544
14545 fi
14546
14547
14548 else
14549   USE_UDIS86=0
14550
14551 fi
14552
14553
14554 cat >>confdefs.h <<_ACEOF
14555 #define USE_UDIS86 $USE_UDIS86
14556 _ACEOF
14557
14558
14559
14560 # Check whether --with-oprofile was given.
14561 if test "${with_oprofile+set}" = set; then
14562   withval=$with_oprofile;
14563       USE_OPROFILE=1
14564
14565       case "$withval" in
14566         /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
14567         no) llvm_cv_oppath=
14568             USE_OPROFILE=0
14569  ;;
14570         *) llvm_cv_oppath="${withval}/lib/oprofile"
14571            CPPFLAGS="-I${withval}/include";;
14572       esac
14573       if test -n "$llvm_cv_oppath" ; then
14574         LIBS="$LIBS -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
14575                                         { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
14576 echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
14577 if test "${ac_cv_search_bfd_init+set}" = set; then
14578   echo $ECHO_N "(cached) $ECHO_C" >&6
14579 else
14580   ac_func_search_save_LIBS=$LIBS
14581 cat >conftest.$ac_ext <<_ACEOF
14582 /* confdefs.h.  */
14583 _ACEOF
14584 cat confdefs.h >>conftest.$ac_ext
14585 cat >>conftest.$ac_ext <<_ACEOF
14586 /* end confdefs.h.  */
14587
14588 /* Override any GCC internal prototype to avoid an error.
14589    Use char because int might match the return type of a GCC
14590    builtin and then its argument prototype would still apply.  */
14591 #ifdef __cplusplus
14592 extern "C"
14593 #endif
14594 char bfd_init ();
14595 int
14596 main ()
14597 {
14598 return bfd_init ();
14599   ;
14600   return 0;
14601 }
14602 _ACEOF
14603 for ac_lib in '' bfd; do
14604   if test -z "$ac_lib"; then
14605     ac_res="none required"
14606   else
14607     ac_res=-l$ac_lib
14608     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14609   fi
14610   rm -f conftest.$ac_objext conftest$ac_exeext
14611 if { (ac_try="$ac_link"
14612 case "(($ac_try" in
14613   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14614   *) ac_try_echo=$ac_try;;
14615 esac
14616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14617   (eval "$ac_link") 2>conftest.er1
14618   ac_status=$?
14619   grep -v '^ *+' conftest.er1 >conftest.err
14620   rm -f conftest.er1
14621   cat conftest.err >&5
14622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14623   (exit $ac_status); } &&
14624          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14625   { (case "(($ac_try" in
14626   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14627   *) ac_try_echo=$ac_try;;
14628 esac
14629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14630   (eval "$ac_try") 2>&5
14631   ac_status=$?
14632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14633   (exit $ac_status); }; } &&
14634          { ac_try='test -s conftest$ac_exeext'
14635   { (case "(($ac_try" in
14636   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14637   *) ac_try_echo=$ac_try;;
14638 esac
14639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14640   (eval "$ac_try") 2>&5
14641   ac_status=$?
14642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14643   (exit $ac_status); }; }; then
14644   ac_cv_search_bfd_init=$ac_res
14645 else
14646   echo "$as_me: failed program was:" >&5
14647 sed 's/^/| /' conftest.$ac_ext >&5
14648
14649
14650 fi
14651
14652 rm -f core conftest.err conftest.$ac_objext \
14653       conftest$ac_exeext
14654   if test "${ac_cv_search_bfd_init+set}" = set; then
14655   break
14656 fi
14657 done
14658 if test "${ac_cv_search_bfd_init+set}" = set; then
14659   :
14660 else
14661   ac_cv_search_bfd_init=no
14662 fi
14663 rm conftest.$ac_ext
14664 LIBS=$ac_func_search_save_LIBS
14665 fi
14666 { echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
14667 echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
14668 ac_res=$ac_cv_search_bfd_init
14669 if test "$ac_res" != no; then
14670   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14671
14672 fi
14673
14674         { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
14675 echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
14676 if test "${ac_cv_search_op_open_agent+set}" = set; then
14677   echo $ECHO_N "(cached) $ECHO_C" >&6
14678 else
14679   ac_func_search_save_LIBS=$LIBS
14680 cat >conftest.$ac_ext <<_ACEOF
14681 /* confdefs.h.  */
14682 _ACEOF
14683 cat confdefs.h >>conftest.$ac_ext
14684 cat >>conftest.$ac_ext <<_ACEOF
14685 /* end confdefs.h.  */
14686
14687 /* Override any GCC internal prototype to avoid an error.
14688    Use char because int might match the return type of a GCC
14689    builtin and then its argument prototype would still apply.  */
14690 #ifdef __cplusplus
14691 extern "C"
14692 #endif
14693 char op_open_agent ();
14694 int
14695 main ()
14696 {
14697 return op_open_agent ();
14698   ;
14699   return 0;
14700 }
14701 _ACEOF
14702 for ac_lib in '' opagent; do
14703   if test -z "$ac_lib"; then
14704     ac_res="none required"
14705   else
14706     ac_res=-l$ac_lib
14707     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14708   fi
14709   rm -f conftest.$ac_objext conftest$ac_exeext
14710 if { (ac_try="$ac_link"
14711 case "(($ac_try" in
14712   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14713   *) ac_try_echo=$ac_try;;
14714 esac
14715 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14716   (eval "$ac_link") 2>conftest.er1
14717   ac_status=$?
14718   grep -v '^ *+' conftest.er1 >conftest.err
14719   rm -f conftest.er1
14720   cat conftest.err >&5
14721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14722   (exit $ac_status); } &&
14723          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14724   { (case "(($ac_try" in
14725   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14726   *) ac_try_echo=$ac_try;;
14727 esac
14728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14729   (eval "$ac_try") 2>&5
14730   ac_status=$?
14731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14732   (exit $ac_status); }; } &&
14733          { ac_try='test -s conftest$ac_exeext'
14734   { (case "(($ac_try" in
14735   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14736   *) ac_try_echo=$ac_try;;
14737 esac
14738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14739   (eval "$ac_try") 2>&5
14740   ac_status=$?
14741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14742   (exit $ac_status); }; }; then
14743   ac_cv_search_op_open_agent=$ac_res
14744 else
14745   echo "$as_me: failed program was:" >&5
14746 sed 's/^/| /' conftest.$ac_ext >&5
14747
14748
14749 fi
14750
14751 rm -f core conftest.err conftest.$ac_objext \
14752       conftest$ac_exeext
14753   if test "${ac_cv_search_op_open_agent+set}" = set; then
14754   break
14755 fi
14756 done
14757 if test "${ac_cv_search_op_open_agent+set}" = set; then
14758   :
14759 else
14760   ac_cv_search_op_open_agent=no
14761 fi
14762 rm conftest.$ac_ext
14763 LIBS=$ac_func_search_save_LIBS
14764 fi
14765 { echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
14766 echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
14767 ac_res=$ac_cv_search_op_open_agent
14768 if test "$ac_res" != no; then
14769   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14770
14771 else
14772
14773           echo "Error! You need to have libopagent around."
14774           exit -1
14775
14776 fi
14777
14778         if test "${ac_cv_header_opagent_h+set}" = set; then
14779   { echo "$as_me:$LINENO: checking for opagent.h" >&5
14780 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
14781 if test "${ac_cv_header_opagent_h+set}" = set; then
14782   echo $ECHO_N "(cached) $ECHO_C" >&6
14783 fi
14784 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
14785 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
14786 else
14787   # Is the header compilable?
14788 { echo "$as_me:$LINENO: checking opagent.h usability" >&5
14789 echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
14790 cat >conftest.$ac_ext <<_ACEOF
14791 /* confdefs.h.  */
14792 _ACEOF
14793 cat confdefs.h >>conftest.$ac_ext
14794 cat >>conftest.$ac_ext <<_ACEOF
14795 /* end confdefs.h.  */
14796 $ac_includes_default
14797 #include <opagent.h>
14798 _ACEOF
14799 rm -f conftest.$ac_objext
14800 if { (ac_try="$ac_compile"
14801 case "(($ac_try" in
14802   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14803   *) ac_try_echo=$ac_try;;
14804 esac
14805 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14806   (eval "$ac_compile") 2>conftest.er1
14807   ac_status=$?
14808   grep -v '^ *+' conftest.er1 >conftest.err
14809   rm -f conftest.er1
14810   cat conftest.err >&5
14811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14812   (exit $ac_status); } &&
14813          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14814   { (case "(($ac_try" in
14815   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14816   *) ac_try_echo=$ac_try;;
14817 esac
14818 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14819   (eval "$ac_try") 2>&5
14820   ac_status=$?
14821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14822   (exit $ac_status); }; } &&
14823          { ac_try='test -s conftest.$ac_objext'
14824   { (case "(($ac_try" in
14825   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14826   *) ac_try_echo=$ac_try;;
14827 esac
14828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14829   (eval "$ac_try") 2>&5
14830   ac_status=$?
14831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14832   (exit $ac_status); }; }; then
14833   ac_header_compiler=yes
14834 else
14835   echo "$as_me: failed program was:" >&5
14836 sed 's/^/| /' conftest.$ac_ext >&5
14837
14838         ac_header_compiler=no
14839 fi
14840
14841 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14842 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14843 echo "${ECHO_T}$ac_header_compiler" >&6; }
14844
14845 # Is the header present?
14846 { echo "$as_me:$LINENO: checking opagent.h presence" >&5
14847 echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
14848 cat >conftest.$ac_ext <<_ACEOF
14849 /* confdefs.h.  */
14850 _ACEOF
14851 cat confdefs.h >>conftest.$ac_ext
14852 cat >>conftest.$ac_ext <<_ACEOF
14853 /* end confdefs.h.  */
14854 #include <opagent.h>
14855 _ACEOF
14856 if { (ac_try="$ac_cpp conftest.$ac_ext"
14857 case "(($ac_try" in
14858   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14859   *) ac_try_echo=$ac_try;;
14860 esac
14861 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14862   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14863   ac_status=$?
14864   grep -v '^ *+' conftest.er1 >conftest.err
14865   rm -f conftest.er1
14866   cat conftest.err >&5
14867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14868   (exit $ac_status); } >/dev/null; then
14869   if test -s conftest.err; then
14870     ac_cpp_err=$ac_c_preproc_warn_flag
14871     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14872   else
14873     ac_cpp_err=
14874   fi
14875 else
14876   ac_cpp_err=yes
14877 fi
14878 if test -z "$ac_cpp_err"; then
14879   ac_header_preproc=yes
14880 else
14881   echo "$as_me: failed program was:" >&5
14882 sed 's/^/| /' conftest.$ac_ext >&5
14883
14884   ac_header_preproc=no
14885 fi
14886
14887 rm -f conftest.err conftest.$ac_ext
14888 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14889 echo "${ECHO_T}$ac_header_preproc" >&6; }
14890
14891 # So?  What about this header?
14892 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14893   yes:no: )
14894     { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
14895 echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14896     { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
14897 echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
14898     ac_header_preproc=yes
14899     ;;
14900   no:yes:* )
14901     { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
14902 echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
14903     { echo "$as_me:$LINENO: WARNING: opagent.h:     check for missing prerequisite headers?" >&5
14904 echo "$as_me: WARNING: opagent.h:     check for missing prerequisite headers?" >&2;}
14905     { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
14906 echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
14907     { echo "$as_me:$LINENO: WARNING: opagent.h:     section \"Present But Cannot Be Compiled\"" >&5
14908 echo "$as_me: WARNING: opagent.h:     section \"Present But Cannot Be Compiled\"" >&2;}
14909     { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
14910 echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
14911     { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
14912 echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
14913     ( cat <<\_ASBOX
14914 ## ----------------------------------- ##
14915 ## Report this to llvmbugs@cs.uiuc.edu ##
14916 ## ----------------------------------- ##
14917 _ASBOX
14918      ) | sed "s/^/$as_me: WARNING:     /" >&2
14919     ;;
14920 esac
14921 { echo "$as_me:$LINENO: checking for opagent.h" >&5
14922 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
14923 if test "${ac_cv_header_opagent_h+set}" = set; then
14924   echo $ECHO_N "(cached) $ECHO_C" >&6
14925 else
14926   ac_cv_header_opagent_h=$ac_header_preproc
14927 fi
14928 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
14929 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
14930
14931 fi
14932 if test $ac_cv_header_opagent_h = yes; then
14933   :
14934 else
14935
14936           echo "Error! You need to have opagent.h around."
14937           exit -1
14938
14939 fi
14940
14941
14942       fi
14943
14944 else
14945
14946       USE_OPROFILE=0
14947
14948
14949 fi
14950
14951
14952 cat >>confdefs.h <<_ACEOF
14953 #define USE_OPROFILE $USE_OPROFILE
14954 _ACEOF
14955
14956
14957
14958
14959
14960
14961
14962
14963 ac_header_dirent=no
14964 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
14965   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
14966 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
14967 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
14968 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14969   echo $ECHO_N "(cached) $ECHO_C" >&6
14970 else
14971   cat >conftest.$ac_ext <<_ACEOF
14972 /* confdefs.h.  */
14973 _ACEOF
14974 cat confdefs.h >>conftest.$ac_ext
14975 cat >>conftest.$ac_ext <<_ACEOF
14976 /* end confdefs.h.  */
14977 #include <sys/types.h>
14978 #include <$ac_hdr>
14979
14980 int
14981 main ()
14982 {
14983 if ((DIR *) 0)
14984 return 0;
14985   ;
14986   return 0;
14987 }
14988 _ACEOF
14989 rm -f conftest.$ac_objext
14990 if { (ac_try="$ac_compile"
14991 case "(($ac_try" in
14992   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14993   *) ac_try_echo=$ac_try;;
14994 esac
14995 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14996   (eval "$ac_compile") 2>conftest.er1
14997   ac_status=$?
14998   grep -v '^ *+' conftest.er1 >conftest.err
14999   rm -f conftest.er1
15000   cat conftest.err >&5
15001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15002   (exit $ac_status); } &&
15003          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15004   { (case "(($ac_try" in
15005   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15006   *) ac_try_echo=$ac_try;;
15007 esac
15008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15009   (eval "$ac_try") 2>&5
15010   ac_status=$?
15011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15012   (exit $ac_status); }; } &&
15013          { ac_try='test -s conftest.$ac_objext'
15014   { (case "(($ac_try" in
15015   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15016   *) ac_try_echo=$ac_try;;
15017 esac
15018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15019   (eval "$ac_try") 2>&5
15020   ac_status=$?
15021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15022   (exit $ac_status); }; }; then
15023   eval "$as_ac_Header=yes"
15024 else
15025   echo "$as_me: failed program was:" >&5
15026 sed 's/^/| /' conftest.$ac_ext >&5
15027
15028         eval "$as_ac_Header=no"
15029 fi
15030
15031 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15032 fi
15033 ac_res=`eval echo '${'$as_ac_Header'}'`
15034                { echo "$as_me:$LINENO: result: $ac_res" >&5
15035 echo "${ECHO_T}$ac_res" >&6; }
15036 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15037   cat >>confdefs.h <<_ACEOF
15038 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
15039 _ACEOF
15040
15041 ac_header_dirent=$ac_hdr; break
15042 fi
15043
15044 done
15045 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
15046 if test $ac_header_dirent = dirent.h; then
15047   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
15048 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
15049 if test "${ac_cv_search_opendir+set}" = set; then
15050   echo $ECHO_N "(cached) $ECHO_C" >&6
15051 else
15052   ac_func_search_save_LIBS=$LIBS
15053 cat >conftest.$ac_ext <<_ACEOF
15054 /* confdefs.h.  */
15055 _ACEOF
15056 cat confdefs.h >>conftest.$ac_ext
15057 cat >>conftest.$ac_ext <<_ACEOF
15058 /* end confdefs.h.  */
15059
15060 /* Override any GCC internal prototype to avoid an error.
15061    Use char because int might match the return type of a GCC
15062    builtin and then its argument prototype would still apply.  */
15063 #ifdef __cplusplus
15064 extern "C"
15065 #endif
15066 char opendir ();
15067 int
15068 main ()
15069 {
15070 return opendir ();
15071   ;
15072   return 0;
15073 }
15074 _ACEOF
15075 for ac_lib in '' dir; do
15076   if test -z "$ac_lib"; then
15077     ac_res="none required"
15078   else
15079     ac_res=-l$ac_lib
15080     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
15081   fi
15082   rm -f conftest.$ac_objext conftest$ac_exeext
15083 if { (ac_try="$ac_link"
15084 case "(($ac_try" in
15085   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15086   *) ac_try_echo=$ac_try;;
15087 esac
15088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15089   (eval "$ac_link") 2>conftest.er1
15090   ac_status=$?
15091   grep -v '^ *+' conftest.er1 >conftest.err
15092   rm -f conftest.er1
15093   cat conftest.err >&5
15094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15095   (exit $ac_status); } &&
15096          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15097   { (case "(($ac_try" in
15098   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15099   *) ac_try_echo=$ac_try;;
15100 esac
15101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15102   (eval "$ac_try") 2>&5
15103   ac_status=$?
15104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15105   (exit $ac_status); }; } &&
15106          { ac_try='test -s conftest$ac_exeext'
15107   { (case "(($ac_try" in
15108   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15109   *) ac_try_echo=$ac_try;;
15110 esac
15111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15112   (eval "$ac_try") 2>&5
15113   ac_status=$?
15114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15115   (exit $ac_status); }; }; then
15116   ac_cv_search_opendir=$ac_res
15117 else
15118   echo "$as_me: failed program was:" >&5
15119 sed 's/^/| /' conftest.$ac_ext >&5
15120
15121
15122 fi
15123
15124 rm -f core conftest.err conftest.$ac_objext \
15125       conftest$ac_exeext
15126   if test "${ac_cv_search_opendir+set}" = set; then
15127   break
15128 fi
15129 done
15130 if test "${ac_cv_search_opendir+set}" = set; then
15131   :
15132 else
15133   ac_cv_search_opendir=no
15134 fi
15135 rm conftest.$ac_ext
15136 LIBS=$ac_func_search_save_LIBS
15137 fi
15138 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
15139 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
15140 ac_res=$ac_cv_search_opendir
15141 if test "$ac_res" != no; then
15142   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15143
15144 fi
15145
15146 else
15147   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
15148 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
15149 if test "${ac_cv_search_opendir+set}" = set; then
15150   echo $ECHO_N "(cached) $ECHO_C" >&6
15151 else
15152   ac_func_search_save_LIBS=$LIBS
15153 cat >conftest.$ac_ext <<_ACEOF
15154 /* confdefs.h.  */
15155 _ACEOF
15156 cat confdefs.h >>conftest.$ac_ext
15157 cat >>conftest.$ac_ext <<_ACEOF
15158 /* end confdefs.h.  */
15159
15160 /* Override any GCC internal prototype to avoid an error.
15161    Use char because int might match the return type of a GCC
15162    builtin and then its argument prototype would still apply.  */
15163 #ifdef __cplusplus
15164 extern "C"
15165 #endif
15166 char opendir ();
15167 int
15168 main ()
15169 {
15170 return opendir ();
15171   ;
15172   return 0;
15173 }
15174 _ACEOF
15175 for ac_lib in '' x; do
15176   if test -z "$ac_lib"; then
15177     ac_res="none required"
15178   else
15179     ac_res=-l$ac_lib
15180     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
15181   fi
15182   rm -f conftest.$ac_objext conftest$ac_exeext
15183 if { (ac_try="$ac_link"
15184 case "(($ac_try" in
15185   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15186   *) ac_try_echo=$ac_try;;
15187 esac
15188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15189   (eval "$ac_link") 2>conftest.er1
15190   ac_status=$?
15191   grep -v '^ *+' conftest.er1 >conftest.err
15192   rm -f conftest.er1
15193   cat conftest.err >&5
15194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15195   (exit $ac_status); } &&
15196          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15197   { (case "(($ac_try" in
15198   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15199   *) ac_try_echo=$ac_try;;
15200 esac
15201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15202   (eval "$ac_try") 2>&5
15203   ac_status=$?
15204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15205   (exit $ac_status); }; } &&
15206          { ac_try='test -s conftest$ac_exeext'
15207   { (case "(($ac_try" in
15208   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15209   *) ac_try_echo=$ac_try;;
15210 esac
15211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15212   (eval "$ac_try") 2>&5
15213   ac_status=$?
15214   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15215   (exit $ac_status); }; }; then
15216   ac_cv_search_opendir=$ac_res
15217 else
15218   echo "$as_me: failed program was:" >&5
15219 sed 's/^/| /' conftest.$ac_ext >&5
15220
15221
15222 fi
15223
15224 rm -f core conftest.err conftest.$ac_objext \
15225       conftest$ac_exeext
15226   if test "${ac_cv_search_opendir+set}" = set; then
15227   break
15228 fi
15229 done
15230 if test "${ac_cv_search_opendir+set}" = set; then
15231   :
15232 else
15233   ac_cv_search_opendir=no
15234 fi
15235 rm conftest.$ac_ext
15236 LIBS=$ac_func_search_save_LIBS
15237 fi
15238 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
15239 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
15240 ac_res=$ac_cv_search_opendir
15241 if test "$ac_res" != no; then
15242   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15243
15244 fi
15245
15246 fi
15247
15248 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
15249 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
15250 if test "${ac_cv_header_mmap_anon+set}" = set; then
15251   echo $ECHO_N "(cached) $ECHO_C" >&6
15252 else
15253    ac_ext=c
15254 ac_cpp='$CPP $CPPFLAGS'
15255 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15256 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15257 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15258
15259   cat >conftest.$ac_ext <<_ACEOF
15260 /* confdefs.h.  */
15261 _ACEOF
15262 cat confdefs.h >>conftest.$ac_ext
15263 cat >>conftest.$ac_ext <<_ACEOF
15264 /* end confdefs.h.  */
15265 #include <sys/mman.h>
15266 #include <unistd.h>
15267 #include <fcntl.h>
15268 int
15269 main ()
15270 {
15271 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
15272   ;
15273   return 0;
15274 }
15275 _ACEOF
15276 rm -f conftest.$ac_objext
15277 if { (ac_try="$ac_compile"
15278 case "(($ac_try" in
15279   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15280   *) ac_try_echo=$ac_try;;
15281 esac
15282 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15283   (eval "$ac_compile") 2>conftest.er1
15284   ac_status=$?
15285   grep -v '^ *+' conftest.er1 >conftest.err
15286   rm -f conftest.er1
15287   cat conftest.err >&5
15288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15289   (exit $ac_status); } &&
15290          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15291   { (case "(($ac_try" in
15292   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15293   *) ac_try_echo=$ac_try;;
15294 esac
15295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15296   (eval "$ac_try") 2>&5
15297   ac_status=$?
15298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15299   (exit $ac_status); }; } &&
15300          { ac_try='test -s conftest.$ac_objext'
15301   { (case "(($ac_try" in
15302   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15303   *) ac_try_echo=$ac_try;;
15304 esac
15305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15306   (eval "$ac_try") 2>&5
15307   ac_status=$?
15308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15309   (exit $ac_status); }; }; then
15310   ac_cv_header_mmap_anon=yes
15311 else
15312   echo "$as_me: failed program was:" >&5
15313 sed 's/^/| /' conftest.$ac_ext >&5
15314
15315         ac_cv_header_mmap_anon=no
15316 fi
15317
15318 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15319   ac_ext=c
15320 ac_cpp='$CPP $CPPFLAGS'
15321 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15322 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15323 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15324
15325
15326 fi
15327 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
15328 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
15329 if test "$ac_cv_header_mmap_anon" = yes; then
15330
15331 cat >>confdefs.h <<\_ACEOF
15332 #define HAVE_MMAP_ANONYMOUS 1
15333 _ACEOF
15334
15335 fi
15336
15337 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
15338 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
15339 if test "${ac_cv_header_stat_broken+set}" = set; then
15340   echo $ECHO_N "(cached) $ECHO_C" >&6
15341 else
15342   cat >conftest.$ac_ext <<_ACEOF
15343 /* confdefs.h.  */
15344 _ACEOF
15345 cat confdefs.h >>conftest.$ac_ext
15346 cat >>conftest.$ac_ext <<_ACEOF
15347 /* end confdefs.h.  */
15348 #include <sys/types.h>
15349 #include <sys/stat.h>
15350
15351 #if defined S_ISBLK && defined S_IFDIR
15352 # if S_ISBLK (S_IFDIR)
15353 You lose.
15354 # endif
15355 #endif
15356
15357 #if defined S_ISBLK && defined S_IFCHR
15358 # if S_ISBLK (S_IFCHR)
15359 You lose.
15360 # endif
15361 #endif
15362
15363 #if defined S_ISLNK && defined S_IFREG
15364 # if S_ISLNK (S_IFREG)
15365 You lose.
15366 # endif
15367 #endif
15368
15369 #if defined S_ISSOCK && defined S_IFREG
15370 # if S_ISSOCK (S_IFREG)
15371 You lose.
15372 # endif
15373 #endif
15374
15375 _ACEOF
15376 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15377   $EGREP "You lose" >/dev/null 2>&1; then
15378   ac_cv_header_stat_broken=yes
15379 else
15380   ac_cv_header_stat_broken=no
15381 fi
15382 rm -f conftest*
15383
15384 fi
15385 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
15386 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
15387 if test $ac_cv_header_stat_broken = yes; then
15388
15389 cat >>confdefs.h <<\_ACEOF
15390 #define STAT_MACROS_BROKEN 1
15391 _ACEOF
15392
15393 fi
15394
15395 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
15396 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
15397 if test "${ac_cv_header_stdc+set}" = set; then
15398   echo $ECHO_N "(cached) $ECHO_C" >&6
15399 else
15400   cat >conftest.$ac_ext <<_ACEOF
15401 /* confdefs.h.  */
15402 _ACEOF
15403 cat confdefs.h >>conftest.$ac_ext
15404 cat >>conftest.$ac_ext <<_ACEOF
15405 /* end confdefs.h.  */
15406 #include <stdlib.h>
15407 #include <stdarg.h>
15408 #include <string.h>
15409 #include <float.h>
15410
15411 int
15412 main ()
15413 {
15414
15415   ;
15416   return 0;
15417 }
15418 _ACEOF
15419 rm -f conftest.$ac_objext
15420 if { (ac_try="$ac_compile"
15421 case "(($ac_try" in
15422   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15423   *) ac_try_echo=$ac_try;;
15424 esac
15425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15426   (eval "$ac_compile") 2>conftest.er1
15427   ac_status=$?
15428   grep -v '^ *+' conftest.er1 >conftest.err
15429   rm -f conftest.er1
15430   cat conftest.err >&5
15431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15432   (exit $ac_status); } &&
15433          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15434   { (case "(($ac_try" in
15435   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15436   *) ac_try_echo=$ac_try;;
15437 esac
15438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15439   (eval "$ac_try") 2>&5
15440   ac_status=$?
15441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15442   (exit $ac_status); }; } &&
15443          { ac_try='test -s conftest.$ac_objext'
15444   { (case "(($ac_try" in
15445   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15446   *) ac_try_echo=$ac_try;;
15447 esac
15448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15449   (eval "$ac_try") 2>&5
15450   ac_status=$?
15451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15452   (exit $ac_status); }; }; then
15453   ac_cv_header_stdc=yes
15454 else
15455   echo "$as_me: failed program was:" >&5
15456 sed 's/^/| /' conftest.$ac_ext >&5
15457
15458         ac_cv_header_stdc=no
15459 fi
15460
15461 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15462
15463 if test $ac_cv_header_stdc = yes; then
15464   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
15465   cat >conftest.$ac_ext <<_ACEOF
15466 /* confdefs.h.  */
15467 _ACEOF
15468 cat confdefs.h >>conftest.$ac_ext
15469 cat >>conftest.$ac_ext <<_ACEOF
15470 /* end confdefs.h.  */
15471 #include <string.h>
15472
15473 _ACEOF
15474 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15475   $EGREP "memchr" >/dev/null 2>&1; then
15476   :
15477 else
15478   ac_cv_header_stdc=no
15479 fi
15480 rm -f conftest*
15481
15482 fi
15483
15484 if test $ac_cv_header_stdc = yes; then
15485   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
15486   cat >conftest.$ac_ext <<_ACEOF
15487 /* confdefs.h.  */
15488 _ACEOF
15489 cat confdefs.h >>conftest.$ac_ext
15490 cat >>conftest.$ac_ext <<_ACEOF
15491 /* end confdefs.h.  */
15492 #include <stdlib.h>
15493
15494 _ACEOF
15495 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15496   $EGREP "free" >/dev/null 2>&1; then
15497   :
15498 else
15499   ac_cv_header_stdc=no
15500 fi
15501 rm -f conftest*
15502
15503 fi
15504
15505 if test $ac_cv_header_stdc = yes; then
15506   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
15507   if test "$cross_compiling" = yes; then
15508   :
15509 else
15510   cat >conftest.$ac_ext <<_ACEOF
15511 /* confdefs.h.  */
15512 _ACEOF
15513 cat confdefs.h >>conftest.$ac_ext
15514 cat >>conftest.$ac_ext <<_ACEOF
15515 /* end confdefs.h.  */
15516 #include <ctype.h>
15517 #include <stdlib.h>
15518 #if ((' ' & 0x0FF) == 0x020)
15519 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
15520 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
15521 #else
15522 # define ISLOWER(c) \
15523                    (('a' <= (c) && (c) <= 'i') \
15524                      || ('j' <= (c) && (c) <= 'r') \
15525                      || ('s' <= (c) && (c) <= 'z'))
15526 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
15527 #endif
15528
15529 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
15530 int
15531 main ()
15532 {
15533   int i;
15534   for (i = 0; i < 256; i++)
15535     if (XOR (islower (i), ISLOWER (i))
15536         || toupper (i) != TOUPPER (i))
15537       return 2;
15538   return 0;
15539 }
15540 _ACEOF
15541 rm -f conftest$ac_exeext
15542 if { (ac_try="$ac_link"
15543 case "(($ac_try" in
15544   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15545   *) ac_try_echo=$ac_try;;
15546 esac
15547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15548   (eval "$ac_link") 2>&5
15549   ac_status=$?
15550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15551   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15552   { (case "(($ac_try" in
15553   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15554   *) ac_try_echo=$ac_try;;
15555 esac
15556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15557   (eval "$ac_try") 2>&5
15558   ac_status=$?
15559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15560   (exit $ac_status); }; }; then
15561   :
15562 else
15563   echo "$as_me: program exited with status $ac_status" >&5
15564 echo "$as_me: failed program was:" >&5
15565 sed 's/^/| /' conftest.$ac_ext >&5
15566
15567 ( exit $ac_status )
15568 ac_cv_header_stdc=no
15569 fi
15570 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15571 fi
15572
15573
15574 fi
15575 fi
15576 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
15577 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
15578 if test $ac_cv_header_stdc = yes; then
15579
15580 cat >>confdefs.h <<\_ACEOF
15581 #define STDC_HEADERS 1
15582 _ACEOF
15583
15584 fi
15585
15586 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
15587 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
15588 if test "${ac_cv_header_sys_wait_h+set}" = set; then
15589   echo $ECHO_N "(cached) $ECHO_C" >&6
15590 else
15591   cat >conftest.$ac_ext <<_ACEOF
15592 /* confdefs.h.  */
15593 _ACEOF
15594 cat confdefs.h >>conftest.$ac_ext
15595 cat >>conftest.$ac_ext <<_ACEOF
15596 /* end confdefs.h.  */
15597 #include <sys/types.h>
15598 #include <sys/wait.h>
15599 #ifndef WEXITSTATUS
15600 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
15601 #endif
15602 #ifndef WIFEXITED
15603 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
15604 #endif
15605
15606 int
15607 main ()
15608 {
15609   int s;
15610   wait (&s);
15611   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
15612   ;
15613   return 0;
15614 }
15615 _ACEOF
15616 rm -f conftest.$ac_objext
15617 if { (ac_try="$ac_compile"
15618 case "(($ac_try" in
15619   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15620   *) ac_try_echo=$ac_try;;
15621 esac
15622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15623   (eval "$ac_compile") 2>conftest.er1
15624   ac_status=$?
15625   grep -v '^ *+' conftest.er1 >conftest.err
15626   rm -f conftest.er1
15627   cat conftest.err >&5
15628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15629   (exit $ac_status); } &&
15630          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15631   { (case "(($ac_try" in
15632   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15633   *) ac_try_echo=$ac_try;;
15634 esac
15635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15636   (eval "$ac_try") 2>&5
15637   ac_status=$?
15638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15639   (exit $ac_status); }; } &&
15640          { ac_try='test -s conftest.$ac_objext'
15641   { (case "(($ac_try" in
15642   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15643   *) ac_try_echo=$ac_try;;
15644 esac
15645 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15646   (eval "$ac_try") 2>&5
15647   ac_status=$?
15648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15649   (exit $ac_status); }; }; then
15650   ac_cv_header_sys_wait_h=yes
15651 else
15652   echo "$as_me: failed program was:" >&5
15653 sed 's/^/| /' conftest.$ac_ext >&5
15654
15655         ac_cv_header_sys_wait_h=no
15656 fi
15657
15658 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15659 fi
15660 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
15661 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
15662 if test $ac_cv_header_sys_wait_h = yes; then
15663
15664 cat >>confdefs.h <<\_ACEOF
15665 #define HAVE_SYS_WAIT_H 1
15666 _ACEOF
15667
15668 fi
15669
15670 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
15671 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
15672 if test "${ac_cv_header_time+set}" = set; then
15673   echo $ECHO_N "(cached) $ECHO_C" >&6
15674 else
15675   cat >conftest.$ac_ext <<_ACEOF
15676 /* confdefs.h.  */
15677 _ACEOF
15678 cat confdefs.h >>conftest.$ac_ext
15679 cat >>conftest.$ac_ext <<_ACEOF
15680 /* end confdefs.h.  */
15681 #include <sys/types.h>
15682 #include <sys/time.h>
15683 #include <time.h>
15684
15685 int
15686 main ()
15687 {
15688 if ((struct tm *) 0)
15689 return 0;
15690   ;
15691   return 0;
15692 }
15693 _ACEOF
15694 rm -f conftest.$ac_objext
15695 if { (ac_try="$ac_compile"
15696 case "(($ac_try" in
15697   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15698   *) ac_try_echo=$ac_try;;
15699 esac
15700 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15701   (eval "$ac_compile") 2>conftest.er1
15702   ac_status=$?
15703   grep -v '^ *+' conftest.er1 >conftest.err
15704   rm -f conftest.er1
15705   cat conftest.err >&5
15706   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15707   (exit $ac_status); } &&
15708          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15709   { (case "(($ac_try" in
15710   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15711   *) ac_try_echo=$ac_try;;
15712 esac
15713 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15714   (eval "$ac_try") 2>&5
15715   ac_status=$?
15716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15717   (exit $ac_status); }; } &&
15718          { ac_try='test -s conftest.$ac_objext'
15719   { (case "(($ac_try" in
15720   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15721   *) ac_try_echo=$ac_try;;
15722 esac
15723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15724   (eval "$ac_try") 2>&5
15725   ac_status=$?
15726   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15727   (exit $ac_status); }; }; then
15728   ac_cv_header_time=yes
15729 else
15730   echo "$as_me: failed program was:" >&5
15731 sed 's/^/| /' conftest.$ac_ext >&5
15732
15733         ac_cv_header_time=no
15734 fi
15735
15736 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15737 fi
15738 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
15739 echo "${ECHO_T}$ac_cv_header_time" >&6; }
15740 if test $ac_cv_header_time = yes; then
15741
15742 cat >>confdefs.h <<\_ACEOF
15743 #define TIME_WITH_SYS_TIME 1
15744 _ACEOF
15745
15746 fi
15747
15748
15749
15750
15751
15752
15753
15754
15755 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
15756 do
15757 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15758 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15759   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15760 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15761 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15762   echo $ECHO_N "(cached) $ECHO_C" >&6
15763 fi
15764 ac_res=`eval echo '${'$as_ac_Header'}'`
15765                { echo "$as_me:$LINENO: result: $ac_res" >&5
15766 echo "${ECHO_T}$ac_res" >&6; }
15767 else
15768   # Is the header compilable?
15769 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15770 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15771 cat >conftest.$ac_ext <<_ACEOF
15772 /* confdefs.h.  */
15773 _ACEOF
15774 cat confdefs.h >>conftest.$ac_ext
15775 cat >>conftest.$ac_ext <<_ACEOF
15776 /* end confdefs.h.  */
15777 $ac_includes_default
15778 #include <$ac_header>
15779 _ACEOF
15780 rm -f conftest.$ac_objext
15781 if { (ac_try="$ac_compile"
15782 case "(($ac_try" in
15783   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15784   *) ac_try_echo=$ac_try;;
15785 esac
15786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15787   (eval "$ac_compile") 2>conftest.er1
15788   ac_status=$?
15789   grep -v '^ *+' conftest.er1 >conftest.err
15790   rm -f conftest.er1
15791   cat conftest.err >&5
15792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15793   (exit $ac_status); } &&
15794          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15795   { (case "(($ac_try" in
15796   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15797   *) ac_try_echo=$ac_try;;
15798 esac
15799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15800   (eval "$ac_try") 2>&5
15801   ac_status=$?
15802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15803   (exit $ac_status); }; } &&
15804          { ac_try='test -s conftest.$ac_objext'
15805   { (case "(($ac_try" in
15806   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15807   *) ac_try_echo=$ac_try;;
15808 esac
15809 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15810   (eval "$ac_try") 2>&5
15811   ac_status=$?
15812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15813   (exit $ac_status); }; }; then
15814   ac_header_compiler=yes
15815 else
15816   echo "$as_me: failed program was:" >&5
15817 sed 's/^/| /' conftest.$ac_ext >&5
15818
15819         ac_header_compiler=no
15820 fi
15821
15822 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15823 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15824 echo "${ECHO_T}$ac_header_compiler" >&6; }
15825
15826 # Is the header present?
15827 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15828 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15829 cat >conftest.$ac_ext <<_ACEOF
15830 /* confdefs.h.  */
15831 _ACEOF
15832 cat confdefs.h >>conftest.$ac_ext
15833 cat >>conftest.$ac_ext <<_ACEOF
15834 /* end confdefs.h.  */
15835 #include <$ac_header>
15836 _ACEOF
15837 if { (ac_try="$ac_cpp conftest.$ac_ext"
15838 case "(($ac_try" in
15839   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15840   *) ac_try_echo=$ac_try;;
15841 esac
15842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15843   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15844   ac_status=$?
15845   grep -v '^ *+' conftest.er1 >conftest.err
15846   rm -f conftest.er1
15847   cat conftest.err >&5
15848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15849   (exit $ac_status); } >/dev/null; then
15850   if test -s conftest.err; then
15851     ac_cpp_err=$ac_c_preproc_warn_flag
15852     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15853   else
15854     ac_cpp_err=
15855   fi
15856 else
15857   ac_cpp_err=yes
15858 fi
15859 if test -z "$ac_cpp_err"; then
15860   ac_header_preproc=yes
15861 else
15862   echo "$as_me: failed program was:" >&5
15863 sed 's/^/| /' conftest.$ac_ext >&5
15864
15865   ac_header_preproc=no
15866 fi
15867
15868 rm -f conftest.err conftest.$ac_ext
15869 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15870 echo "${ECHO_T}$ac_header_preproc" >&6; }
15871
15872 # So?  What about this header?
15873 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15874   yes:no: )
15875     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15876 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15877     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15878 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15879     ac_header_preproc=yes
15880     ;;
15881   no:yes:* )
15882     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15883 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15884     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15885 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15886     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15887 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15888     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15889 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15890     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15891 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15892     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15893 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15894     ( cat <<\_ASBOX
15895 ## ----------------------------------- ##
15896 ## Report this to llvmbugs@cs.uiuc.edu ##
15897 ## ----------------------------------- ##
15898 _ASBOX
15899      ) | sed "s/^/$as_me: WARNING:     /" >&2
15900     ;;
15901 esac
15902 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15903 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15904 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15905   echo $ECHO_N "(cached) $ECHO_C" >&6
15906 else
15907   eval "$as_ac_Header=\$ac_header_preproc"
15908 fi
15909 ac_res=`eval echo '${'$as_ac_Header'}'`
15910                { echo "$as_me:$LINENO: result: $ac_res" >&5
15911 echo "${ECHO_T}$ac_res" >&6; }
15912
15913 fi
15914 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15915   cat >>confdefs.h <<_ACEOF
15916 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15917 _ACEOF
15918
15919 fi
15920
15921 done
15922
15923
15924
15925
15926
15927
15928
15929 for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
15930 do
15931 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15932 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15933   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15934 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15935 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15936   echo $ECHO_N "(cached) $ECHO_C" >&6
15937 fi
15938 ac_res=`eval echo '${'$as_ac_Header'}'`
15939                { echo "$as_me:$LINENO: result: $ac_res" >&5
15940 echo "${ECHO_T}$ac_res" >&6; }
15941 else
15942   # Is the header compilable?
15943 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15944 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15945 cat >conftest.$ac_ext <<_ACEOF
15946 /* confdefs.h.  */
15947 _ACEOF
15948 cat confdefs.h >>conftest.$ac_ext
15949 cat >>conftest.$ac_ext <<_ACEOF
15950 /* end confdefs.h.  */
15951 $ac_includes_default
15952 #include <$ac_header>
15953 _ACEOF
15954 rm -f conftest.$ac_objext
15955 if { (ac_try="$ac_compile"
15956 case "(($ac_try" in
15957   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15958   *) ac_try_echo=$ac_try;;
15959 esac
15960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15961   (eval "$ac_compile") 2>conftest.er1
15962   ac_status=$?
15963   grep -v '^ *+' conftest.er1 >conftest.err
15964   rm -f conftest.er1
15965   cat conftest.err >&5
15966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15967   (exit $ac_status); } &&
15968          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15969   { (case "(($ac_try" in
15970   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15971   *) ac_try_echo=$ac_try;;
15972 esac
15973 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15974   (eval "$ac_try") 2>&5
15975   ac_status=$?
15976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15977   (exit $ac_status); }; } &&
15978          { ac_try='test -s conftest.$ac_objext'
15979   { (case "(($ac_try" in
15980   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15981   *) ac_try_echo=$ac_try;;
15982 esac
15983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15984   (eval "$ac_try") 2>&5
15985   ac_status=$?
15986   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15987   (exit $ac_status); }; }; then
15988   ac_header_compiler=yes
15989 else
15990   echo "$as_me: failed program was:" >&5
15991 sed 's/^/| /' conftest.$ac_ext >&5
15992
15993         ac_header_compiler=no
15994 fi
15995
15996 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15997 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15998 echo "${ECHO_T}$ac_header_compiler" >&6; }
15999
16000 # Is the header present?
16001 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16002 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16003 cat >conftest.$ac_ext <<_ACEOF
16004 /* confdefs.h.  */
16005 _ACEOF
16006 cat confdefs.h >>conftest.$ac_ext
16007 cat >>conftest.$ac_ext <<_ACEOF
16008 /* end confdefs.h.  */
16009 #include <$ac_header>
16010 _ACEOF
16011 if { (ac_try="$ac_cpp conftest.$ac_ext"
16012 case "(($ac_try" in
16013   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16014   *) ac_try_echo=$ac_try;;
16015 esac
16016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16017   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16018   ac_status=$?
16019   grep -v '^ *+' conftest.er1 >conftest.err
16020   rm -f conftest.er1
16021   cat conftest.err >&5
16022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16023   (exit $ac_status); } >/dev/null; then
16024   if test -s conftest.err; then
16025     ac_cpp_err=$ac_c_preproc_warn_flag
16026     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16027   else
16028     ac_cpp_err=
16029   fi
16030 else
16031   ac_cpp_err=yes
16032 fi
16033 if test -z "$ac_cpp_err"; then
16034   ac_header_preproc=yes
16035 else
16036   echo "$as_me: failed program was:" >&5
16037 sed 's/^/| /' conftest.$ac_ext >&5
16038
16039   ac_header_preproc=no
16040 fi
16041
16042 rm -f conftest.err conftest.$ac_ext
16043 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16044 echo "${ECHO_T}$ac_header_preproc" >&6; }
16045
16046 # So?  What about this header?
16047 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16048   yes:no: )
16049     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16050 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16051     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16052 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16053     ac_header_preproc=yes
16054     ;;
16055   no:yes:* )
16056     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16057 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16058     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16059 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16060     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16061 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16062     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16063 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16064     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16065 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16066     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16067 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16068     ( cat <<\_ASBOX
16069 ## ----------------------------------- ##
16070 ## Report this to llvmbugs@cs.uiuc.edu ##
16071 ## ----------------------------------- ##
16072 _ASBOX
16073      ) | sed "s/^/$as_me: WARNING:     /" >&2
16074     ;;
16075 esac
16076 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16077 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16078 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16079   echo $ECHO_N "(cached) $ECHO_C" >&6
16080 else
16081   eval "$as_ac_Header=\$ac_header_preproc"
16082 fi
16083 ac_res=`eval echo '${'$as_ac_Header'}'`
16084                { echo "$as_me:$LINENO: result: $ac_res" >&5
16085 echo "${ECHO_T}$ac_res" >&6; }
16086
16087 fi
16088 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16089   cat >>confdefs.h <<_ACEOF
16090 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16091 _ACEOF
16092
16093 fi
16094
16095 done
16096
16097
16098
16099 for ac_header in utime.h windows.h
16100 do
16101 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16102 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16103   { echo "$as_me:$LINENO: checking for $ac_header" >&5
16104 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16105 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16106   echo $ECHO_N "(cached) $ECHO_C" >&6
16107 fi
16108 ac_res=`eval echo '${'$as_ac_Header'}'`
16109                { echo "$as_me:$LINENO: result: $ac_res" >&5
16110 echo "${ECHO_T}$ac_res" >&6; }
16111 else
16112   # Is the header compilable?
16113 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16114 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16115 cat >conftest.$ac_ext <<_ACEOF
16116 /* confdefs.h.  */
16117 _ACEOF
16118 cat confdefs.h >>conftest.$ac_ext
16119 cat >>conftest.$ac_ext <<_ACEOF
16120 /* end confdefs.h.  */
16121 $ac_includes_default
16122 #include <$ac_header>
16123 _ACEOF
16124 rm -f conftest.$ac_objext
16125 if { (ac_try="$ac_compile"
16126 case "(($ac_try" in
16127   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16128   *) ac_try_echo=$ac_try;;
16129 esac
16130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16131   (eval "$ac_compile") 2>conftest.er1
16132   ac_status=$?
16133   grep -v '^ *+' conftest.er1 >conftest.err
16134   rm -f conftest.er1
16135   cat conftest.err >&5
16136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16137   (exit $ac_status); } &&
16138          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16139   { (case "(($ac_try" in
16140   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16141   *) ac_try_echo=$ac_try;;
16142 esac
16143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16144   (eval "$ac_try") 2>&5
16145   ac_status=$?
16146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16147   (exit $ac_status); }; } &&
16148          { ac_try='test -s conftest.$ac_objext'
16149   { (case "(($ac_try" in
16150   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16151   *) ac_try_echo=$ac_try;;
16152 esac
16153 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16154   (eval "$ac_try") 2>&5
16155   ac_status=$?
16156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16157   (exit $ac_status); }; }; then
16158   ac_header_compiler=yes
16159 else
16160   echo "$as_me: failed program was:" >&5
16161 sed 's/^/| /' conftest.$ac_ext >&5
16162
16163         ac_header_compiler=no
16164 fi
16165
16166 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16167 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16168 echo "${ECHO_T}$ac_header_compiler" >&6; }
16169
16170 # Is the header present?
16171 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16172 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16173 cat >conftest.$ac_ext <<_ACEOF
16174 /* confdefs.h.  */
16175 _ACEOF
16176 cat confdefs.h >>conftest.$ac_ext
16177 cat >>conftest.$ac_ext <<_ACEOF
16178 /* end confdefs.h.  */
16179 #include <$ac_header>
16180 _ACEOF
16181 if { (ac_try="$ac_cpp conftest.$ac_ext"
16182 case "(($ac_try" in
16183   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16184   *) ac_try_echo=$ac_try;;
16185 esac
16186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16187   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16188   ac_status=$?
16189   grep -v '^ *+' conftest.er1 >conftest.err
16190   rm -f conftest.er1
16191   cat conftest.err >&5
16192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16193   (exit $ac_status); } >/dev/null; then
16194   if test -s conftest.err; then
16195     ac_cpp_err=$ac_c_preproc_warn_flag
16196     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16197   else
16198     ac_cpp_err=
16199   fi
16200 else
16201   ac_cpp_err=yes
16202 fi
16203 if test -z "$ac_cpp_err"; then
16204   ac_header_preproc=yes
16205 else
16206   echo "$as_me: failed program was:" >&5
16207 sed 's/^/| /' conftest.$ac_ext >&5
16208
16209   ac_header_preproc=no
16210 fi
16211
16212 rm -f conftest.err conftest.$ac_ext
16213 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16214 echo "${ECHO_T}$ac_header_preproc" >&6; }
16215
16216 # So?  What about this header?
16217 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16218   yes:no: )
16219     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16220 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16221     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16222 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16223     ac_header_preproc=yes
16224     ;;
16225   no:yes:* )
16226     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16227 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16228     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16229 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16230     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16231 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16232     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16233 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16234     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16235 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16236     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16237 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16238     ( cat <<\_ASBOX
16239 ## ----------------------------------- ##
16240 ## Report this to llvmbugs@cs.uiuc.edu ##
16241 ## ----------------------------------- ##
16242 _ASBOX
16243      ) | sed "s/^/$as_me: WARNING:     /" >&2
16244     ;;
16245 esac
16246 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16247 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16248 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16249   echo $ECHO_N "(cached) $ECHO_C" >&6
16250 else
16251   eval "$as_ac_Header=\$ac_header_preproc"
16252 fi
16253 ac_res=`eval echo '${'$as_ac_Header'}'`
16254                { echo "$as_me:$LINENO: result: $ac_res" >&5
16255 echo "${ECHO_T}$ac_res" >&6; }
16256
16257 fi
16258 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16259   cat >>confdefs.h <<_ACEOF
16260 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16261 _ACEOF
16262
16263 fi
16264
16265 done
16266
16267
16268
16269
16270
16271
16272 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h sys/uio.h
16273 do
16274 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16275 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16276   { echo "$as_me:$LINENO: checking for $ac_header" >&5
16277 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16278 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16279   echo $ECHO_N "(cached) $ECHO_C" >&6
16280 fi
16281 ac_res=`eval echo '${'$as_ac_Header'}'`
16282                { echo "$as_me:$LINENO: result: $ac_res" >&5
16283 echo "${ECHO_T}$ac_res" >&6; }
16284 else
16285   # Is the header compilable?
16286 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16287 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16288 cat >conftest.$ac_ext <<_ACEOF
16289 /* confdefs.h.  */
16290 _ACEOF
16291 cat confdefs.h >>conftest.$ac_ext
16292 cat >>conftest.$ac_ext <<_ACEOF
16293 /* end confdefs.h.  */
16294 $ac_includes_default
16295 #include <$ac_header>
16296 _ACEOF
16297 rm -f conftest.$ac_objext
16298 if { (ac_try="$ac_compile"
16299 case "(($ac_try" in
16300   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16301   *) ac_try_echo=$ac_try;;
16302 esac
16303 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16304   (eval "$ac_compile") 2>conftest.er1
16305   ac_status=$?
16306   grep -v '^ *+' conftest.er1 >conftest.err
16307   rm -f conftest.er1
16308   cat conftest.err >&5
16309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16310   (exit $ac_status); } &&
16311          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16312   { (case "(($ac_try" in
16313   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16314   *) ac_try_echo=$ac_try;;
16315 esac
16316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16317   (eval "$ac_try") 2>&5
16318   ac_status=$?
16319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16320   (exit $ac_status); }; } &&
16321          { ac_try='test -s conftest.$ac_objext'
16322   { (case "(($ac_try" in
16323   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16324   *) ac_try_echo=$ac_try;;
16325 esac
16326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16327   (eval "$ac_try") 2>&5
16328   ac_status=$?
16329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16330   (exit $ac_status); }; }; then
16331   ac_header_compiler=yes
16332 else
16333   echo "$as_me: failed program was:" >&5
16334 sed 's/^/| /' conftest.$ac_ext >&5
16335
16336         ac_header_compiler=no
16337 fi
16338
16339 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16340 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16341 echo "${ECHO_T}$ac_header_compiler" >&6; }
16342
16343 # Is the header present?
16344 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16345 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16346 cat >conftest.$ac_ext <<_ACEOF
16347 /* confdefs.h.  */
16348 _ACEOF
16349 cat confdefs.h >>conftest.$ac_ext
16350 cat >>conftest.$ac_ext <<_ACEOF
16351 /* end confdefs.h.  */
16352 #include <$ac_header>
16353 _ACEOF
16354 if { (ac_try="$ac_cpp conftest.$ac_ext"
16355 case "(($ac_try" in
16356   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16357   *) ac_try_echo=$ac_try;;
16358 esac
16359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16360   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16361   ac_status=$?
16362   grep -v '^ *+' conftest.er1 >conftest.err
16363   rm -f conftest.er1
16364   cat conftest.err >&5
16365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16366   (exit $ac_status); } >/dev/null; then
16367   if test -s conftest.err; then
16368     ac_cpp_err=$ac_c_preproc_warn_flag
16369     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16370   else
16371     ac_cpp_err=
16372   fi
16373 else
16374   ac_cpp_err=yes
16375 fi
16376 if test -z "$ac_cpp_err"; then
16377   ac_header_preproc=yes
16378 else
16379   echo "$as_me: failed program was:" >&5
16380 sed 's/^/| /' conftest.$ac_ext >&5
16381
16382   ac_header_preproc=no
16383 fi
16384
16385 rm -f conftest.err conftest.$ac_ext
16386 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16387 echo "${ECHO_T}$ac_header_preproc" >&6; }
16388
16389 # So?  What about this header?
16390 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16391   yes:no: )
16392     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16393 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16394     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16395 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16396     ac_header_preproc=yes
16397     ;;
16398   no:yes:* )
16399     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16400 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16401     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16402 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16403     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16404 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16405     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16406 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16407     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16408 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16409     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16410 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16411     ( cat <<\_ASBOX
16412 ## ----------------------------------- ##
16413 ## Report this to llvmbugs@cs.uiuc.edu ##
16414 ## ----------------------------------- ##
16415 _ASBOX
16416      ) | sed "s/^/$as_me: WARNING:     /" >&2
16417     ;;
16418 esac
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 else
16424   eval "$as_ac_Header=\$ac_header_preproc"
16425 fi
16426 ac_res=`eval echo '${'$as_ac_Header'}'`
16427                { echo "$as_me:$LINENO: result: $ac_res" >&5
16428 echo "${ECHO_T}$ac_res" >&6; }
16429
16430 fi
16431 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16432   cat >>confdefs.h <<_ACEOF
16433 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16434 _ACEOF
16435
16436 fi
16437
16438 done
16439
16440
16441
16442
16443
16444 for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h
16445 do
16446 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16447 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16448   { echo "$as_me:$LINENO: checking for $ac_header" >&5
16449 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16450 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16451   echo $ECHO_N "(cached) $ECHO_C" >&6
16452 fi
16453 ac_res=`eval echo '${'$as_ac_Header'}'`
16454                { echo "$as_me:$LINENO: result: $ac_res" >&5
16455 echo "${ECHO_T}$ac_res" >&6; }
16456 else
16457   # Is the header compilable?
16458 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16459 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16460 cat >conftest.$ac_ext <<_ACEOF
16461 /* confdefs.h.  */
16462 _ACEOF
16463 cat confdefs.h >>conftest.$ac_ext
16464 cat >>conftest.$ac_ext <<_ACEOF
16465 /* end confdefs.h.  */
16466 $ac_includes_default
16467 #include <$ac_header>
16468 _ACEOF
16469 rm -f conftest.$ac_objext
16470 if { (ac_try="$ac_compile"
16471 case "(($ac_try" in
16472   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16473   *) ac_try_echo=$ac_try;;
16474 esac
16475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16476   (eval "$ac_compile") 2>conftest.er1
16477   ac_status=$?
16478   grep -v '^ *+' conftest.er1 >conftest.err
16479   rm -f conftest.er1
16480   cat conftest.err >&5
16481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16482   (exit $ac_status); } &&
16483          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16484   { (case "(($ac_try" in
16485   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16486   *) ac_try_echo=$ac_try;;
16487 esac
16488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16489   (eval "$ac_try") 2>&5
16490   ac_status=$?
16491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16492   (exit $ac_status); }; } &&
16493          { ac_try='test -s conftest.$ac_objext'
16494   { (case "(($ac_try" in
16495   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16496   *) ac_try_echo=$ac_try;;
16497 esac
16498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16499   (eval "$ac_try") 2>&5
16500   ac_status=$?
16501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16502   (exit $ac_status); }; }; then
16503   ac_header_compiler=yes
16504 else
16505   echo "$as_me: failed program was:" >&5
16506 sed 's/^/| /' conftest.$ac_ext >&5
16507
16508         ac_header_compiler=no
16509 fi
16510
16511 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16512 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16513 echo "${ECHO_T}$ac_header_compiler" >&6; }
16514
16515 # Is the header present?
16516 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16517 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16518 cat >conftest.$ac_ext <<_ACEOF
16519 /* confdefs.h.  */
16520 _ACEOF
16521 cat confdefs.h >>conftest.$ac_ext
16522 cat >>conftest.$ac_ext <<_ACEOF
16523 /* end confdefs.h.  */
16524 #include <$ac_header>
16525 _ACEOF
16526 if { (ac_try="$ac_cpp conftest.$ac_ext"
16527 case "(($ac_try" in
16528   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16529   *) ac_try_echo=$ac_try;;
16530 esac
16531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16532   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16533   ac_status=$?
16534   grep -v '^ *+' conftest.er1 >conftest.err
16535   rm -f conftest.er1
16536   cat conftest.err >&5
16537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16538   (exit $ac_status); } >/dev/null; then
16539   if test -s conftest.err; then
16540     ac_cpp_err=$ac_c_preproc_warn_flag
16541     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16542   else
16543     ac_cpp_err=
16544   fi
16545 else
16546   ac_cpp_err=yes
16547 fi
16548 if test -z "$ac_cpp_err"; then
16549   ac_header_preproc=yes
16550 else
16551   echo "$as_me: failed program was:" >&5
16552 sed 's/^/| /' conftest.$ac_ext >&5
16553
16554   ac_header_preproc=no
16555 fi
16556
16557 rm -f conftest.err conftest.$ac_ext
16558 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16559 echo "${ECHO_T}$ac_header_preproc" >&6; }
16560
16561 # So?  What about this header?
16562 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16563   yes:no: )
16564     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16565 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16566     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16567 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16568     ac_header_preproc=yes
16569     ;;
16570   no:yes:* )
16571     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16572 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16573     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16574 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16575     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16576 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16577     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16578 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16579     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16580 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16581     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16582 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16583     ( cat <<\_ASBOX
16584 ## ----------------------------------- ##
16585 ## Report this to llvmbugs@cs.uiuc.edu ##
16586 ## ----------------------------------- ##
16587 _ASBOX
16588      ) | sed "s/^/$as_me: WARNING:     /" >&2
16589     ;;
16590 esac
16591 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16592 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16593 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16594   echo $ECHO_N "(cached) $ECHO_C" >&6
16595 else
16596   eval "$as_ac_Header=\$ac_header_preproc"
16597 fi
16598 ac_res=`eval echo '${'$as_ac_Header'}'`
16599                { echo "$as_me:$LINENO: result: $ac_res" >&5
16600 echo "${ECHO_T}$ac_res" >&6; }
16601
16602 fi
16603 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16604   cat >>confdefs.h <<_ACEOF
16605 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16606 _ACEOF
16607
16608 fi
16609
16610 done
16611
16612
16613 for ac_header in valgrind/valgrind.h
16614 do
16615 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16616 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16617   { echo "$as_me:$LINENO: checking for $ac_header" >&5
16618 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16619 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16620   echo $ECHO_N "(cached) $ECHO_C" >&6
16621 fi
16622 ac_res=`eval echo '${'$as_ac_Header'}'`
16623                { echo "$as_me:$LINENO: result: $ac_res" >&5
16624 echo "${ECHO_T}$ac_res" >&6; }
16625 else
16626   # Is the header compilable?
16627 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16628 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16629 cat >conftest.$ac_ext <<_ACEOF
16630 /* confdefs.h.  */
16631 _ACEOF
16632 cat confdefs.h >>conftest.$ac_ext
16633 cat >>conftest.$ac_ext <<_ACEOF
16634 /* end confdefs.h.  */
16635 $ac_includes_default
16636 #include <$ac_header>
16637 _ACEOF
16638 rm -f conftest.$ac_objext
16639 if { (ac_try="$ac_compile"
16640 case "(($ac_try" in
16641   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16642   *) ac_try_echo=$ac_try;;
16643 esac
16644 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16645   (eval "$ac_compile") 2>conftest.er1
16646   ac_status=$?
16647   grep -v '^ *+' conftest.er1 >conftest.err
16648   rm -f conftest.er1
16649   cat conftest.err >&5
16650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16651   (exit $ac_status); } &&
16652          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16653   { (case "(($ac_try" in
16654   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16655   *) ac_try_echo=$ac_try;;
16656 esac
16657 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16658   (eval "$ac_try") 2>&5
16659   ac_status=$?
16660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16661   (exit $ac_status); }; } &&
16662          { ac_try='test -s conftest.$ac_objext'
16663   { (case "(($ac_try" in
16664   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16665   *) ac_try_echo=$ac_try;;
16666 esac
16667 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16668   (eval "$ac_try") 2>&5
16669   ac_status=$?
16670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16671   (exit $ac_status); }; }; then
16672   ac_header_compiler=yes
16673 else
16674   echo "$as_me: failed program was:" >&5
16675 sed 's/^/| /' conftest.$ac_ext >&5
16676
16677         ac_header_compiler=no
16678 fi
16679
16680 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16681 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16682 echo "${ECHO_T}$ac_header_compiler" >&6; }
16683
16684 # Is the header present?
16685 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16686 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16687 cat >conftest.$ac_ext <<_ACEOF
16688 /* confdefs.h.  */
16689 _ACEOF
16690 cat confdefs.h >>conftest.$ac_ext
16691 cat >>conftest.$ac_ext <<_ACEOF
16692 /* end confdefs.h.  */
16693 #include <$ac_header>
16694 _ACEOF
16695 if { (ac_try="$ac_cpp conftest.$ac_ext"
16696 case "(($ac_try" in
16697   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16698   *) ac_try_echo=$ac_try;;
16699 esac
16700 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16701   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16702   ac_status=$?
16703   grep -v '^ *+' conftest.er1 >conftest.err
16704   rm -f conftest.er1
16705   cat conftest.err >&5
16706   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16707   (exit $ac_status); } >/dev/null; then
16708   if test -s conftest.err; then
16709     ac_cpp_err=$ac_c_preproc_warn_flag
16710     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16711   else
16712     ac_cpp_err=
16713   fi
16714 else
16715   ac_cpp_err=yes
16716 fi
16717 if test -z "$ac_cpp_err"; then
16718   ac_header_preproc=yes
16719 else
16720   echo "$as_me: failed program was:" >&5
16721 sed 's/^/| /' conftest.$ac_ext >&5
16722
16723   ac_header_preproc=no
16724 fi
16725
16726 rm -f conftest.err conftest.$ac_ext
16727 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16728 echo "${ECHO_T}$ac_header_preproc" >&6; }
16729
16730 # So?  What about this header?
16731 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16732   yes:no: )
16733     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16734 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16735     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16736 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16737     ac_header_preproc=yes
16738     ;;
16739   no:yes:* )
16740     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16741 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16742     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16743 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16744     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16745 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16746     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16747 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16748     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16749 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16750     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16751 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16752     ( cat <<\_ASBOX
16753 ## ----------------------------------- ##
16754 ## Report this to llvmbugs@cs.uiuc.edu ##
16755 ## ----------------------------------- ##
16756 _ASBOX
16757      ) | sed "s/^/$as_me: WARNING:     /" >&2
16758     ;;
16759 esac
16760 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16761 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16762 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16763   echo $ECHO_N "(cached) $ECHO_C" >&6
16764 else
16765   eval "$as_ac_Header=\$ac_header_preproc"
16766 fi
16767 ac_res=`eval echo '${'$as_ac_Header'}'`
16768                { echo "$as_me:$LINENO: result: $ac_res" >&5
16769 echo "${ECHO_T}$ac_res" >&6; }
16770
16771 fi
16772 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16773   cat >>confdefs.h <<_ACEOF
16774 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16775 _ACEOF
16776
16777 fi
16778
16779 done
16780
16781
16782 for ac_header in fenv.h
16783 do
16784 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16785 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16786   { echo "$as_me:$LINENO: checking for $ac_header" >&5
16787 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16788 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16789   echo $ECHO_N "(cached) $ECHO_C" >&6
16790 fi
16791 ac_res=`eval echo '${'$as_ac_Header'}'`
16792                { echo "$as_me:$LINENO: result: $ac_res" >&5
16793 echo "${ECHO_T}$ac_res" >&6; }
16794 else
16795   # Is the header compilable?
16796 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16797 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16798 cat >conftest.$ac_ext <<_ACEOF
16799 /* confdefs.h.  */
16800 _ACEOF
16801 cat confdefs.h >>conftest.$ac_ext
16802 cat >>conftest.$ac_ext <<_ACEOF
16803 /* end confdefs.h.  */
16804 $ac_includes_default
16805 #include <$ac_header>
16806 _ACEOF
16807 rm -f conftest.$ac_objext
16808 if { (ac_try="$ac_compile"
16809 case "(($ac_try" in
16810   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16811   *) ac_try_echo=$ac_try;;
16812 esac
16813 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16814   (eval "$ac_compile") 2>conftest.er1
16815   ac_status=$?
16816   grep -v '^ *+' conftest.er1 >conftest.err
16817   rm -f conftest.er1
16818   cat conftest.err >&5
16819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16820   (exit $ac_status); } &&
16821          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16822   { (case "(($ac_try" in
16823   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16824   *) ac_try_echo=$ac_try;;
16825 esac
16826 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16827   (eval "$ac_try") 2>&5
16828   ac_status=$?
16829   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16830   (exit $ac_status); }; } &&
16831          { ac_try='test -s conftest.$ac_objext'
16832   { (case "(($ac_try" in
16833   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16834   *) ac_try_echo=$ac_try;;
16835 esac
16836 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16837   (eval "$ac_try") 2>&5
16838   ac_status=$?
16839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16840   (exit $ac_status); }; }; then
16841   ac_header_compiler=yes
16842 else
16843   echo "$as_me: failed program was:" >&5
16844 sed 's/^/| /' conftest.$ac_ext >&5
16845
16846         ac_header_compiler=no
16847 fi
16848
16849 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16850 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16851 echo "${ECHO_T}$ac_header_compiler" >&6; }
16852
16853 # Is the header present?
16854 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16855 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16856 cat >conftest.$ac_ext <<_ACEOF
16857 /* confdefs.h.  */
16858 _ACEOF
16859 cat confdefs.h >>conftest.$ac_ext
16860 cat >>conftest.$ac_ext <<_ACEOF
16861 /* end confdefs.h.  */
16862 #include <$ac_header>
16863 _ACEOF
16864 if { (ac_try="$ac_cpp conftest.$ac_ext"
16865 case "(($ac_try" in
16866   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16867   *) ac_try_echo=$ac_try;;
16868 esac
16869 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16870   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16871   ac_status=$?
16872   grep -v '^ *+' conftest.er1 >conftest.err
16873   rm -f conftest.er1
16874   cat conftest.err >&5
16875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16876   (exit $ac_status); } >/dev/null; then
16877   if test -s conftest.err; then
16878     ac_cpp_err=$ac_c_preproc_warn_flag
16879     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16880   else
16881     ac_cpp_err=
16882   fi
16883 else
16884   ac_cpp_err=yes
16885 fi
16886 if test -z "$ac_cpp_err"; then
16887   ac_header_preproc=yes
16888 else
16889   echo "$as_me: failed program was:" >&5
16890 sed 's/^/| /' conftest.$ac_ext >&5
16891
16892   ac_header_preproc=no
16893 fi
16894
16895 rm -f conftest.err conftest.$ac_ext
16896 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16897 echo "${ECHO_T}$ac_header_preproc" >&6; }
16898
16899 # So?  What about this header?
16900 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16901   yes:no: )
16902     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16903 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16904     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16905 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16906     ac_header_preproc=yes
16907     ;;
16908   no:yes:* )
16909     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16910 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16911     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16912 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16913     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16914 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16915     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16916 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16917     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16918 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16919     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16920 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16921     ( cat <<\_ASBOX
16922 ## ----------------------------------- ##
16923 ## Report this to llvmbugs@cs.uiuc.edu ##
16924 ## ----------------------------------- ##
16925 _ASBOX
16926      ) | sed "s/^/$as_me: WARNING:     /" >&2
16927     ;;
16928 esac
16929 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16930 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16931 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16932   echo $ECHO_N "(cached) $ECHO_C" >&6
16933 else
16934   eval "$as_ac_Header=\$ac_header_preproc"
16935 fi
16936 ac_res=`eval echo '${'$as_ac_Header'}'`
16937                { echo "$as_me:$LINENO: result: $ac_res" >&5
16938 echo "${ECHO_T}$ac_res" >&6; }
16939
16940 fi
16941 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16942   cat >>confdefs.h <<_ACEOF
16943 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16944 _ACEOF
16945
16946 fi
16947
16948 done
16949
16950 if test "$ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
16951
16952 for ac_header in pthread.h
16953 do
16954 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16955 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16956   { echo "$as_me:$LINENO: checking for $ac_header" >&5
16957 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16958 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16959   echo $ECHO_N "(cached) $ECHO_C" >&6
16960 fi
16961 ac_res=`eval echo '${'$as_ac_Header'}'`
16962                { echo "$as_me:$LINENO: result: $ac_res" >&5
16963 echo "${ECHO_T}$ac_res" >&6; }
16964 else
16965   # Is the header compilable?
16966 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16967 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16968 cat >conftest.$ac_ext <<_ACEOF
16969 /* confdefs.h.  */
16970 _ACEOF
16971 cat confdefs.h >>conftest.$ac_ext
16972 cat >>conftest.$ac_ext <<_ACEOF
16973 /* end confdefs.h.  */
16974 $ac_includes_default
16975 #include <$ac_header>
16976 _ACEOF
16977 rm -f conftest.$ac_objext
16978 if { (ac_try="$ac_compile"
16979 case "(($ac_try" in
16980   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16981   *) ac_try_echo=$ac_try;;
16982 esac
16983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16984   (eval "$ac_compile") 2>conftest.er1
16985   ac_status=$?
16986   grep -v '^ *+' conftest.er1 >conftest.err
16987   rm -f conftest.er1
16988   cat conftest.err >&5
16989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16990   (exit $ac_status); } &&
16991          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16992   { (case "(($ac_try" in
16993   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16994   *) ac_try_echo=$ac_try;;
16995 esac
16996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16997   (eval "$ac_try") 2>&5
16998   ac_status=$?
16999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17000   (exit $ac_status); }; } &&
17001          { ac_try='test -s conftest.$ac_objext'
17002   { (case "(($ac_try" in
17003   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17004   *) ac_try_echo=$ac_try;;
17005 esac
17006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17007   (eval "$ac_try") 2>&5
17008   ac_status=$?
17009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17010   (exit $ac_status); }; }; then
17011   ac_header_compiler=yes
17012 else
17013   echo "$as_me: failed program was:" >&5
17014 sed 's/^/| /' conftest.$ac_ext >&5
17015
17016         ac_header_compiler=no
17017 fi
17018
17019 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17020 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17021 echo "${ECHO_T}$ac_header_compiler" >&6; }
17022
17023 # Is the header present?
17024 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
17025 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
17026 cat >conftest.$ac_ext <<_ACEOF
17027 /* confdefs.h.  */
17028 _ACEOF
17029 cat confdefs.h >>conftest.$ac_ext
17030 cat >>conftest.$ac_ext <<_ACEOF
17031 /* end confdefs.h.  */
17032 #include <$ac_header>
17033 _ACEOF
17034 if { (ac_try="$ac_cpp conftest.$ac_ext"
17035 case "(($ac_try" in
17036   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17037   *) ac_try_echo=$ac_try;;
17038 esac
17039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17040   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17041   ac_status=$?
17042   grep -v '^ *+' conftest.er1 >conftest.err
17043   rm -f conftest.er1
17044   cat conftest.err >&5
17045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17046   (exit $ac_status); } >/dev/null; then
17047   if test -s conftest.err; then
17048     ac_cpp_err=$ac_c_preproc_warn_flag
17049     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17050   else
17051     ac_cpp_err=
17052   fi
17053 else
17054   ac_cpp_err=yes
17055 fi
17056 if test -z "$ac_cpp_err"; then
17057   ac_header_preproc=yes
17058 else
17059   echo "$as_me: failed program was:" >&5
17060 sed 's/^/| /' conftest.$ac_ext >&5
17061
17062   ac_header_preproc=no
17063 fi
17064
17065 rm -f conftest.err conftest.$ac_ext
17066 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17067 echo "${ECHO_T}$ac_header_preproc" >&6; }
17068
17069 # So?  What about this header?
17070 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17071   yes:no: )
17072     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17073 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17074     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17075 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17076     ac_header_preproc=yes
17077     ;;
17078   no:yes:* )
17079     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17080 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17081     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
17082 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
17083     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17084 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17085     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
17086 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
17087     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17088 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17089     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17090 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17091     ( cat <<\_ASBOX
17092 ## ----------------------------------- ##
17093 ## Report this to llvmbugs@cs.uiuc.edu ##
17094 ## ----------------------------------- ##
17095 _ASBOX
17096      ) | sed "s/^/$as_me: WARNING:     /" >&2
17097     ;;
17098 esac
17099 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17100 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17101 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17102   echo $ECHO_N "(cached) $ECHO_C" >&6
17103 else
17104   eval "$as_ac_Header=\$ac_header_preproc"
17105 fi
17106 ac_res=`eval echo '${'$as_ac_Header'}'`
17107                { echo "$as_me:$LINENO: result: $ac_res" >&5
17108 echo "${ECHO_T}$ac_res" >&6; }
17109
17110 fi
17111 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17112   cat >>confdefs.h <<_ACEOF
17113 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17114 _ACEOF
17115  HAVE_PTHREAD=1
17116
17117 else
17118   HAVE_PTHREAD=0
17119
17120 fi
17121
17122 done
17123
17124 else
17125   HAVE_PTHREAD=0
17126
17127 fi
17128
17129 if test "$llvm_cv_enable_libffi" = "yes" ; then
17130
17131
17132 for ac_header in ffi.h ffi/ffi.h
17133 do
17134 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17135 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17136   { echo "$as_me:$LINENO: checking for $ac_header" >&5
17137 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17138 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17139   echo $ECHO_N "(cached) $ECHO_C" >&6
17140 fi
17141 ac_res=`eval echo '${'$as_ac_Header'}'`
17142                { echo "$as_me:$LINENO: result: $ac_res" >&5
17143 echo "${ECHO_T}$ac_res" >&6; }
17144 else
17145   # Is the header compilable?
17146 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
17147 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
17148 cat >conftest.$ac_ext <<_ACEOF
17149 /* confdefs.h.  */
17150 _ACEOF
17151 cat confdefs.h >>conftest.$ac_ext
17152 cat >>conftest.$ac_ext <<_ACEOF
17153 /* end confdefs.h.  */
17154 $ac_includes_default
17155 #include <$ac_header>
17156 _ACEOF
17157 rm -f conftest.$ac_objext
17158 if { (ac_try="$ac_compile"
17159 case "(($ac_try" in
17160   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17161   *) ac_try_echo=$ac_try;;
17162 esac
17163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17164   (eval "$ac_compile") 2>conftest.er1
17165   ac_status=$?
17166   grep -v '^ *+' conftest.er1 >conftest.err
17167   rm -f conftest.er1
17168   cat conftest.err >&5
17169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17170   (exit $ac_status); } &&
17171          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17172   { (case "(($ac_try" in
17173   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17174   *) ac_try_echo=$ac_try;;
17175 esac
17176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17177   (eval "$ac_try") 2>&5
17178   ac_status=$?
17179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17180   (exit $ac_status); }; } &&
17181          { ac_try='test -s conftest.$ac_objext'
17182   { (case "(($ac_try" in
17183   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17184   *) ac_try_echo=$ac_try;;
17185 esac
17186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17187   (eval "$ac_try") 2>&5
17188   ac_status=$?
17189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17190   (exit $ac_status); }; }; then
17191   ac_header_compiler=yes
17192 else
17193   echo "$as_me: failed program was:" >&5
17194 sed 's/^/| /' conftest.$ac_ext >&5
17195
17196         ac_header_compiler=no
17197 fi
17198
17199 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17200 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17201 echo "${ECHO_T}$ac_header_compiler" >&6; }
17202
17203 # Is the header present?
17204 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
17205 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
17206 cat >conftest.$ac_ext <<_ACEOF
17207 /* confdefs.h.  */
17208 _ACEOF
17209 cat confdefs.h >>conftest.$ac_ext
17210 cat >>conftest.$ac_ext <<_ACEOF
17211 /* end confdefs.h.  */
17212 #include <$ac_header>
17213 _ACEOF
17214 if { (ac_try="$ac_cpp conftest.$ac_ext"
17215 case "(($ac_try" in
17216   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17217   *) ac_try_echo=$ac_try;;
17218 esac
17219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17220   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17221   ac_status=$?
17222   grep -v '^ *+' conftest.er1 >conftest.err
17223   rm -f conftest.er1
17224   cat conftest.err >&5
17225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17226   (exit $ac_status); } >/dev/null; then
17227   if test -s conftest.err; then
17228     ac_cpp_err=$ac_c_preproc_warn_flag
17229     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17230   else
17231     ac_cpp_err=
17232   fi
17233 else
17234   ac_cpp_err=yes
17235 fi
17236 if test -z "$ac_cpp_err"; then
17237   ac_header_preproc=yes
17238 else
17239   echo "$as_me: failed program was:" >&5
17240 sed 's/^/| /' conftest.$ac_ext >&5
17241
17242   ac_header_preproc=no
17243 fi
17244
17245 rm -f conftest.err conftest.$ac_ext
17246 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17247 echo "${ECHO_T}$ac_header_preproc" >&6; }
17248
17249 # So?  What about this header?
17250 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17251   yes:no: )
17252     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17253 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17254     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17255 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17256     ac_header_preproc=yes
17257     ;;
17258   no:yes:* )
17259     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17260 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17261     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
17262 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
17263     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17264 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17265     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
17266 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
17267     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17268 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17269     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17270 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17271     ( cat <<\_ASBOX
17272 ## ----------------------------------- ##
17273 ## Report this to llvmbugs@cs.uiuc.edu ##
17274 ## ----------------------------------- ##
17275 _ASBOX
17276      ) | sed "s/^/$as_me: WARNING:     /" >&2
17277     ;;
17278 esac
17279 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17280 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17281 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17282   echo $ECHO_N "(cached) $ECHO_C" >&6
17283 else
17284   eval "$as_ac_Header=\$ac_header_preproc"
17285 fi
17286 ac_res=`eval echo '${'$as_ac_Header'}'`
17287                { echo "$as_me:$LINENO: result: $ac_res" >&5
17288 echo "${ECHO_T}$ac_res" >&6; }
17289
17290 fi
17291 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17292   cat >>confdefs.h <<_ACEOF
17293 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17294 _ACEOF
17295
17296 fi
17297
17298 done
17299
17300 fi
17301
17302
17303 for ac_header in CrashReporterClient.h
17304 do
17305 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17306 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17307   { echo "$as_me:$LINENO: checking for $ac_header" >&5
17308 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17309 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17310   echo $ECHO_N "(cached) $ECHO_C" >&6
17311 fi
17312 ac_res=`eval echo '${'$as_ac_Header'}'`
17313                { echo "$as_me:$LINENO: result: $ac_res" >&5
17314 echo "${ECHO_T}$ac_res" >&6; }
17315 else
17316   # Is the header compilable?
17317 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
17318 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
17319 cat >conftest.$ac_ext <<_ACEOF
17320 /* confdefs.h.  */
17321 _ACEOF
17322 cat confdefs.h >>conftest.$ac_ext
17323 cat >>conftest.$ac_ext <<_ACEOF
17324 /* end confdefs.h.  */
17325 $ac_includes_default
17326 #include <$ac_header>
17327 _ACEOF
17328 rm -f conftest.$ac_objext
17329 if { (ac_try="$ac_compile"
17330 case "(($ac_try" in
17331   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17332   *) ac_try_echo=$ac_try;;
17333 esac
17334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17335   (eval "$ac_compile") 2>conftest.er1
17336   ac_status=$?
17337   grep -v '^ *+' conftest.er1 >conftest.err
17338   rm -f conftest.er1
17339   cat conftest.err >&5
17340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17341   (exit $ac_status); } &&
17342          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17343   { (case "(($ac_try" in
17344   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17345   *) ac_try_echo=$ac_try;;
17346 esac
17347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17348   (eval "$ac_try") 2>&5
17349   ac_status=$?
17350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17351   (exit $ac_status); }; } &&
17352          { ac_try='test -s conftest.$ac_objext'
17353   { (case "(($ac_try" in
17354   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17355   *) ac_try_echo=$ac_try;;
17356 esac
17357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17358   (eval "$ac_try") 2>&5
17359   ac_status=$?
17360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17361   (exit $ac_status); }; }; then
17362   ac_header_compiler=yes
17363 else
17364   echo "$as_me: failed program was:" >&5
17365 sed 's/^/| /' conftest.$ac_ext >&5
17366
17367         ac_header_compiler=no
17368 fi
17369
17370 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17371 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17372 echo "${ECHO_T}$ac_header_compiler" >&6; }
17373
17374 # Is the header present?
17375 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
17376 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
17377 cat >conftest.$ac_ext <<_ACEOF
17378 /* confdefs.h.  */
17379 _ACEOF
17380 cat confdefs.h >>conftest.$ac_ext
17381 cat >>conftest.$ac_ext <<_ACEOF
17382 /* end confdefs.h.  */
17383 #include <$ac_header>
17384 _ACEOF
17385 if { (ac_try="$ac_cpp conftest.$ac_ext"
17386 case "(($ac_try" in
17387   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17388   *) ac_try_echo=$ac_try;;
17389 esac
17390 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17391   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17392   ac_status=$?
17393   grep -v '^ *+' conftest.er1 >conftest.err
17394   rm -f conftest.er1
17395   cat conftest.err >&5
17396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17397   (exit $ac_status); } >/dev/null; then
17398   if test -s conftest.err; then
17399     ac_cpp_err=$ac_c_preproc_warn_flag
17400     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17401   else
17402     ac_cpp_err=
17403   fi
17404 else
17405   ac_cpp_err=yes
17406 fi
17407 if test -z "$ac_cpp_err"; then
17408   ac_header_preproc=yes
17409 else
17410   echo "$as_me: failed program was:" >&5
17411 sed 's/^/| /' conftest.$ac_ext >&5
17412
17413   ac_header_preproc=no
17414 fi
17415
17416 rm -f conftest.err conftest.$ac_ext
17417 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17418 echo "${ECHO_T}$ac_header_preproc" >&6; }
17419
17420 # So?  What about this header?
17421 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17422   yes:no: )
17423     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17424 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17425     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17426 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17427     ac_header_preproc=yes
17428     ;;
17429   no:yes:* )
17430     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17431 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17432     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
17433 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
17434     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17435 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17436     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
17437 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
17438     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17439 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17440     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17441 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17442     ( cat <<\_ASBOX
17443 ## ----------------------------------- ##
17444 ## Report this to llvmbugs@cs.uiuc.edu ##
17445 ## ----------------------------------- ##
17446 _ASBOX
17447      ) | sed "s/^/$as_me: WARNING:     /" >&2
17448     ;;
17449 esac
17450 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17451 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17452 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17453   echo $ECHO_N "(cached) $ECHO_C" >&6
17454 else
17455   eval "$as_ac_Header=\$ac_header_preproc"
17456 fi
17457 ac_res=`eval echo '${'$as_ac_Header'}'`
17458                { echo "$as_me:$LINENO: result: $ac_res" >&5
17459 echo "${ECHO_T}$ac_res" >&6; }
17460
17461 fi
17462 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17463   cat >>confdefs.h <<_ACEOF
17464 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17465 _ACEOF
17466
17467 fi
17468
17469 done
17470
17471
17472 { echo "$as_me:$LINENO: checking __crashreporter_info__" >&5
17473 echo $ECHO_N "checking __crashreporter_info__... $ECHO_C" >&6; }
17474 cat >conftest.$ac_ext <<_ACEOF
17475 /* confdefs.h.  */
17476 _ACEOF
17477 cat confdefs.h >>conftest.$ac_ext
17478 cat >>conftest.$ac_ext <<_ACEOF
17479 /* end confdefs.h.  */
17480 extern const char *__crashreporter_info__;
17481       int main() {
17482         __crashreporter_info__ = "test";
17483         return 0;
17484       }
17485
17486 _ACEOF
17487 rm -f conftest.$ac_objext conftest$ac_exeext
17488 if { (ac_try="$ac_link"
17489 case "(($ac_try" in
17490   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17491   *) ac_try_echo=$ac_try;;
17492 esac
17493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17494   (eval "$ac_link") 2>conftest.er1
17495   ac_status=$?
17496   grep -v '^ *+' conftest.er1 >conftest.err
17497   rm -f conftest.er1
17498   cat conftest.err >&5
17499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17500   (exit $ac_status); } &&
17501          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17502   { (case "(($ac_try" in
17503   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17504   *) ac_try_echo=$ac_try;;
17505 esac
17506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17507   (eval "$ac_try") 2>&5
17508   ac_status=$?
17509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17510   (exit $ac_status); }; } &&
17511          { ac_try='test -s conftest$ac_exeext'
17512   { (case "(($ac_try" in
17513   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17514   *) ac_try_echo=$ac_try;;
17515 esac
17516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17517   (eval "$ac_try") 2>&5
17518   ac_status=$?
17519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17520   (exit $ac_status); }; }; then
17521   { echo "$as_me:$LINENO: result: yes" >&5
17522 echo "${ECHO_T}yes" >&6; }
17523
17524 cat >>confdefs.h <<\_ACEOF
17525 #define HAVE_CRASHREPORTER_INFO 1
17526 _ACEOF
17527
17528 else
17529   echo "$as_me: failed program was:" >&5
17530 sed 's/^/| /' conftest.$ac_ext >&5
17531
17532         { echo "$as_me:$LINENO: result: no" >&5
17533 echo "${ECHO_T}no" >&6; }
17534
17535 cat >>confdefs.h <<\_ACEOF
17536 #define HAVE_CRASHREPORTER_INFO 0
17537 _ACEOF
17538
17539 fi
17540
17541 rm -f core conftest.err conftest.$ac_objext \
17542       conftest$ac_exeext conftest.$ac_ext
17543
17544
17545
17546
17547   { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
17548 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
17549 if test "${ac_cv_huge_val_sanity+set}" = set; then
17550   echo $ECHO_N "(cached) $ECHO_C" >&6
17551 else
17552
17553     ac_ext=cpp
17554 ac_cpp='$CXXCPP $CPPFLAGS'
17555 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17556 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17557 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17558
17559     ac_save_CXXFLAGS=$CXXFLAGS
17560     CXXFLAGS=-pedantic
17561     if test "$cross_compiling" = yes; then
17562   ac_cv_huge_val_sanity=yes
17563 else
17564   cat >conftest.$ac_ext <<_ACEOF
17565 /* confdefs.h.  */
17566 _ACEOF
17567 cat confdefs.h >>conftest.$ac_ext
17568 cat >>conftest.$ac_ext <<_ACEOF
17569 /* end confdefs.h.  */
17570 #include <math.h>
17571 int
17572 main ()
17573 {
17574 double x = HUGE_VAL; return x != x;
17575   ;
17576   return 0;
17577 }
17578 _ACEOF
17579 rm -f conftest$ac_exeext
17580 if { (ac_try="$ac_link"
17581 case "(($ac_try" in
17582   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17583   *) ac_try_echo=$ac_try;;
17584 esac
17585 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17586   (eval "$ac_link") 2>&5
17587   ac_status=$?
17588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17589   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17590   { (case "(($ac_try" in
17591   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17592   *) ac_try_echo=$ac_try;;
17593 esac
17594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17595   (eval "$ac_try") 2>&5
17596   ac_status=$?
17597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17598   (exit $ac_status); }; }; then
17599   ac_cv_huge_val_sanity=yes
17600 else
17601   echo "$as_me: program exited with status $ac_status" >&5
17602 echo "$as_me: failed program was:" >&5
17603 sed 's/^/| /' conftest.$ac_ext >&5
17604
17605 ( exit $ac_status )
17606 ac_cv_huge_val_sanity=no
17607 fi
17608 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17609 fi
17610
17611
17612     CXXFLAGS=$ac_save_CXXFLAGS
17613     ac_ext=c
17614 ac_cpp='$CPP $CPPFLAGS'
17615 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17616 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17617 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17618
17619
17620 fi
17621 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
17622 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
17623   HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
17624
17625
17626 { echo "$as_me:$LINENO: checking for pid_t" >&5
17627 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
17628 if test "${ac_cv_type_pid_t+set}" = set; then
17629   echo $ECHO_N "(cached) $ECHO_C" >&6
17630 else
17631   cat >conftest.$ac_ext <<_ACEOF
17632 /* confdefs.h.  */
17633 _ACEOF
17634 cat confdefs.h >>conftest.$ac_ext
17635 cat >>conftest.$ac_ext <<_ACEOF
17636 /* end confdefs.h.  */
17637 $ac_includes_default
17638 typedef pid_t ac__type_new_;
17639 int
17640 main ()
17641 {
17642 if ((ac__type_new_ *) 0)
17643   return 0;
17644 if (sizeof (ac__type_new_))
17645   return 0;
17646   ;
17647   return 0;
17648 }
17649 _ACEOF
17650 rm -f conftest.$ac_objext
17651 if { (ac_try="$ac_compile"
17652 case "(($ac_try" in
17653   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17654   *) ac_try_echo=$ac_try;;
17655 esac
17656 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17657   (eval "$ac_compile") 2>conftest.er1
17658   ac_status=$?
17659   grep -v '^ *+' conftest.er1 >conftest.err
17660   rm -f conftest.er1
17661   cat conftest.err >&5
17662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17663   (exit $ac_status); } &&
17664          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17665   { (case "(($ac_try" in
17666   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17667   *) ac_try_echo=$ac_try;;
17668 esac
17669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17670   (eval "$ac_try") 2>&5
17671   ac_status=$?
17672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17673   (exit $ac_status); }; } &&
17674          { ac_try='test -s conftest.$ac_objext'
17675   { (case "(($ac_try" in
17676   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17677   *) ac_try_echo=$ac_try;;
17678 esac
17679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17680   (eval "$ac_try") 2>&5
17681   ac_status=$?
17682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17683   (exit $ac_status); }; }; then
17684   ac_cv_type_pid_t=yes
17685 else
17686   echo "$as_me: failed program was:" >&5
17687 sed 's/^/| /' conftest.$ac_ext >&5
17688
17689         ac_cv_type_pid_t=no
17690 fi
17691
17692 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17693 fi
17694 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
17695 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
17696 if test $ac_cv_type_pid_t = yes; then
17697   :
17698 else
17699
17700 cat >>confdefs.h <<_ACEOF
17701 #define pid_t int
17702 _ACEOF
17703
17704 fi
17705
17706 { echo "$as_me:$LINENO: checking for size_t" >&5
17707 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
17708 if test "${ac_cv_type_size_t+set}" = set; then
17709   echo $ECHO_N "(cached) $ECHO_C" >&6
17710 else
17711   cat >conftest.$ac_ext <<_ACEOF
17712 /* confdefs.h.  */
17713 _ACEOF
17714 cat confdefs.h >>conftest.$ac_ext
17715 cat >>conftest.$ac_ext <<_ACEOF
17716 /* end confdefs.h.  */
17717 $ac_includes_default
17718 typedef size_t ac__type_new_;
17719 int
17720 main ()
17721 {
17722 if ((ac__type_new_ *) 0)
17723   return 0;
17724 if (sizeof (ac__type_new_))
17725   return 0;
17726   ;
17727   return 0;
17728 }
17729 _ACEOF
17730 rm -f conftest.$ac_objext
17731 if { (ac_try="$ac_compile"
17732 case "(($ac_try" in
17733   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17734   *) ac_try_echo=$ac_try;;
17735 esac
17736 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17737   (eval "$ac_compile") 2>conftest.er1
17738   ac_status=$?
17739   grep -v '^ *+' conftest.er1 >conftest.err
17740   rm -f conftest.er1
17741   cat conftest.err >&5
17742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17743   (exit $ac_status); } &&
17744          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17745   { (case "(($ac_try" in
17746   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17747   *) ac_try_echo=$ac_try;;
17748 esac
17749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17750   (eval "$ac_try") 2>&5
17751   ac_status=$?
17752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17753   (exit $ac_status); }; } &&
17754          { ac_try='test -s conftest.$ac_objext'
17755   { (case "(($ac_try" in
17756   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17757   *) ac_try_echo=$ac_try;;
17758 esac
17759 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17760   (eval "$ac_try") 2>&5
17761   ac_status=$?
17762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17763   (exit $ac_status); }; }; then
17764   ac_cv_type_size_t=yes
17765 else
17766   echo "$as_me: failed program was:" >&5
17767 sed 's/^/| /' conftest.$ac_ext >&5
17768
17769         ac_cv_type_size_t=no
17770 fi
17771
17772 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17773 fi
17774 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
17775 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
17776 if test $ac_cv_type_size_t = yes; then
17777   :
17778 else
17779
17780 cat >>confdefs.h <<_ACEOF
17781 #define size_t unsigned int
17782 _ACEOF
17783
17784 fi
17785
17786
17787 cat >>confdefs.h <<_ACEOF
17788 #define RETSIGTYPE void
17789 _ACEOF
17790
17791 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
17792 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
17793 if test "${ac_cv_struct_tm+set}" = set; then
17794   echo $ECHO_N "(cached) $ECHO_C" >&6
17795 else
17796   cat >conftest.$ac_ext <<_ACEOF
17797 /* confdefs.h.  */
17798 _ACEOF
17799 cat confdefs.h >>conftest.$ac_ext
17800 cat >>conftest.$ac_ext <<_ACEOF
17801 /* end confdefs.h.  */
17802 #include <sys/types.h>
17803 #include <time.h>
17804
17805 int
17806 main ()
17807 {
17808 struct tm *tp; tp->tm_sec;
17809   ;
17810   return 0;
17811 }
17812 _ACEOF
17813 rm -f conftest.$ac_objext
17814 if { (ac_try="$ac_compile"
17815 case "(($ac_try" in
17816   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17817   *) ac_try_echo=$ac_try;;
17818 esac
17819 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17820   (eval "$ac_compile") 2>conftest.er1
17821   ac_status=$?
17822   grep -v '^ *+' conftest.er1 >conftest.err
17823   rm -f conftest.er1
17824   cat conftest.err >&5
17825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17826   (exit $ac_status); } &&
17827          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17828   { (case "(($ac_try" in
17829   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17830   *) ac_try_echo=$ac_try;;
17831 esac
17832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17833   (eval "$ac_try") 2>&5
17834   ac_status=$?
17835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17836   (exit $ac_status); }; } &&
17837          { ac_try='test -s conftest.$ac_objext'
17838   { (case "(($ac_try" in
17839   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17840   *) ac_try_echo=$ac_try;;
17841 esac
17842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17843   (eval "$ac_try") 2>&5
17844   ac_status=$?
17845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17846   (exit $ac_status); }; }; then
17847   ac_cv_struct_tm=time.h
17848 else
17849   echo "$as_me: failed program was:" >&5
17850 sed 's/^/| /' conftest.$ac_ext >&5
17851
17852         ac_cv_struct_tm=sys/time.h
17853 fi
17854
17855 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17856 fi
17857 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
17858 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
17859 if test $ac_cv_struct_tm = sys/time.h; then
17860
17861 cat >>confdefs.h <<\_ACEOF
17862 #define TM_IN_SYS_TIME 1
17863 _ACEOF
17864
17865 fi
17866
17867 { echo "$as_me:$LINENO: checking for int64_t" >&5
17868 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
17869 if test "${ac_cv_type_int64_t+set}" = set; then
17870   echo $ECHO_N "(cached) $ECHO_C" >&6
17871 else
17872   cat >conftest.$ac_ext <<_ACEOF
17873 /* confdefs.h.  */
17874 _ACEOF
17875 cat confdefs.h >>conftest.$ac_ext
17876 cat >>conftest.$ac_ext <<_ACEOF
17877 /* end confdefs.h.  */
17878 $ac_includes_default
17879 typedef int64_t ac__type_new_;
17880 int
17881 main ()
17882 {
17883 if ((ac__type_new_ *) 0)
17884   return 0;
17885 if (sizeof (ac__type_new_))
17886   return 0;
17887   ;
17888   return 0;
17889 }
17890 _ACEOF
17891 rm -f conftest.$ac_objext
17892 if { (ac_try="$ac_compile"
17893 case "(($ac_try" in
17894   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17895   *) ac_try_echo=$ac_try;;
17896 esac
17897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17898   (eval "$ac_compile") 2>conftest.er1
17899   ac_status=$?
17900   grep -v '^ *+' conftest.er1 >conftest.err
17901   rm -f conftest.er1
17902   cat conftest.err >&5
17903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17904   (exit $ac_status); } &&
17905          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17906   { (case "(($ac_try" in
17907   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17908   *) ac_try_echo=$ac_try;;
17909 esac
17910 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17911   (eval "$ac_try") 2>&5
17912   ac_status=$?
17913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17914   (exit $ac_status); }; } &&
17915          { ac_try='test -s conftest.$ac_objext'
17916   { (case "(($ac_try" in
17917   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17918   *) ac_try_echo=$ac_try;;
17919 esac
17920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17921   (eval "$ac_try") 2>&5
17922   ac_status=$?
17923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17924   (exit $ac_status); }; }; then
17925   ac_cv_type_int64_t=yes
17926 else
17927   echo "$as_me: failed program was:" >&5
17928 sed 's/^/| /' conftest.$ac_ext >&5
17929
17930         ac_cv_type_int64_t=no
17931 fi
17932
17933 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17934 fi
17935 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
17936 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
17937 if test $ac_cv_type_int64_t = yes; then
17938
17939 cat >>confdefs.h <<_ACEOF
17940 #define HAVE_INT64_T 1
17941 _ACEOF
17942
17943
17944 else
17945   { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
17946 echo "$as_me: error: Type int64_t required but not found" >&2;}
17947    { (exit 1); exit 1; }; }
17948 fi
17949
17950 { echo "$as_me:$LINENO: checking for uint64_t" >&5
17951 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
17952 if test "${ac_cv_type_uint64_t+set}" = set; then
17953   echo $ECHO_N "(cached) $ECHO_C" >&6
17954 else
17955   cat >conftest.$ac_ext <<_ACEOF
17956 /* confdefs.h.  */
17957 _ACEOF
17958 cat confdefs.h >>conftest.$ac_ext
17959 cat >>conftest.$ac_ext <<_ACEOF
17960 /* end confdefs.h.  */
17961 $ac_includes_default
17962 typedef uint64_t ac__type_new_;
17963 int
17964 main ()
17965 {
17966 if ((ac__type_new_ *) 0)
17967   return 0;
17968 if (sizeof (ac__type_new_))
17969   return 0;
17970   ;
17971   return 0;
17972 }
17973 _ACEOF
17974 rm -f conftest.$ac_objext
17975 if { (ac_try="$ac_compile"
17976 case "(($ac_try" in
17977   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17978   *) ac_try_echo=$ac_try;;
17979 esac
17980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17981   (eval "$ac_compile") 2>conftest.er1
17982   ac_status=$?
17983   grep -v '^ *+' conftest.er1 >conftest.err
17984   rm -f conftest.er1
17985   cat conftest.err >&5
17986   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17987   (exit $ac_status); } &&
17988          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17989   { (case "(($ac_try" in
17990   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17991   *) ac_try_echo=$ac_try;;
17992 esac
17993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17994   (eval "$ac_try") 2>&5
17995   ac_status=$?
17996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17997   (exit $ac_status); }; } &&
17998          { ac_try='test -s conftest.$ac_objext'
17999   { (case "(($ac_try" in
18000   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18001   *) ac_try_echo=$ac_try;;
18002 esac
18003 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18004   (eval "$ac_try") 2>&5
18005   ac_status=$?
18006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18007   (exit $ac_status); }; }; then
18008   ac_cv_type_uint64_t=yes
18009 else
18010   echo "$as_me: failed program was:" >&5
18011 sed 's/^/| /' conftest.$ac_ext >&5
18012
18013         ac_cv_type_uint64_t=no
18014 fi
18015
18016 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18017 fi
18018 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
18019 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
18020 if test $ac_cv_type_uint64_t = yes; then
18021
18022 cat >>confdefs.h <<_ACEOF
18023 #define HAVE_UINT64_T 1
18024 _ACEOF
18025
18026
18027 else
18028   { echo "$as_me:$LINENO: checking for u_int64_t" >&5
18029 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
18030 if test "${ac_cv_type_u_int64_t+set}" = set; then
18031   echo $ECHO_N "(cached) $ECHO_C" >&6
18032 else
18033   cat >conftest.$ac_ext <<_ACEOF
18034 /* confdefs.h.  */
18035 _ACEOF
18036 cat confdefs.h >>conftest.$ac_ext
18037 cat >>conftest.$ac_ext <<_ACEOF
18038 /* end confdefs.h.  */
18039 $ac_includes_default
18040 typedef u_int64_t ac__type_new_;
18041 int
18042 main ()
18043 {
18044 if ((ac__type_new_ *) 0)
18045   return 0;
18046 if (sizeof (ac__type_new_))
18047   return 0;
18048   ;
18049   return 0;
18050 }
18051 _ACEOF
18052 rm -f conftest.$ac_objext
18053 if { (ac_try="$ac_compile"
18054 case "(($ac_try" in
18055   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18056   *) ac_try_echo=$ac_try;;
18057 esac
18058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18059   (eval "$ac_compile") 2>conftest.er1
18060   ac_status=$?
18061   grep -v '^ *+' conftest.er1 >conftest.err
18062   rm -f conftest.er1
18063   cat conftest.err >&5
18064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18065   (exit $ac_status); } &&
18066          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18067   { (case "(($ac_try" in
18068   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18069   *) ac_try_echo=$ac_try;;
18070 esac
18071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18072   (eval "$ac_try") 2>&5
18073   ac_status=$?
18074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18075   (exit $ac_status); }; } &&
18076          { ac_try='test -s conftest.$ac_objext'
18077   { (case "(($ac_try" in
18078   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18079   *) ac_try_echo=$ac_try;;
18080 esac
18081 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18082   (eval "$ac_try") 2>&5
18083   ac_status=$?
18084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18085   (exit $ac_status); }; }; then
18086   ac_cv_type_u_int64_t=yes
18087 else
18088   echo "$as_me: failed program was:" >&5
18089 sed 's/^/| /' conftest.$ac_ext >&5
18090
18091         ac_cv_type_u_int64_t=no
18092 fi
18093
18094 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18095 fi
18096 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
18097 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
18098 if test $ac_cv_type_u_int64_t = yes; then
18099
18100 cat >>confdefs.h <<_ACEOF
18101 #define HAVE_U_INT64_T 1
18102 _ACEOF
18103
18104
18105 else
18106   { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
18107 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
18108    { (exit 1); exit 1; }; }
18109 fi
18110
18111 fi
18112
18113
18114
18115
18116
18117
18118
18119
18120
18121
18122 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
18123 do
18124 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18125 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18126 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18127 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18128   echo $ECHO_N "(cached) $ECHO_C" >&6
18129 else
18130   cat >conftest.$ac_ext <<_ACEOF
18131 /* confdefs.h.  */
18132 _ACEOF
18133 cat confdefs.h >>conftest.$ac_ext
18134 cat >>conftest.$ac_ext <<_ACEOF
18135 /* end confdefs.h.  */
18136 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18137    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18138 #define $ac_func innocuous_$ac_func
18139
18140 /* System header to define __stub macros and hopefully few prototypes,
18141     which can conflict with char $ac_func (); below.
18142     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18143     <limits.h> exists even on freestanding compilers.  */
18144
18145 #ifdef __STDC__
18146 # include <limits.h>
18147 #else
18148 # include <assert.h>
18149 #endif
18150
18151 #undef $ac_func
18152
18153 /* Override any GCC internal prototype to avoid an error.
18154    Use char because int might match the return type of a GCC
18155    builtin and then its argument prototype would still apply.  */
18156 #ifdef __cplusplus
18157 extern "C"
18158 #endif
18159 char $ac_func ();
18160 /* The GNU C library defines this for functions which it implements
18161     to always fail with ENOSYS.  Some functions are actually named
18162     something starting with __ and the normal name is an alias.  */
18163 #if defined __stub_$ac_func || defined __stub___$ac_func
18164 choke me
18165 #endif
18166
18167 int
18168 main ()
18169 {
18170 return $ac_func ();
18171   ;
18172   return 0;
18173 }
18174 _ACEOF
18175 rm -f conftest.$ac_objext conftest$ac_exeext
18176 if { (ac_try="$ac_link"
18177 case "(($ac_try" in
18178   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18179   *) ac_try_echo=$ac_try;;
18180 esac
18181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18182   (eval "$ac_link") 2>conftest.er1
18183   ac_status=$?
18184   grep -v '^ *+' conftest.er1 >conftest.err
18185   rm -f conftest.er1
18186   cat conftest.err >&5
18187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18188   (exit $ac_status); } &&
18189          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18190   { (case "(($ac_try" in
18191   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18192   *) ac_try_echo=$ac_try;;
18193 esac
18194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18195   (eval "$ac_try") 2>&5
18196   ac_status=$?
18197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18198   (exit $ac_status); }; } &&
18199          { ac_try='test -s conftest$ac_exeext'
18200   { (case "(($ac_try" in
18201   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18202   *) ac_try_echo=$ac_try;;
18203 esac
18204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18205   (eval "$ac_try") 2>&5
18206   ac_status=$?
18207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18208   (exit $ac_status); }; }; then
18209   eval "$as_ac_var=yes"
18210 else
18211   echo "$as_me: failed program was:" >&5
18212 sed 's/^/| /' conftest.$ac_ext >&5
18213
18214         eval "$as_ac_var=no"
18215 fi
18216
18217 rm -f core conftest.err conftest.$ac_objext \
18218       conftest$ac_exeext conftest.$ac_ext
18219 fi
18220 ac_res=`eval echo '${'$as_ac_var'}'`
18221                { echo "$as_me:$LINENO: result: $ac_res" >&5
18222 echo "${ECHO_T}$ac_res" >&6; }
18223 if test `eval echo '${'$as_ac_var'}'` = yes; then
18224   cat >>confdefs.h <<_ACEOF
18225 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18226 _ACEOF
18227
18228 fi
18229 done
18230
18231
18232
18233
18234
18235 for ac_func in powf fmodf strtof round
18236 do
18237 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18238 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18239 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18240 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18241   echo $ECHO_N "(cached) $ECHO_C" >&6
18242 else
18243   cat >conftest.$ac_ext <<_ACEOF
18244 /* confdefs.h.  */
18245 _ACEOF
18246 cat confdefs.h >>conftest.$ac_ext
18247 cat >>conftest.$ac_ext <<_ACEOF
18248 /* end confdefs.h.  */
18249 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18250    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18251 #define $ac_func innocuous_$ac_func
18252
18253 /* System header to define __stub macros and hopefully few prototypes,
18254     which can conflict with char $ac_func (); below.
18255     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18256     <limits.h> exists even on freestanding compilers.  */
18257
18258 #ifdef __STDC__
18259 # include <limits.h>
18260 #else
18261 # include <assert.h>
18262 #endif
18263
18264 #undef $ac_func
18265
18266 /* Override any GCC internal prototype to avoid an error.
18267    Use char because int might match the return type of a GCC
18268    builtin and then its argument prototype would still apply.  */
18269 #ifdef __cplusplus
18270 extern "C"
18271 #endif
18272 char $ac_func ();
18273 /* The GNU C library defines this for functions which it implements
18274     to always fail with ENOSYS.  Some functions are actually named
18275     something starting with __ and the normal name is an alias.  */
18276 #if defined __stub_$ac_func || defined __stub___$ac_func
18277 choke me
18278 #endif
18279
18280 int
18281 main ()
18282 {
18283 return $ac_func ();
18284   ;
18285   return 0;
18286 }
18287 _ACEOF
18288 rm -f conftest.$ac_objext conftest$ac_exeext
18289 if { (ac_try="$ac_link"
18290 case "(($ac_try" in
18291   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18292   *) ac_try_echo=$ac_try;;
18293 esac
18294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18295   (eval "$ac_link") 2>conftest.er1
18296   ac_status=$?
18297   grep -v '^ *+' conftest.er1 >conftest.err
18298   rm -f conftest.er1
18299   cat conftest.err >&5
18300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18301   (exit $ac_status); } &&
18302          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18303   { (case "(($ac_try" in
18304   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18305   *) ac_try_echo=$ac_try;;
18306 esac
18307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18308   (eval "$ac_try") 2>&5
18309   ac_status=$?
18310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18311   (exit $ac_status); }; } &&
18312          { ac_try='test -s conftest$ac_exeext'
18313   { (case "(($ac_try" in
18314   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18315   *) ac_try_echo=$ac_try;;
18316 esac
18317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18318   (eval "$ac_try") 2>&5
18319   ac_status=$?
18320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18321   (exit $ac_status); }; }; then
18322   eval "$as_ac_var=yes"
18323 else
18324   echo "$as_me: failed program was:" >&5
18325 sed 's/^/| /' conftest.$ac_ext >&5
18326
18327         eval "$as_ac_var=no"
18328 fi
18329
18330 rm -f core conftest.err conftest.$ac_objext \
18331       conftest$ac_exeext conftest.$ac_ext
18332 fi
18333 ac_res=`eval echo '${'$as_ac_var'}'`
18334                { echo "$as_me:$LINENO: result: $ac_res" >&5
18335 echo "${ECHO_T}$ac_res" >&6; }
18336 if test `eval echo '${'$as_ac_var'}'` = yes; then
18337   cat >>confdefs.h <<_ACEOF
18338 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18339 _ACEOF
18340
18341 fi
18342 done
18343
18344
18345
18346
18347
18348
18349 for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
18350 do
18351 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18352 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18353 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18354 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18355   echo $ECHO_N "(cached) $ECHO_C" >&6
18356 else
18357   cat >conftest.$ac_ext <<_ACEOF
18358 /* confdefs.h.  */
18359 _ACEOF
18360 cat confdefs.h >>conftest.$ac_ext
18361 cat >>conftest.$ac_ext <<_ACEOF
18362 /* end confdefs.h.  */
18363 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18364    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18365 #define $ac_func innocuous_$ac_func
18366
18367 /* System header to define __stub macros and hopefully few prototypes,
18368     which can conflict with char $ac_func (); below.
18369     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18370     <limits.h> exists even on freestanding compilers.  */
18371
18372 #ifdef __STDC__
18373 # include <limits.h>
18374 #else
18375 # include <assert.h>
18376 #endif
18377
18378 #undef $ac_func
18379
18380 /* Override any GCC internal prototype to avoid an error.
18381    Use char because int might match the return type of a GCC
18382    builtin and then its argument prototype would still apply.  */
18383 #ifdef __cplusplus
18384 extern "C"
18385 #endif
18386 char $ac_func ();
18387 /* The GNU C library defines this for functions which it implements
18388     to always fail with ENOSYS.  Some functions are actually named
18389     something starting with __ and the normal name is an alias.  */
18390 #if defined __stub_$ac_func || defined __stub___$ac_func
18391 choke me
18392 #endif
18393
18394 int
18395 main ()
18396 {
18397 return $ac_func ();
18398   ;
18399   return 0;
18400 }
18401 _ACEOF
18402 rm -f conftest.$ac_objext conftest$ac_exeext
18403 if { (ac_try="$ac_link"
18404 case "(($ac_try" in
18405   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18406   *) ac_try_echo=$ac_try;;
18407 esac
18408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18409   (eval "$ac_link") 2>conftest.er1
18410   ac_status=$?
18411   grep -v '^ *+' conftest.er1 >conftest.err
18412   rm -f conftest.er1
18413   cat conftest.err >&5
18414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18415   (exit $ac_status); } &&
18416          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18417   { (case "(($ac_try" in
18418   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18419   *) ac_try_echo=$ac_try;;
18420 esac
18421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18422   (eval "$ac_try") 2>&5
18423   ac_status=$?
18424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18425   (exit $ac_status); }; } &&
18426          { ac_try='test -s conftest$ac_exeext'
18427   { (case "(($ac_try" in
18428   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18429   *) ac_try_echo=$ac_try;;
18430 esac
18431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18432   (eval "$ac_try") 2>&5
18433   ac_status=$?
18434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18435   (exit $ac_status); }; }; then
18436   eval "$as_ac_var=yes"
18437 else
18438   echo "$as_me: failed program was:" >&5
18439 sed 's/^/| /' conftest.$ac_ext >&5
18440
18441         eval "$as_ac_var=no"
18442 fi
18443
18444 rm -f core conftest.err conftest.$ac_objext \
18445       conftest$ac_exeext conftest.$ac_ext
18446 fi
18447 ac_res=`eval echo '${'$as_ac_var'}'`
18448                { echo "$as_me:$LINENO: result: $ac_res" >&5
18449 echo "${ECHO_T}$ac_res" >&6; }
18450 if test `eval echo '${'$as_ac_var'}'` = yes; then
18451   cat >>confdefs.h <<_ACEOF
18452 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18453 _ACEOF
18454
18455 fi
18456 done
18457
18458
18459
18460
18461 for ac_func in isatty mkdtemp mkstemp
18462 do
18463 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18464 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18465 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18466 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18467   echo $ECHO_N "(cached) $ECHO_C" >&6
18468 else
18469   cat >conftest.$ac_ext <<_ACEOF
18470 /* confdefs.h.  */
18471 _ACEOF
18472 cat confdefs.h >>conftest.$ac_ext
18473 cat >>conftest.$ac_ext <<_ACEOF
18474 /* end confdefs.h.  */
18475 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18476    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18477 #define $ac_func innocuous_$ac_func
18478
18479 /* System header to define __stub macros and hopefully few prototypes,
18480     which can conflict with char $ac_func (); below.
18481     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18482     <limits.h> exists even on freestanding compilers.  */
18483
18484 #ifdef __STDC__
18485 # include <limits.h>
18486 #else
18487 # include <assert.h>
18488 #endif
18489
18490 #undef $ac_func
18491
18492 /* Override any GCC internal prototype to avoid an error.
18493    Use char because int might match the return type of a GCC
18494    builtin and then its argument prototype would still apply.  */
18495 #ifdef __cplusplus
18496 extern "C"
18497 #endif
18498 char $ac_func ();
18499 /* The GNU C library defines this for functions which it implements
18500     to always fail with ENOSYS.  Some functions are actually named
18501     something starting with __ and the normal name is an alias.  */
18502 #if defined __stub_$ac_func || defined __stub___$ac_func
18503 choke me
18504 #endif
18505
18506 int
18507 main ()
18508 {
18509 return $ac_func ();
18510   ;
18511   return 0;
18512 }
18513 _ACEOF
18514 rm -f conftest.$ac_objext conftest$ac_exeext
18515 if { (ac_try="$ac_link"
18516 case "(($ac_try" in
18517   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18518   *) ac_try_echo=$ac_try;;
18519 esac
18520 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18521   (eval "$ac_link") 2>conftest.er1
18522   ac_status=$?
18523   grep -v '^ *+' conftest.er1 >conftest.err
18524   rm -f conftest.er1
18525   cat conftest.err >&5
18526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18527   (exit $ac_status); } &&
18528          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18529   { (case "(($ac_try" in
18530   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18531   *) ac_try_echo=$ac_try;;
18532 esac
18533 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18534   (eval "$ac_try") 2>&5
18535   ac_status=$?
18536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18537   (exit $ac_status); }; } &&
18538          { ac_try='test -s conftest$ac_exeext'
18539   { (case "(($ac_try" in
18540   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18541   *) ac_try_echo=$ac_try;;
18542 esac
18543 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18544   (eval "$ac_try") 2>&5
18545   ac_status=$?
18546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18547   (exit $ac_status); }; }; then
18548   eval "$as_ac_var=yes"
18549 else
18550   echo "$as_me: failed program was:" >&5
18551 sed 's/^/| /' conftest.$ac_ext >&5
18552
18553         eval "$as_ac_var=no"
18554 fi
18555
18556 rm -f core conftest.err conftest.$ac_objext \
18557       conftest$ac_exeext conftest.$ac_ext
18558 fi
18559 ac_res=`eval echo '${'$as_ac_var'}'`
18560                { echo "$as_me:$LINENO: result: $ac_res" >&5
18561 echo "${ECHO_T}$ac_res" >&6; }
18562 if test `eval echo '${'$as_ac_var'}'` = yes; then
18563   cat >>confdefs.h <<_ACEOF
18564 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18565 _ACEOF
18566
18567 fi
18568 done
18569
18570
18571
18572
18573
18574
18575
18576 for ac_func in mktemp posix_spawn realpath sbrk setrlimit strdup
18577 do
18578 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18579 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18580 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18581 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18582   echo $ECHO_N "(cached) $ECHO_C" >&6
18583 else
18584   cat >conftest.$ac_ext <<_ACEOF
18585 /* confdefs.h.  */
18586 _ACEOF
18587 cat confdefs.h >>conftest.$ac_ext
18588 cat >>conftest.$ac_ext <<_ACEOF
18589 /* end confdefs.h.  */
18590 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18591    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18592 #define $ac_func innocuous_$ac_func
18593
18594 /* System header to define __stub macros and hopefully few prototypes,
18595     which can conflict with char $ac_func (); below.
18596     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18597     <limits.h> exists even on freestanding compilers.  */
18598
18599 #ifdef __STDC__
18600 # include <limits.h>
18601 #else
18602 # include <assert.h>
18603 #endif
18604
18605 #undef $ac_func
18606
18607 /* Override any GCC internal prototype to avoid an error.
18608    Use char because int might match the return type of a GCC
18609    builtin and then its argument prototype would still apply.  */
18610 #ifdef __cplusplus
18611 extern "C"
18612 #endif
18613 char $ac_func ();
18614 /* The GNU C library defines this for functions which it implements
18615     to always fail with ENOSYS.  Some functions are actually named
18616     something starting with __ and the normal name is an alias.  */
18617 #if defined __stub_$ac_func || defined __stub___$ac_func
18618 choke me
18619 #endif
18620
18621 int
18622 main ()
18623 {
18624 return $ac_func ();
18625   ;
18626   return 0;
18627 }
18628 _ACEOF
18629 rm -f conftest.$ac_objext conftest$ac_exeext
18630 if { (ac_try="$ac_link"
18631 case "(($ac_try" in
18632   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18633   *) ac_try_echo=$ac_try;;
18634 esac
18635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18636   (eval "$ac_link") 2>conftest.er1
18637   ac_status=$?
18638   grep -v '^ *+' conftest.er1 >conftest.err
18639   rm -f conftest.er1
18640   cat conftest.err >&5
18641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18642   (exit $ac_status); } &&
18643          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18644   { (case "(($ac_try" in
18645   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18646   *) ac_try_echo=$ac_try;;
18647 esac
18648 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18649   (eval "$ac_try") 2>&5
18650   ac_status=$?
18651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18652   (exit $ac_status); }; } &&
18653          { ac_try='test -s conftest$ac_exeext'
18654   { (case "(($ac_try" in
18655   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18656   *) ac_try_echo=$ac_try;;
18657 esac
18658 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18659   (eval "$ac_try") 2>&5
18660   ac_status=$?
18661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18662   (exit $ac_status); }; }; then
18663   eval "$as_ac_var=yes"
18664 else
18665   echo "$as_me: failed program was:" >&5
18666 sed 's/^/| /' conftest.$ac_ext >&5
18667
18668         eval "$as_ac_var=no"
18669 fi
18670
18671 rm -f core conftest.err conftest.$ac_objext \
18672       conftest$ac_exeext conftest.$ac_ext
18673 fi
18674 ac_res=`eval echo '${'$as_ac_var'}'`
18675                { echo "$as_me:$LINENO: result: $ac_res" >&5
18676 echo "${ECHO_T}$ac_res" >&6; }
18677 if test `eval echo '${'$as_ac_var'}'` = yes; then
18678   cat >>confdefs.h <<_ACEOF
18679 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18680 _ACEOF
18681
18682 fi
18683 done
18684
18685
18686
18687
18688 for ac_func in strerror strerror_r setenv
18689 do
18690 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18691 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18692 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18693 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18694   echo $ECHO_N "(cached) $ECHO_C" >&6
18695 else
18696   cat >conftest.$ac_ext <<_ACEOF
18697 /* confdefs.h.  */
18698 _ACEOF
18699 cat confdefs.h >>conftest.$ac_ext
18700 cat >>conftest.$ac_ext <<_ACEOF
18701 /* end confdefs.h.  */
18702 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18703    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18704 #define $ac_func innocuous_$ac_func
18705
18706 /* System header to define __stub macros and hopefully few prototypes,
18707     which can conflict with char $ac_func (); below.
18708     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18709     <limits.h> exists even on freestanding compilers.  */
18710
18711 #ifdef __STDC__
18712 # include <limits.h>
18713 #else
18714 # include <assert.h>
18715 #endif
18716
18717 #undef $ac_func
18718
18719 /* Override any GCC internal prototype to avoid an error.
18720    Use char because int might match the return type of a GCC
18721    builtin and then its argument prototype would still apply.  */
18722 #ifdef __cplusplus
18723 extern "C"
18724 #endif
18725 char $ac_func ();
18726 /* The GNU C library defines this for functions which it implements
18727     to always fail with ENOSYS.  Some functions are actually named
18728     something starting with __ and the normal name is an alias.  */
18729 #if defined __stub_$ac_func || defined __stub___$ac_func
18730 choke me
18731 #endif
18732
18733 int
18734 main ()
18735 {
18736 return $ac_func ();
18737   ;
18738   return 0;
18739 }
18740 _ACEOF
18741 rm -f conftest.$ac_objext conftest$ac_exeext
18742 if { (ac_try="$ac_link"
18743 case "(($ac_try" in
18744   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18745   *) ac_try_echo=$ac_try;;
18746 esac
18747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18748   (eval "$ac_link") 2>conftest.er1
18749   ac_status=$?
18750   grep -v '^ *+' conftest.er1 >conftest.err
18751   rm -f conftest.er1
18752   cat conftest.err >&5
18753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18754   (exit $ac_status); } &&
18755          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18756   { (case "(($ac_try" in
18757   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18758   *) ac_try_echo=$ac_try;;
18759 esac
18760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18761   (eval "$ac_try") 2>&5
18762   ac_status=$?
18763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18764   (exit $ac_status); }; } &&
18765          { ac_try='test -s conftest$ac_exeext'
18766   { (case "(($ac_try" in
18767   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18768   *) ac_try_echo=$ac_try;;
18769 esac
18770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18771   (eval "$ac_try") 2>&5
18772   ac_status=$?
18773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18774   (exit $ac_status); }; }; then
18775   eval "$as_ac_var=yes"
18776 else
18777   echo "$as_me: failed program was:" >&5
18778 sed 's/^/| /' conftest.$ac_ext >&5
18779
18780         eval "$as_ac_var=no"
18781 fi
18782
18783 rm -f core conftest.err conftest.$ac_objext \
18784       conftest$ac_exeext conftest.$ac_ext
18785 fi
18786 ac_res=`eval echo '${'$as_ac_var'}'`
18787                { echo "$as_me:$LINENO: result: $ac_res" >&5
18788 echo "${ECHO_T}$ac_res" >&6; }
18789 if test `eval echo '${'$as_ac_var'}'` = yes; then
18790   cat >>confdefs.h <<_ACEOF
18791 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18792 _ACEOF
18793
18794 fi
18795 done
18796
18797
18798
18799
18800
18801 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
18802 do
18803 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18804 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18805 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18806 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18807   echo $ECHO_N "(cached) $ECHO_C" >&6
18808 else
18809   cat >conftest.$ac_ext <<_ACEOF
18810 /* confdefs.h.  */
18811 _ACEOF
18812 cat confdefs.h >>conftest.$ac_ext
18813 cat >>conftest.$ac_ext <<_ACEOF
18814 /* end confdefs.h.  */
18815 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18816    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18817 #define $ac_func innocuous_$ac_func
18818
18819 /* System header to define __stub macros and hopefully few prototypes,
18820     which can conflict with char $ac_func (); below.
18821     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18822     <limits.h> exists even on freestanding compilers.  */
18823
18824 #ifdef __STDC__
18825 # include <limits.h>
18826 #else
18827 # include <assert.h>
18828 #endif
18829
18830 #undef $ac_func
18831
18832 /* Override any GCC internal prototype to avoid an error.
18833    Use char because int might match the return type of a GCC
18834    builtin and then its argument prototype would still apply.  */
18835 #ifdef __cplusplus
18836 extern "C"
18837 #endif
18838 char $ac_func ();
18839 /* The GNU C library defines this for functions which it implements
18840     to always fail with ENOSYS.  Some functions are actually named
18841     something starting with __ and the normal name is an alias.  */
18842 #if defined __stub_$ac_func || defined __stub___$ac_func
18843 choke me
18844 #endif
18845
18846 int
18847 main ()
18848 {
18849 return $ac_func ();
18850   ;
18851   return 0;
18852 }
18853 _ACEOF
18854 rm -f conftest.$ac_objext conftest$ac_exeext
18855 if { (ac_try="$ac_link"
18856 case "(($ac_try" in
18857   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18858   *) ac_try_echo=$ac_try;;
18859 esac
18860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18861   (eval "$ac_link") 2>conftest.er1
18862   ac_status=$?
18863   grep -v '^ *+' conftest.er1 >conftest.err
18864   rm -f conftest.er1
18865   cat conftest.err >&5
18866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18867   (exit $ac_status); } &&
18868          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18869   { (case "(($ac_try" in
18870   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18871   *) ac_try_echo=$ac_try;;
18872 esac
18873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18874   (eval "$ac_try") 2>&5
18875   ac_status=$?
18876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18877   (exit $ac_status); }; } &&
18878          { ac_try='test -s conftest$ac_exeext'
18879   { (case "(($ac_try" in
18880   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18881   *) ac_try_echo=$ac_try;;
18882 esac
18883 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18884   (eval "$ac_try") 2>&5
18885   ac_status=$?
18886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18887   (exit $ac_status); }; }; then
18888   eval "$as_ac_var=yes"
18889 else
18890   echo "$as_me: failed program was:" >&5
18891 sed 's/^/| /' conftest.$ac_ext >&5
18892
18893         eval "$as_ac_var=no"
18894 fi
18895
18896 rm -f core conftest.err conftest.$ac_objext \
18897       conftest$ac_exeext conftest.$ac_ext
18898 fi
18899 ac_res=`eval echo '${'$as_ac_var'}'`
18900                { echo "$as_me:$LINENO: result: $ac_res" >&5
18901 echo "${ECHO_T}$ac_res" >&6; }
18902 if test `eval echo '${'$as_ac_var'}'` = yes; then
18903   cat >>confdefs.h <<_ACEOF
18904 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18905 _ACEOF
18906
18907 fi
18908 done
18909
18910
18911
18912
18913
18914
18915 for ac_func in setjmp longjmp sigsetjmp siglongjmp writev
18916 do
18917 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18918 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18919 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18920 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18921   echo $ECHO_N "(cached) $ECHO_C" >&6
18922 else
18923   cat >conftest.$ac_ext <<_ACEOF
18924 /* confdefs.h.  */
18925 _ACEOF
18926 cat confdefs.h >>conftest.$ac_ext
18927 cat >>conftest.$ac_ext <<_ACEOF
18928 /* end confdefs.h.  */
18929 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18930    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18931 #define $ac_func innocuous_$ac_func
18932
18933 /* System header to define __stub macros and hopefully few prototypes,
18934     which can conflict with char $ac_func (); below.
18935     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18936     <limits.h> exists even on freestanding compilers.  */
18937
18938 #ifdef __STDC__
18939 # include <limits.h>
18940 #else
18941 # include <assert.h>
18942 #endif
18943
18944 #undef $ac_func
18945
18946 /* Override any GCC internal prototype to avoid an error.
18947    Use char because int might match the return type of a GCC
18948    builtin and then its argument prototype would still apply.  */
18949 #ifdef __cplusplus
18950 extern "C"
18951 #endif
18952 char $ac_func ();
18953 /* The GNU C library defines this for functions which it implements
18954     to always fail with ENOSYS.  Some functions are actually named
18955     something starting with __ and the normal name is an alias.  */
18956 #if defined __stub_$ac_func || defined __stub___$ac_func
18957 choke me
18958 #endif
18959
18960 int
18961 main ()
18962 {
18963 return $ac_func ();
18964   ;
18965   return 0;
18966 }
18967 _ACEOF
18968 rm -f conftest.$ac_objext conftest$ac_exeext
18969 if { (ac_try="$ac_link"
18970 case "(($ac_try" in
18971   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18972   *) ac_try_echo=$ac_try;;
18973 esac
18974 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18975   (eval "$ac_link") 2>conftest.er1
18976   ac_status=$?
18977   grep -v '^ *+' conftest.er1 >conftest.err
18978   rm -f conftest.er1
18979   cat conftest.err >&5
18980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18981   (exit $ac_status); } &&
18982          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18983   { (case "(($ac_try" in
18984   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18985   *) ac_try_echo=$ac_try;;
18986 esac
18987 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18988   (eval "$ac_try") 2>&5
18989   ac_status=$?
18990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18991   (exit $ac_status); }; } &&
18992          { ac_try='test -s conftest$ac_exeext'
18993   { (case "(($ac_try" in
18994   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18995   *) ac_try_echo=$ac_try;;
18996 esac
18997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18998   (eval "$ac_try") 2>&5
18999   ac_status=$?
19000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19001   (exit $ac_status); }; }; then
19002   eval "$as_ac_var=yes"
19003 else
19004   echo "$as_me: failed program was:" >&5
19005 sed 's/^/| /' conftest.$ac_ext >&5
19006
19007         eval "$as_ac_var=no"
19008 fi
19009
19010 rm -f core conftest.err conftest.$ac_objext \
19011       conftest$ac_exeext conftest.$ac_ext
19012 fi
19013 ac_res=`eval echo '${'$as_ac_var'}'`
19014                { echo "$as_me:$LINENO: result: $ac_res" >&5
19015 echo "${ECHO_T}$ac_res" >&6; }
19016 if test `eval echo '${'$as_ac_var'}'` = yes; then
19017   cat >>confdefs.h <<_ACEOF
19018 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19019 _ACEOF
19020
19021 fi
19022 done
19023
19024 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
19025 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
19026 if test "${llvm_cv_c_printf_a+set}" = set; then
19027   echo $ECHO_N "(cached) $ECHO_C" >&6
19028 else
19029   ac_ext=c
19030 ac_cpp='$CPP $CPPFLAGS'
19031 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19032 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19033 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19034
19035  if test "$cross_compiling" = yes; then
19036   llvmac_cv_c_printf_a=no
19037 else
19038   cat >conftest.$ac_ext <<_ACEOF
19039
19040   /* confdefs.h.  */
19041 _ACEOF
19042 cat confdefs.h >>conftest.$ac_ext
19043 cat >>conftest.$ac_ext <<_ACEOF
19044 /* end confdefs.h.  */
19045
19046 #include <stdio.h>
19047 #include <stdlib.h>
19048
19049 int
19050 main ()
19051 {
19052
19053 volatile double A, B;
19054 char Buffer[100];
19055 A = 1;
19056 A /= 10.0;
19057 sprintf(Buffer, "%a", A);
19058 B = atof(Buffer);
19059 if (A != B)
19060   return (1);
19061 if (A != 0x1.999999999999ap-4)
19062   return (1);
19063 return (0);
19064   ;
19065   return 0;
19066 }
19067 _ACEOF
19068 rm -f conftest$ac_exeext
19069 if { (ac_try="$ac_link"
19070 case "(($ac_try" in
19071   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19072   *) ac_try_echo=$ac_try;;
19073 esac
19074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19075   (eval "$ac_link") 2>&5
19076   ac_status=$?
19077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19078   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19079   { (case "(($ac_try" in
19080   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19081   *) ac_try_echo=$ac_try;;
19082 esac
19083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19084   (eval "$ac_try") 2>&5
19085   ac_status=$?
19086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19087   (exit $ac_status); }; }; then
19088   llvm_cv_c_printf_a=yes
19089 else
19090   echo "$as_me: program exited with status $ac_status" >&5
19091 echo "$as_me: failed program was:" >&5
19092 sed 's/^/| /' conftest.$ac_ext >&5
19093
19094 ( exit $ac_status )
19095 llvmac_cv_c_printf_a=no
19096 fi
19097 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19098 fi
19099
19100
19101  ac_ext=c
19102 ac_cpp='$CPP $CPPFLAGS'
19103 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19104 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19105 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19106
19107 fi
19108 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
19109 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
19110  if test "$llvm_cv_c_printf_a" = "yes"; then
19111
19112 cat >>confdefs.h <<\_ACEOF
19113 #define HAVE_PRINTF_A 1
19114 _ACEOF
19115
19116  fi
19117
19118
19119 { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
19120 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
19121 if test "${ac_cv_func_rand48+set}" = set; then
19122   echo $ECHO_N "(cached) $ECHO_C" >&6
19123 else
19124   ac_ext=cpp
19125 ac_cpp='$CXXCPP $CPPFLAGS'
19126 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19127 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19128 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19129
19130    cat >conftest.$ac_ext <<_ACEOF
19131 /* confdefs.h.  */
19132 _ACEOF
19133 cat confdefs.h >>conftest.$ac_ext
19134 cat >>conftest.$ac_ext <<_ACEOF
19135 /* end confdefs.h.  */
19136 #include <stdlib.h>
19137 int
19138 main ()
19139 {
19140 srand48(0);lrand48();drand48();
19141   ;
19142   return 0;
19143 }
19144 _ACEOF
19145 rm -f conftest.$ac_objext
19146 if { (ac_try="$ac_compile"
19147 case "(($ac_try" in
19148   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19149   *) ac_try_echo=$ac_try;;
19150 esac
19151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19152   (eval "$ac_compile") 2>conftest.er1
19153   ac_status=$?
19154   grep -v '^ *+' conftest.er1 >conftest.err
19155   rm -f conftest.er1
19156   cat conftest.err >&5
19157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19158   (exit $ac_status); } &&
19159          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19160   { (case "(($ac_try" in
19161   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19162   *) ac_try_echo=$ac_try;;
19163 esac
19164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19165   (eval "$ac_try") 2>&5
19166   ac_status=$?
19167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19168   (exit $ac_status); }; } &&
19169          { ac_try='test -s conftest.$ac_objext'
19170   { (case "(($ac_try" in
19171   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19172   *) ac_try_echo=$ac_try;;
19173 esac
19174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19175   (eval "$ac_try") 2>&5
19176   ac_status=$?
19177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19178   (exit $ac_status); }; }; then
19179   ac_cv_func_rand48=yes
19180 else
19181   echo "$as_me: failed program was:" >&5
19182 sed 's/^/| /' conftest.$ac_ext >&5
19183
19184         ac_cv_func_rand48=no
19185 fi
19186
19187 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19188   ac_ext=c
19189 ac_cpp='$CPP $CPPFLAGS'
19190 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19191 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19192 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19193
19194 fi
19195 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
19196 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
19197
19198 if test "$ac_cv_func_rand48" = "yes" ; then
19199
19200 cat >>confdefs.h <<\_ACEOF
19201 #define HAVE_RAND48 1
19202 _ACEOF
19203
19204 fi
19205
19206
19207 { echo "$as_me:$LINENO: checking whether strerror_s is declared" >&5
19208 echo $ECHO_N "checking whether strerror_s is declared... $ECHO_C" >&6; }
19209 if test "${ac_cv_have_decl_strerror_s+set}" = set; then
19210   echo $ECHO_N "(cached) $ECHO_C" >&6
19211 else
19212   cat >conftest.$ac_ext <<_ACEOF
19213 /* confdefs.h.  */
19214 _ACEOF
19215 cat confdefs.h >>conftest.$ac_ext
19216 cat >>conftest.$ac_ext <<_ACEOF
19217 /* end confdefs.h.  */
19218 $ac_includes_default
19219 int
19220 main ()
19221 {
19222 #ifndef strerror_s
19223   char *p = (char *) strerror_s;
19224   return !p;
19225 #endif
19226
19227   ;
19228   return 0;
19229 }
19230 _ACEOF
19231 rm -f conftest.$ac_objext
19232 if { (ac_try="$ac_compile"
19233 case "(($ac_try" in
19234   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19235   *) ac_try_echo=$ac_try;;
19236 esac
19237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19238   (eval "$ac_compile") 2>conftest.er1
19239   ac_status=$?
19240   grep -v '^ *+' conftest.er1 >conftest.err
19241   rm -f conftest.er1
19242   cat conftest.err >&5
19243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19244   (exit $ac_status); } &&
19245          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19246   { (case "(($ac_try" in
19247   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19248   *) ac_try_echo=$ac_try;;
19249 esac
19250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19251   (eval "$ac_try") 2>&5
19252   ac_status=$?
19253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19254   (exit $ac_status); }; } &&
19255          { ac_try='test -s conftest.$ac_objext'
19256   { (case "(($ac_try" in
19257   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19258   *) ac_try_echo=$ac_try;;
19259 esac
19260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19261   (eval "$ac_try") 2>&5
19262   ac_status=$?
19263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19264   (exit $ac_status); }; }; then
19265   ac_cv_have_decl_strerror_s=yes
19266 else
19267   echo "$as_me: failed program was:" >&5
19268 sed 's/^/| /' conftest.$ac_ext >&5
19269
19270         ac_cv_have_decl_strerror_s=no
19271 fi
19272
19273 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19274 fi
19275 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_s" >&5
19276 echo "${ECHO_T}$ac_cv_have_decl_strerror_s" >&6; }
19277 if test $ac_cv_have_decl_strerror_s = yes; then
19278
19279 cat >>confdefs.h <<_ACEOF
19280 #define HAVE_DECL_STRERROR_S 1
19281 _ACEOF
19282
19283
19284 else
19285   cat >>confdefs.h <<_ACEOF
19286 #define HAVE_DECL_STRERROR_S 0
19287 _ACEOF
19288
19289
19290 fi
19291
19292
19293
19294 if test "$llvm_cv_os_type" = "MingW" ; then
19295   { echo "$as_me:$LINENO: checking for _alloca in -lgcc" >&5
19296 echo $ECHO_N "checking for _alloca in -lgcc... $ECHO_C" >&6; }
19297 if test "${ac_cv_lib_gcc__alloca+set}" = set; then
19298   echo $ECHO_N "(cached) $ECHO_C" >&6
19299 else
19300   ac_check_lib_save_LIBS=$LIBS
19301 LIBS="-lgcc  $LIBS"
19302 cat >conftest.$ac_ext <<_ACEOF
19303 /* confdefs.h.  */
19304 _ACEOF
19305 cat confdefs.h >>conftest.$ac_ext
19306 cat >>conftest.$ac_ext <<_ACEOF
19307 /* end confdefs.h.  */
19308
19309 /* Override any GCC internal prototype to avoid an error.
19310    Use char because int might match the return type of a GCC
19311    builtin and then its argument prototype would still apply.  */
19312 #ifdef __cplusplus
19313 extern "C"
19314 #endif
19315 char _alloca ();
19316 int
19317 main ()
19318 {
19319 return _alloca ();
19320   ;
19321   return 0;
19322 }
19323 _ACEOF
19324 rm -f conftest.$ac_objext conftest$ac_exeext
19325 if { (ac_try="$ac_link"
19326 case "(($ac_try" in
19327   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19328   *) ac_try_echo=$ac_try;;
19329 esac
19330 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19331   (eval "$ac_link") 2>conftest.er1
19332   ac_status=$?
19333   grep -v '^ *+' conftest.er1 >conftest.err
19334   rm -f conftest.er1
19335   cat conftest.err >&5
19336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19337   (exit $ac_status); } &&
19338          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19339   { (case "(($ac_try" in
19340   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19341   *) ac_try_echo=$ac_try;;
19342 esac
19343 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19344   (eval "$ac_try") 2>&5
19345   ac_status=$?
19346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19347   (exit $ac_status); }; } &&
19348          { ac_try='test -s conftest$ac_exeext'
19349   { (case "(($ac_try" in
19350   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19351   *) ac_try_echo=$ac_try;;
19352 esac
19353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19354   (eval "$ac_try") 2>&5
19355   ac_status=$?
19356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19357   (exit $ac_status); }; }; then
19358   ac_cv_lib_gcc__alloca=yes
19359 else
19360   echo "$as_me: failed program was:" >&5
19361 sed 's/^/| /' conftest.$ac_ext >&5
19362
19363         ac_cv_lib_gcc__alloca=no
19364 fi
19365
19366 rm -f core conftest.err conftest.$ac_objext \
19367       conftest$ac_exeext conftest.$ac_ext
19368 LIBS=$ac_check_lib_save_LIBS
19369 fi
19370 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc__alloca" >&5
19371 echo "${ECHO_T}$ac_cv_lib_gcc__alloca" >&6; }
19372 if test $ac_cv_lib_gcc__alloca = yes; then
19373
19374 cat >>confdefs.h <<\_ACEOF
19375 #define HAVE__ALLOCA 1
19376 _ACEOF
19377
19378 fi
19379
19380   { echo "$as_me:$LINENO: checking for __alloca in -lgcc" >&5
19381 echo $ECHO_N "checking for __alloca in -lgcc... $ECHO_C" >&6; }
19382 if test "${ac_cv_lib_gcc___alloca+set}" = set; then
19383   echo $ECHO_N "(cached) $ECHO_C" >&6
19384 else
19385   ac_check_lib_save_LIBS=$LIBS
19386 LIBS="-lgcc  $LIBS"
19387 cat >conftest.$ac_ext <<_ACEOF
19388 /* confdefs.h.  */
19389 _ACEOF
19390 cat confdefs.h >>conftest.$ac_ext
19391 cat >>conftest.$ac_ext <<_ACEOF
19392 /* end confdefs.h.  */
19393
19394 /* Override any GCC internal prototype to avoid an error.
19395    Use char because int might match the return type of a GCC
19396    builtin and then its argument prototype would still apply.  */
19397 #ifdef __cplusplus
19398 extern "C"
19399 #endif
19400 char __alloca ();
19401 int
19402 main ()
19403 {
19404 return __alloca ();
19405   ;
19406   return 0;
19407 }
19408 _ACEOF
19409 rm -f conftest.$ac_objext conftest$ac_exeext
19410 if { (ac_try="$ac_link"
19411 case "(($ac_try" in
19412   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19413   *) ac_try_echo=$ac_try;;
19414 esac
19415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19416   (eval "$ac_link") 2>conftest.er1
19417   ac_status=$?
19418   grep -v '^ *+' conftest.er1 >conftest.err
19419   rm -f conftest.er1
19420   cat conftest.err >&5
19421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19422   (exit $ac_status); } &&
19423          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19424   { (case "(($ac_try" in
19425   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19426   *) ac_try_echo=$ac_try;;
19427 esac
19428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19429   (eval "$ac_try") 2>&5
19430   ac_status=$?
19431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19432   (exit $ac_status); }; } &&
19433          { ac_try='test -s conftest$ac_exeext'
19434   { (case "(($ac_try" in
19435   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19436   *) ac_try_echo=$ac_try;;
19437 esac
19438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19439   (eval "$ac_try") 2>&5
19440   ac_status=$?
19441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19442   (exit $ac_status); }; }; then
19443   ac_cv_lib_gcc___alloca=yes
19444 else
19445   echo "$as_me: failed program was:" >&5
19446 sed 's/^/| /' conftest.$ac_ext >&5
19447
19448         ac_cv_lib_gcc___alloca=no
19449 fi
19450
19451 rm -f core conftest.err conftest.$ac_objext \
19452       conftest$ac_exeext conftest.$ac_ext
19453 LIBS=$ac_check_lib_save_LIBS
19454 fi
19455 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___alloca" >&5
19456 echo "${ECHO_T}$ac_cv_lib_gcc___alloca" >&6; }
19457 if test $ac_cv_lib_gcc___alloca = yes; then
19458
19459 cat >>confdefs.h <<\_ACEOF
19460 #define HAVE___ALLOCA 1
19461 _ACEOF
19462
19463 fi
19464
19465   { echo "$as_me:$LINENO: checking for __chkstk in -lgcc" >&5
19466 echo $ECHO_N "checking for __chkstk in -lgcc... $ECHO_C" >&6; }
19467 if test "${ac_cv_lib_gcc___chkstk+set}" = set; then
19468   echo $ECHO_N "(cached) $ECHO_C" >&6
19469 else
19470   ac_check_lib_save_LIBS=$LIBS
19471 LIBS="-lgcc  $LIBS"
19472 cat >conftest.$ac_ext <<_ACEOF
19473 /* confdefs.h.  */
19474 _ACEOF
19475 cat confdefs.h >>conftest.$ac_ext
19476 cat >>conftest.$ac_ext <<_ACEOF
19477 /* end confdefs.h.  */
19478
19479 /* Override any GCC internal prototype to avoid an error.
19480    Use char because int might match the return type of a GCC
19481    builtin and then its argument prototype would still apply.  */
19482 #ifdef __cplusplus
19483 extern "C"
19484 #endif
19485 char __chkstk ();
19486 int
19487 main ()
19488 {
19489 return __chkstk ();
19490   ;
19491   return 0;
19492 }
19493 _ACEOF
19494 rm -f conftest.$ac_objext conftest$ac_exeext
19495 if { (ac_try="$ac_link"
19496 case "(($ac_try" in
19497   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19498   *) ac_try_echo=$ac_try;;
19499 esac
19500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19501   (eval "$ac_link") 2>conftest.er1
19502   ac_status=$?
19503   grep -v '^ *+' conftest.er1 >conftest.err
19504   rm -f conftest.er1
19505   cat conftest.err >&5
19506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19507   (exit $ac_status); } &&
19508          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19509   { (case "(($ac_try" in
19510   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19511   *) ac_try_echo=$ac_try;;
19512 esac
19513 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19514   (eval "$ac_try") 2>&5
19515   ac_status=$?
19516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19517   (exit $ac_status); }; } &&
19518          { ac_try='test -s conftest$ac_exeext'
19519   { (case "(($ac_try" in
19520   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19521   *) ac_try_echo=$ac_try;;
19522 esac
19523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19524   (eval "$ac_try") 2>&5
19525   ac_status=$?
19526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19527   (exit $ac_status); }; }; then
19528   ac_cv_lib_gcc___chkstk=yes
19529 else
19530   echo "$as_me: failed program was:" >&5
19531 sed 's/^/| /' conftest.$ac_ext >&5
19532
19533         ac_cv_lib_gcc___chkstk=no
19534 fi
19535
19536 rm -f core conftest.err conftest.$ac_objext \
19537       conftest$ac_exeext conftest.$ac_ext
19538 LIBS=$ac_check_lib_save_LIBS
19539 fi
19540 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___chkstk" >&5
19541 echo "${ECHO_T}$ac_cv_lib_gcc___chkstk" >&6; }
19542 if test $ac_cv_lib_gcc___chkstk = yes; then
19543
19544 cat >>confdefs.h <<\_ACEOF
19545 #define HAVE___CHKSTK 1
19546 _ACEOF
19547
19548 fi
19549
19550   { echo "$as_me:$LINENO: checking for ___chkstk in -lgcc" >&5
19551 echo $ECHO_N "checking for ___chkstk in -lgcc... $ECHO_C" >&6; }
19552 if test "${ac_cv_lib_gcc____chkstk+set}" = set; then
19553   echo $ECHO_N "(cached) $ECHO_C" >&6
19554 else
19555   ac_check_lib_save_LIBS=$LIBS
19556 LIBS="-lgcc  $LIBS"
19557 cat >conftest.$ac_ext <<_ACEOF
19558 /* confdefs.h.  */
19559 _ACEOF
19560 cat confdefs.h >>conftest.$ac_ext
19561 cat >>conftest.$ac_ext <<_ACEOF
19562 /* end confdefs.h.  */
19563
19564 /* Override any GCC internal prototype to avoid an error.
19565    Use char because int might match the return type of a GCC
19566    builtin and then its argument prototype would still apply.  */
19567 #ifdef __cplusplus
19568 extern "C"
19569 #endif
19570 char ___chkstk ();
19571 int
19572 main ()
19573 {
19574 return ___chkstk ();
19575   ;
19576   return 0;
19577 }
19578 _ACEOF
19579 rm -f conftest.$ac_objext conftest$ac_exeext
19580 if { (ac_try="$ac_link"
19581 case "(($ac_try" in
19582   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19583   *) ac_try_echo=$ac_try;;
19584 esac
19585 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19586   (eval "$ac_link") 2>conftest.er1
19587   ac_status=$?
19588   grep -v '^ *+' conftest.er1 >conftest.err
19589   rm -f conftest.er1
19590   cat conftest.err >&5
19591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19592   (exit $ac_status); } &&
19593          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19594   { (case "(($ac_try" in
19595   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19596   *) ac_try_echo=$ac_try;;
19597 esac
19598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19599   (eval "$ac_try") 2>&5
19600   ac_status=$?
19601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19602   (exit $ac_status); }; } &&
19603          { ac_try='test -s conftest$ac_exeext'
19604   { (case "(($ac_try" in
19605   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19606   *) ac_try_echo=$ac_try;;
19607 esac
19608 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19609   (eval "$ac_try") 2>&5
19610   ac_status=$?
19611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19612   (exit $ac_status); }; }; then
19613   ac_cv_lib_gcc____chkstk=yes
19614 else
19615   echo "$as_me: failed program was:" >&5
19616 sed 's/^/| /' conftest.$ac_ext >&5
19617
19618         ac_cv_lib_gcc____chkstk=no
19619 fi
19620
19621 rm -f core conftest.err conftest.$ac_objext \
19622       conftest$ac_exeext conftest.$ac_ext
19623 LIBS=$ac_check_lib_save_LIBS
19624 fi
19625 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc____chkstk" >&5
19626 echo "${ECHO_T}$ac_cv_lib_gcc____chkstk" >&6; }
19627 if test $ac_cv_lib_gcc____chkstk = yes; then
19628
19629 cat >>confdefs.h <<\_ACEOF
19630 #define HAVE____CHKSTK 1
19631 _ACEOF
19632
19633 fi
19634
19635
19636   { echo "$as_me:$LINENO: checking for __ashldi3 in -lgcc" >&5
19637 echo $ECHO_N "checking for __ashldi3 in -lgcc... $ECHO_C" >&6; }
19638 if test "${ac_cv_lib_gcc___ashldi3+set}" = set; then
19639   echo $ECHO_N "(cached) $ECHO_C" >&6
19640 else
19641   ac_check_lib_save_LIBS=$LIBS
19642 LIBS="-lgcc  $LIBS"
19643 cat >conftest.$ac_ext <<_ACEOF
19644 /* confdefs.h.  */
19645 _ACEOF
19646 cat confdefs.h >>conftest.$ac_ext
19647 cat >>conftest.$ac_ext <<_ACEOF
19648 /* end confdefs.h.  */
19649
19650 /* Override any GCC internal prototype to avoid an error.
19651    Use char because int might match the return type of a GCC
19652    builtin and then its argument prototype would still apply.  */
19653 #ifdef __cplusplus
19654 extern "C"
19655 #endif
19656 char __ashldi3 ();
19657 int
19658 main ()
19659 {
19660 return __ashldi3 ();
19661   ;
19662   return 0;
19663 }
19664 _ACEOF
19665 rm -f conftest.$ac_objext conftest$ac_exeext
19666 if { (ac_try="$ac_link"
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_link") 2>conftest.er1
19673   ac_status=$?
19674   grep -v '^ *+' conftest.er1 >conftest.err
19675   rm -f conftest.er1
19676   cat conftest.err >&5
19677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19678   (exit $ac_status); } &&
19679          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19680   { (case "(($ac_try" in
19681   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19682   *) ac_try_echo=$ac_try;;
19683 esac
19684 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19685   (eval "$ac_try") 2>&5
19686   ac_status=$?
19687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19688   (exit $ac_status); }; } &&
19689          { ac_try='test -s conftest$ac_exeext'
19690   { (case "(($ac_try" in
19691   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19692   *) ac_try_echo=$ac_try;;
19693 esac
19694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19695   (eval "$ac_try") 2>&5
19696   ac_status=$?
19697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19698   (exit $ac_status); }; }; then
19699   ac_cv_lib_gcc___ashldi3=yes
19700 else
19701   echo "$as_me: failed program was:" >&5
19702 sed 's/^/| /' conftest.$ac_ext >&5
19703
19704         ac_cv_lib_gcc___ashldi3=no
19705 fi
19706
19707 rm -f core conftest.err conftest.$ac_objext \
19708       conftest$ac_exeext conftest.$ac_ext
19709 LIBS=$ac_check_lib_save_LIBS
19710 fi
19711 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashldi3" >&5
19712 echo "${ECHO_T}$ac_cv_lib_gcc___ashldi3" >&6; }
19713 if test $ac_cv_lib_gcc___ashldi3 = yes; then
19714
19715 cat >>confdefs.h <<\_ACEOF
19716 #define HAVE___ASHLDI3 1
19717 _ACEOF
19718
19719 fi
19720
19721   { echo "$as_me:$LINENO: checking for __ashrdi3 in -lgcc" >&5
19722 echo $ECHO_N "checking for __ashrdi3 in -lgcc... $ECHO_C" >&6; }
19723 if test "${ac_cv_lib_gcc___ashrdi3+set}" = set; then
19724   echo $ECHO_N "(cached) $ECHO_C" >&6
19725 else
19726   ac_check_lib_save_LIBS=$LIBS
19727 LIBS="-lgcc  $LIBS"
19728 cat >conftest.$ac_ext <<_ACEOF
19729 /* confdefs.h.  */
19730 _ACEOF
19731 cat confdefs.h >>conftest.$ac_ext
19732 cat >>conftest.$ac_ext <<_ACEOF
19733 /* end confdefs.h.  */
19734
19735 /* Override any GCC internal prototype to avoid an error.
19736    Use char because int might match the return type of a GCC
19737    builtin and then its argument prototype would still apply.  */
19738 #ifdef __cplusplus
19739 extern "C"
19740 #endif
19741 char __ashrdi3 ();
19742 int
19743 main ()
19744 {
19745 return __ashrdi3 ();
19746   ;
19747   return 0;
19748 }
19749 _ACEOF
19750 rm -f conftest.$ac_objext conftest$ac_exeext
19751 if { (ac_try="$ac_link"
19752 case "(($ac_try" in
19753   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19754   *) ac_try_echo=$ac_try;;
19755 esac
19756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19757   (eval "$ac_link") 2>conftest.er1
19758   ac_status=$?
19759   grep -v '^ *+' conftest.er1 >conftest.err
19760   rm -f conftest.er1
19761   cat conftest.err >&5
19762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19763   (exit $ac_status); } &&
19764          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19765   { (case "(($ac_try" in
19766   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19767   *) ac_try_echo=$ac_try;;
19768 esac
19769 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19770   (eval "$ac_try") 2>&5
19771   ac_status=$?
19772   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19773   (exit $ac_status); }; } &&
19774          { ac_try='test -s conftest$ac_exeext'
19775   { (case "(($ac_try" in
19776   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19777   *) ac_try_echo=$ac_try;;
19778 esac
19779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19780   (eval "$ac_try") 2>&5
19781   ac_status=$?
19782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19783   (exit $ac_status); }; }; then
19784   ac_cv_lib_gcc___ashrdi3=yes
19785 else
19786   echo "$as_me: failed program was:" >&5
19787 sed 's/^/| /' conftest.$ac_ext >&5
19788
19789         ac_cv_lib_gcc___ashrdi3=no
19790 fi
19791
19792 rm -f core conftest.err conftest.$ac_objext \
19793       conftest$ac_exeext conftest.$ac_ext
19794 LIBS=$ac_check_lib_save_LIBS
19795 fi
19796 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashrdi3" >&5
19797 echo "${ECHO_T}$ac_cv_lib_gcc___ashrdi3" >&6; }
19798 if test $ac_cv_lib_gcc___ashrdi3 = yes; then
19799
19800 cat >>confdefs.h <<\_ACEOF
19801 #define HAVE___ASHRDI3 1
19802 _ACEOF
19803
19804 fi
19805
19806   { echo "$as_me:$LINENO: checking for __divdi3 in -lgcc" >&5
19807 echo $ECHO_N "checking for __divdi3 in -lgcc... $ECHO_C" >&6; }
19808 if test "${ac_cv_lib_gcc___divdi3+set}" = set; then
19809   echo $ECHO_N "(cached) $ECHO_C" >&6
19810 else
19811   ac_check_lib_save_LIBS=$LIBS
19812 LIBS="-lgcc  $LIBS"
19813 cat >conftest.$ac_ext <<_ACEOF
19814 /* confdefs.h.  */
19815 _ACEOF
19816 cat confdefs.h >>conftest.$ac_ext
19817 cat >>conftest.$ac_ext <<_ACEOF
19818 /* end confdefs.h.  */
19819
19820 /* Override any GCC internal prototype to avoid an error.
19821    Use char because int might match the return type of a GCC
19822    builtin and then its argument prototype would still apply.  */
19823 #ifdef __cplusplus
19824 extern "C"
19825 #endif
19826 char __divdi3 ();
19827 int
19828 main ()
19829 {
19830 return __divdi3 ();
19831   ;
19832   return 0;
19833 }
19834 _ACEOF
19835 rm -f conftest.$ac_objext conftest$ac_exeext
19836 if { (ac_try="$ac_link"
19837 case "(($ac_try" in
19838   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19839   *) ac_try_echo=$ac_try;;
19840 esac
19841 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19842   (eval "$ac_link") 2>conftest.er1
19843   ac_status=$?
19844   grep -v '^ *+' conftest.er1 >conftest.err
19845   rm -f conftest.er1
19846   cat conftest.err >&5
19847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19848   (exit $ac_status); } &&
19849          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19850   { (case "(($ac_try" in
19851   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19852   *) ac_try_echo=$ac_try;;
19853 esac
19854 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19855   (eval "$ac_try") 2>&5
19856   ac_status=$?
19857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19858   (exit $ac_status); }; } &&
19859          { ac_try='test -s conftest$ac_exeext'
19860   { (case "(($ac_try" in
19861   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19862   *) ac_try_echo=$ac_try;;
19863 esac
19864 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19865   (eval "$ac_try") 2>&5
19866   ac_status=$?
19867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19868   (exit $ac_status); }; }; then
19869   ac_cv_lib_gcc___divdi3=yes
19870 else
19871   echo "$as_me: failed program was:" >&5
19872 sed 's/^/| /' conftest.$ac_ext >&5
19873
19874         ac_cv_lib_gcc___divdi3=no
19875 fi
19876
19877 rm -f core conftest.err conftest.$ac_objext \
19878       conftest$ac_exeext conftest.$ac_ext
19879 LIBS=$ac_check_lib_save_LIBS
19880 fi
19881 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___divdi3" >&5
19882 echo "${ECHO_T}$ac_cv_lib_gcc___divdi3" >&6; }
19883 if test $ac_cv_lib_gcc___divdi3 = yes; then
19884
19885 cat >>confdefs.h <<\_ACEOF
19886 #define HAVE___DIVDI3 1
19887 _ACEOF
19888
19889 fi
19890
19891   { echo "$as_me:$LINENO: checking for __fixdfdi in -lgcc" >&5
19892 echo $ECHO_N "checking for __fixdfdi in -lgcc... $ECHO_C" >&6; }
19893 if test "${ac_cv_lib_gcc___fixdfdi+set}" = set; then
19894   echo $ECHO_N "(cached) $ECHO_C" >&6
19895 else
19896   ac_check_lib_save_LIBS=$LIBS
19897 LIBS="-lgcc  $LIBS"
19898 cat >conftest.$ac_ext <<_ACEOF
19899 /* confdefs.h.  */
19900 _ACEOF
19901 cat confdefs.h >>conftest.$ac_ext
19902 cat >>conftest.$ac_ext <<_ACEOF
19903 /* end confdefs.h.  */
19904
19905 /* Override any GCC internal prototype to avoid an error.
19906    Use char because int might match the return type of a GCC
19907    builtin and then its argument prototype would still apply.  */
19908 #ifdef __cplusplus
19909 extern "C"
19910 #endif
19911 char __fixdfdi ();
19912 int
19913 main ()
19914 {
19915 return __fixdfdi ();
19916   ;
19917   return 0;
19918 }
19919 _ACEOF
19920 rm -f conftest.$ac_objext conftest$ac_exeext
19921 if { (ac_try="$ac_link"
19922 case "(($ac_try" in
19923   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19924   *) ac_try_echo=$ac_try;;
19925 esac
19926 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19927   (eval "$ac_link") 2>conftest.er1
19928   ac_status=$?
19929   grep -v '^ *+' conftest.er1 >conftest.err
19930   rm -f conftest.er1
19931   cat conftest.err >&5
19932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19933   (exit $ac_status); } &&
19934          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19935   { (case "(($ac_try" in
19936   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19937   *) ac_try_echo=$ac_try;;
19938 esac
19939 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19940   (eval "$ac_try") 2>&5
19941   ac_status=$?
19942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19943   (exit $ac_status); }; } &&
19944          { ac_try='test -s conftest$ac_exeext'
19945   { (case "(($ac_try" in
19946   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19947   *) ac_try_echo=$ac_try;;
19948 esac
19949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19950   (eval "$ac_try") 2>&5
19951   ac_status=$?
19952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19953   (exit $ac_status); }; }; then
19954   ac_cv_lib_gcc___fixdfdi=yes
19955 else
19956   echo "$as_me: failed program was:" >&5
19957 sed 's/^/| /' conftest.$ac_ext >&5
19958
19959         ac_cv_lib_gcc___fixdfdi=no
19960 fi
19961
19962 rm -f core conftest.err conftest.$ac_objext \
19963       conftest$ac_exeext conftest.$ac_ext
19964 LIBS=$ac_check_lib_save_LIBS
19965 fi
19966 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixdfdi" >&5
19967 echo "${ECHO_T}$ac_cv_lib_gcc___fixdfdi" >&6; }
19968 if test $ac_cv_lib_gcc___fixdfdi = yes; then
19969
19970 cat >>confdefs.h <<\_ACEOF
19971 #define HAVE___FIXDFDI 1
19972 _ACEOF
19973
19974 fi
19975
19976   { echo "$as_me:$LINENO: checking for __fixsfdi in -lgcc" >&5
19977 echo $ECHO_N "checking for __fixsfdi in -lgcc... $ECHO_C" >&6; }
19978 if test "${ac_cv_lib_gcc___fixsfdi+set}" = set; then
19979   echo $ECHO_N "(cached) $ECHO_C" >&6
19980 else
19981   ac_check_lib_save_LIBS=$LIBS
19982 LIBS="-lgcc  $LIBS"
19983 cat >conftest.$ac_ext <<_ACEOF
19984 /* confdefs.h.  */
19985 _ACEOF
19986 cat confdefs.h >>conftest.$ac_ext
19987 cat >>conftest.$ac_ext <<_ACEOF
19988 /* end confdefs.h.  */
19989
19990 /* Override any GCC internal prototype to avoid an error.
19991    Use char because int might match the return type of a GCC
19992    builtin and then its argument prototype would still apply.  */
19993 #ifdef __cplusplus
19994 extern "C"
19995 #endif
19996 char __fixsfdi ();
19997 int
19998 main ()
19999 {
20000 return __fixsfdi ();
20001   ;
20002   return 0;
20003 }
20004 _ACEOF
20005 rm -f conftest.$ac_objext conftest$ac_exeext
20006 if { (ac_try="$ac_link"
20007 case "(($ac_try" in
20008   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20009   *) ac_try_echo=$ac_try;;
20010 esac
20011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20012   (eval "$ac_link") 2>conftest.er1
20013   ac_status=$?
20014   grep -v '^ *+' conftest.er1 >conftest.err
20015   rm -f conftest.er1
20016   cat conftest.err >&5
20017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20018   (exit $ac_status); } &&
20019          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20020   { (case "(($ac_try" in
20021   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20022   *) ac_try_echo=$ac_try;;
20023 esac
20024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20025   (eval "$ac_try") 2>&5
20026   ac_status=$?
20027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20028   (exit $ac_status); }; } &&
20029          { ac_try='test -s conftest$ac_exeext'
20030   { (case "(($ac_try" in
20031   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20032   *) ac_try_echo=$ac_try;;
20033 esac
20034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20035   (eval "$ac_try") 2>&5
20036   ac_status=$?
20037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20038   (exit $ac_status); }; }; then
20039   ac_cv_lib_gcc___fixsfdi=yes
20040 else
20041   echo "$as_me: failed program was:" >&5
20042 sed 's/^/| /' conftest.$ac_ext >&5
20043
20044         ac_cv_lib_gcc___fixsfdi=no
20045 fi
20046
20047 rm -f core conftest.err conftest.$ac_objext \
20048       conftest$ac_exeext conftest.$ac_ext
20049 LIBS=$ac_check_lib_save_LIBS
20050 fi
20051 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixsfdi" >&5
20052 echo "${ECHO_T}$ac_cv_lib_gcc___fixsfdi" >&6; }
20053 if test $ac_cv_lib_gcc___fixsfdi = yes; then
20054
20055 cat >>confdefs.h <<\_ACEOF
20056 #define HAVE___FIXSFDI 1
20057 _ACEOF
20058
20059 fi
20060
20061   { echo "$as_me:$LINENO: checking for __floatdidf in -lgcc" >&5
20062 echo $ECHO_N "checking for __floatdidf in -lgcc... $ECHO_C" >&6; }
20063 if test "${ac_cv_lib_gcc___floatdidf+set}" = set; then
20064   echo $ECHO_N "(cached) $ECHO_C" >&6
20065 else
20066   ac_check_lib_save_LIBS=$LIBS
20067 LIBS="-lgcc  $LIBS"
20068 cat >conftest.$ac_ext <<_ACEOF
20069 /* confdefs.h.  */
20070 _ACEOF
20071 cat confdefs.h >>conftest.$ac_ext
20072 cat >>conftest.$ac_ext <<_ACEOF
20073 /* end confdefs.h.  */
20074
20075 /* Override any GCC internal prototype to avoid an error.
20076    Use char because int might match the return type of a GCC
20077    builtin and then its argument prototype would still apply.  */
20078 #ifdef __cplusplus
20079 extern "C"
20080 #endif
20081 char __floatdidf ();
20082 int
20083 main ()
20084 {
20085 return __floatdidf ();
20086   ;
20087   return 0;
20088 }
20089 _ACEOF
20090 rm -f conftest.$ac_objext conftest$ac_exeext
20091 if { (ac_try="$ac_link"
20092 case "(($ac_try" in
20093   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20094   *) ac_try_echo=$ac_try;;
20095 esac
20096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20097   (eval "$ac_link") 2>conftest.er1
20098   ac_status=$?
20099   grep -v '^ *+' conftest.er1 >conftest.err
20100   rm -f conftest.er1
20101   cat conftest.err >&5
20102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20103   (exit $ac_status); } &&
20104          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20105   { (case "(($ac_try" in
20106   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20107   *) ac_try_echo=$ac_try;;
20108 esac
20109 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20110   (eval "$ac_try") 2>&5
20111   ac_status=$?
20112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20113   (exit $ac_status); }; } &&
20114          { ac_try='test -s conftest$ac_exeext'
20115   { (case "(($ac_try" in
20116   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20117   *) ac_try_echo=$ac_try;;
20118 esac
20119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20120   (eval "$ac_try") 2>&5
20121   ac_status=$?
20122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20123   (exit $ac_status); }; }; then
20124   ac_cv_lib_gcc___floatdidf=yes
20125 else
20126   echo "$as_me: failed program was:" >&5
20127 sed 's/^/| /' conftest.$ac_ext >&5
20128
20129         ac_cv_lib_gcc___floatdidf=no
20130 fi
20131
20132 rm -f core conftest.err conftest.$ac_objext \
20133       conftest$ac_exeext conftest.$ac_ext
20134 LIBS=$ac_check_lib_save_LIBS
20135 fi
20136 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___floatdidf" >&5
20137 echo "${ECHO_T}$ac_cv_lib_gcc___floatdidf" >&6; }
20138 if test $ac_cv_lib_gcc___floatdidf = yes; then
20139
20140 cat >>confdefs.h <<\_ACEOF
20141 #define HAVE___FLOATDIDF 1
20142 _ACEOF
20143
20144 fi
20145
20146   { echo "$as_me:$LINENO: checking for __lshrdi3 in -lgcc" >&5
20147 echo $ECHO_N "checking for __lshrdi3 in -lgcc... $ECHO_C" >&6; }
20148 if test "${ac_cv_lib_gcc___lshrdi3+set}" = set; then
20149   echo $ECHO_N "(cached) $ECHO_C" >&6
20150 else
20151   ac_check_lib_save_LIBS=$LIBS
20152 LIBS="-lgcc  $LIBS"
20153 cat >conftest.$ac_ext <<_ACEOF
20154 /* confdefs.h.  */
20155 _ACEOF
20156 cat confdefs.h >>conftest.$ac_ext
20157 cat >>conftest.$ac_ext <<_ACEOF
20158 /* end confdefs.h.  */
20159
20160 /* Override any GCC internal prototype to avoid an error.
20161    Use char because int might match the return type of a GCC
20162    builtin and then its argument prototype would still apply.  */
20163 #ifdef __cplusplus
20164 extern "C"
20165 #endif
20166 char __lshrdi3 ();
20167 int
20168 main ()
20169 {
20170 return __lshrdi3 ();
20171   ;
20172   return 0;
20173 }
20174 _ACEOF
20175 rm -f conftest.$ac_objext conftest$ac_exeext
20176 if { (ac_try="$ac_link"
20177 case "(($ac_try" in
20178   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20179   *) ac_try_echo=$ac_try;;
20180 esac
20181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20182   (eval "$ac_link") 2>conftest.er1
20183   ac_status=$?
20184   grep -v '^ *+' conftest.er1 >conftest.err
20185   rm -f conftest.er1
20186   cat conftest.err >&5
20187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20188   (exit $ac_status); } &&
20189          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20190   { (case "(($ac_try" in
20191   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20192   *) ac_try_echo=$ac_try;;
20193 esac
20194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20195   (eval "$ac_try") 2>&5
20196   ac_status=$?
20197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20198   (exit $ac_status); }; } &&
20199          { ac_try='test -s conftest$ac_exeext'
20200   { (case "(($ac_try" in
20201   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20202   *) ac_try_echo=$ac_try;;
20203 esac
20204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20205   (eval "$ac_try") 2>&5
20206   ac_status=$?
20207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20208   (exit $ac_status); }; }; then
20209   ac_cv_lib_gcc___lshrdi3=yes
20210 else
20211   echo "$as_me: failed program was:" >&5
20212 sed 's/^/| /' conftest.$ac_ext >&5
20213
20214         ac_cv_lib_gcc___lshrdi3=no
20215 fi
20216
20217 rm -f core conftest.err conftest.$ac_objext \
20218       conftest$ac_exeext conftest.$ac_ext
20219 LIBS=$ac_check_lib_save_LIBS
20220 fi
20221 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___lshrdi3" >&5
20222 echo "${ECHO_T}$ac_cv_lib_gcc___lshrdi3" >&6; }
20223 if test $ac_cv_lib_gcc___lshrdi3 = yes; then
20224
20225 cat >>confdefs.h <<\_ACEOF
20226 #define HAVE___LSHRDI3 1
20227 _ACEOF
20228
20229 fi
20230
20231   { echo "$as_me:$LINENO: checking for __moddi3 in -lgcc" >&5
20232 echo $ECHO_N "checking for __moddi3 in -lgcc... $ECHO_C" >&6; }
20233 if test "${ac_cv_lib_gcc___moddi3+set}" = set; then
20234   echo $ECHO_N "(cached) $ECHO_C" >&6
20235 else
20236   ac_check_lib_save_LIBS=$LIBS
20237 LIBS="-lgcc  $LIBS"
20238 cat >conftest.$ac_ext <<_ACEOF
20239 /* confdefs.h.  */
20240 _ACEOF
20241 cat confdefs.h >>conftest.$ac_ext
20242 cat >>conftest.$ac_ext <<_ACEOF
20243 /* end confdefs.h.  */
20244
20245 /* Override any GCC internal prototype to avoid an error.
20246    Use char because int might match the return type of a GCC
20247    builtin and then its argument prototype would still apply.  */
20248 #ifdef __cplusplus
20249 extern "C"
20250 #endif
20251 char __moddi3 ();
20252 int
20253 main ()
20254 {
20255 return __moddi3 ();
20256   ;
20257   return 0;
20258 }
20259 _ACEOF
20260 rm -f conftest.$ac_objext conftest$ac_exeext
20261 if { (ac_try="$ac_link"
20262 case "(($ac_try" in
20263   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20264   *) ac_try_echo=$ac_try;;
20265 esac
20266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20267   (eval "$ac_link") 2>conftest.er1
20268   ac_status=$?
20269   grep -v '^ *+' conftest.er1 >conftest.err
20270   rm -f conftest.er1
20271   cat conftest.err >&5
20272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20273   (exit $ac_status); } &&
20274          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20275   { (case "(($ac_try" in
20276   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20277   *) ac_try_echo=$ac_try;;
20278 esac
20279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20280   (eval "$ac_try") 2>&5
20281   ac_status=$?
20282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20283   (exit $ac_status); }; } &&
20284          { ac_try='test -s conftest$ac_exeext'
20285   { (case "(($ac_try" in
20286   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20287   *) ac_try_echo=$ac_try;;
20288 esac
20289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20290   (eval "$ac_try") 2>&5
20291   ac_status=$?
20292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20293   (exit $ac_status); }; }; then
20294   ac_cv_lib_gcc___moddi3=yes
20295 else
20296   echo "$as_me: failed program was:" >&5
20297 sed 's/^/| /' conftest.$ac_ext >&5
20298
20299         ac_cv_lib_gcc___moddi3=no
20300 fi
20301
20302 rm -f core conftest.err conftest.$ac_objext \
20303       conftest$ac_exeext conftest.$ac_ext
20304 LIBS=$ac_check_lib_save_LIBS
20305 fi
20306 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___moddi3" >&5
20307 echo "${ECHO_T}$ac_cv_lib_gcc___moddi3" >&6; }
20308 if test $ac_cv_lib_gcc___moddi3 = yes; then
20309
20310 cat >>confdefs.h <<\_ACEOF
20311 #define HAVE___MODDI3 1
20312 _ACEOF
20313
20314 fi
20315
20316   { echo "$as_me:$LINENO: checking for __udivdi3 in -lgcc" >&5
20317 echo $ECHO_N "checking for __udivdi3 in -lgcc... $ECHO_C" >&6; }
20318 if test "${ac_cv_lib_gcc___udivdi3+set}" = set; then
20319   echo $ECHO_N "(cached) $ECHO_C" >&6
20320 else
20321   ac_check_lib_save_LIBS=$LIBS
20322 LIBS="-lgcc  $LIBS"
20323 cat >conftest.$ac_ext <<_ACEOF
20324 /* confdefs.h.  */
20325 _ACEOF
20326 cat confdefs.h >>conftest.$ac_ext
20327 cat >>conftest.$ac_ext <<_ACEOF
20328 /* end confdefs.h.  */
20329
20330 /* Override any GCC internal prototype to avoid an error.
20331    Use char because int might match the return type of a GCC
20332    builtin and then its argument prototype would still apply.  */
20333 #ifdef __cplusplus
20334 extern "C"
20335 #endif
20336 char __udivdi3 ();
20337 int
20338 main ()
20339 {
20340 return __udivdi3 ();
20341   ;
20342   return 0;
20343 }
20344 _ACEOF
20345 rm -f conftest.$ac_objext conftest$ac_exeext
20346 if { (ac_try="$ac_link"
20347 case "(($ac_try" in
20348   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20349   *) ac_try_echo=$ac_try;;
20350 esac
20351 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20352   (eval "$ac_link") 2>conftest.er1
20353   ac_status=$?
20354   grep -v '^ *+' conftest.er1 >conftest.err
20355   rm -f conftest.er1
20356   cat conftest.err >&5
20357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20358   (exit $ac_status); } &&
20359          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20360   { (case "(($ac_try" in
20361   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20362   *) ac_try_echo=$ac_try;;
20363 esac
20364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20365   (eval "$ac_try") 2>&5
20366   ac_status=$?
20367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20368   (exit $ac_status); }; } &&
20369          { ac_try='test -s conftest$ac_exeext'
20370   { (case "(($ac_try" in
20371   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20372   *) ac_try_echo=$ac_try;;
20373 esac
20374 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20375   (eval "$ac_try") 2>&5
20376   ac_status=$?
20377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20378   (exit $ac_status); }; }; then
20379   ac_cv_lib_gcc___udivdi3=yes
20380 else
20381   echo "$as_me: failed program was:" >&5
20382 sed 's/^/| /' conftest.$ac_ext >&5
20383
20384         ac_cv_lib_gcc___udivdi3=no
20385 fi
20386
20387 rm -f core conftest.err conftest.$ac_objext \
20388       conftest$ac_exeext conftest.$ac_ext
20389 LIBS=$ac_check_lib_save_LIBS
20390 fi
20391 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___udivdi3" >&5
20392 echo "${ECHO_T}$ac_cv_lib_gcc___udivdi3" >&6; }
20393 if test $ac_cv_lib_gcc___udivdi3 = yes; then
20394
20395 cat >>confdefs.h <<\_ACEOF
20396 #define HAVE___UDIVDI3 1
20397 _ACEOF
20398
20399 fi
20400
20401   { echo "$as_me:$LINENO: checking for __umoddi3 in -lgcc" >&5
20402 echo $ECHO_N "checking for __umoddi3 in -lgcc... $ECHO_C" >&6; }
20403 if test "${ac_cv_lib_gcc___umoddi3+set}" = set; then
20404   echo $ECHO_N "(cached) $ECHO_C" >&6
20405 else
20406   ac_check_lib_save_LIBS=$LIBS
20407 LIBS="-lgcc  $LIBS"
20408 cat >conftest.$ac_ext <<_ACEOF
20409 /* confdefs.h.  */
20410 _ACEOF
20411 cat confdefs.h >>conftest.$ac_ext
20412 cat >>conftest.$ac_ext <<_ACEOF
20413 /* end confdefs.h.  */
20414
20415 /* Override any GCC internal prototype to avoid an error.
20416    Use char because int might match the return type of a GCC
20417    builtin and then its argument prototype would still apply.  */
20418 #ifdef __cplusplus
20419 extern "C"
20420 #endif
20421 char __umoddi3 ();
20422 int
20423 main ()
20424 {
20425 return __umoddi3 ();
20426   ;
20427   return 0;
20428 }
20429 _ACEOF
20430 rm -f conftest.$ac_objext conftest$ac_exeext
20431 if { (ac_try="$ac_link"
20432 case "(($ac_try" in
20433   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20434   *) ac_try_echo=$ac_try;;
20435 esac
20436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20437   (eval "$ac_link") 2>conftest.er1
20438   ac_status=$?
20439   grep -v '^ *+' conftest.er1 >conftest.err
20440   rm -f conftest.er1
20441   cat conftest.err >&5
20442   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20443   (exit $ac_status); } &&
20444          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20445   { (case "(($ac_try" in
20446   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20447   *) ac_try_echo=$ac_try;;
20448 esac
20449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20450   (eval "$ac_try") 2>&5
20451   ac_status=$?
20452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20453   (exit $ac_status); }; } &&
20454          { ac_try='test -s conftest$ac_exeext'
20455   { (case "(($ac_try" in
20456   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20457   *) ac_try_echo=$ac_try;;
20458 esac
20459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20460   (eval "$ac_try") 2>&5
20461   ac_status=$?
20462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20463   (exit $ac_status); }; }; then
20464   ac_cv_lib_gcc___umoddi3=yes
20465 else
20466   echo "$as_me: failed program was:" >&5
20467 sed 's/^/| /' conftest.$ac_ext >&5
20468
20469         ac_cv_lib_gcc___umoddi3=no
20470 fi
20471
20472 rm -f core conftest.err conftest.$ac_objext \
20473       conftest$ac_exeext conftest.$ac_ext
20474 LIBS=$ac_check_lib_save_LIBS
20475 fi
20476 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___umoddi3" >&5
20477 echo "${ECHO_T}$ac_cv_lib_gcc___umoddi3" >&6; }
20478 if test $ac_cv_lib_gcc___umoddi3 = yes; then
20479
20480 cat >>confdefs.h <<\_ACEOF
20481 #define HAVE___UMODDI3 1
20482 _ACEOF
20483
20484 fi
20485
20486
20487   { echo "$as_me:$LINENO: checking for __main in -lgcc" >&5
20488 echo $ECHO_N "checking for __main in -lgcc... $ECHO_C" >&6; }
20489 if test "${ac_cv_lib_gcc___main+set}" = set; then
20490   echo $ECHO_N "(cached) $ECHO_C" >&6
20491 else
20492   ac_check_lib_save_LIBS=$LIBS
20493 LIBS="-lgcc  $LIBS"
20494 cat >conftest.$ac_ext <<_ACEOF
20495 /* confdefs.h.  */
20496 _ACEOF
20497 cat confdefs.h >>conftest.$ac_ext
20498 cat >>conftest.$ac_ext <<_ACEOF
20499 /* end confdefs.h.  */
20500
20501 /* Override any GCC internal prototype to avoid an error.
20502    Use char because int might match the return type of a GCC
20503    builtin and then its argument prototype would still apply.  */
20504 #ifdef __cplusplus
20505 extern "C"
20506 #endif
20507 char __main ();
20508 int
20509 main ()
20510 {
20511 return __main ();
20512   ;
20513   return 0;
20514 }
20515 _ACEOF
20516 rm -f conftest.$ac_objext conftest$ac_exeext
20517 if { (ac_try="$ac_link"
20518 case "(($ac_try" in
20519   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20520   *) ac_try_echo=$ac_try;;
20521 esac
20522 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20523   (eval "$ac_link") 2>conftest.er1
20524   ac_status=$?
20525   grep -v '^ *+' conftest.er1 >conftest.err
20526   rm -f conftest.er1
20527   cat conftest.err >&5
20528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20529   (exit $ac_status); } &&
20530          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20531   { (case "(($ac_try" in
20532   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20533   *) ac_try_echo=$ac_try;;
20534 esac
20535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20536   (eval "$ac_try") 2>&5
20537   ac_status=$?
20538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20539   (exit $ac_status); }; } &&
20540          { ac_try='test -s conftest$ac_exeext'
20541   { (case "(($ac_try" in
20542   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20543   *) ac_try_echo=$ac_try;;
20544 esac
20545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20546   (eval "$ac_try") 2>&5
20547   ac_status=$?
20548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20549   (exit $ac_status); }; }; then
20550   ac_cv_lib_gcc___main=yes
20551 else
20552   echo "$as_me: failed program was:" >&5
20553 sed 's/^/| /' conftest.$ac_ext >&5
20554
20555         ac_cv_lib_gcc___main=no
20556 fi
20557
20558 rm -f core conftest.err conftest.$ac_objext \
20559       conftest$ac_exeext conftest.$ac_ext
20560 LIBS=$ac_check_lib_save_LIBS
20561 fi
20562 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___main" >&5
20563 echo "${ECHO_T}$ac_cv_lib_gcc___main" >&6; }
20564 if test $ac_cv_lib_gcc___main = yes; then
20565
20566 cat >>confdefs.h <<\_ACEOF
20567 #define HAVE___MAIN 1
20568 _ACEOF
20569
20570 fi
20571
20572   { echo "$as_me:$LINENO: checking for __cmpdi2 in -lgcc" >&5
20573 echo $ECHO_N "checking for __cmpdi2 in -lgcc... $ECHO_C" >&6; }
20574 if test "${ac_cv_lib_gcc___cmpdi2+set}" = set; then
20575   echo $ECHO_N "(cached) $ECHO_C" >&6
20576 else
20577   ac_check_lib_save_LIBS=$LIBS
20578 LIBS="-lgcc  $LIBS"
20579 cat >conftest.$ac_ext <<_ACEOF
20580 /* confdefs.h.  */
20581 _ACEOF
20582 cat confdefs.h >>conftest.$ac_ext
20583 cat >>conftest.$ac_ext <<_ACEOF
20584 /* end confdefs.h.  */
20585
20586 /* Override any GCC internal prototype to avoid an error.
20587    Use char because int might match the return type of a GCC
20588    builtin and then its argument prototype would still apply.  */
20589 #ifdef __cplusplus
20590 extern "C"
20591 #endif
20592 char __cmpdi2 ();
20593 int
20594 main ()
20595 {
20596 return __cmpdi2 ();
20597   ;
20598   return 0;
20599 }
20600 _ACEOF
20601 rm -f conftest.$ac_objext conftest$ac_exeext
20602 if { (ac_try="$ac_link"
20603 case "(($ac_try" in
20604   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20605   *) ac_try_echo=$ac_try;;
20606 esac
20607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20608   (eval "$ac_link") 2>conftest.er1
20609   ac_status=$?
20610   grep -v '^ *+' conftest.er1 >conftest.err
20611   rm -f conftest.er1
20612   cat conftest.err >&5
20613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20614   (exit $ac_status); } &&
20615          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20616   { (case "(($ac_try" in
20617   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20618   *) ac_try_echo=$ac_try;;
20619 esac
20620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20621   (eval "$ac_try") 2>&5
20622   ac_status=$?
20623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20624   (exit $ac_status); }; } &&
20625          { ac_try='test -s conftest$ac_exeext'
20626   { (case "(($ac_try" in
20627   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20628   *) ac_try_echo=$ac_try;;
20629 esac
20630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20631   (eval "$ac_try") 2>&5
20632   ac_status=$?
20633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20634   (exit $ac_status); }; }; then
20635   ac_cv_lib_gcc___cmpdi2=yes
20636 else
20637   echo "$as_me: failed program was:" >&5
20638 sed 's/^/| /' conftest.$ac_ext >&5
20639
20640         ac_cv_lib_gcc___cmpdi2=no
20641 fi
20642
20643 rm -f core conftest.err conftest.$ac_objext \
20644       conftest$ac_exeext conftest.$ac_ext
20645 LIBS=$ac_check_lib_save_LIBS
20646 fi
20647 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___cmpdi2" >&5
20648 echo "${ECHO_T}$ac_cv_lib_gcc___cmpdi2" >&6; }
20649 if test $ac_cv_lib_gcc___cmpdi2 = yes; then
20650
20651 cat >>confdefs.h <<\_ACEOF
20652 #define HAVE___CMPDI2 1
20653 _ACEOF
20654
20655 fi
20656
20657 fi
20658
20659
20660 { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
20661 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
20662 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
20663   echo $ECHO_N "(cached) $ECHO_C" >&6
20664 else
20665   ac_ext=cpp
20666 ac_cpp='$CXXCPP $CPPFLAGS'
20667 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20668 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20669 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20670
20671    cat >conftest.$ac_ext <<_ACEOF
20672 /* confdefs.h.  */
20673 _ACEOF
20674 cat confdefs.h >>conftest.$ac_ext
20675 cat >>conftest.$ac_ext <<_ACEOF
20676 /* end confdefs.h.  */
20677 #include <math.h>
20678 int
20679 main ()
20680 {
20681 float f; isnan(f);
20682   ;
20683   return 0;
20684 }
20685 _ACEOF
20686 rm -f conftest.$ac_objext
20687 if { (ac_try="$ac_compile"
20688 case "(($ac_try" in
20689   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20690   *) ac_try_echo=$ac_try;;
20691 esac
20692 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20693   (eval "$ac_compile") 2>conftest.er1
20694   ac_status=$?
20695   grep -v '^ *+' conftest.er1 >conftest.err
20696   rm -f conftest.er1
20697   cat conftest.err >&5
20698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20699   (exit $ac_status); } &&
20700          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20701   { (case "(($ac_try" in
20702   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20703   *) ac_try_echo=$ac_try;;
20704 esac
20705 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20706   (eval "$ac_try") 2>&5
20707   ac_status=$?
20708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20709   (exit $ac_status); }; } &&
20710          { ac_try='test -s conftest.$ac_objext'
20711   { (case "(($ac_try" in
20712   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20713   *) ac_try_echo=$ac_try;;
20714 esac
20715 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20716   (eval "$ac_try") 2>&5
20717   ac_status=$?
20718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20719   (exit $ac_status); }; }; then
20720   ac_cv_func_isnan_in_math_h=yes
20721 else
20722   echo "$as_me: failed program was:" >&5
20723 sed 's/^/| /' conftest.$ac_ext >&5
20724
20725         ac_cv_func_isnan_in_math_h=no
20726 fi
20727
20728 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20729   ac_ext=c
20730 ac_cpp='$CPP $CPPFLAGS'
20731 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20732 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20733 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20734
20735 fi
20736 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
20737 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
20738
20739
20740 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
20741
20742 cat >>confdefs.h <<\_ACEOF
20743 #define HAVE_ISNAN_IN_MATH_H 1
20744 _ACEOF
20745
20746 fi
20747
20748 { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
20749 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
20750 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
20751   echo $ECHO_N "(cached) $ECHO_C" >&6
20752 else
20753   ac_ext=cpp
20754 ac_cpp='$CXXCPP $CPPFLAGS'
20755 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20756 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20757 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20758
20759    cat >conftest.$ac_ext <<_ACEOF
20760 /* confdefs.h.  */
20761 _ACEOF
20762 cat confdefs.h >>conftest.$ac_ext
20763 cat >>conftest.$ac_ext <<_ACEOF
20764 /* end confdefs.h.  */
20765 #include <cmath>
20766 int
20767 main ()
20768 {
20769 float f; isnan(f);
20770   ;
20771   return 0;
20772 }
20773 _ACEOF
20774 rm -f conftest.$ac_objext
20775 if { (ac_try="$ac_compile"
20776 case "(($ac_try" in
20777   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20778   *) ac_try_echo=$ac_try;;
20779 esac
20780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20781   (eval "$ac_compile") 2>conftest.er1
20782   ac_status=$?
20783   grep -v '^ *+' conftest.er1 >conftest.err
20784   rm -f conftest.er1
20785   cat conftest.err >&5
20786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20787   (exit $ac_status); } &&
20788          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20789   { (case "(($ac_try" in
20790   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20791   *) ac_try_echo=$ac_try;;
20792 esac
20793 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20794   (eval "$ac_try") 2>&5
20795   ac_status=$?
20796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20797   (exit $ac_status); }; } &&
20798          { ac_try='test -s conftest.$ac_objext'
20799   { (case "(($ac_try" in
20800   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20801   *) ac_try_echo=$ac_try;;
20802 esac
20803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20804   (eval "$ac_try") 2>&5
20805   ac_status=$?
20806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20807   (exit $ac_status); }; }; then
20808   ac_cv_func_isnan_in_cmath=yes
20809 else
20810   echo "$as_me: failed program was:" >&5
20811 sed 's/^/| /' conftest.$ac_ext >&5
20812
20813         ac_cv_func_isnan_in_cmath=no
20814 fi
20815
20816 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20817   ac_ext=c
20818 ac_cpp='$CPP $CPPFLAGS'
20819 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20820 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20821 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20822
20823 fi
20824 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
20825 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
20826
20827 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
20828
20829 cat >>confdefs.h <<\_ACEOF
20830 #define HAVE_ISNAN_IN_CMATH 1
20831 _ACEOF
20832
20833 fi
20834
20835 { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
20836 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
20837 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
20838   echo $ECHO_N "(cached) $ECHO_C" >&6
20839 else
20840   ac_ext=cpp
20841 ac_cpp='$CXXCPP $CPPFLAGS'
20842 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20843 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20844 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20845
20846    cat >conftest.$ac_ext <<_ACEOF
20847 /* confdefs.h.  */
20848 _ACEOF
20849 cat confdefs.h >>conftest.$ac_ext
20850 cat >>conftest.$ac_ext <<_ACEOF
20851 /* end confdefs.h.  */
20852 #include <cmath>
20853 int
20854 main ()
20855 {
20856 float f; std::isnan(f);
20857   ;
20858   return 0;
20859 }
20860 _ACEOF
20861 rm -f conftest.$ac_objext
20862 if { (ac_try="$ac_compile"
20863 case "(($ac_try" in
20864   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20865   *) ac_try_echo=$ac_try;;
20866 esac
20867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20868   (eval "$ac_compile") 2>conftest.er1
20869   ac_status=$?
20870   grep -v '^ *+' conftest.er1 >conftest.err
20871   rm -f conftest.er1
20872   cat conftest.err >&5
20873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20874   (exit $ac_status); } &&
20875          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20876   { (case "(($ac_try" in
20877   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20878   *) ac_try_echo=$ac_try;;
20879 esac
20880 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20881   (eval "$ac_try") 2>&5
20882   ac_status=$?
20883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20884   (exit $ac_status); }; } &&
20885          { ac_try='test -s conftest.$ac_objext'
20886   { (case "(($ac_try" in
20887   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20888   *) ac_try_echo=$ac_try;;
20889 esac
20890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20891   (eval "$ac_try") 2>&5
20892   ac_status=$?
20893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20894   (exit $ac_status); }; }; then
20895   ac_cv_func_std_isnan_in_cmath=yes
20896 else
20897   echo "$as_me: failed program was:" >&5
20898 sed 's/^/| /' conftest.$ac_ext >&5
20899
20900         ac_cv_func_std_isnan_in_cmath=no
20901 fi
20902
20903 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20904   ac_ext=c
20905 ac_cpp='$CPP $CPPFLAGS'
20906 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20907 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20908 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20909
20910 fi
20911 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
20912 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
20913
20914 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
20915
20916 cat >>confdefs.h <<\_ACEOF
20917 #define HAVE_STD_ISNAN_IN_CMATH 1
20918 _ACEOF
20919
20920 fi
20921
20922
20923 { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
20924 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
20925 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
20926   echo $ECHO_N "(cached) $ECHO_C" >&6
20927 else
20928   ac_ext=cpp
20929 ac_cpp='$CXXCPP $CPPFLAGS'
20930 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20931 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20932 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20933
20934    cat >conftest.$ac_ext <<_ACEOF
20935 /* confdefs.h.  */
20936 _ACEOF
20937 cat confdefs.h >>conftest.$ac_ext
20938 cat >>conftest.$ac_ext <<_ACEOF
20939 /* end confdefs.h.  */
20940 #include <math.h>
20941 int
20942 main ()
20943 {
20944 float f; isinf(f);
20945   ;
20946   return 0;
20947 }
20948 _ACEOF
20949 rm -f conftest.$ac_objext
20950 if { (ac_try="$ac_compile"
20951 case "(($ac_try" in
20952   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20953   *) ac_try_echo=$ac_try;;
20954 esac
20955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20956   (eval "$ac_compile") 2>conftest.er1
20957   ac_status=$?
20958   grep -v '^ *+' conftest.er1 >conftest.err
20959   rm -f conftest.er1
20960   cat conftest.err >&5
20961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20962   (exit $ac_status); } &&
20963          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20964   { (case "(($ac_try" in
20965   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20966   *) ac_try_echo=$ac_try;;
20967 esac
20968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20969   (eval "$ac_try") 2>&5
20970   ac_status=$?
20971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20972   (exit $ac_status); }; } &&
20973          { ac_try='test -s conftest.$ac_objext'
20974   { (case "(($ac_try" in
20975   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20976   *) ac_try_echo=$ac_try;;
20977 esac
20978 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20979   (eval "$ac_try") 2>&5
20980   ac_status=$?
20981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20982   (exit $ac_status); }; }; then
20983   ac_cv_func_isinf_in_math_h=yes
20984 else
20985   echo "$as_me: failed program was:" >&5
20986 sed 's/^/| /' conftest.$ac_ext >&5
20987
20988         ac_cv_func_isinf_in_math_h=no
20989 fi
20990
20991 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20992   ac_ext=c
20993 ac_cpp='$CPP $CPPFLAGS'
20994 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20995 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20996 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20997
20998 fi
20999 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
21000 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
21001
21002 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
21003
21004 cat >>confdefs.h <<\_ACEOF
21005 #define HAVE_ISINF_IN_MATH_H 1
21006 _ACEOF
21007
21008 fi
21009
21010 { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
21011 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
21012 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
21013   echo $ECHO_N "(cached) $ECHO_C" >&6
21014 else
21015   ac_ext=cpp
21016 ac_cpp='$CXXCPP $CPPFLAGS'
21017 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21018 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21019 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21020
21021    cat >conftest.$ac_ext <<_ACEOF
21022 /* confdefs.h.  */
21023 _ACEOF
21024 cat confdefs.h >>conftest.$ac_ext
21025 cat >>conftest.$ac_ext <<_ACEOF
21026 /* end confdefs.h.  */
21027 #include <cmath>
21028 int
21029 main ()
21030 {
21031 float f; isinf(f);
21032   ;
21033   return 0;
21034 }
21035 _ACEOF
21036 rm -f conftest.$ac_objext
21037 if { (ac_try="$ac_compile"
21038 case "(($ac_try" in
21039   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21040   *) ac_try_echo=$ac_try;;
21041 esac
21042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21043   (eval "$ac_compile") 2>conftest.er1
21044   ac_status=$?
21045   grep -v '^ *+' conftest.er1 >conftest.err
21046   rm -f conftest.er1
21047   cat conftest.err >&5
21048   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21049   (exit $ac_status); } &&
21050          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21051   { (case "(($ac_try" in
21052   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21053   *) ac_try_echo=$ac_try;;
21054 esac
21055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21056   (eval "$ac_try") 2>&5
21057   ac_status=$?
21058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21059   (exit $ac_status); }; } &&
21060          { ac_try='test -s conftest.$ac_objext'
21061   { (case "(($ac_try" in
21062   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21063   *) ac_try_echo=$ac_try;;
21064 esac
21065 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21066   (eval "$ac_try") 2>&5
21067   ac_status=$?
21068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21069   (exit $ac_status); }; }; then
21070   ac_cv_func_isinf_in_cmath=yes
21071 else
21072   echo "$as_me: failed program was:" >&5
21073 sed 's/^/| /' conftest.$ac_ext >&5
21074
21075         ac_cv_func_isinf_in_cmath=no
21076 fi
21077
21078 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21079   ac_ext=c
21080 ac_cpp='$CPP $CPPFLAGS'
21081 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21082 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21083 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21084
21085 fi
21086 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
21087 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
21088
21089 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
21090
21091 cat >>confdefs.h <<\_ACEOF
21092 #define HAVE_ISINF_IN_CMATH 1
21093 _ACEOF
21094
21095 fi
21096
21097 { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
21098 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
21099 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
21100   echo $ECHO_N "(cached) $ECHO_C" >&6
21101 else
21102   ac_ext=cpp
21103 ac_cpp='$CXXCPP $CPPFLAGS'
21104 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21105 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21106 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21107
21108    cat >conftest.$ac_ext <<_ACEOF
21109 /* confdefs.h.  */
21110 _ACEOF
21111 cat confdefs.h >>conftest.$ac_ext
21112 cat >>conftest.$ac_ext <<_ACEOF
21113 /* end confdefs.h.  */
21114 #include <cmath>
21115 int
21116 main ()
21117 {
21118 float f; std::isinf(f)}
21119   ;
21120   return 0;
21121 }
21122 _ACEOF
21123 rm -f conftest.$ac_objext
21124 if { (ac_try="$ac_compile"
21125 case "(($ac_try" in
21126   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21127   *) ac_try_echo=$ac_try;;
21128 esac
21129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21130   (eval "$ac_compile") 2>conftest.er1
21131   ac_status=$?
21132   grep -v '^ *+' conftest.er1 >conftest.err
21133   rm -f conftest.er1
21134   cat conftest.err >&5
21135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21136   (exit $ac_status); } &&
21137          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21138   { (case "(($ac_try" in
21139   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21140   *) ac_try_echo=$ac_try;;
21141 esac
21142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21143   (eval "$ac_try") 2>&5
21144   ac_status=$?
21145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21146   (exit $ac_status); }; } &&
21147          { ac_try='test -s conftest.$ac_objext'
21148   { (case "(($ac_try" in
21149   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21150   *) ac_try_echo=$ac_try;;
21151 esac
21152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21153   (eval "$ac_try") 2>&5
21154   ac_status=$?
21155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21156   (exit $ac_status); }; }; then
21157   ac_cv_func_std_isinf_in_cmath=yes
21158 else
21159   echo "$as_me: failed program was:" >&5
21160 sed 's/^/| /' conftest.$ac_ext >&5
21161
21162         ac_cv_func_std_isinf_in_cmath=no
21163 fi
21164
21165 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21166   ac_ext=c
21167 ac_cpp='$CPP $CPPFLAGS'
21168 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21169 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21170 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21171
21172 fi
21173 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
21174 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
21175
21176 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
21177
21178 cat >>confdefs.h <<\_ACEOF
21179 #define HAVE_STD_ISINF_IN_CMATH 1
21180 _ACEOF
21181
21182 fi
21183
21184 { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
21185 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
21186 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
21187   echo $ECHO_N "(cached) $ECHO_C" >&6
21188 else
21189   ac_ext=cpp
21190 ac_cpp='$CXXCPP $CPPFLAGS'
21191 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21192 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21193 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21194
21195    cat >conftest.$ac_ext <<_ACEOF
21196 /* confdefs.h.  */
21197 _ACEOF
21198 cat confdefs.h >>conftest.$ac_ext
21199 cat >>conftest.$ac_ext <<_ACEOF
21200 /* end confdefs.h.  */
21201 #include <ieeefp.h>
21202 int
21203 main ()
21204 {
21205 float f; finite(f);
21206   ;
21207   return 0;
21208 }
21209 _ACEOF
21210 rm -f conftest.$ac_objext
21211 if { (ac_try="$ac_compile"
21212 case "(($ac_try" in
21213   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21214   *) ac_try_echo=$ac_try;;
21215 esac
21216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21217   (eval "$ac_compile") 2>conftest.er1
21218   ac_status=$?
21219   grep -v '^ *+' conftest.er1 >conftest.err
21220   rm -f conftest.er1
21221   cat conftest.err >&5
21222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21223   (exit $ac_status); } &&
21224          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21225   { (case "(($ac_try" in
21226   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21227   *) ac_try_echo=$ac_try;;
21228 esac
21229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21230   (eval "$ac_try") 2>&5
21231   ac_status=$?
21232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21233   (exit $ac_status); }; } &&
21234          { ac_try='test -s conftest.$ac_objext'
21235   { (case "(($ac_try" in
21236   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21237   *) ac_try_echo=$ac_try;;
21238 esac
21239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21240   (eval "$ac_try") 2>&5
21241   ac_status=$?
21242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21243   (exit $ac_status); }; }; then
21244   ac_cv_func_finite_in_ieeefp_h=yes
21245 else
21246   echo "$as_me: failed program was:" >&5
21247 sed 's/^/| /' conftest.$ac_ext >&5
21248
21249         ac_cv_func_finite_in_ieeefp_h=no
21250 fi
21251
21252 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21253   ac_ext=c
21254 ac_cpp='$CPP $CPPFLAGS'
21255 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21256 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21257 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21258
21259 fi
21260 { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
21261 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
21262
21263 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
21264
21265 cat >>confdefs.h <<\_ACEOF
21266 #define HAVE_FINITE_IN_IEEEFP_H 1
21267 _ACEOF
21268
21269 fi
21270
21271
21272
21273 if test "$llvm_cv_platform_type" = "Unix" ; then
21274
21275
21276 for ac_header in stdlib.h unistd.h
21277 do
21278 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21279 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21280   { echo "$as_me:$LINENO: checking for $ac_header" >&5
21281 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21282 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21283   echo $ECHO_N "(cached) $ECHO_C" >&6
21284 fi
21285 ac_res=`eval echo '${'$as_ac_Header'}'`
21286                { echo "$as_me:$LINENO: result: $ac_res" >&5
21287 echo "${ECHO_T}$ac_res" >&6; }
21288 else
21289   # Is the header compilable?
21290 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21291 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21292 cat >conftest.$ac_ext <<_ACEOF
21293 /* confdefs.h.  */
21294 _ACEOF
21295 cat confdefs.h >>conftest.$ac_ext
21296 cat >>conftest.$ac_ext <<_ACEOF
21297 /* end confdefs.h.  */
21298 $ac_includes_default
21299 #include <$ac_header>
21300 _ACEOF
21301 rm -f conftest.$ac_objext
21302 if { (ac_try="$ac_compile"
21303 case "(($ac_try" in
21304   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21305   *) ac_try_echo=$ac_try;;
21306 esac
21307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21308   (eval "$ac_compile") 2>conftest.er1
21309   ac_status=$?
21310   grep -v '^ *+' conftest.er1 >conftest.err
21311   rm -f conftest.er1
21312   cat conftest.err >&5
21313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21314   (exit $ac_status); } &&
21315          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21316   { (case "(($ac_try" in
21317   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21318   *) ac_try_echo=$ac_try;;
21319 esac
21320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21321   (eval "$ac_try") 2>&5
21322   ac_status=$?
21323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21324   (exit $ac_status); }; } &&
21325          { ac_try='test -s conftest.$ac_objext'
21326   { (case "(($ac_try" in
21327   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21328   *) ac_try_echo=$ac_try;;
21329 esac
21330 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21331   (eval "$ac_try") 2>&5
21332   ac_status=$?
21333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21334   (exit $ac_status); }; }; then
21335   ac_header_compiler=yes
21336 else
21337   echo "$as_me: failed program was:" >&5
21338 sed 's/^/| /' conftest.$ac_ext >&5
21339
21340         ac_header_compiler=no
21341 fi
21342
21343 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21344 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21345 echo "${ECHO_T}$ac_header_compiler" >&6; }
21346
21347 # Is the header present?
21348 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21349 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21350 cat >conftest.$ac_ext <<_ACEOF
21351 /* confdefs.h.  */
21352 _ACEOF
21353 cat confdefs.h >>conftest.$ac_ext
21354 cat >>conftest.$ac_ext <<_ACEOF
21355 /* end confdefs.h.  */
21356 #include <$ac_header>
21357 _ACEOF
21358 if { (ac_try="$ac_cpp conftest.$ac_ext"
21359 case "(($ac_try" in
21360   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21361   *) ac_try_echo=$ac_try;;
21362 esac
21363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21364   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21365   ac_status=$?
21366   grep -v '^ *+' conftest.er1 >conftest.err
21367   rm -f conftest.er1
21368   cat conftest.err >&5
21369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21370   (exit $ac_status); } >/dev/null; then
21371   if test -s conftest.err; then
21372     ac_cpp_err=$ac_c_preproc_warn_flag
21373     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21374   else
21375     ac_cpp_err=
21376   fi
21377 else
21378   ac_cpp_err=yes
21379 fi
21380 if test -z "$ac_cpp_err"; then
21381   ac_header_preproc=yes
21382 else
21383   echo "$as_me: failed program was:" >&5
21384 sed 's/^/| /' conftest.$ac_ext >&5
21385
21386   ac_header_preproc=no
21387 fi
21388
21389 rm -f conftest.err conftest.$ac_ext
21390 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21391 echo "${ECHO_T}$ac_header_preproc" >&6; }
21392
21393 # So?  What about this header?
21394 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21395   yes:no: )
21396     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21397 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21398     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21399 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21400     ac_header_preproc=yes
21401     ;;
21402   no:yes:* )
21403     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21404 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21405     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
21406 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
21407     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21408 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21409     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
21410 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
21411     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21412 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21413     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21414 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21415     ( cat <<\_ASBOX
21416 ## ----------------------------------- ##
21417 ## Report this to llvmbugs@cs.uiuc.edu ##
21418 ## ----------------------------------- ##
21419 _ASBOX
21420      ) | sed "s/^/$as_me: WARNING:     /" >&2
21421     ;;
21422 esac
21423 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21424 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21425 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21426   echo $ECHO_N "(cached) $ECHO_C" >&6
21427 else
21428   eval "$as_ac_Header=\$ac_header_preproc"
21429 fi
21430 ac_res=`eval echo '${'$as_ac_Header'}'`
21431                { echo "$as_me:$LINENO: result: $ac_res" >&5
21432 echo "${ECHO_T}$ac_res" >&6; }
21433
21434 fi
21435 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21436   cat >>confdefs.h <<_ACEOF
21437 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21438 _ACEOF
21439
21440 fi
21441
21442 done
21443
21444
21445 for ac_func in getpagesize
21446 do
21447 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21448 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21449 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21450 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21451   echo $ECHO_N "(cached) $ECHO_C" >&6
21452 else
21453   cat >conftest.$ac_ext <<_ACEOF
21454 /* confdefs.h.  */
21455 _ACEOF
21456 cat confdefs.h >>conftest.$ac_ext
21457 cat >>conftest.$ac_ext <<_ACEOF
21458 /* end confdefs.h.  */
21459 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21460    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21461 #define $ac_func innocuous_$ac_func
21462
21463 /* System header to define __stub macros and hopefully few prototypes,
21464     which can conflict with char $ac_func (); below.
21465     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21466     <limits.h> exists even on freestanding compilers.  */
21467
21468 #ifdef __STDC__
21469 # include <limits.h>
21470 #else
21471 # include <assert.h>
21472 #endif
21473
21474 #undef $ac_func
21475
21476 /* Override any GCC internal prototype to avoid an error.
21477    Use char because int might match the return type of a GCC
21478    builtin and then its argument prototype would still apply.  */
21479 #ifdef __cplusplus
21480 extern "C"
21481 #endif
21482 char $ac_func ();
21483 /* The GNU C library defines this for functions which it implements
21484     to always fail with ENOSYS.  Some functions are actually named
21485     something starting with __ and the normal name is an alias.  */
21486 #if defined __stub_$ac_func || defined __stub___$ac_func
21487 choke me
21488 #endif
21489
21490 int
21491 main ()
21492 {
21493 return $ac_func ();
21494   ;
21495   return 0;
21496 }
21497 _ACEOF
21498 rm -f conftest.$ac_objext conftest$ac_exeext
21499 if { (ac_try="$ac_link"
21500 case "(($ac_try" in
21501   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21502   *) ac_try_echo=$ac_try;;
21503 esac
21504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21505   (eval "$ac_link") 2>conftest.er1
21506   ac_status=$?
21507   grep -v '^ *+' conftest.er1 >conftest.err
21508   rm -f conftest.er1
21509   cat conftest.err >&5
21510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21511   (exit $ac_status); } &&
21512          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21513   { (case "(($ac_try" in
21514   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21515   *) ac_try_echo=$ac_try;;
21516 esac
21517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21518   (eval "$ac_try") 2>&5
21519   ac_status=$?
21520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21521   (exit $ac_status); }; } &&
21522          { ac_try='test -s conftest$ac_exeext'
21523   { (case "(($ac_try" in
21524   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21525   *) ac_try_echo=$ac_try;;
21526 esac
21527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21528   (eval "$ac_try") 2>&5
21529   ac_status=$?
21530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21531   (exit $ac_status); }; }; then
21532   eval "$as_ac_var=yes"
21533 else
21534   echo "$as_me: failed program was:" >&5
21535 sed 's/^/| /' conftest.$ac_ext >&5
21536
21537         eval "$as_ac_var=no"
21538 fi
21539
21540 rm -f core conftest.err conftest.$ac_objext \
21541       conftest$ac_exeext conftest.$ac_ext
21542 fi
21543 ac_res=`eval echo '${'$as_ac_var'}'`
21544                { echo "$as_me:$LINENO: result: $ac_res" >&5
21545 echo "${ECHO_T}$ac_res" >&6; }
21546 if test `eval echo '${'$as_ac_var'}'` = yes; then
21547   cat >>confdefs.h <<_ACEOF
21548 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21549 _ACEOF
21550
21551 fi
21552 done
21553
21554 { echo "$as_me:$LINENO: checking for working mmap" >&5
21555 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
21556 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
21557   echo $ECHO_N "(cached) $ECHO_C" >&6
21558 else
21559   if test "$cross_compiling" = yes; then
21560   ac_cv_func_mmap_fixed_mapped=no
21561 else
21562   cat >conftest.$ac_ext <<_ACEOF
21563 /* confdefs.h.  */
21564 _ACEOF
21565 cat confdefs.h >>conftest.$ac_ext
21566 cat >>conftest.$ac_ext <<_ACEOF
21567 /* end confdefs.h.  */
21568 $ac_includes_default
21569 /* malloc might have been renamed as rpl_malloc. */
21570 #undef malloc
21571
21572 /* Thanks to Mike Haertel and Jim Avera for this test.
21573    Here is a matrix of mmap possibilities:
21574         mmap private not fixed
21575         mmap private fixed at somewhere currently unmapped
21576         mmap private fixed at somewhere already mapped
21577         mmap shared not fixed
21578         mmap shared fixed at somewhere currently unmapped
21579         mmap shared fixed at somewhere already mapped
21580    For private mappings, we should verify that changes cannot be read()
21581    back from the file, nor mmap's back from the file at a different
21582    address.  (There have been systems where private was not correctly
21583    implemented like the infamous i386 svr4.0, and systems where the
21584    VM page cache was not coherent with the file system buffer cache
21585    like early versions of FreeBSD and possibly contemporary NetBSD.)
21586    For shared mappings, we should conversely verify that changes get
21587    propagated back to all the places they're supposed to be.
21588
21589    Grep wants private fixed already mapped.
21590    The main things grep needs to know about mmap are:
21591    * does it exist and is it safe to write into the mmap'd area
21592    * how to use it (BSD variants)  */
21593
21594 #include <fcntl.h>
21595 #include <sys/mman.h>
21596
21597 #if !STDC_HEADERS && !HAVE_STDLIB_H
21598 char *malloc ();
21599 #endif
21600
21601 /* This mess was copied from the GNU getpagesize.h.  */
21602 #if !HAVE_GETPAGESIZE
21603 /* Assume that all systems that can run configure have sys/param.h.  */
21604 # if !HAVE_SYS_PARAM_H
21605 #  define HAVE_SYS_PARAM_H 1
21606 # endif
21607
21608 # ifdef _SC_PAGESIZE
21609 #  define getpagesize() sysconf(_SC_PAGESIZE)
21610 # else /* no _SC_PAGESIZE */
21611 #  if HAVE_SYS_PARAM_H
21612 #   include <sys/param.h>
21613 #   ifdef EXEC_PAGESIZE
21614 #    define getpagesize() EXEC_PAGESIZE
21615 #   else /* no EXEC_PAGESIZE */
21616 #    ifdef NBPG
21617 #     define getpagesize() NBPG * CLSIZE
21618 #     ifndef CLSIZE
21619 #      define CLSIZE 1
21620 #     endif /* no CLSIZE */
21621 #    else /* no NBPG */
21622 #     ifdef NBPC
21623 #      define getpagesize() NBPC
21624 #     else /* no NBPC */
21625 #      ifdef PAGESIZE
21626 #       define getpagesize() PAGESIZE
21627 #      endif /* PAGESIZE */
21628 #     endif /* no NBPC */
21629 #    endif /* no NBPG */
21630 #   endif /* no EXEC_PAGESIZE */
21631 #  else /* no HAVE_SYS_PARAM_H */
21632 #   define getpagesize() 8192   /* punt totally */
21633 #  endif /* no HAVE_SYS_PARAM_H */
21634 # endif /* no _SC_PAGESIZE */
21635
21636 #endif /* no HAVE_GETPAGESIZE */
21637
21638 int
21639 main ()
21640 {
21641   char *data, *data2, *data3;
21642   int i, pagesize;
21643   int fd;
21644
21645   pagesize = getpagesize ();
21646
21647   /* First, make a file with some known garbage in it. */
21648   data = (char *) malloc (pagesize);
21649   if (!data)
21650     return 1;
21651   for (i = 0; i < pagesize; ++i)
21652     *(data + i) = rand ();
21653   umask (0);
21654   fd = creat ("conftest.mmap", 0600);
21655   if (fd < 0)
21656     return 1;
21657   if (write (fd, data, pagesize) != pagesize)
21658     return 1;
21659   close (fd);
21660
21661   /* Next, try to mmap the file at a fixed address which already has
21662      something else allocated at it.  If we can, also make sure that
21663      we see the same garbage.  */
21664   fd = open ("conftest.mmap", O_RDWR);
21665   if (fd < 0)
21666     return 1;
21667   data2 = (char *) malloc (2 * pagesize);
21668   if (!data2)
21669     return 1;
21670   data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
21671   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
21672                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
21673     return 1;
21674   for (i = 0; i < pagesize; ++i)
21675     if (*(data + i) != *(data2 + i))
21676       return 1;
21677
21678   /* Finally, make sure that changes to the mapped area do not
21679      percolate back to the file as seen by read().  (This is a bug on
21680      some variants of i386 svr4.0.)  */
21681   for (i = 0; i < pagesize; ++i)
21682     *(data2 + i) = *(data2 + i) + 1;
21683   data3 = (char *) malloc (pagesize);
21684   if (!data3)
21685     return 1;
21686   if (read (fd, data3, pagesize) != pagesize)
21687     return 1;
21688   for (i = 0; i < pagesize; ++i)
21689     if (*(data + i) != *(data3 + i))
21690       return 1;
21691   close (fd);
21692   return 0;
21693 }
21694 _ACEOF
21695 rm -f conftest$ac_exeext
21696 if { (ac_try="$ac_link"
21697 case "(($ac_try" in
21698   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21699   *) ac_try_echo=$ac_try;;
21700 esac
21701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21702   (eval "$ac_link") 2>&5
21703   ac_status=$?
21704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21705   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21706   { (case "(($ac_try" in
21707   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21708   *) ac_try_echo=$ac_try;;
21709 esac
21710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21711   (eval "$ac_try") 2>&5
21712   ac_status=$?
21713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21714   (exit $ac_status); }; }; then
21715   ac_cv_func_mmap_fixed_mapped=yes
21716 else
21717   echo "$as_me: program exited with status $ac_status" >&5
21718 echo "$as_me: failed program was:" >&5
21719 sed 's/^/| /' conftest.$ac_ext >&5
21720
21721 ( exit $ac_status )
21722 ac_cv_func_mmap_fixed_mapped=no
21723 fi
21724 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21725 fi
21726
21727
21728 fi
21729 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
21730 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
21731 if test $ac_cv_func_mmap_fixed_mapped = yes; then
21732
21733 cat >>confdefs.h <<\_ACEOF
21734 #define HAVE_MMAP 1
21735 _ACEOF
21736
21737 fi
21738 rm -f conftest.mmap
21739
21740   { echo "$as_me:$LINENO: checking for mmap of files" >&5
21741 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
21742 if test "${ac_cv_func_mmap_file+set}" = set; then
21743   echo $ECHO_N "(cached) $ECHO_C" >&6
21744 else
21745    ac_ext=c
21746 ac_cpp='$CPP $CPPFLAGS'
21747 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21748 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21749 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21750
21751   if test "$cross_compiling" = yes; then
21752   ac_cv_func_mmap_file=no
21753 else
21754   cat >conftest.$ac_ext <<_ACEOF
21755
21756     /* confdefs.h.  */
21757 _ACEOF
21758 cat confdefs.h >>conftest.$ac_ext
21759 cat >>conftest.$ac_ext <<_ACEOF
21760 /* end confdefs.h.  */
21761
21762 #include <sys/types.h>
21763 #include <sys/mman.h>
21764 #include <fcntl.h>
21765
21766 int
21767 main ()
21768 {
21769
21770   int fd;
21771   fd = creat ("foo",0777);
21772   fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
21773   unlink ("foo");
21774   return (fd != (int) MAP_FAILED);
21775   ;
21776   return 0;
21777 }
21778 _ACEOF
21779 rm -f conftest$ac_exeext
21780 if { (ac_try="$ac_link"
21781 case "(($ac_try" in
21782   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21783   *) ac_try_echo=$ac_try;;
21784 esac
21785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21786   (eval "$ac_link") 2>&5
21787   ac_status=$?
21788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21789   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21790   { (case "(($ac_try" in
21791   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21792   *) ac_try_echo=$ac_try;;
21793 esac
21794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21795   (eval "$ac_try") 2>&5
21796   ac_status=$?
21797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21798   (exit $ac_status); }; }; then
21799   ac_cv_func_mmap_file=yes
21800 else
21801   echo "$as_me: program exited with status $ac_status" >&5
21802 echo "$as_me: failed program was:" >&5
21803 sed 's/^/| /' conftest.$ac_ext >&5
21804
21805 ( exit $ac_status )
21806 ac_cv_func_mmap_file=no
21807 fi
21808 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21809 fi
21810
21811
21812   ac_ext=c
21813 ac_cpp='$CPP $CPPFLAGS'
21814 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21815 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21816 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21817
21818
21819 fi
21820 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
21821 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
21822 if test "$ac_cv_func_mmap_file" = yes; then
21823
21824 cat >>confdefs.h <<\_ACEOF
21825 #define HAVE_MMAP_FILE
21826 _ACEOF
21827
21828    MMAP_FILE=yes
21829
21830 fi
21831
21832   { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
21833 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
21834 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
21835   echo $ECHO_N "(cached) $ECHO_C" >&6
21836 else
21837   if test "$llvm_cv_os_type" = "Interix" ; then
21838    ac_cv_need_dev_zero_for_mmap=yes
21839  else
21840    ac_cv_need_dev_zero_for_mmap=no
21841  fi
21842
21843 fi
21844 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
21845 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
21846 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
21847
21848 cat >>confdefs.h <<\_ACEOF
21849 #define NEED_DEV_ZERO_FOR_MMAP 1
21850 _ACEOF
21851
21852 fi
21853
21854   if test "$ac_cv_func_mmap_fixed_mapped" = "no"
21855   then
21856     { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
21857 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
21858   fi
21859   if test "$ac_cv_func_mmap_file" = "no"
21860   then
21861     { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
21862 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
21863   fi
21864 fi
21865
21866 { echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
21867 echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
21868 ac_ext=cpp
21869 ac_cpp='$CXXCPP $CPPFLAGS'
21870 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21871 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21872 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21873
21874 cat >conftest.$ac_ext <<_ACEOF
21875 /* confdefs.h.  */
21876 _ACEOF
21877 cat confdefs.h >>conftest.$ac_ext
21878 cat >>conftest.$ac_ext <<_ACEOF
21879 /* end confdefs.h.  */
21880 int main() {
21881         volatile unsigned long val = 1;
21882         __sync_synchronize();
21883         __sync_val_compare_and_swap(&val, 1, 0);
21884         __sync_add_and_fetch(&val, 1);
21885         __sync_sub_and_fetch(&val, 1);
21886         return 0;
21887       }
21888
21889 _ACEOF
21890 rm -f conftest.$ac_objext conftest$ac_exeext
21891 if { (ac_try="$ac_link"
21892 case "(($ac_try" in
21893   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21894   *) ac_try_echo=$ac_try;;
21895 esac
21896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21897   (eval "$ac_link") 2>conftest.er1
21898   ac_status=$?
21899   grep -v '^ *+' conftest.er1 >conftest.err
21900   rm -f conftest.er1
21901   cat conftest.err >&5
21902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21903   (exit $ac_status); } &&
21904          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21905   { (case "(($ac_try" in
21906   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21907   *) ac_try_echo=$ac_try;;
21908 esac
21909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21910   (eval "$ac_try") 2>&5
21911   ac_status=$?
21912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21913   (exit $ac_status); }; } &&
21914          { ac_try='test -s conftest$ac_exeext'
21915   { (case "(($ac_try" in
21916   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21917   *) ac_try_echo=$ac_try;;
21918 esac
21919 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21920   (eval "$ac_try") 2>&5
21921   ac_status=$?
21922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21923   (exit $ac_status); }; }; then
21924   ac_ext=c
21925 ac_cpp='$CPP $CPPFLAGS'
21926 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21927 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21928 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21929
21930   { echo "$as_me:$LINENO: result: yes" >&5
21931 echo "${ECHO_T}yes" >&6; }
21932
21933 cat >>confdefs.h <<\_ACEOF
21934 #define LLVM_MULTITHREADED 1
21935 _ACEOF
21936
21937 else
21938   echo "$as_me: failed program was:" >&5
21939 sed 's/^/| /' conftest.$ac_ext >&5
21940
21941         { echo "$as_me:$LINENO: result: no" >&5
21942 echo "${ECHO_T}no" >&6; }
21943
21944 cat >>confdefs.h <<\_ACEOF
21945 #define LLVM_MULTITHREADED 0
21946 _ACEOF
21947
21948   { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
21949 echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
21950 fi
21951
21952 rm -f core conftest.err conftest.$ac_objext \
21953       conftest$ac_exeext conftest.$ac_ext
21954
21955
21956 if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
21957   { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
21958 echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
21959 if test "${llvm_cv_linux_mixed+set}" = set; then
21960   echo $ECHO_N "(cached) $ECHO_C" >&6
21961 else
21962    ac_ext=c
21963 ac_cpp='$CPP $CPPFLAGS'
21964 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21965 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21966 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21967
21968   cat >conftest.$ac_ext <<_ACEOF
21969 /* confdefs.h.  */
21970 _ACEOF
21971 cat confdefs.h >>conftest.$ac_ext
21972 cat >>conftest.$ac_ext <<_ACEOF
21973 /* end confdefs.h.  */
21974 #ifndef __x86_64__
21975        error: Not x86-64 even if uname says so!
21976       #endif
21977
21978 int
21979 main ()
21980 {
21981
21982   ;
21983   return 0;
21984 }
21985 _ACEOF
21986 rm -f conftest.$ac_objext
21987 if { (ac_try="$ac_compile"
21988 case "(($ac_try" in
21989   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21990   *) ac_try_echo=$ac_try;;
21991 esac
21992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21993   (eval "$ac_compile") 2>conftest.er1
21994   ac_status=$?
21995   grep -v '^ *+' conftest.er1 >conftest.err
21996   rm -f conftest.er1
21997   cat conftest.err >&5
21998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21999   (exit $ac_status); } &&
22000          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22001   { (case "(($ac_try" in
22002   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22003   *) ac_try_echo=$ac_try;;
22004 esac
22005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22006   (eval "$ac_try") 2>&5
22007   ac_status=$?
22008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22009   (exit $ac_status); }; } &&
22010          { ac_try='test -s conftest.$ac_objext'
22011   { (case "(($ac_try" in
22012   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22013   *) ac_try_echo=$ac_try;;
22014 esac
22015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22016   (eval "$ac_try") 2>&5
22017   ac_status=$?
22018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22019   (exit $ac_status); }; }; then
22020   llvm_cv_linux_mixed=no
22021 else
22022   echo "$as_me: failed program was:" >&5
22023 sed 's/^/| /' conftest.$ac_ext >&5
22024
22025         llvm_cv_linux_mixed=yes
22026 fi
22027
22028 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22029   ac_ext=c
22030 ac_cpp='$CPP $CPPFLAGS'
22031 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22032 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22033 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22034
22035
22036 fi
22037 { echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
22038 echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
22039
22040   if test "$llvm_cv_linux_mixed" = "yes"; then
22041     llvm_cv_target_arch="x86"
22042     ARCH="x86"
22043   fi
22044 fi
22045
22046
22047 for ac_func in __dso_handle
22048 do
22049 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22050 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22051 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22052 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22053   echo $ECHO_N "(cached) $ECHO_C" >&6
22054 else
22055   cat >conftest.$ac_ext <<_ACEOF
22056 /* confdefs.h.  */
22057 _ACEOF
22058 cat confdefs.h >>conftest.$ac_ext
22059 cat >>conftest.$ac_ext <<_ACEOF
22060 /* end confdefs.h.  */
22061 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22062    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22063 #define $ac_func innocuous_$ac_func
22064
22065 /* System header to define __stub macros and hopefully few prototypes,
22066     which can conflict with char $ac_func (); below.
22067     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22068     <limits.h> exists even on freestanding compilers.  */
22069
22070 #ifdef __STDC__
22071 # include <limits.h>
22072 #else
22073 # include <assert.h>
22074 #endif
22075
22076 #undef $ac_func
22077
22078 /* Override any GCC internal prototype to avoid an error.
22079    Use char because int might match the return type of a GCC
22080    builtin and then its argument prototype would still apply.  */
22081 #ifdef __cplusplus
22082 extern "C"
22083 #endif
22084 char $ac_func ();
22085 /* The GNU C library defines this for functions which it implements
22086     to always fail with ENOSYS.  Some functions are actually named
22087     something starting with __ and the normal name is an alias.  */
22088 #if defined __stub_$ac_func || defined __stub___$ac_func
22089 choke me
22090 #endif
22091
22092 int
22093 main ()
22094 {
22095 return $ac_func ();
22096   ;
22097   return 0;
22098 }
22099 _ACEOF
22100 rm -f conftest.$ac_objext conftest$ac_exeext
22101 if { (ac_try="$ac_link"
22102 case "(($ac_try" in
22103   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22104   *) ac_try_echo=$ac_try;;
22105 esac
22106 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22107   (eval "$ac_link") 2>conftest.er1
22108   ac_status=$?
22109   grep -v '^ *+' conftest.er1 >conftest.err
22110   rm -f conftest.er1
22111   cat conftest.err >&5
22112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22113   (exit $ac_status); } &&
22114          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22115   { (case "(($ac_try" in
22116   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22117   *) ac_try_echo=$ac_try;;
22118 esac
22119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22120   (eval "$ac_try") 2>&5
22121   ac_status=$?
22122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22123   (exit $ac_status); }; } &&
22124          { ac_try='test -s conftest$ac_exeext'
22125   { (case "(($ac_try" in
22126   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22127   *) ac_try_echo=$ac_try;;
22128 esac
22129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22130   (eval "$ac_try") 2>&5
22131   ac_status=$?
22132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22133   (exit $ac_status); }; }; then
22134   eval "$as_ac_var=yes"
22135 else
22136   echo "$as_me: failed program was:" >&5
22137 sed 's/^/| /' conftest.$ac_ext >&5
22138
22139         eval "$as_ac_var=no"
22140 fi
22141
22142 rm -f core conftest.err conftest.$ac_objext \
22143       conftest$ac_exeext conftest.$ac_ext
22144 fi
22145 ac_res=`eval echo '${'$as_ac_var'}'`
22146                { echo "$as_me:$LINENO: result: $ac_res" >&5
22147 echo "${ECHO_T}$ac_res" >&6; }
22148 if test `eval echo '${'$as_ac_var'}'` = yes; then
22149   cat >>confdefs.h <<_ACEOF
22150 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22151 _ACEOF
22152
22153 fi
22154 done
22155
22156
22157 { echo "$as_me:$LINENO: checking whether llvm-gcc is dragonegg" >&5
22158 echo $ECHO_N "checking whether llvm-gcc is dragonegg... $ECHO_C" >&6; }
22159 if test "${llvm_cv_llvmgcc_dragonegg+set}" = set; then
22160   echo $ECHO_N "(cached) $ECHO_C" >&6
22161 else
22162   llvm_cv_llvmgcc_dragonegg="no"
22163 if test -n "$LLVMGCC" ; then
22164   cp /dev/null conftest.c
22165   $LLVMGCC -fplugin-arg-dragonegg-emit-ir -S -o - conftest.c > /dev/null 2>&1
22166   if test $? -eq 0 ; then
22167     llvm_cv_llvmgcc_dragonegg="yes"
22168   fi
22169   rm conftest.c
22170 fi
22171 fi
22172 { echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_dragonegg" >&5
22173 echo "${ECHO_T}$llvm_cv_llvmgcc_dragonegg" >&6; }
22174
22175 if test "$llvm_cv_llvmgcc_dragonegg" = "yes" ; then
22176   LLVMCC_EMITIR_FLAG="-fplugin-arg-dragonegg-emit-ir"
22177   LLVMCC_DISABLEOPT_FLAGS="-fplugin-arg-dragonegg-disable-llvm-optzns"
22178 else
22179   LLVMCC_EMITIR_FLAG="-emit-llvm"
22180   LLVMCC_DISABLEOPT_FLAGS="-mllvm -disable-llvm-optzns"
22181 fi
22182
22183
22184
22185 { echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
22186 echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6; }
22187 if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
22188   echo $ECHO_N "(cached) $ECHO_C" >&6
22189 else
22190   llvm_cv_llvmgcc_sanity="no"
22191 if test -n "$LLVMGCC" ; then
22192   cp /dev/null conftest.c
22193   $LLVMGCC "$LLVMCC_EMITIR_FLAG" -S -o - conftest.c | \
22194       grep 'target datalayout =' > /dev/null 2>&1
22195   if test $? -eq 0 ; then
22196     llvm_cv_llvmgcc_sanity="yes"
22197   fi
22198   rm conftest.c
22199 fi
22200 fi
22201 { echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
22202 echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6; }
22203
22204 if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
22205   { echo "$as_me:$LINENO: checking llvm-gcc component support" >&5
22206 echo $ECHO_N "checking llvm-gcc component support... $ECHO_C" >&6; }
22207   llvmcc1path=`$LLVMGCC --print-prog-name=cc1`
22208   LLVMCC1=$llvmcc1path
22209
22210   llvmcc1pluspath=`$LLVMGCC --print-prog-name=cc1plus`
22211   LLVMCC1PLUS=$llvmcc1pluspath
22212
22213   llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
22214   LLVMGCCDIR=$llvmgccdir
22215
22216   llvmgcclangs=`$LLVMGCC -v --help 2>&1 | grep '^Configured with:' | sed 's/^.*--enable-languages=\([^ ]*\).*/\1/'`
22217   LLVMGCC_LANGS=$llvmgcclangs
22218
22219   LLVMGCC_DRAGONEGG=$llvm_cv_llvmgcc_dragonegg
22220
22221
22222   { echo "$as_me:$LINENO: result: ok" >&5
22223 echo "${ECHO_T}ok" >&6; }
22224 fi
22225
22226 SHLIBEXT=$libltdl_cv_shlibext
22227
22228
22229 SHLIBPATH_VAR=$libltdl_cv_shlibpath_var
22230
22231
22232 # Translate the various configuration directories and other basic
22233 # information into substitutions that will end up in Makefile.config.in
22234 # that these configured values can be used by the makefiles
22235 if test "${prefix}" = "NONE" ; then
22236   prefix="/usr/local"
22237 fi
22238 eval LLVM_PREFIX="${prefix}";
22239 eval LLVM_BINDIR="${prefix}/bin";
22240 eval LLVM_LIBDIR="${prefix}/lib";
22241 eval LLVM_DATADIR="${prefix}/share/llvm";
22242 eval LLVM_DOCSDIR="${prefix}/share/doc/llvm";
22243 eval LLVM_ETCDIR="${prefix}/etc/llvm";
22244 eval LLVM_INCLUDEDIR="${prefix}/include";
22245 eval LLVM_INFODIR="${prefix}/info";
22246 eval LLVM_MANDIR="${prefix}/man";
22247 LLVM_CONFIGTIME=`date`
22248
22249
22250
22251
22252
22253
22254
22255
22256
22257
22258
22259 # Place the various directores into the config.h file as #defines so that we
22260 # can know about the installation paths within LLVM.
22261
22262 cat >>confdefs.h <<_ACEOF
22263 #define LLVM_PREFIX "$LLVM_PREFIX"
22264 _ACEOF
22265
22266
22267 cat >>confdefs.h <<_ACEOF
22268 #define LLVM_BINDIR "$LLVM_BINDIR"
22269 _ACEOF
22270
22271
22272 cat >>confdefs.h <<_ACEOF
22273 #define LLVM_LIBDIR "$LLVM_LIBDIR"
22274 _ACEOF
22275
22276
22277 cat >>confdefs.h <<_ACEOF
22278 #define LLVM_DATADIR "$LLVM_DATADIR"
22279 _ACEOF
22280
22281
22282 cat >>confdefs.h <<_ACEOF
22283 #define LLVM_DOCSDIR "$LLVM_DOCSDIR"
22284 _ACEOF
22285
22286
22287 cat >>confdefs.h <<_ACEOF
22288 #define LLVM_ETCDIR "$LLVM_ETCDIR"
22289 _ACEOF
22290
22291
22292 cat >>confdefs.h <<_ACEOF
22293 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
22294 _ACEOF
22295
22296
22297 cat >>confdefs.h <<_ACEOF
22298 #define LLVM_INFODIR "$LLVM_INFODIR"
22299 _ACEOF
22300
22301
22302 cat >>confdefs.h <<_ACEOF
22303 #define LLVM_MANDIR "$LLVM_MANDIR"
22304 _ACEOF
22305
22306
22307 cat >>confdefs.h <<_ACEOF
22308 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
22309 _ACEOF
22310
22311
22312 cat >>confdefs.h <<_ACEOF
22313 #define LLVM_HOSTTRIPLE "$host"
22314 _ACEOF
22315
22316
22317 # Determine which bindings to build.
22318 if test "$BINDINGS_TO_BUILD" = auto ; then
22319   BINDINGS_TO_BUILD=""
22320   if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
22321     BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
22322   fi
22323 fi
22324 BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
22325
22326
22327 # This isn't really configurey, but it avoids having to repeat the list in
22328 # other files.
22329 ALL_BINDINGS=ocaml
22330
22331
22332 # Do any work necessary to ensure that bindings have what they need.
22333 binding_prereqs_failed=0
22334 for a_binding in $BINDINGS_TO_BUILD ; do
22335   case "$a_binding" in
22336   ocaml)
22337     if test "x$OCAMLC" = x ; then
22338       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
22339 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
22340       binding_prereqs_failed=1
22341     fi
22342     if test "x$OCAMLDEP" = x ; then
22343       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
22344 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
22345       binding_prereqs_failed=1
22346     fi
22347     if test "x$OCAMLOPT" = x ; then
22348       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
22349 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
22350           fi
22351     if test "x$with_ocaml_libdir" != xauto ; then
22352       OCAML_LIBDIR=$with_ocaml_libdir
22353
22354     else
22355       ocaml_stdlib="`"$OCAMLC" -where`"
22356       if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
22357       then
22358         # ocaml stdlib is beneath our prefix; use stdlib
22359         OCAML_LIBDIR=$ocaml_stdlib
22360
22361       else
22362         # ocaml stdlib is outside our prefix; use libdir/ocaml
22363         OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
22364
22365       fi
22366     fi
22367     ;;
22368   esac
22369 done
22370 if test "$binding_prereqs_failed" = 1 ; then
22371   { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
22372 echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
22373    { (exit 1); exit 1; }; }
22374 fi
22375
22376 { echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
22377 echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
22378 if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
22379   echo $ECHO_N "(cached) $ECHO_C" >&6
22380 else
22381    ac_ext=cpp
22382 ac_cpp='$CXXCPP $CPPFLAGS'
22383 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22384 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22385 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22386
22387   oldcxxflags="$CXXFLAGS"
22388   CXXFLAGS="$CXXFLAGS -fvisibility-inlines-hidden"
22389   cat >conftest.$ac_ext <<_ACEOF
22390 /* confdefs.h.  */
22391 _ACEOF
22392 cat confdefs.h >>conftest.$ac_ext
22393 cat >>conftest.$ac_ext <<_ACEOF
22394 /* end confdefs.h.  */
22395
22396 int
22397 main ()
22398 {
22399
22400   ;
22401   return 0;
22402 }
22403 _ACEOF
22404 rm -f conftest.$ac_objext
22405 if { (ac_try="$ac_compile"
22406 case "(($ac_try" in
22407   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22408   *) ac_try_echo=$ac_try;;
22409 esac
22410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22411   (eval "$ac_compile") 2>conftest.er1
22412   ac_status=$?
22413   grep -v '^ *+' conftest.er1 >conftest.err
22414   rm -f conftest.er1
22415   cat conftest.err >&5
22416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22417   (exit $ac_status); } &&
22418          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
22419   { (case "(($ac_try" in
22420   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22421   *) ac_try_echo=$ac_try;;
22422 esac
22423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22424   (eval "$ac_try") 2>&5
22425   ac_status=$?
22426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22427   (exit $ac_status); }; } &&
22428          { ac_try='test -s conftest.$ac_objext'
22429   { (case "(($ac_try" in
22430   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22431   *) ac_try_echo=$ac_try;;
22432 esac
22433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22434   (eval "$ac_try") 2>&5
22435   ac_status=$?
22436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22437   (exit $ac_status); }; }; then
22438   llvm_cv_cxx_visibility_inlines_hidden=yes
22439 else
22440   echo "$as_me: failed program was:" >&5
22441 sed 's/^/| /' conftest.$ac_ext >&5
22442
22443         llvm_cv_cxx_visibility_inlines_hidden=no
22444 fi
22445
22446 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22447   CXXFLAGS="$oldcxxflags"
22448   ac_ext=c
22449 ac_cpp='$CPP $CPPFLAGS'
22450 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22451 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22452 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22453
22454
22455 fi
22456 { echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
22457 echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
22458 if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
22459   ENABLE_VISIBILITY_INLINES_HIDDEN=1
22460
22461 else
22462   ENABLE_VISIBILITY_INLINES_HIDDEN=0
22463
22464 fi
22465
22466
22467 if test "$llvm_cv_link_use_r" = "yes" ; then
22468   RPATH="-Wl,-R"
22469 else
22470   RPATH="-Wl,-rpath"
22471 fi
22472
22473
22474 if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
22475   RDYNAMIC="-Wl,-export-dynamic"
22476 else
22477   RDYNAMIC=""
22478 fi
22479
22480
22481
22482 ac_config_headers="$ac_config_headers include/llvm/Config/config.h include/llvm/Config/llvm-config.h"
22483
22484
22485
22486
22487
22488
22489 ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
22490
22491 ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
22492
22493 ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
22494
22495 ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def"
22496
22497 ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
22498
22499
22500 ac_config_files="$ac_config_files Makefile.config"
22501
22502
22503 ac_config_files="$ac_config_files llvm.spec"
22504
22505
22506 ac_config_files="$ac_config_files tools/llvmc/src/Base.td"
22507
22508
22509 ac_config_files="$ac_config_files tools/llvm-config/llvm-config.in"
22510
22511
22512 ac_config_commands="$ac_config_commands setup"
22513
22514 ac_config_commands="$ac_config_commands Makefile"
22515
22516
22517 ac_config_commands="$ac_config_commands Makefile.common"
22518
22519
22520 ac_config_commands="$ac_config_commands examples/Makefile"
22521
22522
22523 ac_config_commands="$ac_config_commands lib/Makefile"
22524
22525
22526 ac_config_commands="$ac_config_commands runtime/Makefile"
22527
22528
22529 ac_config_commands="$ac_config_commands test/Makefile"
22530
22531
22532 ac_config_commands="$ac_config_commands test/Makefile.tests"
22533
22534
22535 ac_config_commands="$ac_config_commands unittests/Makefile"
22536
22537
22538 ac_config_commands="$ac_config_commands tools/Makefile"
22539
22540
22541 ac_config_commands="$ac_config_commands utils/Makefile"
22542
22543
22544 ac_config_commands="$ac_config_commands projects/Makefile"
22545
22546
22547 ac_config_commands="$ac_config_commands bindings/Makefile"
22548
22549
22550 ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
22551
22552
22553
22554 cat >confcache <<\_ACEOF
22555 # This file is a shell script that caches the results of configure
22556 # tests run on this system so they can be shared between configure
22557 # scripts and configure runs, see configure's option --config-cache.
22558 # It is not useful on other systems.  If it contains results you don't
22559 # want to keep, you may remove or edit it.
22560 #
22561 # config.status only pays attention to the cache file if you give it
22562 # the --recheck option to rerun configure.
22563 #
22564 # `ac_cv_env_foo' variables (set or unset) will be overridden when
22565 # loading this file, other *unset* `ac_cv_foo' will be assigned the
22566 # following values.
22567
22568 _ACEOF
22569
22570 # The following way of writing the cache mishandles newlines in values,
22571 # but we know of no workaround that is simple, portable, and efficient.
22572 # So, we kill variables containing newlines.
22573 # Ultrix sh set writes to stderr and can't be redirected directly,
22574 # and sets the high bit in the cache file unless we assign to the vars.
22575 (
22576   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
22577     eval ac_val=\$$ac_var
22578     case $ac_val in #(
22579     *${as_nl}*)
22580       case $ac_var in #(
22581       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
22582 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
22583       esac
22584       case $ac_var in #(
22585       _ | IFS | as_nl) ;; #(
22586       *) $as_unset $ac_var ;;
22587       esac ;;
22588     esac
22589   done
22590
22591   (set) 2>&1 |
22592     case $as_nl`(ac_space=' '; set) 2>&1` in #(
22593     *${as_nl}ac_space=\ *)
22594       # `set' does not quote correctly, so add quotes (double-quote
22595       # substitution turns \\\\ into \\, and sed turns \\ into \).
22596       sed -n \
22597         "s/'/'\\\\''/g;
22598           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22599       ;; #(
22600     *)
22601       # `set' quotes correctly as required by POSIX, so do not add quotes.
22602       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
22603       ;;
22604     esac |
22605     sort
22606 ) |
22607   sed '
22608      /^ac_cv_env_/b end
22609      t clear
22610      :clear
22611      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22612      t end
22613      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22614      :end' >>confcache
22615 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
22616   if test -w "$cache_file"; then
22617     test "x$cache_file" != "x/dev/null" &&
22618       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
22619 echo "$as_me: updating cache $cache_file" >&6;}
22620     cat confcache >$cache_file
22621   else
22622     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
22623 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
22624   fi
22625 fi
22626 rm -f confcache
22627
22628 test "x$prefix" = xNONE && prefix=$ac_default_prefix
22629 # Let make expand exec_prefix.
22630 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22631
22632 DEFS=-DHAVE_CONFIG_H
22633
22634 ac_libobjs=
22635 ac_ltlibobjs=
22636 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22637   # 1. Remove the extension, and $U if already installed.
22638   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
22639   ac_i=`echo "$ac_i" | sed "$ac_script"`
22640   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
22641   #    will be set to the directory where LIBOBJS objects are built.
22642   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
22643   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
22644 done
22645 LIBOBJS=$ac_libobjs
22646
22647 LTLIBOBJS=$ac_ltlibobjs
22648
22649
22650 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
22651   { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
22652 Usually this means the macro was only invoked conditionally." >&5
22653 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
22654 Usually this means the macro was only invoked conditionally." >&2;}
22655    { (exit 1); exit 1; }; }
22656 fi
22657 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
22658   { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
22659 Usually this means the macro was only invoked conditionally." >&5
22660 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
22661 Usually this means the macro was only invoked conditionally." >&2;}
22662    { (exit 1); exit 1; }; }
22663 fi
22664
22665 : ${CONFIG_STATUS=./config.status}
22666 ac_clean_files_save=$ac_clean_files
22667 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22668 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
22669 echo "$as_me: creating $CONFIG_STATUS" >&6;}
22670 cat >$CONFIG_STATUS <<_ACEOF
22671 #! $SHELL
22672 # Generated by $as_me.
22673 # Run this file to recreate the current configuration.
22674 # Compiler output produced by configure, useful for debugging
22675 # configure, is in config.log if it exists.
22676
22677 debug=false
22678 ac_cs_recheck=false
22679 ac_cs_silent=false
22680 SHELL=\${CONFIG_SHELL-$SHELL}
22681 _ACEOF
22682
22683 cat >>$CONFIG_STATUS <<\_ACEOF
22684 ## --------------------- ##
22685 ## M4sh Initialization.  ##
22686 ## --------------------- ##
22687
22688 # Be Bourne compatible
22689 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22690   emulate sh
22691   NULLCMD=:
22692   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22693   # is contrary to our usage.  Disable this feature.
22694   alias -g '${1+"$@"}'='"$@"'
22695   setopt NO_GLOB_SUBST
22696 else
22697   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
22698 fi
22699 BIN_SH=xpg4; export BIN_SH # for Tru64
22700 DUALCASE=1; export DUALCASE # for MKS sh
22701
22702
22703 # PATH needs CR
22704 # Avoid depending upon Character Ranges.
22705 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22706 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22707 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22708 as_cr_digits='0123456789'
22709 as_cr_alnum=$as_cr_Letters$as_cr_digits
22710
22711 # The user is always right.
22712 if test "${PATH_SEPARATOR+set}" != set; then
22713   echo "#! /bin/sh" >conf$$.sh
22714   echo  "exit 0"   >>conf$$.sh
22715   chmod +x conf$$.sh
22716   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
22717     PATH_SEPARATOR=';'
22718   else
22719     PATH_SEPARATOR=:
22720   fi
22721   rm -f conf$$.sh
22722 fi
22723
22724 # Support unset when possible.
22725 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
22726   as_unset=unset
22727 else
22728   as_unset=false
22729 fi
22730
22731
22732 # IFS
22733 # We need space, tab and new line, in precisely that order.  Quoting is
22734 # there to prevent editors from complaining about space-tab.
22735 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
22736 # splitting by setting IFS to empty value.)
22737 as_nl='
22738 '
22739 IFS=" ""        $as_nl"
22740
22741 # Find who we are.  Look in the path if we contain no directory separator.
22742 case $0 in
22743   *[\\/]* ) as_myself=$0 ;;
22744   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22745 for as_dir in $PATH
22746 do
22747   IFS=$as_save_IFS
22748   test -z "$as_dir" && as_dir=.
22749   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22750 done
22751 IFS=$as_save_IFS
22752
22753      ;;
22754 esac
22755 # We did not find ourselves, most probably we were run as `sh COMMAND'
22756 # in which case we are not to be found in the path.
22757 if test "x$as_myself" = x; then
22758   as_myself=$0
22759 fi
22760 if test ! -f "$as_myself"; then
22761   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
22762   { (exit 1); exit 1; }
22763 fi
22764
22765 # Work around bugs in pre-3.0 UWIN ksh.
22766 for as_var in ENV MAIL MAILPATH
22767 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
22768 done
22769 PS1='$ '
22770 PS2='> '
22771 PS4='+ '
22772
22773 # NLS nuisances.
22774 for as_var in \
22775   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
22776   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
22777   LC_TELEPHONE LC_TIME
22778 do
22779   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
22780     eval $as_var=C; export $as_var
22781   else
22782     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
22783   fi
22784 done
22785
22786 # Required to use basename.
22787 if expr a : '\(a\)' >/dev/null 2>&1 &&
22788    test "X`expr 00001 : '.*\(...\)'`" = X001; then
22789   as_expr=expr
22790 else
22791   as_expr=false
22792 fi
22793
22794 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
22795   as_basename=basename
22796 else
22797   as_basename=false
22798 fi
22799
22800
22801 # Name of the executable.
22802 as_me=`$as_basename -- "$0" ||
22803 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22804          X"$0" : 'X\(//\)$' \| \
22805          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
22806 echo X/"$0" |
22807     sed '/^.*\/\([^/][^/]*\)\/*$/{
22808             s//\1/
22809             q
22810           }
22811           /^X\/\(\/\/\)$/{
22812             s//\1/
22813             q
22814           }
22815           /^X\/\(\/\).*/{
22816             s//\1/
22817             q
22818           }
22819           s/.*/./; q'`
22820
22821 # CDPATH.
22822 $as_unset CDPATH
22823
22824
22825
22826   as_lineno_1=$LINENO
22827   as_lineno_2=$LINENO
22828   test "x$as_lineno_1" != "x$as_lineno_2" &&
22829   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
22830
22831   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
22832   # uniformly replaced by the line number.  The first 'sed' inserts a
22833   # line-number line after each line using $LINENO; the second 'sed'
22834   # does the real work.  The second script uses 'N' to pair each
22835   # line-number line with the line containing $LINENO, and appends
22836   # trailing '-' during substitution so that $LINENO is not a special
22837   # case at line end.
22838   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
22839   # scripts with optimization help from Paolo Bonzini.  Blame Lee
22840   # E. McMahon (1931-1989) for sed's syntax.  :-)
22841   sed -n '
22842     p
22843     /[$]LINENO/=
22844   ' <$as_myself |
22845     sed '
22846       s/[$]LINENO.*/&-/
22847       t lineno
22848       b
22849       :lineno
22850       N
22851       :loop
22852       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
22853       t loop
22854       s/-\n.*//
22855     ' >$as_me.lineno &&
22856   chmod +x "$as_me.lineno" ||
22857     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
22858    { (exit 1); exit 1; }; }
22859
22860   # Don't try to exec as it changes $[0], causing all sort of problems
22861   # (the dirname of $[0] is not the place where we might find the
22862   # original and so on.  Autoconf is especially sensitive to this).
22863   . "./$as_me.lineno"
22864   # Exit status is that of the last command.
22865   exit
22866 }
22867
22868
22869 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
22870   as_dirname=dirname
22871 else
22872   as_dirname=false
22873 fi
22874
22875 ECHO_C= ECHO_N= ECHO_T=
22876 case `echo -n x` in
22877 -n*)
22878   case `echo 'x\c'` in
22879   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
22880   *)   ECHO_C='\c';;
22881   esac;;
22882 *)
22883   ECHO_N='-n';;
22884 esac
22885
22886 if expr a : '\(a\)' >/dev/null 2>&1 &&
22887    test "X`expr 00001 : '.*\(...\)'`" = X001; then
22888   as_expr=expr
22889 else
22890   as_expr=false
22891 fi
22892
22893 rm -f conf$$ conf$$.exe conf$$.file
22894 if test -d conf$$.dir; then
22895   rm -f conf$$.dir/conf$$.file
22896 else
22897   rm -f conf$$.dir
22898   mkdir conf$$.dir
22899 fi
22900 echo >conf$$.file
22901 if ln -s conf$$.file conf$$ 2>/dev/null; then
22902   as_ln_s='ln -s'
22903   # ... but there are two gotchas:
22904   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
22905   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
22906   # In both cases, we have to default to `cp -p'.
22907   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
22908     as_ln_s='cp -p'
22909 elif ln conf$$.file conf$$ 2>/dev/null; then
22910   as_ln_s=ln
22911 else
22912   as_ln_s='cp -p'
22913 fi
22914 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
22915 rmdir conf$$.dir 2>/dev/null
22916
22917 if mkdir -p . 2>/dev/null; then
22918   as_mkdir_p=:
22919 else
22920   test -d ./-p && rmdir ./-p
22921   as_mkdir_p=false
22922 fi
22923
22924 # Find out whether ``test -x'' works.  Don't use a zero-byte file, as
22925 # systems may use methods other than mode bits to determine executability.
22926 cat >conf$$.file <<_ASEOF
22927 #! /bin/sh
22928 exit 0
22929 _ASEOF
22930 chmod +x conf$$.file
22931 if test -x conf$$.file >/dev/null 2>&1; then
22932   as_executable_p="test -x"
22933 else
22934   as_executable_p=:
22935 fi
22936 rm -f conf$$.file
22937
22938 # Sed expression to map a string onto a valid CPP name.
22939 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
22940
22941 # Sed expression to map a string onto a valid variable name.
22942 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
22943
22944
22945 exec 6>&1
22946
22947 # Save the log message, to keep $[0] and so on meaningful, and to
22948 # report actual input values of CONFIG_FILES etc. instead of their
22949 # values after options handling.
22950 ac_log="
22951 This file was extended by llvm $as_me 3.0svn, which was
22952 generated by GNU Autoconf 2.60.  Invocation command line was
22953
22954   CONFIG_FILES    = $CONFIG_FILES
22955   CONFIG_HEADERS  = $CONFIG_HEADERS
22956   CONFIG_LINKS    = $CONFIG_LINKS
22957   CONFIG_COMMANDS = $CONFIG_COMMANDS
22958   $ $0 $@
22959
22960 on `(hostname || uname -n) 2>/dev/null | sed 1q`
22961 "
22962
22963 _ACEOF
22964
22965 cat >>$CONFIG_STATUS <<_ACEOF
22966 # Files that config.status was made for.
22967 config_files="$ac_config_files"
22968 config_headers="$ac_config_headers"
22969 config_commands="$ac_config_commands"
22970
22971 _ACEOF
22972
22973 cat >>$CONFIG_STATUS <<\_ACEOF
22974 ac_cs_usage="\
22975 \`$as_me' instantiates files from templates according to the
22976 current configuration.
22977
22978 Usage: $0 [OPTIONS] [FILE]...
22979
22980   -h, --help       print this help, then exit
22981   -V, --version    print version number, then exit
22982   -q, --quiet      do not print progress messages
22983   -d, --debug      don't remove temporary files
22984       --recheck    update $as_me by reconfiguring in the same conditions
22985   --file=FILE[:TEMPLATE]
22986                    instantiate the configuration file FILE
22987   --header=FILE[:TEMPLATE]
22988                    instantiate the configuration header FILE
22989
22990 Configuration files:
22991 $config_files
22992
22993 Configuration headers:
22994 $config_headers
22995
22996 Configuration commands:
22997 $config_commands
22998
22999 Report bugs to <bug-autoconf@gnu.org>."
23000
23001 _ACEOF
23002 cat >>$CONFIG_STATUS <<_ACEOF
23003 ac_cs_version="\\
23004 llvm config.status 3.0svn
23005 configured by $0, generated by GNU Autoconf 2.60,
23006   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
23007
23008 Copyright (C) 2006 Free Software Foundation, Inc.
23009 This config.status script is free software; the Free Software Foundation
23010 gives unlimited permission to copy, distribute and modify it."
23011
23012 ac_pwd='$ac_pwd'
23013 srcdir='$srcdir'
23014 INSTALL='$INSTALL'
23015 _ACEOF
23016
23017 cat >>$CONFIG_STATUS <<\_ACEOF
23018 # If no file are specified by the user, then we need to provide default
23019 # value.  By we need to know if files were specified by the user.
23020 ac_need_defaults=:
23021 while test $# != 0
23022 do
23023   case $1 in
23024   --*=*)
23025     ac_option=`expr "X$1" : 'X\([^=]*\)='`
23026     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
23027     ac_shift=:
23028     ;;
23029   *)
23030     ac_option=$1
23031     ac_optarg=$2
23032     ac_shift=shift
23033     ;;
23034   esac
23035
23036   case $ac_option in
23037   # Handling of the options.
23038   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
23039     ac_cs_recheck=: ;;
23040   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
23041     echo "$ac_cs_version"; exit ;;
23042   --debug | --debu | --deb | --de | --d | -d )
23043     debug=: ;;
23044   --file | --fil | --fi | --f )
23045     $ac_shift
23046     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
23047     ac_need_defaults=false;;
23048   --header | --heade | --head | --hea )
23049     $ac_shift
23050     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
23051     ac_need_defaults=false;;
23052   --he | --h)
23053     # Conflict between --help and --header
23054     { echo "$as_me: error: ambiguous option: $1
23055 Try \`$0 --help' for more information." >&2
23056    { (exit 1); exit 1; }; };;
23057   --help | --hel | -h )
23058     echo "$ac_cs_usage"; exit ;;
23059   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
23060   | -silent | --silent | --silen | --sile | --sil | --si | --s)
23061     ac_cs_silent=: ;;
23062
23063   # This is an error.
23064   -*) { echo "$as_me: error: unrecognized option: $1
23065 Try \`$0 --help' for more information." >&2
23066    { (exit 1); exit 1; }; } ;;
23067
23068   *) ac_config_targets="$ac_config_targets $1"
23069      ac_need_defaults=false ;;
23070
23071   esac
23072   shift
23073 done
23074
23075 ac_configure_extra_args=
23076
23077 if $ac_cs_silent; then
23078   exec 6>/dev/null
23079   ac_configure_extra_args="$ac_configure_extra_args --silent"
23080 fi
23081
23082 _ACEOF
23083 cat >>$CONFIG_STATUS <<_ACEOF
23084 if \$ac_cs_recheck; then
23085   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
23086   CONFIG_SHELL=$SHELL
23087   export CONFIG_SHELL
23088   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
23089 fi
23090
23091 _ACEOF
23092 cat >>$CONFIG_STATUS <<\_ACEOF
23093 exec 5>>config.log
23094 {
23095   echo
23096   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23097 ## Running $as_me. ##
23098 _ASBOX
23099   echo "$ac_log"
23100 } >&5
23101
23102 _ACEOF
23103 cat >>$CONFIG_STATUS <<_ACEOF
23104 #
23105 # INIT-COMMANDS
23106 #
23107 llvm_src="${srcdir}"
23108
23109 _ACEOF
23110
23111 cat >>$CONFIG_STATUS <<\_ACEOF
23112
23113 # Handling of arguments.
23114 for ac_config_target in $ac_config_targets
23115 do
23116   case $ac_config_target in
23117     "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
23118     "include/llvm/Config/llvm-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/llvm-config.h" ;;
23119     "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
23120     "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
23121     "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
23122     "include/llvm/Config/Disassemblers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Disassemblers.def" ;;
23123     "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
23124     "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
23125     "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
23126     "tools/llvmc/src/Base.td") CONFIG_FILES="$CONFIG_FILES tools/llvmc/src/Base.td" ;;
23127     "tools/llvm-config/llvm-config.in") CONFIG_FILES="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;;
23128     "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
23129     "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
23130     "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
23131     "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
23132     "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
23133     "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
23134     "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
23135     "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
23136     "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
23137     "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
23138     "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
23139     "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
23140     "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
23141     "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
23142
23143   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
23144 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
23145    { (exit 1); exit 1; }; };;
23146   esac
23147 done
23148
23149
23150 # If the user did not use the arguments to specify the items to instantiate,
23151 # then the envvar interface is used.  Set only those that are not.
23152 # We use the long form for the default assignment because of an extremely
23153 # bizarre bug on SunOS 4.1.3.
23154 if $ac_need_defaults; then
23155   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
23156   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
23157   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
23158 fi
23159
23160 # Have a temporary directory for convenience.  Make it in the build tree
23161 # simply because there is no reason against having it here, and in addition,
23162 # creating and moving files from /tmp can sometimes cause problems.
23163 # Hook for its removal unless debugging.
23164 # Note that there is a small window in which the directory will not be cleaned:
23165 # after its creation but before its name has been assigned to `$tmp'.
23166 $debug ||
23167 {
23168   tmp=
23169   trap 'exit_status=$?
23170   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
23171 ' 0
23172   trap '{ (exit 1); exit 1; }' 1 2 13 15
23173 }
23174 # Create a (secure) tmp directory for tmp files.
23175
23176 {
23177   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
23178   test -n "$tmp" && test -d "$tmp"
23179 }  ||
23180 {
23181   tmp=./conf$$-$RANDOM
23182   (umask 077 && mkdir "$tmp")
23183 } ||
23184 {
23185    echo "$me: cannot create a temporary directory in ." >&2
23186    { (exit 1); exit 1; }
23187 }
23188
23189 #
23190 # Set up the sed scripts for CONFIG_FILES section.
23191 #
23192
23193 # No need to generate the scripts if there are no CONFIG_FILES.
23194 # This happens for instance when ./config.status config.h
23195 if test -n "$CONFIG_FILES"; then
23196
23197 _ACEOF
23198
23199
23200
23201 ac_delim='%!_!# '
23202 for ac_last_try in false false false false false :; do
23203   cat >conf$$subs.sed <<_ACEOF
23204 SHELL!$SHELL$ac_delim
23205 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
23206 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
23207 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
23208 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
23209 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
23210 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
23211 exec_prefix!$exec_prefix$ac_delim
23212 prefix!$prefix$ac_delim
23213 program_transform_name!$program_transform_name$ac_delim
23214 bindir!$bindir$ac_delim
23215 sbindir!$sbindir$ac_delim
23216 libexecdir!$libexecdir$ac_delim
23217 datarootdir!$datarootdir$ac_delim
23218 datadir!$datadir$ac_delim
23219 sysconfdir!$sysconfdir$ac_delim
23220 sharedstatedir!$sharedstatedir$ac_delim
23221 localstatedir!$localstatedir$ac_delim
23222 includedir!$includedir$ac_delim
23223 oldincludedir!$oldincludedir$ac_delim
23224 docdir!$docdir$ac_delim
23225 infodir!$infodir$ac_delim
23226 htmldir!$htmldir$ac_delim
23227 dvidir!$dvidir$ac_delim
23228 pdfdir!$pdfdir$ac_delim
23229 psdir!$psdir$ac_delim
23230 libdir!$libdir$ac_delim
23231 localedir!$localedir$ac_delim
23232 mandir!$mandir$ac_delim
23233 DEFS!$DEFS$ac_delim
23234 ECHO_C!$ECHO_C$ac_delim
23235 ECHO_N!$ECHO_N$ac_delim
23236 ECHO_T!$ECHO_T$ac_delim
23237 LIBS!$LIBS$ac_delim
23238 build_alias!$build_alias$ac_delim
23239 host_alias!$host_alias$ac_delim
23240 target_alias!$target_alias$ac_delim
23241 LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
23242 subdirs!$subdirs$ac_delim
23243 ENABLE_POLLY!$ENABLE_POLLY$ac_delim
23244 LLVM_HAS_POLLY!$LLVM_HAS_POLLY$ac_delim
23245 build!$build$ac_delim
23246 build_cpu!$build_cpu$ac_delim
23247 build_vendor!$build_vendor$ac_delim
23248 build_os!$build_os$ac_delim
23249 host!$host$ac_delim
23250 host_cpu!$host_cpu$ac_delim
23251 host_vendor!$host_vendor$ac_delim
23252 host_os!$host_os$ac_delim
23253 target!$target$ac_delim
23254 target_cpu!$target_cpu$ac_delim
23255 target_vendor!$target_vendor$ac_delim
23256 target_os!$target_os$ac_delim
23257 OS!$OS$ac_delim
23258 HOST_OS!$HOST_OS$ac_delim
23259 TARGET_OS!$TARGET_OS$ac_delim
23260 LINKALL!$LINKALL$ac_delim
23261 NOLINKALL!$NOLINKALL$ac_delim
23262 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
23263 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
23264 ARCH!$ARCH$ac_delim
23265 ENDIAN!$ENDIAN$ac_delim
23266 CC!$CC$ac_delim
23267 CFLAGS!$CFLAGS$ac_delim
23268 LDFLAGS!$LDFLAGS$ac_delim
23269 CPPFLAGS!$CPPFLAGS$ac_delim
23270 ac_ct_CC!$ac_ct_CC$ac_delim
23271 EXEEXT!$EXEEXT$ac_delim
23272 OBJEXT!$OBJEXT$ac_delim
23273 CPP!$CPP$ac_delim
23274 GREP!$GREP$ac_delim
23275 EGREP!$EGREP$ac_delim
23276 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
23277 BUILD_CC!$BUILD_CC$ac_delim
23278 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
23279 BUILD_CXX!$BUILD_CXX$ac_delim
23280 CVSBUILD!$CVSBUILD$ac_delim
23281 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
23282 ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
23283 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
23284 ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
23285 EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
23286 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
23287 DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
23288 JIT!$JIT$ac_delim
23289 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
23290 ENABLE_DOCS!$ENABLE_DOCS$ac_delim
23291 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
23292 ENABLE_THREADS!$ENABLE_THREADS$ac_delim
23293 ENABLE_PTHREADS!$ENABLE_PTHREADS$ac_delim
23294 ENABLE_PIC!$ENABLE_PIC$ac_delim
23295 ENABLE_SHARED!$ENABLE_SHARED$ac_delim
23296 ENABLE_EMBED_STDCXX!$ENABLE_EMBED_STDCXX$ac_delim
23297 ENABLE_TIMESTAMPS!$ENABLE_TIMESTAMPS$ac_delim
23298 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
23299 LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
23300 LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
23301 _ACEOF
23302
23303   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
23304     break
23305   elif $ac_last_try; then
23306     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23307 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23308    { (exit 1); exit 1; }; }
23309   else
23310     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23311   fi
23312 done
23313
23314 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
23315 if test -n "$ac_eof"; then
23316   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
23317   ac_eof=`expr $ac_eof + 1`
23318 fi
23319
23320 cat >>$CONFIG_STATUS <<_ACEOF
23321 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
23322 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23323 _ACEOF
23324 sed '
23325 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
23326 s/^/s,@/; s/!/@,|#_!!_#|/
23327 :n
23328 t n
23329 s/'"$ac_delim"'$/,g/; t
23330 s/$/\\/; p
23331 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
23332 ' >>$CONFIG_STATUS <conf$$subs.sed
23333 rm -f conf$$subs.sed
23334 cat >>$CONFIG_STATUS <<_ACEOF
23335 CEOF$ac_eof
23336 _ACEOF
23337
23338
23339 ac_delim='%!_!# '
23340 for ac_last_try in false false false false false :; do
23341   cat >conf$$subs.sed <<_ACEOF
23342 LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
23343 LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
23344 ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim
23345 CLANGPATH!$CLANGPATH$ac_delim
23346 CLANGXXPATH!$CLANGXXPATH$ac_delim
23347 ENABLE_BUILT_CLANG!$ENABLE_BUILT_CLANG$ac_delim
23348 OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
23349 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
23350 BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
23351 CXX!$CXX$ac_delim
23352 CXXFLAGS!$CXXFLAGS$ac_delim
23353 ac_ct_CXX!$ac_ct_CXX$ac_delim
23354 NM!$NM$ac_delim
23355 ifGNUmake!$ifGNUmake$ac_delim
23356 LN_S!$LN_S$ac_delim
23357 CMP!$CMP$ac_delim
23358 CP!$CP$ac_delim
23359 DATE!$DATE$ac_delim
23360 FIND!$FIND$ac_delim
23361 MKDIR!$MKDIR$ac_delim
23362 MV!$MV$ac_delim
23363 RANLIB!$RANLIB$ac_delim
23364 AR!$AR$ac_delim
23365 RM!$RM$ac_delim
23366 SED!$SED$ac_delim
23367 TAR!$TAR$ac_delim
23368 BINPWD!$BINPWD$ac_delim
23369 GRAPHVIZ!$GRAPHVIZ$ac_delim
23370 DOT!$DOT$ac_delim
23371 FDP!$FDP$ac_delim
23372 NEATO!$NEATO$ac_delim
23373 TWOPI!$TWOPI$ac_delim
23374 CIRCO!$CIRCO$ac_delim
23375 GV!$GV$ac_delim
23376 DOTTY!$DOTTY$ac_delim
23377 XDOT_PY!$XDOT_PY$ac_delim
23378 PERL!$PERL$ac_delim
23379 HAVE_PERL!$HAVE_PERL$ac_delim
23380 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
23381 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
23382 INSTALL_DATA!$INSTALL_DATA$ac_delim
23383 BZIP2!$BZIP2$ac_delim
23384 CAT!$CAT$ac_delim
23385 DOXYGEN!$DOXYGEN$ac_delim
23386 GROFF!$GROFF$ac_delim
23387 GZIPBIN!$GZIPBIN$ac_delim
23388 POD2HTML!$POD2HTML$ac_delim
23389 POD2MAN!$POD2MAN$ac_delim
23390 PDFROFF!$PDFROFF$ac_delim
23391 RUNTEST!$RUNTEST$ac_delim
23392 TCLSH!$TCLSH$ac_delim
23393 ZIP!$ZIP$ac_delim
23394 OCAMLC!$OCAMLC$ac_delim
23395 OCAMLOPT!$OCAMLOPT$ac_delim
23396 OCAMLDEP!$OCAMLDEP$ac_delim
23397 OCAMLDOC!$OCAMLDOC$ac_delim
23398 GAS!$GAS$ac_delim
23399 HAVE_LINK_VERSION_SCRIPT!$HAVE_LINK_VERSION_SCRIPT$ac_delim
23400 INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
23401 INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
23402 CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
23403 CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
23404 LIBADD_DL!$LIBADD_DL$ac_delim
23405 LLVMGCCCOMMAND!$LLVMGCCCOMMAND$ac_delim
23406 LLVMGXXCOMMAND!$LLVMGXXCOMMAND$ac_delim
23407 LLVMGCC!$LLVMGCC$ac_delim
23408 LLVMGXX!$LLVMGXX$ac_delim
23409 LLVMCC_OPTION!$LLVMCC_OPTION$ac_delim
23410 NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
23411 NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
23412 USE_UDIS86!$USE_UDIS86$ac_delim
23413 USE_OPROFILE!$USE_OPROFILE$ac_delim
23414 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
23415 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
23416 MMAP_FILE!$MMAP_FILE$ac_delim
23417 LLVMCC_EMITIR_FLAG!$LLVMCC_EMITIR_FLAG$ac_delim
23418 LLVMCC1!$LLVMCC1$ac_delim
23419 LLVMCC1PLUS!$LLVMCC1PLUS$ac_delim
23420 LLVMGCCDIR!$LLVMGCCDIR$ac_delim
23421 LLVMGCC_LANGS!$LLVMGCC_LANGS$ac_delim
23422 LLVMGCC_DRAGONEGG!$LLVMGCC_DRAGONEGG$ac_delim
23423 LLVMCC_DISABLEOPT_FLAGS!$LLVMCC_DISABLEOPT_FLAGS$ac_delim
23424 SHLIBEXT!$SHLIBEXT$ac_delim
23425 SHLIBPATH_VAR!$SHLIBPATH_VAR$ac_delim
23426 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
23427 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
23428 LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
23429 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
23430 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
23431 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
23432 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
23433 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
23434 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
23435 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
23436 BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
23437 ALL_BINDINGS!$ALL_BINDINGS$ac_delim
23438 OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
23439 _ACEOF
23440
23441   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
23442     break
23443   elif $ac_last_try; then
23444     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23445 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23446    { (exit 1); exit 1; }; }
23447   else
23448     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23449   fi
23450 done
23451
23452 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
23453 if test -n "$ac_eof"; then
23454   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
23455   ac_eof=`expr $ac_eof + 1`
23456 fi
23457
23458 cat >>$CONFIG_STATUS <<_ACEOF
23459 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
23460 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23461 _ACEOF
23462 sed '
23463 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
23464 s/^/s,@/; s/!/@,|#_!!_#|/
23465 :n
23466 t n
23467 s/'"$ac_delim"'$/,g/; t
23468 s/$/\\/; p
23469 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
23470 ' >>$CONFIG_STATUS <conf$$subs.sed
23471 rm -f conf$$subs.sed
23472 cat >>$CONFIG_STATUS <<_ACEOF
23473 CEOF$ac_eof
23474 _ACEOF
23475
23476
23477 ac_delim='%!_!# '
23478 for ac_last_try in false false false false false :; do
23479   cat >conf$$subs.sed <<_ACEOF
23480 ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
23481 RPATH!$RPATH$ac_delim
23482 RDYNAMIC!$RDYNAMIC$ac_delim
23483 LIBOBJS!$LIBOBJS$ac_delim
23484 LTLIBOBJS!$LTLIBOBJS$ac_delim
23485 _ACEOF
23486
23487   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 5; then
23488     break
23489   elif $ac_last_try; then
23490     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23491 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23492    { (exit 1); exit 1; }; }
23493   else
23494     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23495   fi
23496 done
23497
23498 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
23499 if test -n "$ac_eof"; then
23500   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
23501   ac_eof=`expr $ac_eof + 1`
23502 fi
23503
23504 cat >>$CONFIG_STATUS <<_ACEOF
23505 cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
23506 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
23507 _ACEOF
23508 sed '
23509 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
23510 s/^/s,@/; s/!/@,|#_!!_#|/
23511 :n
23512 t n
23513 s/'"$ac_delim"'$/,g/; t
23514 s/$/\\/; p
23515 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
23516 ' >>$CONFIG_STATUS <conf$$subs.sed
23517 rm -f conf$$subs.sed
23518 cat >>$CONFIG_STATUS <<_ACEOF
23519 :end
23520 s/|#_!!_#|//g
23521 CEOF$ac_eof
23522 _ACEOF
23523
23524
23525 # VPATH may cause trouble with some makes, so we remove $(srcdir),
23526 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
23527 # trailing colons and then remove the whole line if VPATH becomes empty
23528 # (actually we leave an empty line to preserve line numbers).
23529 if test "x$srcdir" = x.; then
23530   ac_vpsub='/^[  ]*VPATH[        ]*=/{
23531 s/:*\$(srcdir):*/:/
23532 s/:*\${srcdir}:*/:/
23533 s/:*@srcdir@:*/:/
23534 s/^\([^=]*=[     ]*\):*/\1/
23535 s/:*$//
23536 s/^[^=]*=[       ]*$//
23537 }'
23538 fi
23539
23540 cat >>$CONFIG_STATUS <<\_ACEOF
23541 fi # test -n "$CONFIG_FILES"
23542
23543
23544 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
23545 do
23546   case $ac_tag in
23547   :[FHLC]) ac_mode=$ac_tag; continue;;
23548   esac
23549   case $ac_mode$ac_tag in
23550   :[FHL]*:*);;
23551   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
23552 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
23553    { (exit 1); exit 1; }; };;
23554   :[FH]-) ac_tag=-:-;;
23555   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
23556   esac
23557   ac_save_IFS=$IFS
23558   IFS=:
23559   set x $ac_tag
23560   IFS=$ac_save_IFS
23561   shift
23562   ac_file=$1
23563   shift
23564
23565   case $ac_mode in
23566   :L) ac_source=$1;;
23567   :[FH])
23568     ac_file_inputs=
23569     for ac_f
23570     do
23571       case $ac_f in
23572       -) ac_f="$tmp/stdin";;
23573       *) # Look for the file first in the build tree, then in the source tree
23574          # (if the path is not absolute).  The absolute path cannot be DOS-style,
23575          # because $ac_f cannot contain `:'.
23576          test -f "$ac_f" ||
23577            case $ac_f in
23578            [\\/$]*) false;;
23579            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
23580            esac ||
23581            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
23582 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
23583    { (exit 1); exit 1; }; };;
23584       esac
23585       ac_file_inputs="$ac_file_inputs $ac_f"
23586     done
23587
23588     # Let's still pretend it is `configure' which instantiates (i.e., don't
23589     # use $as_me), people would be surprised to read:
23590     #    /* config.h.  Generated by config.status.  */
23591     configure_input="Generated from "`IFS=:
23592           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
23593     if test x"$ac_file" != x-; then
23594       configure_input="$ac_file.  $configure_input"
23595       { echo "$as_me:$LINENO: creating $ac_file" >&5
23596 echo "$as_me: creating $ac_file" >&6;}
23597     fi
23598
23599     case $ac_tag in
23600     *:-:* | *:-) cat >"$tmp/stdin";;
23601     esac
23602     ;;
23603   esac
23604
23605   ac_dir=`$as_dirname -- "$ac_file" ||
23606 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23607          X"$ac_file" : 'X\(//\)[^/]' \| \
23608          X"$ac_file" : 'X\(//\)$' \| \
23609          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
23610 echo X"$ac_file" |
23611     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23612             s//\1/
23613             q
23614           }
23615           /^X\(\/\/\)[^/].*/{
23616             s//\1/
23617             q
23618           }
23619           /^X\(\/\/\)$/{
23620             s//\1/
23621             q
23622           }
23623           /^X\(\/\).*/{
23624             s//\1/
23625             q
23626           }
23627           s/.*/./; q'`
23628   { as_dir="$ac_dir"
23629   case $as_dir in #(
23630   -*) as_dir=./$as_dir;;
23631   esac
23632   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
23633     as_dirs=
23634     while :; do
23635       case $as_dir in #(
23636       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
23637       *) as_qdir=$as_dir;;
23638       esac
23639       as_dirs="'$as_qdir' $as_dirs"
23640       as_dir=`$as_dirname -- "$as_dir" ||
23641 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23642          X"$as_dir" : 'X\(//\)[^/]' \| \
23643          X"$as_dir" : 'X\(//\)$' \| \
23644          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
23645 echo X"$as_dir" |
23646     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23647             s//\1/
23648             q
23649           }
23650           /^X\(\/\/\)[^/].*/{
23651             s//\1/
23652             q
23653           }
23654           /^X\(\/\/\)$/{
23655             s//\1/
23656             q
23657           }
23658           /^X\(\/\).*/{
23659             s//\1/
23660             q
23661           }
23662           s/.*/./; q'`
23663       test -d "$as_dir" && break
23664     done
23665     test -z "$as_dirs" || eval "mkdir $as_dirs"
23666   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
23667 echo "$as_me: error: cannot create directory $as_dir" >&2;}
23668    { (exit 1); exit 1; }; }; }
23669   ac_builddir=.
23670
23671 case "$ac_dir" in
23672 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
23673 *)
23674   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23675   # A ".." for each directory in $ac_dir_suffix.
23676   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
23677   case $ac_top_builddir_sub in
23678   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
23679   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
23680   esac ;;
23681 esac
23682 ac_abs_top_builddir=$ac_pwd
23683 ac_abs_builddir=$ac_pwd$ac_dir_suffix
23684 # for backward compatibility:
23685 ac_top_builddir=$ac_top_build_prefix
23686
23687 case $srcdir in
23688   .)  # We are building in place.
23689     ac_srcdir=.
23690     ac_top_srcdir=$ac_top_builddir_sub
23691     ac_abs_top_srcdir=$ac_pwd ;;
23692   [\\/]* | ?:[\\/]* )  # Absolute name.
23693     ac_srcdir=$srcdir$ac_dir_suffix;
23694     ac_top_srcdir=$srcdir
23695     ac_abs_top_srcdir=$srcdir ;;
23696   *) # Relative name.
23697     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
23698     ac_top_srcdir=$ac_top_build_prefix$srcdir
23699     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
23700 esac
23701 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
23702
23703
23704   case $ac_mode in
23705   :F)
23706   #
23707   # CONFIG_FILE
23708   #
23709
23710   case $INSTALL in
23711   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
23712   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
23713   esac
23714 _ACEOF
23715
23716 cat >>$CONFIG_STATUS <<\_ACEOF
23717 # If the template does not know about datarootdir, expand it.
23718 # FIXME: This hack should be removed a few years after 2.60.
23719 ac_datarootdir_hack=; ac_datarootdir_seen=
23720
23721 case `sed -n '/datarootdir/ {
23722   p
23723   q
23724 }
23725 /@datadir@/p
23726 /@docdir@/p
23727 /@infodir@/p
23728 /@localedir@/p
23729 /@mandir@/p
23730 ' $ac_file_inputs` in
23731 *datarootdir*) ac_datarootdir_seen=yes;;
23732 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
23733   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
23734 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
23735 _ACEOF
23736 cat >>$CONFIG_STATUS <<_ACEOF
23737   ac_datarootdir_hack='
23738   s&@datadir@&$datadir&g
23739   s&@docdir@&$docdir&g
23740   s&@infodir@&$infodir&g
23741   s&@localedir@&$localedir&g
23742   s&@mandir@&$mandir&g
23743     s&\\\${datarootdir}&$datarootdir&g' ;;
23744 esac
23745 _ACEOF
23746
23747 # Neutralize VPATH when `$srcdir' = `.'.
23748 # Shell code in configure.ac might set extrasub.
23749 # FIXME: do we really want to maintain this feature?
23750 cat >>$CONFIG_STATUS <<_ACEOF
23751   sed "$ac_vpsub
23752 $extrasub
23753 _ACEOF
23754 cat >>$CONFIG_STATUS <<\_ACEOF
23755 :t
23756 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23757 s&@configure_input@&$configure_input&;t t
23758 s&@top_builddir@&$ac_top_builddir_sub&;t t
23759 s&@srcdir@&$ac_srcdir&;t t
23760 s&@abs_srcdir@&$ac_abs_srcdir&;t t
23761 s&@top_srcdir@&$ac_top_srcdir&;t t
23762 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
23763 s&@builddir@&$ac_builddir&;t t
23764 s&@abs_builddir@&$ac_abs_builddir&;t t
23765 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
23766 s&@INSTALL@&$ac_INSTALL&;t t
23767 $ac_datarootdir_hack
23768 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed -f "$tmp/subs-3.sed" >$tmp/out
23769
23770 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
23771   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
23772   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
23773   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23774 which seems to be undefined.  Please make sure it is defined." >&5
23775 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23776 which seems to be undefined.  Please make sure it is defined." >&2;}
23777
23778   rm -f "$tmp/stdin"
23779   case $ac_file in
23780   -) cat "$tmp/out"; rm -f "$tmp/out";;
23781   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
23782   esac
23783  ;;
23784   :H)
23785   #
23786   # CONFIG_HEADER
23787   #
23788 _ACEOF
23789
23790 # Transform confdefs.h into a sed script `conftest.defines', that
23791 # substitutes the proper values into config.h.in to produce config.h.
23792 rm -f conftest.defines conftest.tail
23793 # First, append a space to every undef/define line, to ease matching.
23794 echo 's/$/ /' >conftest.defines
23795 # Then, protect against being on the right side of a sed subst, or in
23796 # an unquoted here document, in config.status.  If some macros were
23797 # called several times there might be several #defines for the same
23798 # symbol, which is useless.  But do not sort them, since the last
23799 # AC_DEFINE must be honored.
23800 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
23801 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
23802 # NAME is the cpp macro being defined, VALUE is the value it is being given.
23803 # PARAMS is the parameter list in the macro definition--in most cases, it's
23804 # just an empty string.
23805 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
23806 ac_dB='\\)[      (].*,\\1define\\2'
23807 ac_dC=' '
23808 ac_dD=' ,'
23809
23810 uniq confdefs.h |
23811   sed -n '
23812         t rset
23813         :rset
23814         s/^[     ]*#[    ]*define[       ][      ]*//
23815         t ok
23816         d
23817         :ok
23818         s/[\\&,]/\\&/g
23819         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
23820         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
23821   ' >>conftest.defines
23822
23823 # Remove the space that was appended to ease matching.
23824 # Then replace #undef with comments.  This is necessary, for
23825 # example, in the case of _POSIX_SOURCE, which is predefined and required
23826 # on some systems where configure will not decide to define it.
23827 # (The regexp can be short, since the line contains either #define or #undef.)
23828 echo 's/ $//
23829 s,^[     #]*u.*,/* & */,' >>conftest.defines
23830
23831 # Break up conftest.defines:
23832 ac_max_sed_lines=50
23833
23834 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
23835 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
23836 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
23837 # et cetera.
23838 ac_in='$ac_file_inputs'
23839 ac_out='"$tmp/out1"'
23840 ac_nxt='"$tmp/out2"'
23841
23842 while :
23843 do
23844   # Write a here document:
23845     cat >>$CONFIG_STATUS <<_ACEOF
23846     # First, check the format of the line:
23847     cat >"\$tmp/defines.sed" <<\\CEOF
23848 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
23849 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
23850 b
23851 :def
23852 _ACEOF
23853   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
23854   echo 'CEOF
23855     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
23856   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
23857   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
23858   grep . conftest.tail >/dev/null || break
23859   rm -f conftest.defines
23860   mv conftest.tail conftest.defines
23861 done
23862 rm -f conftest.defines conftest.tail
23863
23864 echo "ac_result=$ac_in" >>$CONFIG_STATUS
23865 cat >>$CONFIG_STATUS <<\_ACEOF
23866   if test x"$ac_file" != x-; then
23867     echo "/* $configure_input  */" >"$tmp/config.h"
23868     cat "$ac_result" >>"$tmp/config.h"
23869     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
23870       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
23871 echo "$as_me: $ac_file is unchanged" >&6;}
23872     else
23873       rm -f $ac_file
23874       mv "$tmp/config.h" $ac_file
23875     fi
23876   else
23877     echo "/* $configure_input  */"
23878     cat "$ac_result"
23879   fi
23880   rm -f "$tmp/out12"
23881  ;;
23882
23883   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
23884 echo "$as_me: executing $ac_file commands" >&6;}
23885  ;;
23886   esac
23887
23888
23889   case $ac_file$ac_mode in
23890     "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
23891    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
23892     "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
23893    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;;
23894     "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
23895    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;;
23896     "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
23897    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
23898     "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
23899    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
23900     "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
23901    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;;
23902     "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
23903    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
23904     "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
23905    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
23906     "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
23907    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
23908     "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
23909    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;;
23910     "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
23911    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;;
23912     "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
23913    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
23914     "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
23915    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
23916
23917   esac
23918 done # for ac_tag
23919
23920
23921 { (exit 0); exit 0; }
23922 _ACEOF
23923 chmod +x $CONFIG_STATUS
23924 ac_clean_files=$ac_clean_files_save
23925
23926
23927 # configure is writing to config.log, and then calls config.status.
23928 # config.status does its own redirection, appending to config.log.
23929 # Unfortunately, on DOS this fails, as config.log is still kept open
23930 # by configure, so config.status won't be able to write to it; its
23931 # output is simply discarded.  So we exec the FD to /dev/null,
23932 # effectively closing config.log, so it can be properly (re)opened and
23933 # appended to by config.status.  When coming back to configure, we
23934 # need to make the FD available again.
23935 if test "$no_create" != yes; then
23936   ac_cs_success=:
23937   ac_config_status_args=
23938   test "$silent" = yes &&
23939     ac_config_status_args="$ac_config_status_args --quiet"
23940   exec 5>/dev/null
23941   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23942   exec 5>>config.log
23943   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23944   # would make configure fail if this is the last instruction.
23945   $ac_cs_success || { (exit 1); exit 1; }
23946 fi
23947
23948 #
23949 # CONFIG_SUBDIRS section.
23950 #
23951 if test "$no_recursion" != yes; then
23952
23953   # Remove --cache-file and --srcdir arguments so they do not pile up.
23954   ac_sub_configure_args=
23955   ac_prev=
23956   eval "set x $ac_configure_args"
23957   shift
23958   for ac_arg
23959   do
23960     if test -n "$ac_prev"; then
23961       ac_prev=
23962       continue
23963     fi
23964     case $ac_arg in
23965     -cache-file | --cache-file | --cache-fil | --cache-fi \
23966     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
23967       ac_prev=cache_file ;;
23968     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
23969     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
23970     | --c=*)
23971       ;;
23972     --config-cache | -C)
23973       ;;
23974     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
23975       ac_prev=srcdir ;;
23976     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
23977       ;;
23978     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
23979       ac_prev=prefix ;;
23980     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
23981       ;;
23982     *)
23983       case $ac_arg in
23984       *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
23985       esac
23986       ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
23987     esac
23988   done
23989
23990   # Always prepend --prefix to ensure using the same prefix
23991   # in subdir configurations.
23992   ac_arg="--prefix=$prefix"
23993   case $ac_arg in
23994   *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
23995   esac
23996   ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
23997
23998   ac_popdir=`pwd`
23999   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
24000
24001     # Do not complain, so a configure script can configure whichever
24002     # parts of a large source tree are present.
24003     test -d "$srcdir/$ac_dir" || continue
24004
24005     ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
24006     echo "$as_me:$LINENO: $ac_msg" >&5
24007     echo "$ac_msg" >&6
24008     { as_dir="$ac_dir"
24009   case $as_dir in #(
24010   -*) as_dir=./$as_dir;;
24011   esac
24012   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
24013     as_dirs=
24014     while :; do
24015       case $as_dir in #(
24016       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
24017       *) as_qdir=$as_dir;;
24018       esac
24019       as_dirs="'$as_qdir' $as_dirs"
24020       as_dir=`$as_dirname -- "$as_dir" ||
24021 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24022          X"$as_dir" : 'X\(//\)[^/]' \| \
24023          X"$as_dir" : 'X\(//\)$' \| \
24024          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
24025 echo X"$as_dir" |
24026     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24027             s//\1/
24028             q
24029           }
24030           /^X\(\/\/\)[^/].*/{
24031             s//\1/
24032             q
24033           }
24034           /^X\(\/\/\)$/{
24035             s//\1/
24036             q
24037           }
24038           /^X\(\/\).*/{
24039             s//\1/
24040             q
24041           }
24042           s/.*/./; q'`
24043       test -d "$as_dir" && break
24044     done
24045     test -z "$as_dirs" || eval "mkdir $as_dirs"
24046   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
24047 echo "$as_me: error: cannot create directory $as_dir" >&2;}
24048    { (exit 1); exit 1; }; }; }
24049     ac_builddir=.
24050
24051 case "$ac_dir" in
24052 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
24053 *)
24054   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24055   # A ".." for each directory in $ac_dir_suffix.
24056   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
24057   case $ac_top_builddir_sub in
24058   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
24059   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
24060   esac ;;
24061 esac
24062 ac_abs_top_builddir=$ac_pwd
24063 ac_abs_builddir=$ac_pwd$ac_dir_suffix
24064 # for backward compatibility:
24065 ac_top_builddir=$ac_top_build_prefix
24066
24067 case $srcdir in
24068   .)  # We are building in place.
24069     ac_srcdir=.
24070     ac_top_srcdir=$ac_top_builddir_sub
24071     ac_abs_top_srcdir=$ac_pwd ;;
24072   [\\/]* | ?:[\\/]* )  # Absolute name.
24073     ac_srcdir=$srcdir$ac_dir_suffix;
24074     ac_top_srcdir=$srcdir
24075     ac_abs_top_srcdir=$srcdir ;;
24076   *) # Relative name.
24077     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
24078     ac_top_srcdir=$ac_top_build_prefix$srcdir
24079     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
24080 esac
24081 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
24082
24083
24084     cd "$ac_dir"
24085
24086     # Check for guested configure; otherwise get Cygnus style configure.
24087     if test -f "$ac_srcdir/configure.gnu"; then
24088       ac_sub_configure=$ac_srcdir/configure.gnu
24089     elif test -f "$ac_srcdir/configure"; then
24090       ac_sub_configure=$ac_srcdir/configure
24091     elif test -f "$ac_srcdir/configure.in"; then
24092       # This should be Cygnus configure.
24093       ac_sub_configure=$ac_aux_dir/configure
24094     else
24095       { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
24096 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
24097       ac_sub_configure=
24098     fi
24099
24100     # The recursion is here.
24101     if test -n "$ac_sub_configure"; then
24102       # Make the cache file name correct relative to the subdirectory.
24103       case $cache_file in
24104       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
24105       *) # Relative name.
24106         ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
24107       esac
24108
24109       { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
24110 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
24111       # The eval makes quoting arguments work.
24112       eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
24113            --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
24114         { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
24115 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
24116    { (exit 1); exit 1; }; }
24117     fi
24118
24119     cd "$ac_popdir"
24120   done
24121 fi
24122