In the disassembler C API, be careful not to confuse the comment streamer that the...
[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-2011 University of Illinois at Urbana-Champaign.
13 ## --------------------- ##
14 ## M4sh Initialization.  ##
15 ## --------------------- ##
16
17 # Be Bourne compatible
18 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19   emulate sh
20   NULLCMD=:
21   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22   # is contrary to our usage.  Disable this feature.
23   alias -g '${1+"$@"}'='"$@"'
24   setopt NO_GLOB_SUBST
25 else
26   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
27 fi
28 BIN_SH=xpg4; export BIN_SH # for Tru64
29 DUALCASE=1; export DUALCASE # for MKS sh
30
31
32 # PATH needs CR
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
39
40 # The user is always right.
41 if test "${PATH_SEPARATOR+set}" != set; then
42   echo "#! /bin/sh" >conf$$.sh
43   echo  "exit 0"   >>conf$$.sh
44   chmod +x conf$$.sh
45   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
46     PATH_SEPARATOR=';'
47   else
48     PATH_SEPARATOR=:
49   fi
50   rm -f conf$$.sh
51 fi
52
53 # Support unset when possible.
54 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
55   as_unset=unset
56 else
57   as_unset=false
58 fi
59
60
61 # IFS
62 # We need space, tab and new line, in precisely that order.  Quoting is
63 # there to prevent editors from complaining about space-tab.
64 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
65 # splitting by setting IFS to empty value.)
66 as_nl='
67 '
68 IFS=" ""        $as_nl"
69
70 # Find who we are.  Look in the path if we contain no directory separator.
71 case $0 in
72   *[\\/]* ) as_myself=$0 ;;
73   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
74 for as_dir in $PATH
75 do
76   IFS=$as_save_IFS
77   test -z "$as_dir" && as_dir=.
78   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
79 done
80 IFS=$as_save_IFS
81
82      ;;
83 esac
84 # We did not find ourselves, most probably we were run as `sh COMMAND'
85 # in which case we are not to be found in the path.
86 if test "x$as_myself" = x; then
87   as_myself=$0
88 fi
89 if test ! -f "$as_myself"; then
90   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
91   { (exit 1); exit 1; }
92 fi
93
94 # Work around bugs in pre-3.0 UWIN ksh.
95 for as_var in ENV MAIL MAILPATH
96 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
97 done
98 PS1='$ '
99 PS2='> '
100 PS4='+ '
101
102 # NLS nuisances.
103 for as_var in \
104   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
106   LC_TELEPHONE LC_TIME
107 do
108   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109     eval $as_var=C; export $as_var
110   else
111     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
112   fi
113 done
114
115 # Required to use basename.
116 if expr a : '\(a\)' >/dev/null 2>&1 &&
117    test "X`expr 00001 : '.*\(...\)'`" = X001; then
118   as_expr=expr
119 else
120   as_expr=false
121 fi
122
123 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
124   as_basename=basename
125 else
126   as_basename=false
127 fi
128
129
130 # Name of the executable.
131 as_me=`$as_basename -- "$0" ||
132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133          X"$0" : 'X\(//\)$' \| \
134          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
135 echo X/"$0" |
136     sed '/^.*\/\([^/][^/]*\)\/*$/{
137             s//\1/
138             q
139           }
140           /^X\/\(\/\/\)$/{
141             s//\1/
142             q
143           }
144           /^X\/\(\/\).*/{
145             s//\1/
146             q
147           }
148           s/.*/./; q'`
149
150 # CDPATH.
151 $as_unset CDPATH
152
153
154 if test "x$CONFIG_SHELL" = x; then
155   if (eval ":") 2>/dev/null; then
156   as_have_required=yes
157 else
158   as_have_required=no
159 fi
160
161   if test $as_have_required = yes &&     (eval ":
162 (as_func_return () {
163   (exit \$1)
164 }
165 as_func_success () {
166   as_func_return 0
167 }
168 as_func_failure () {
169   as_func_return 1
170 }
171 as_func_ret_success () {
172   return 0
173 }
174 as_func_ret_failure () {
175   return 1
176 }
177
178 exitcode=0
179 if as_func_success; then
180   :
181 else
182   exitcode=1
183   echo as_func_success failed.
184 fi
185
186 if as_func_failure; then
187   exitcode=1
188   echo as_func_failure succeeded.
189 fi
190
191 if as_func_ret_success; then
192   :
193 else
194   exitcode=1
195   echo as_func_ret_success failed.
196 fi
197
198 if as_func_ret_failure; then
199   exitcode=1
200   echo as_func_ret_failure succeeded.
201 fi
202
203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
204   :
205 else
206   exitcode=1
207   echo positional parameters were not saved.
208 fi
209
210 test \$exitcode = 0) || { (exit 1); exit 1; }
211
212 (
213   as_lineno_1=\$LINENO
214   as_lineno_2=\$LINENO
215   test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216   test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217 ") 2> /dev/null; then
218   :
219 else
220   as_candidate_shells=
221     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222 for as_dir in /usr/bin/posix$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
223 do
224   IFS=$as_save_IFS
225   test -z "$as_dir" && as_dir=.
226   case $as_dir in
227          /*)
228            for as_base in sh bash ksh sh5; do
229              as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
230            done;;
231        esac
232 done
233 IFS=$as_save_IFS
234
235
236       for as_shell in $as_candidate_shells $SHELL; do
237          # Try only shells that exist, to save several forks.
238          if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239                 { ("$as_shell") 2> /dev/null <<\_ASEOF
240 # Be Bourne compatible
241 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
242   emulate sh
243   NULLCMD=:
244   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
245   # is contrary to our usage.  Disable this feature.
246   alias -g '${1+"$@"}'='"$@"'
247   setopt NO_GLOB_SUBST
248 else
249   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
250 fi
251 BIN_SH=xpg4; export BIN_SH # for Tru64
252 DUALCASE=1; export DUALCASE # for MKS sh
253
254 :
255 _ASEOF
256 }; then
257   CONFIG_SHELL=$as_shell
258                as_have_required=yes
259                if { "$as_shell" 2> /dev/null <<\_ASEOF
260 # Be Bourne compatible
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262   emulate sh
263   NULLCMD=:
264   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265   # is contrary to our usage.  Disable this feature.
266   alias -g '${1+"$@"}'='"$@"'
267   setopt NO_GLOB_SUBST
268 else
269   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
270 fi
271 BIN_SH=xpg4; export BIN_SH # for Tru64
272 DUALCASE=1; export DUALCASE # for MKS sh
273
274 :
275 (as_func_return () {
276   (exit $1)
277 }
278 as_func_success () {
279   as_func_return 0
280 }
281 as_func_failure () {
282   as_func_return 1
283 }
284 as_func_ret_success () {
285   return 0
286 }
287 as_func_ret_failure () {
288   return 1
289 }
290
291 exitcode=0
292 if as_func_success; then
293   :
294 else
295   exitcode=1
296   echo as_func_success failed.
297 fi
298
299 if as_func_failure; then
300   exitcode=1
301   echo as_func_failure succeeded.
302 fi
303
304 if as_func_ret_success; then
305   :
306 else
307   exitcode=1
308   echo as_func_ret_success failed.
309 fi
310
311 if as_func_ret_failure; then
312   exitcode=1
313   echo as_func_ret_failure succeeded.
314 fi
315
316 if ( set x; as_func_ret_success y && test x = "$1" ); then
317   :
318 else
319   exitcode=1
320   echo positional parameters were not saved.
321 fi
322
323 test $exitcode = 0) || { (exit 1); exit 1; }
324
325 (
326   as_lineno_1=$LINENO
327   as_lineno_2=$LINENO
328   test "x$as_lineno_1" != "x$as_lineno_2" &&
329   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
330
331 _ASEOF
332 }; then
333   break
334 fi
335
336 fi
337
338       done
339
340       if test "x$CONFIG_SHELL" != x; then
341   for as_var in BASH_ENV ENV
342         do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
343         done
344         export CONFIG_SHELL
345         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
346 fi
347
348
349     if test $as_have_required = no; then
350   echo This script requires a shell more modern than all the
351       echo shells that I found on your system.  Please install a
352       echo modern shell, or manually run the script under such a
353       echo shell if you do have one.
354       { (exit 1); exit 1; }
355 fi
356
357
358 fi
359
360 fi
361
362
363
364 (eval "as_func_return () {
365   (exit \$1)
366 }
367 as_func_success () {
368   as_func_return 0
369 }
370 as_func_failure () {
371   as_func_return 1
372 }
373 as_func_ret_success () {
374   return 0
375 }
376 as_func_ret_failure () {
377   return 1
378 }
379
380 exitcode=0
381 if as_func_success; then
382   :
383 else
384   exitcode=1
385   echo as_func_success failed.
386 fi
387
388 if as_func_failure; then
389   exitcode=1
390   echo as_func_failure succeeded.
391 fi
392
393 if as_func_ret_success; then
394   :
395 else
396   exitcode=1
397   echo as_func_ret_success failed.
398 fi
399
400 if as_func_ret_failure; then
401   exitcode=1
402   echo as_func_ret_failure succeeded.
403 fi
404
405 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
406   :
407 else
408   exitcode=1
409   echo positional parameters were not saved.
410 fi
411
412 test \$exitcode = 0") || {
413   echo No shell found that supports shell functions.
414   echo Please tell autoconf@gnu.org about your system,
415   echo including any error possibly output before this
416   echo message
417 }
418
419
420
421   as_lineno_1=$LINENO
422   as_lineno_2=$LINENO
423   test "x$as_lineno_1" != "x$as_lineno_2" &&
424   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
425
426   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
427   # uniformly replaced by the line number.  The first 'sed' inserts a
428   # line-number line after each line using $LINENO; the second 'sed'
429   # does the real work.  The second script uses 'N' to pair each
430   # line-number line with the line containing $LINENO, and appends
431   # trailing '-' during substitution so that $LINENO is not a special
432   # case at line end.
433   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
434   # scripts with optimization help from Paolo Bonzini.  Blame Lee
435   # E. McMahon (1931-1989) for sed's syntax.  :-)
436   sed -n '
437     p
438     /[$]LINENO/=
439   ' <$as_myself |
440     sed '
441       s/[$]LINENO.*/&-/
442       t lineno
443       b
444       :lineno
445       N
446       :loop
447       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
448       t loop
449       s/-\n.*//
450     ' >$as_me.lineno &&
451   chmod +x "$as_me.lineno" ||
452     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
453    { (exit 1); exit 1; }; }
454
455   # Don't try to exec as it changes $[0], causing all sort of problems
456   # (the dirname of $[0] is not the place where we might find the
457   # original and so on.  Autoconf is especially sensitive to this).
458   . "./$as_me.lineno"
459   # Exit status is that of the last command.
460   exit
461 }
462
463
464 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
465   as_dirname=dirname
466 else
467   as_dirname=false
468 fi
469
470 ECHO_C= ECHO_N= ECHO_T=
471 case `echo -n x` in
472 -n*)
473   case `echo 'x\c'` in
474   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
475   *)   ECHO_C='\c';;
476   esac;;
477 *)
478   ECHO_N='-n';;
479 esac
480
481 if expr a : '\(a\)' >/dev/null 2>&1 &&
482    test "X`expr 00001 : '.*\(...\)'`" = X001; then
483   as_expr=expr
484 else
485   as_expr=false
486 fi
487
488 rm -f conf$$ conf$$.exe conf$$.file
489 if test -d conf$$.dir; then
490   rm -f conf$$.dir/conf$$.file
491 else
492   rm -f conf$$.dir
493   mkdir conf$$.dir
494 fi
495 echo >conf$$.file
496 if ln -s conf$$.file conf$$ 2>/dev/null; then
497   as_ln_s='ln -s'
498   # ... but there are two gotchas:
499   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
500   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
501   # In both cases, we have to default to `cp -p'.
502   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
503     as_ln_s='cp -p'
504 elif ln conf$$.file conf$$ 2>/dev/null; then
505   as_ln_s=ln
506 else
507   as_ln_s='cp -p'
508 fi
509 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
510 rmdir conf$$.dir 2>/dev/null
511
512 if mkdir -p . 2>/dev/null; then
513   as_mkdir_p=:
514 else
515   test -d ./-p && rmdir ./-p
516   as_mkdir_p=false
517 fi
518
519 # Find out whether ``test -x'' works.  Don't use a zero-byte file, as
520 # systems may use methods other than mode bits to determine executability.
521 cat >conf$$.file <<_ASEOF
522 #! /bin/sh
523 exit 0
524 _ASEOF
525 chmod +x conf$$.file
526 if test -x conf$$.file >/dev/null 2>&1; then
527   as_executable_p="test -x"
528 else
529   as_executable_p=:
530 fi
531 rm -f conf$$.file
532
533 # Sed expression to map a string onto a valid CPP name.
534 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
535
536 # Sed expression to map a string onto a valid variable name.
537 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
538
539
540
541 exec 7<&0 </dev/null 6>&1
542
543 # Name of the host.
544 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
545 # so uname gets run too.
546 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
547
548 #
549 # Initializations.
550 #
551 ac_default_prefix=/usr/local
552 ac_clean_files=
553 ac_config_libobj_dir=.
554 LIBOBJS=
555 cross_compiling=no
556 subdirs=
557 MFLAGS=
558 MAKEFLAGS=
559 SHELL=${CONFIG_SHELL-/bin/sh}
560
561 # Identity of this package.
562 PACKAGE_NAME='llvm'
563 PACKAGE_TARNAME='-llvm-'
564 PACKAGE_VERSION='3.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 CC
644 CFLAGS
645 LDFLAGS
646 CPPFLAGS
647 ac_ct_CC
648 EXEEXT
649 OBJEXT
650 CXX
651 CXXFLAGS
652 ac_ct_CXX
653 CPP
654 subdirs
655 ENABLE_POLLY
656 LLVM_HAS_POLLY
657 build
658 build_cpu
659 build_vendor
660 build_os
661 host
662 host_cpu
663 host_vendor
664 host_os
665 target
666 target_cpu
667 target_vendor
668 target_os
669 OS
670 HOST_OS
671 TARGET_OS
672 LINKALL
673 NOLINKALL
674 LLVM_ON_UNIX
675 LLVM_ON_WIN32
676 ARCH
677 ENDIAN
678 GREP
679 EGREP
680 LLVM_CROSS_COMPILING
681 BUILD_CC
682 BUILD_EXEEXT
683 BUILD_CXX
684 CVSBUILD
685 ENABLE_OPTIMIZED
686 ENABLE_PROFILING
687 DISABLE_ASSERTIONS
688 ENABLE_EXPENSIVE_CHECKS
689 EXPENSIVE_CHECKS
690 DEBUG_RUNTIME
691 DEBUG_SYMBOLS
692 JIT
693 TARGET_HAS_JIT
694 ENABLE_DOCS
695 ENABLE_DOXYGEN
696 ENABLE_THREADS
697 ENABLE_PTHREADS
698 ENABLE_PIC
699 ENABLE_SHARED
700 ENABLE_EMBED_STDCXX
701 ENABLE_TIMESTAMPS
702 TARGETS_TO_BUILD
703 LLVM_ENUM_TARGETS
704 LLVM_ENUM_ASM_PRINTERS
705 LLVM_ENUM_ASM_PARSERS
706 LLVM_ENUM_DISASSEMBLERS
707 ENABLE_CBE_PRINTF_A
708 CLANGPATH
709 CLANGXXPATH
710 ENABLE_BUILT_CLANG
711 OPTIMIZE_OPTION
712 EXTRA_OPTIONS
713 EXTRA_LD_OPTIONS
714 BINUTILS_INCDIR
715 NM
716 ifGNUmake
717 LN_S
718 CMP
719 CP
720 DATE
721 FIND
722 MKDIR
723 MV
724 RANLIB
725 AR
726 RM
727 SED
728 TAR
729 BINPWD
730 GRAPHVIZ
731 DOT
732 FDP
733 NEATO
734 TWOPI
735 CIRCO
736 GV
737 DOTTY
738 XDOT_PY
739 PERL
740 HAVE_PERL
741 INSTALL_PROGRAM
742 INSTALL_SCRIPT
743 INSTALL_DATA
744 BZIP2
745 CAT
746 DOXYGEN
747 GROFF
748 GZIPBIN
749 POD2HTML
750 POD2MAN
751 PDFROFF
752 RUNTEST
753 TCLSH
754 ZIP
755 OCAMLC
756 OCAMLOPT
757 OCAMLDEP
758 OCAMLDOC
759 GAS
760 HAVE_LINK_VERSION_SCRIPT
761 INSTALL_LTDL_TRUE
762 INSTALL_LTDL_FALSE
763 CONVENIENCE_LTDL_TRUE
764 CONVENIENCE_LTDL_FALSE
765 LIBADD_DL
766 LLVMCC_OPTION
767 NO_VARIADIC_MACROS
768 NO_MISSING_FIELD_INITIALIZERS
769 USE_UDIS86
770 USE_OPROFILE
771 HAVE_PTHREAD
772 HUGE_VAL_SANITY
773 MMAP_FILE
774 SHLIBEXT
775 SHLIBPATH_VAR
776 LLVM_PREFIX
777 LLVM_BINDIR
778 LLVM_LIBDIR
779 LLVM_DATADIR
780 LLVM_DOCSDIR
781 LLVM_ETCDIR
782 LLVM_INCLUDEDIR
783 LLVM_INFODIR
784 LLVM_MANDIR
785 LLVM_CONFIGTIME
786 BINDINGS_TO_BUILD
787 ALL_BINDINGS
788 OCAML_LIBDIR
789 ENABLE_VISIBILITY_INLINES_HIDDEN
790 RPATH
791 RDYNAMIC
792 LIBOBJS
793 LTLIBOBJS'
794 ac_subst_files=''
795       ac_precious_vars='build_alias
796 host_alias
797 target_alias
798 CC
799 CFLAGS
800 LDFLAGS
801 CPPFLAGS
802 CXX
803 CXXFLAGS
804 CCC
805 CPP'
806 ac_subdirs_all='projects/llvm-gcc
807 projects/test-suite
808 projects/llvm-test
809 projects/poolalloc
810 projects/llvm-poolalloc
811 projects/sample
812 projects/privbracket
813 projects/llvm-stacker
814 projects/llvm-reopt
815 projects/llvm-java
816 projects/llvm-tv
817 projects/safecode
818 projects/llvm-kernel
819 tools/polly'
820
821 # Initialize some variables set by options.
822 ac_init_help=
823 ac_init_version=false
824 # The variables have the same names as the options, with
825 # dashes changed to underlines.
826 cache_file=/dev/null
827 exec_prefix=NONE
828 no_create=
829 no_recursion=
830 prefix=NONE
831 program_prefix=NONE
832 program_suffix=NONE
833 program_transform_name=s,x,x,
834 silent=
835 site=
836 srcdir=
837 verbose=
838 x_includes=NONE
839 x_libraries=NONE
840
841 # Installation directory options.
842 # These are left unexpanded so users can "make install exec_prefix=/foo"
843 # and all the variables that are supposed to be based on exec_prefix
844 # by default will actually change.
845 # Use braces instead of parens because sh, perl, etc. also accept them.
846 # (The list follows the same order as the GNU Coding Standards.)
847 bindir='${exec_prefix}/bin'
848 sbindir='${exec_prefix}/sbin'
849 libexecdir='${exec_prefix}/libexec'
850 datarootdir='${prefix}/share'
851 datadir='${datarootdir}'
852 sysconfdir='${prefix}/etc'
853 sharedstatedir='${prefix}/com'
854 localstatedir='${prefix}/var'
855 includedir='${prefix}/include'
856 oldincludedir='/usr/include'
857 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
858 infodir='${datarootdir}/info'
859 htmldir='${docdir}'
860 dvidir='${docdir}'
861 pdfdir='${docdir}'
862 psdir='${docdir}'
863 libdir='${exec_prefix}/lib'
864 localedir='${datarootdir}/locale'
865 mandir='${datarootdir}/man'
866
867 ac_prev=
868 ac_dashdash=
869 for ac_option
870 do
871   # If the previous option needs an argument, assign it.
872   if test -n "$ac_prev"; then
873     eval $ac_prev=\$ac_option
874     ac_prev=
875     continue
876   fi
877
878   case $ac_option in
879   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
880   *)    ac_optarg=yes ;;
881   esac
882
883   # Accept the important Cygnus configure options, so we can diagnose typos.
884
885   case $ac_dashdash$ac_option in
886   --)
887     ac_dashdash=yes ;;
888
889   -bindir | --bindir | --bindi | --bind | --bin | --bi)
890     ac_prev=bindir ;;
891   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
892     bindir=$ac_optarg ;;
893
894   -build | --build | --buil | --bui | --bu)
895     ac_prev=build_alias ;;
896   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
897     build_alias=$ac_optarg ;;
898
899   -cache-file | --cache-file | --cache-fil | --cache-fi \
900   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
901     ac_prev=cache_file ;;
902   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
903   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
904     cache_file=$ac_optarg ;;
905
906   --config-cache | -C)
907     cache_file=config.cache ;;
908
909   -datadir | --datadir | --datadi | --datad)
910     ac_prev=datadir ;;
911   -datadir=* | --datadir=* | --datadi=* | --datad=*)
912     datadir=$ac_optarg ;;
913
914   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
915   | --dataroo | --dataro | --datar)
916     ac_prev=datarootdir ;;
917   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
918   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
919     datarootdir=$ac_optarg ;;
920
921   -disable-* | --disable-*)
922     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
923     # Reject names that are not valid shell variable names.
924     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
925       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
926    { (exit 1); exit 1; }; }
927     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
928     eval enable_$ac_feature=no ;;
929
930   -docdir | --docdir | --docdi | --doc | --do)
931     ac_prev=docdir ;;
932   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
933     docdir=$ac_optarg ;;
934
935   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
936     ac_prev=dvidir ;;
937   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
938     dvidir=$ac_optarg ;;
939
940   -enable-* | --enable-*)
941     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
942     # Reject names that are not valid shell variable names.
943     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
944       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
945    { (exit 1); exit 1; }; }
946     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
947     eval enable_$ac_feature=\$ac_optarg ;;
948
949   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
950   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
951   | --exec | --exe | --ex)
952     ac_prev=exec_prefix ;;
953   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
954   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
955   | --exec=* | --exe=* | --ex=*)
956     exec_prefix=$ac_optarg ;;
957
958   -gas | --gas | --ga | --g)
959     # Obsolete; use --with-gas.
960     with_gas=yes ;;
961
962   -help | --help | --hel | --he | -h)
963     ac_init_help=long ;;
964   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
965     ac_init_help=recursive ;;
966   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
967     ac_init_help=short ;;
968
969   -host | --host | --hos | --ho)
970     ac_prev=host_alias ;;
971   -host=* | --host=* | --hos=* | --ho=*)
972     host_alias=$ac_optarg ;;
973
974   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
975     ac_prev=htmldir ;;
976   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
977   | --ht=*)
978     htmldir=$ac_optarg ;;
979
980   -includedir | --includedir | --includedi | --included | --include \
981   | --includ | --inclu | --incl | --inc)
982     ac_prev=includedir ;;
983   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
984   | --includ=* | --inclu=* | --incl=* | --inc=*)
985     includedir=$ac_optarg ;;
986
987   -infodir | --infodir | --infodi | --infod | --info | --inf)
988     ac_prev=infodir ;;
989   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
990     infodir=$ac_optarg ;;
991
992   -libdir | --libdir | --libdi | --libd)
993     ac_prev=libdir ;;
994   -libdir=* | --libdir=* | --libdi=* | --libd=*)
995     libdir=$ac_optarg ;;
996
997   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
998   | --libexe | --libex | --libe)
999     ac_prev=libexecdir ;;
1000   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1001   | --libexe=* | --libex=* | --libe=*)
1002     libexecdir=$ac_optarg ;;
1003
1004   -localedir | --localedir | --localedi | --localed | --locale)
1005     ac_prev=localedir ;;
1006   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1007     localedir=$ac_optarg ;;
1008
1009   -localstatedir | --localstatedir | --localstatedi | --localstated \
1010   | --localstate | --localstat | --localsta | --localst | --locals)
1011     ac_prev=localstatedir ;;
1012   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1013   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1014     localstatedir=$ac_optarg ;;
1015
1016   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1017     ac_prev=mandir ;;
1018   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1019     mandir=$ac_optarg ;;
1020
1021   -nfp | --nfp | --nf)
1022     # Obsolete; use --without-fp.
1023     with_fp=no ;;
1024
1025   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1026   | --no-cr | --no-c | -n)
1027     no_create=yes ;;
1028
1029   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1030   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1031     no_recursion=yes ;;
1032
1033   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1034   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1035   | --oldin | --oldi | --old | --ol | --o)
1036     ac_prev=oldincludedir ;;
1037   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1038   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1039   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1040     oldincludedir=$ac_optarg ;;
1041
1042   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1043     ac_prev=prefix ;;
1044   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1045     prefix=$ac_optarg ;;
1046
1047   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1048   | --program-pre | --program-pr | --program-p)
1049     ac_prev=program_prefix ;;
1050   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1051   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1052     program_prefix=$ac_optarg ;;
1053
1054   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1055   | --program-suf | --program-su | --program-s)
1056     ac_prev=program_suffix ;;
1057   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1058   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1059     program_suffix=$ac_optarg ;;
1060
1061   -program-transform-name | --program-transform-name \
1062   | --program-transform-nam | --program-transform-na \
1063   | --program-transform-n | --program-transform- \
1064   | --program-transform | --program-transfor \
1065   | --program-transfo | --program-transf \
1066   | --program-trans | --program-tran \
1067   | --progr-tra | --program-tr | --program-t)
1068     ac_prev=program_transform_name ;;
1069   -program-transform-name=* | --program-transform-name=* \
1070   | --program-transform-nam=* | --program-transform-na=* \
1071   | --program-transform-n=* | --program-transform-=* \
1072   | --program-transform=* | --program-transfor=* \
1073   | --program-transfo=* | --program-transf=* \
1074   | --program-trans=* | --program-tran=* \
1075   | --progr-tra=* | --program-tr=* | --program-t=*)
1076     program_transform_name=$ac_optarg ;;
1077
1078   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1079     ac_prev=pdfdir ;;
1080   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1081     pdfdir=$ac_optarg ;;
1082
1083   -psdir | --psdir | --psdi | --psd | --ps)
1084     ac_prev=psdir ;;
1085   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1086     psdir=$ac_optarg ;;
1087
1088   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1089   | -silent | --silent | --silen | --sile | --sil)
1090     silent=yes ;;
1091
1092   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1093     ac_prev=sbindir ;;
1094   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1095   | --sbi=* | --sb=*)
1096     sbindir=$ac_optarg ;;
1097
1098   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1099   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1100   | --sharedst | --shareds | --shared | --share | --shar \
1101   | --sha | --sh)
1102     ac_prev=sharedstatedir ;;
1103   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1104   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1105   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1106   | --sha=* | --sh=*)
1107     sharedstatedir=$ac_optarg ;;
1108
1109   -site | --site | --sit)
1110     ac_prev=site ;;
1111   -site=* | --site=* | --sit=*)
1112     site=$ac_optarg ;;
1113
1114   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1115     ac_prev=srcdir ;;
1116   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1117     srcdir=$ac_optarg ;;
1118
1119   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1120   | --syscon | --sysco | --sysc | --sys | --sy)
1121     ac_prev=sysconfdir ;;
1122   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1123   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1124     sysconfdir=$ac_optarg ;;
1125
1126   -target | --target | --targe | --targ | --tar | --ta | --t)
1127     ac_prev=target_alias ;;
1128   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1129     target_alias=$ac_optarg ;;
1130
1131   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1132     verbose=yes ;;
1133
1134   -version | --version | --versio | --versi | --vers | -V)
1135     ac_init_version=: ;;
1136
1137   -with-* | --with-*)
1138     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1139     # Reject names that are not valid shell variable names.
1140     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1141       { echo "$as_me: error: invalid package name: $ac_package" >&2
1142    { (exit 1); exit 1; }; }
1143     ac_package=`echo $ac_package| sed 's/-/_/g'`
1144     eval with_$ac_package=\$ac_optarg ;;
1145
1146   -without-* | --without-*)
1147     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1148     # Reject names that are not valid shell variable names.
1149     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1150       { echo "$as_me: error: invalid package name: $ac_package" >&2
1151    { (exit 1); exit 1; }; }
1152     ac_package=`echo $ac_package | sed 's/-/_/g'`
1153     eval with_$ac_package=no ;;
1154
1155   --x)
1156     # Obsolete; use --with-x.
1157     with_x=yes ;;
1158
1159   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1160   | --x-incl | --x-inc | --x-in | --x-i)
1161     ac_prev=x_includes ;;
1162   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1163   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1164     x_includes=$ac_optarg ;;
1165
1166   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1167   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1168     ac_prev=x_libraries ;;
1169   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1170   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1171     x_libraries=$ac_optarg ;;
1172
1173   -*) { echo "$as_me: error: unrecognized option: $ac_option
1174 Try \`$0 --help' for more information." >&2
1175    { (exit 1); exit 1; }; }
1176     ;;
1177
1178   *=*)
1179     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1180     # Reject names that are not valid shell variable names.
1181     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1182       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1183    { (exit 1); exit 1; }; }
1184     eval $ac_envvar=\$ac_optarg
1185     export $ac_envvar ;;
1186
1187   *)
1188     # FIXME: should be removed in autoconf 3.0.
1189     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1190     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1191       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1192     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1193     ;;
1194
1195   esac
1196 done
1197
1198 if test -n "$ac_prev"; then
1199   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1200   { echo "$as_me: error: missing argument to $ac_option" >&2
1201    { (exit 1); exit 1; }; }
1202 fi
1203
1204 # Be sure to have absolute directory names.
1205 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1206                 datadir sysconfdir sharedstatedir localstatedir includedir \
1207                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1208                 libdir localedir mandir
1209 do
1210   eval ac_val=\$$ac_var
1211   case $ac_val in
1212     [\\/$]* | ?:[\\/]* )  continue;;
1213     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1214   esac
1215   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1216    { (exit 1); exit 1; }; }
1217 done
1218
1219 # There might be people who depend on the old broken behavior: `$host'
1220 # used to hold the argument of --host etc.
1221 # FIXME: To remove some day.
1222 build=$build_alias
1223 host=$host_alias
1224 target=$target_alias
1225
1226 # FIXME: To remove some day.
1227 if test "x$host_alias" != x; then
1228   if test "x$build_alias" = x; then
1229     cross_compiling=maybe
1230     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1231     If a cross compiler is detected then cross compile mode will be used." >&2
1232   elif test "x$build_alias" != "x$host_alias"; then
1233     cross_compiling=yes
1234   fi
1235 fi
1236
1237 ac_tool_prefix=
1238 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1239
1240 test "$silent" = yes && exec 6>/dev/null
1241
1242
1243 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1244 ac_ls_di=`ls -di .` &&
1245 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1246   { echo "$as_me: error: Working directory cannot be determined" >&2
1247    { (exit 1); exit 1; }; }
1248 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1249   { echo "$as_me: error: pwd does not report name of working directory" >&2
1250    { (exit 1); exit 1; }; }
1251
1252
1253 # Find the source files, if location was not specified.
1254 if test -z "$srcdir"; then
1255   ac_srcdir_defaulted=yes
1256   # Try the directory containing this script, then the parent directory.
1257   ac_confdir=`$as_dirname -- "$0" ||
1258 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1259          X"$0" : 'X\(//\)[^/]' \| \
1260          X"$0" : 'X\(//\)$' \| \
1261          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1262 echo X"$0" |
1263     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1264             s//\1/
1265             q
1266           }
1267           /^X\(\/\/\)[^/].*/{
1268             s//\1/
1269             q
1270           }
1271           /^X\(\/\/\)$/{
1272             s//\1/
1273             q
1274           }
1275           /^X\(\/\).*/{
1276             s//\1/
1277             q
1278           }
1279           s/.*/./; q'`
1280   srcdir=$ac_confdir
1281   if test ! -r "$srcdir/$ac_unique_file"; then
1282     srcdir=..
1283   fi
1284 else
1285   ac_srcdir_defaulted=no
1286 fi
1287 if test ! -r "$srcdir/$ac_unique_file"; then
1288   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1289   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1290    { (exit 1); exit 1; }; }
1291 fi
1292 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1293 ac_abs_confdir=`(
1294         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1295    { (exit 1); exit 1; }; }
1296         pwd)`
1297 # When building in place, set srcdir=.
1298 if test "$ac_abs_confdir" = "$ac_pwd"; then
1299   srcdir=.
1300 fi
1301 # Remove unnecessary trailing slashes from srcdir.
1302 # Double slashes in file names in object file debugging info
1303 # mess up M-x gdb in Emacs.
1304 case $srcdir in
1305 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1306 esac
1307 for ac_var in $ac_precious_vars; do
1308   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1309   eval ac_env_${ac_var}_value=\$${ac_var}
1310   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1311   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1312 done
1313
1314 #
1315 # Report the --help message.
1316 #
1317 if test "$ac_init_help" = "long"; then
1318   # Omit some internal or obsolete options to make the list less imposing.
1319   # This message is too long to be a string in the A/UX 3.1 sh.
1320   cat <<_ACEOF
1321 \`configure' configures llvm 3.0svn to adapt to many kinds of systems.
1322
1323 Usage: $0 [OPTION]... [VAR=VALUE]...
1324
1325 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1326 VAR=VALUE.  See below for descriptions of some of the useful variables.
1327
1328 Defaults for the options are specified in brackets.
1329
1330 Configuration:
1331   -h, --help              display this help and exit
1332       --help=short        display options specific to this package
1333       --help=recursive    display the short help of all the included packages
1334   -V, --version           display version information and exit
1335   -q, --quiet, --silent   do not print \`checking...' messages
1336       --cache-file=FILE   cache test results in FILE [disabled]
1337   -C, --config-cache      alias for \`--cache-file=config.cache'
1338   -n, --no-create         do not create output files
1339       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1340
1341 Installation directories:
1342   --prefix=PREFIX         install architecture-independent files in PREFIX
1343                           [$ac_default_prefix]
1344   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1345                           [PREFIX]
1346
1347 By default, \`make install' will install all the files in
1348 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1349 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1350 for instance \`--prefix=\$HOME'.
1351
1352 For better control, use the options below.
1353
1354 Fine tuning of the installation directories:
1355   --bindir=DIR           user executables [EPREFIX/bin]
1356   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1357   --libexecdir=DIR       program executables [EPREFIX/libexec]
1358   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1359   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1360   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1361   --libdir=DIR           object code libraries [EPREFIX/lib]
1362   --includedir=DIR       C header files [PREFIX/include]
1363   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1364   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1365   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1366   --infodir=DIR          info documentation [DATAROOTDIR/info]
1367   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1368   --mandir=DIR           man documentation [DATAROOTDIR/man]
1369   --docdir=DIR           documentation root [DATAROOTDIR/doc/-llvm-]
1370   --htmldir=DIR          html documentation [DOCDIR]
1371   --dvidir=DIR           dvi documentation [DOCDIR]
1372   --pdfdir=DIR           pdf documentation [DOCDIR]
1373   --psdir=DIR            ps documentation [DOCDIR]
1374 _ACEOF
1375
1376   cat <<\_ACEOF
1377
1378 System types:
1379   --build=BUILD     configure for building on BUILD [guessed]
1380   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1381   --target=TARGET   configure for building compilers for TARGET [HOST]
1382 _ACEOF
1383 fi
1384
1385 if test -n "$ac_init_help"; then
1386   case $ac_init_help in
1387      short | recursive ) echo "Configuration of llvm 3.0svn:";;
1388    esac
1389   cat <<\_ACEOF
1390
1391 Optional Features:
1392   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1393   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1394   --enable-polly          Use polly if available (default is YES)
1395   --enable-optimized      Compile with optimizations enabled (default is NO)
1396   --enable-profiling      Compile with profiling enabled (default is NO)
1397   --enable-assertions     Compile with assertion checks enabled (default is
1398                           YES)
1399   --enable-expensive-checks
1400                           Compile with expensive debug checks enabled (default
1401                           is NO)
1402   --enable-debug-runtime  Build runtime libs with debug symbols (default is
1403                           NO)
1404   --enable-debug-symbols  Build compiler with debug symbols (default is NO if
1405                           optimization is on and YES if it's off)
1406   --enable-jit            Enable Just In Time Compiling (default is YES)
1407   --enable-docs           Build documents (default is YES)
1408   --enable-doxygen        Build doxygen documentation (default is NO)
1409   --enable-threads        Use threads if available (default is YES)
1410   --enable-pthreads       Use pthreads if available (default is YES)
1411   --enable-pic            Build LLVM with Position Independent Code (default
1412                           is YES)
1413   --enable-shared         Build a shared library and link tools against it
1414                           (default is NO)
1415   --enable-embed-stdcxx   Build a shared library with embedded libstdc++ for
1416                           Win32 DLL (default is YES)
1417   --enable-timestamps     Enable embedding timestamp information in build
1418                           (default is YES)
1419   --enable-targets        Build specific host targets: all or
1420                           target1,target2,... Valid targets are: host, x86,
1421                           x86_64, sparc, powerpc, alpha, arm, mips, spu,
1422                           xcore, msp430, systemz, blackfin, ptx, cbe, and cpp
1423                           (default=all)
1424   --enable-cbe-printf-a   Enable C Backend output with hex floating point via
1425                           %a (default is YES)
1426   --enable-bindings       Build specific language bindings:
1427                           all,auto,none,{binding-name} (default=auto)
1428   --enable-libffi         Check for the presence of libffi (default is NO)
1429   --enable-ltdl-install   install libltdl
1430
1431 Optional Packages:
1432   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1433   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1434   --with-clang            Specify location of clang compiler (default is
1435                           --with-built-clang)
1436   --with-built-clang      Use the compiled Clang as the LLVM compiler
1437                           (default=check)
1438   --with-optimize-option  Select the compiler options to use for optimized
1439                           builds
1440   --with-extra-options    Specify additional options to compile LLVM with
1441   --with-extra-ld-options Specify additional options to link LLVM with
1442   --with-ocaml-libdir     Specify install location for ocaml bindings (default
1443                           is stdlib)
1444   --with-clang-resource-dir
1445                           Relative directory from the Clang binary for
1446                           resource files
1447   --with-c-include-dirs   Colon separated list of directories clang will
1448                           search for headers
1449   --with-cxx-include-root Directory with the libstdc++ headers.
1450   --with-cxx-include-arch Architecture of the libstdc++ headers.
1451   --with-cxx-include-32bit-dir
1452                           32 bit multilib dir.
1453   --with-cxx-include-64bit-dir
1454                           64 bit multilib directory.
1455   --with-binutils-include Specify path to binutils/include/ containing
1456                           plugin-api.h file for gold plugin.
1457   --with-bug-report-url   Specify the URL where bug reports should be
1458                           submitted (default=http://llvm.org/bugs/)
1459   --with-tclinclude       directory where tcl headers are
1460   --with-llvmcc=<name>    Choose the LLVM capable compiler to use (llvm-gcc,
1461                           clang, or none; default=check)
1462   --with-udis86=<path>    Use udis86 external x86 disassembler library
1463   --with-oprofile=<prefix>
1464                           Tell OProfile >= 0.9.4 how to symbolize JIT output
1465
1466 Some influential environment variables:
1467   CC          C compiler command
1468   CFLAGS      C compiler flags
1469   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1470               nonstandard directory <lib dir>
1471   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1472               you have headers in a nonstandard directory <include dir>
1473   CXX         C++ compiler command
1474   CXXFLAGS    C++ compiler flags
1475   CPP         C preprocessor
1476
1477 Use these variables to override the choices made by `configure' or to help
1478 it to find libraries and programs with nonstandard names/locations.
1479
1480 Report bugs to <llvmbugs@cs.uiuc.edu>.
1481 _ACEOF
1482 ac_status=$?
1483 fi
1484
1485 if test "$ac_init_help" = "recursive"; then
1486   # If there are subdirs, report their specific --help.
1487   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1488     test -d "$ac_dir" || continue
1489     ac_builddir=.
1490
1491 case "$ac_dir" in
1492 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1493 *)
1494   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1495   # A ".." for each directory in $ac_dir_suffix.
1496   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1497   case $ac_top_builddir_sub in
1498   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1499   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1500   esac ;;
1501 esac
1502 ac_abs_top_builddir=$ac_pwd
1503 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1504 # for backward compatibility:
1505 ac_top_builddir=$ac_top_build_prefix
1506
1507 case $srcdir in
1508   .)  # We are building in place.
1509     ac_srcdir=.
1510     ac_top_srcdir=$ac_top_builddir_sub
1511     ac_abs_top_srcdir=$ac_pwd ;;
1512   [\\/]* | ?:[\\/]* )  # Absolute name.
1513     ac_srcdir=$srcdir$ac_dir_suffix;
1514     ac_top_srcdir=$srcdir
1515     ac_abs_top_srcdir=$srcdir ;;
1516   *) # Relative name.
1517     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1518     ac_top_srcdir=$ac_top_build_prefix$srcdir
1519     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1520 esac
1521 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1522
1523     cd "$ac_dir" || { ac_status=$?; continue; }
1524     # Check for guested configure.
1525     if test -f "$ac_srcdir/configure.gnu"; then
1526       echo &&
1527       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1528     elif test -f "$ac_srcdir/configure"; then
1529       echo &&
1530       $SHELL "$ac_srcdir/configure" --help=recursive
1531     else
1532       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1533     fi || ac_status=$?
1534     cd "$ac_pwd" || { ac_status=$?; break; }
1535   done
1536 fi
1537
1538 test -n "$ac_init_help" && exit $ac_status
1539 if $ac_init_version; then
1540   cat <<\_ACEOF
1541 llvm configure 3.0svn
1542 generated by GNU Autoconf 2.60
1543
1544 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1545 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1546 This configure script is free software; the Free Software Foundation
1547 gives unlimited permission to copy, distribute and modify it.
1548
1549 Copyright (c) 2003-2011 University of Illinois at Urbana-Champaign.
1550 _ACEOF
1551   exit
1552 fi
1553 cat >config.log <<_ACEOF
1554 This file contains any messages produced by compilers while
1555 running configure, to aid debugging if configure makes a mistake.
1556
1557 It was created by llvm $as_me 3.0svn, which was
1558 generated by GNU Autoconf 2.60.  Invocation command line was
1559
1560   $ $0 $@
1561
1562 _ACEOF
1563 exec 5>>config.log
1564 {
1565 cat <<_ASUNAME
1566 ## --------- ##
1567 ## Platform. ##
1568 ## --------- ##
1569
1570 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1571 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1572 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1573 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1574 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1575
1576 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1577 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1578
1579 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1580 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1581 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1582 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1583 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1584 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1585 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1586
1587 _ASUNAME
1588
1589 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1590 for as_dir in $PATH
1591 do
1592   IFS=$as_save_IFS
1593   test -z "$as_dir" && as_dir=.
1594   echo "PATH: $as_dir"
1595 done
1596 IFS=$as_save_IFS
1597
1598 } >&5
1599
1600 cat >&5 <<_ACEOF
1601
1602
1603 ## ----------- ##
1604 ## Core tests. ##
1605 ## ----------- ##
1606
1607 _ACEOF
1608
1609
1610 # Keep a trace of the command line.
1611 # Strip out --no-create and --no-recursion so they do not pile up.
1612 # Strip out --silent because we don't want to record it for future runs.
1613 # Also quote any args containing shell meta-characters.
1614 # Make two passes to allow for proper duplicate-argument suppression.
1615 ac_configure_args=
1616 ac_configure_args0=
1617 ac_configure_args1=
1618 ac_must_keep_next=false
1619 for ac_pass in 1 2
1620 do
1621   for ac_arg
1622   do
1623     case $ac_arg in
1624     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1625     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1626     | -silent | --silent | --silen | --sile | --sil)
1627       continue ;;
1628     *\'*)
1629       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1630     esac
1631     case $ac_pass in
1632     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1633     2)
1634       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1635       if test $ac_must_keep_next = true; then
1636         ac_must_keep_next=false # Got value, back to normal.
1637       else
1638         case $ac_arg in
1639           *=* | --config-cache | -C | -disable-* | --disable-* \
1640           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1641           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1642           | -with-* | --with-* | -without-* | --without-* | --x)
1643             case "$ac_configure_args0 " in
1644               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1645             esac
1646             ;;
1647           -* ) ac_must_keep_next=true ;;
1648         esac
1649       fi
1650       ac_configure_args="$ac_configure_args '$ac_arg'"
1651       ;;
1652     esac
1653   done
1654 done
1655 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1656 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1657
1658 # When interrupted or exit'd, cleanup temporary files, and complete
1659 # config.log.  We remove comments because anyway the quotes in there
1660 # would cause problems or look ugly.
1661 # WARNING: Use '\'' to represent an apostrophe within the trap.
1662 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1663 trap 'exit_status=$?
1664   # Save into config.log some information that might help in debugging.
1665   {
1666     echo
1667
1668     cat <<\_ASBOX
1669 ## ---------------- ##
1670 ## Cache variables. ##
1671 ## ---------------- ##
1672 _ASBOX
1673     echo
1674     # The following way of writing the cache mishandles newlines in values,
1675 (
1676   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1677     eval ac_val=\$$ac_var
1678     case $ac_val in #(
1679     *${as_nl}*)
1680       case $ac_var in #(
1681       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1682 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1683       esac
1684       case $ac_var in #(
1685       _ | IFS | as_nl) ;; #(
1686       *) $as_unset $ac_var ;;
1687       esac ;;
1688     esac
1689   done
1690   (set) 2>&1 |
1691     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1692     *${as_nl}ac_space=\ *)
1693       sed -n \
1694         "s/'\''/'\''\\\\'\'''\''/g;
1695           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1696       ;; #(
1697     *)
1698       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1699       ;;
1700     esac |
1701     sort
1702 )
1703     echo
1704
1705     cat <<\_ASBOX
1706 ## ----------------- ##
1707 ## Output variables. ##
1708 ## ----------------- ##
1709 _ASBOX
1710     echo
1711     for ac_var in $ac_subst_vars
1712     do
1713       eval ac_val=\$$ac_var
1714       case $ac_val in
1715       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1716       esac
1717       echo "$ac_var='\''$ac_val'\''"
1718     done | sort
1719     echo
1720
1721     if test -n "$ac_subst_files"; then
1722       cat <<\_ASBOX
1723 ## ------------------- ##
1724 ## File substitutions. ##
1725 ## ------------------- ##
1726 _ASBOX
1727       echo
1728       for ac_var in $ac_subst_files
1729       do
1730         eval ac_val=\$$ac_var
1731         case $ac_val in
1732         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1733         esac
1734         echo "$ac_var='\''$ac_val'\''"
1735       done | sort
1736       echo
1737     fi
1738
1739     if test -s confdefs.h; then
1740       cat <<\_ASBOX
1741 ## ----------- ##
1742 ## confdefs.h. ##
1743 ## ----------- ##
1744 _ASBOX
1745       echo
1746       cat confdefs.h
1747       echo
1748     fi
1749     test "$ac_signal" != 0 &&
1750       echo "$as_me: caught signal $ac_signal"
1751     echo "$as_me: exit $exit_status"
1752   } >&5
1753   rm -f core *.core core.conftest.* &&
1754     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1755     exit $exit_status
1756 ' 0
1757 for ac_signal in 1 2 13 15; do
1758   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1759 done
1760 ac_signal=0
1761
1762 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1763 rm -f -r conftest* confdefs.h
1764
1765 # Predefined preprocessor variables.
1766
1767 cat >>confdefs.h <<_ACEOF
1768 #define PACKAGE_NAME "$PACKAGE_NAME"
1769 _ACEOF
1770
1771
1772 cat >>confdefs.h <<_ACEOF
1773 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1774 _ACEOF
1775
1776
1777 cat >>confdefs.h <<_ACEOF
1778 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1779 _ACEOF
1780
1781
1782 cat >>confdefs.h <<_ACEOF
1783 #define PACKAGE_STRING "$PACKAGE_STRING"
1784 _ACEOF
1785
1786
1787 cat >>confdefs.h <<_ACEOF
1788 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1789 _ACEOF
1790
1791
1792 # Let the site file select an alternate cache file if it wants to.
1793 # Prefer explicitly selected file to automatically selected ones.
1794 if test -n "$CONFIG_SITE"; then
1795   set x "$CONFIG_SITE"
1796 elif test "x$prefix" != xNONE; then
1797   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1798 else
1799   set x "$ac_default_prefix/share/config.site" \
1800         "$ac_default_prefix/etc/config.site"
1801 fi
1802 shift
1803 for ac_site_file
1804 do
1805   if test -r "$ac_site_file"; then
1806     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1807 echo "$as_me: loading site script $ac_site_file" >&6;}
1808     sed 's/^/| /' "$ac_site_file" >&5
1809     . "$ac_site_file"
1810   fi
1811 done
1812
1813 if test -r "$cache_file"; then
1814   # Some versions of bash will fail to source /dev/null (special
1815   # files actually), so we avoid doing that.
1816   if test -f "$cache_file"; then
1817     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1818 echo "$as_me: loading cache $cache_file" >&6;}
1819     case $cache_file in
1820       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1821       *)                      . "./$cache_file";;
1822     esac
1823   fi
1824 else
1825   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1826 echo "$as_me: creating cache $cache_file" >&6;}
1827   >$cache_file
1828 fi
1829
1830 # Check that the precious variables saved in the cache have kept the same
1831 # value.
1832 ac_cache_corrupted=false
1833 for ac_var in $ac_precious_vars; do
1834   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1835   eval ac_new_set=\$ac_env_${ac_var}_set
1836   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1837   eval ac_new_val=\$ac_env_${ac_var}_value
1838   case $ac_old_set,$ac_new_set in
1839     set,)
1840       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1841 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1842       ac_cache_corrupted=: ;;
1843     ,set)
1844       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1845 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1846       ac_cache_corrupted=: ;;
1847     ,);;
1848     *)
1849       if test "x$ac_old_val" != "x$ac_new_val"; then
1850         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1851 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1852         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1853 echo "$as_me:   former value:  $ac_old_val" >&2;}
1854         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1855 echo "$as_me:   current value: $ac_new_val" >&2;}
1856         ac_cache_corrupted=:
1857       fi;;
1858   esac
1859   # Pass precious variables to config.status.
1860   if test "$ac_new_set" = set; then
1861     case $ac_new_val in
1862     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1863     *) ac_arg=$ac_var=$ac_new_val ;;
1864     esac
1865     case " $ac_configure_args " in
1866       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1867       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1868     esac
1869   fi
1870 done
1871 if $ac_cache_corrupted; then
1872   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1873 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1874   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1875 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1876    { (exit 1); exit 1; }; }
1877 fi
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903 ac_ext=c
1904 ac_cpp='$CPP $CPPFLAGS'
1905 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1906 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1907 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1908
1909
1910
1911 LLVM_COPYRIGHT="Copyright (c) 2003-2011 University of Illinois at Urbana-Champaign."
1912
1913
1914
1915
1916
1917
1918
1919 ac_aux_dir=
1920 for ac_dir in autoconf "$srcdir"/autoconf; do
1921   if test -f "$ac_dir/install-sh"; then
1922     ac_aux_dir=$ac_dir
1923     ac_install_sh="$ac_aux_dir/install-sh -c"
1924     break
1925   elif test -f "$ac_dir/install.sh"; then
1926     ac_aux_dir=$ac_dir
1927     ac_install_sh="$ac_aux_dir/install.sh -c"
1928     break
1929   elif test -f "$ac_dir/shtool"; then
1930     ac_aux_dir=$ac_dir
1931     ac_install_sh="$ac_aux_dir/shtool install -c"
1932     break
1933   fi
1934 done
1935 if test -z "$ac_aux_dir"; then
1936   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
1937 echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
1938    { (exit 1); exit 1; }; }
1939 fi
1940
1941 # These three variables are undocumented and unsupported,
1942 # and are intended to be withdrawn in a future Autoconf release.
1943 # They can cause serious problems if a builder's source tree is in a directory
1944 # whose full name contains unusual characters.
1945 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
1946 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
1947 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
1948
1949
1950
1951 if test ${srcdir} != "." ; then
1952   if test -f ${srcdir}/include/llvm/Config/config.h ; then
1953     { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
1954 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1955    { (exit 1); exit 1; }; }
1956   fi
1957 fi
1958
1959 ac_ext=c
1960 ac_cpp='$CPP $CPPFLAGS'
1961 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1962 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1963 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1964 if test -n "$ac_tool_prefix"; then
1965   for ac_prog in clang llvm-gcc gcc
1966   do
1967     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1968 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1969 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1970 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1971 if test "${ac_cv_prog_CC+set}" = set; then
1972   echo $ECHO_N "(cached) $ECHO_C" >&6
1973 else
1974   if test -n "$CC"; then
1975   ac_cv_prog_CC="$CC" # Let the user override the test.
1976 else
1977 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1978 for as_dir in $PATH
1979 do
1980   IFS=$as_save_IFS
1981   test -z "$as_dir" && as_dir=.
1982   for ac_exec_ext in '' $ac_executable_extensions; do
1983   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
1984     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1985     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1986     break 2
1987   fi
1988 done
1989 done
1990 IFS=$as_save_IFS
1991
1992 fi
1993 fi
1994 CC=$ac_cv_prog_CC
1995 if test -n "$CC"; then
1996   { echo "$as_me:$LINENO: result: $CC" >&5
1997 echo "${ECHO_T}$CC" >&6; }
1998 else
1999   { echo "$as_me:$LINENO: result: no" >&5
2000 echo "${ECHO_T}no" >&6; }
2001 fi
2002
2003
2004     test -n "$CC" && break
2005   done
2006 fi
2007 if test -z "$CC"; then
2008   ac_ct_CC=$CC
2009   for ac_prog in clang llvm-gcc gcc
2010 do
2011   # Extract the first word of "$ac_prog", so it can be a program name with args.
2012 set dummy $ac_prog; ac_word=$2
2013 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2014 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2015 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2016   echo $ECHO_N "(cached) $ECHO_C" >&6
2017 else
2018   if test -n "$ac_ct_CC"; then
2019   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2020 else
2021 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2022 for as_dir in $PATH
2023 do
2024   IFS=$as_save_IFS
2025   test -z "$as_dir" && as_dir=.
2026   for ac_exec_ext in '' $ac_executable_extensions; do
2027   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2028     ac_cv_prog_ac_ct_CC="$ac_prog"
2029     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2030     break 2
2031   fi
2032 done
2033 done
2034 IFS=$as_save_IFS
2035
2036 fi
2037 fi
2038 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2039 if test -n "$ac_ct_CC"; then
2040   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2041 echo "${ECHO_T}$ac_ct_CC" >&6; }
2042 else
2043   { echo "$as_me:$LINENO: result: no" >&5
2044 echo "${ECHO_T}no" >&6; }
2045 fi
2046
2047
2048   test -n "$ac_ct_CC" && break
2049 done
2050
2051   if test "x$ac_ct_CC" = x; then
2052     CC=""
2053   else
2054     case $cross_compiling:$ac_tool_warned in
2055 yes:)
2056 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2057 whose name does not start with the host triplet.  If you think this
2058 configuration is useful to you, please write to autoconf@gnu.org." >&5
2059 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2060 whose name does not start with the host triplet.  If you think this
2061 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2062 ac_tool_warned=yes ;;
2063 esac
2064     CC=$ac_ct_CC
2065   fi
2066 fi
2067
2068
2069 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2070 See \`config.log' for more details." >&5
2071 echo "$as_me: error: no acceptable C compiler found in \$PATH
2072 See \`config.log' for more details." >&2;}
2073    { (exit 1); exit 1; }; }
2074
2075 # Provide some information about the compiler.
2076 echo "$as_me:$LINENO: checking for C compiler version" >&5
2077 ac_compiler=`set X $ac_compile; echo $2`
2078 { (ac_try="$ac_compiler --version >&5"
2079 case "(($ac_try" in
2080   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2081   *) ac_try_echo=$ac_try;;
2082 esac
2083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2084   (eval "$ac_compiler --version >&5") 2>&5
2085   ac_status=$?
2086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2087   (exit $ac_status); }
2088 { (ac_try="$ac_compiler -v >&5"
2089 case "(($ac_try" in
2090   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2091   *) ac_try_echo=$ac_try;;
2092 esac
2093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2094   (eval "$ac_compiler -v >&5") 2>&5
2095   ac_status=$?
2096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2097   (exit $ac_status); }
2098 { (ac_try="$ac_compiler -V >&5"
2099 case "(($ac_try" in
2100   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2101   *) ac_try_echo=$ac_try;;
2102 esac
2103 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2104   (eval "$ac_compiler -V >&5") 2>&5
2105   ac_status=$?
2106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2107   (exit $ac_status); }
2108
2109 cat >conftest.$ac_ext <<_ACEOF
2110 /* confdefs.h.  */
2111 _ACEOF
2112 cat confdefs.h >>conftest.$ac_ext
2113 cat >>conftest.$ac_ext <<_ACEOF
2114 /* end confdefs.h.  */
2115
2116 int
2117 main ()
2118 {
2119
2120   ;
2121   return 0;
2122 }
2123 _ACEOF
2124 ac_clean_files_save=$ac_clean_files
2125 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2126 # Try to create an executable without -o first, disregard a.out.
2127 # It will help us diagnose broken compilers, and finding out an intuition
2128 # of exeext.
2129 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2130 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2131 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2132 #
2133 # List of possible output files, starting from the most likely.
2134 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2135 # only as a last resort.  b.out is created by i960 compilers.
2136 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2137 #
2138 # The IRIX 6 linker writes into existing files which may not be
2139 # executable, retaining their permissions.  Remove them first so a
2140 # subsequent execution test works.
2141 ac_rmfiles=
2142 for ac_file in $ac_files
2143 do
2144   case $ac_file in
2145     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2146     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2147   esac
2148 done
2149 rm -f $ac_rmfiles
2150
2151 if { (ac_try="$ac_link_default"
2152 case "(($ac_try" in
2153   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2154   *) ac_try_echo=$ac_try;;
2155 esac
2156 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2157   (eval "$ac_link_default") 2>&5
2158   ac_status=$?
2159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2160   (exit $ac_status); }; then
2161   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2162 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2163 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2164 # so that the user can short-circuit this test for compilers unknown to
2165 # Autoconf.
2166 for ac_file in $ac_files
2167 do
2168   test -f "$ac_file" || continue
2169   case $ac_file in
2170     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2171         ;;
2172     [ab].out )
2173         # We found the default executable, but exeext='' is most
2174         # certainly right.
2175         break;;
2176     *.* )
2177         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2178         then :; else
2179            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2180         fi
2181         # We set ac_cv_exeext here because the later test for it is not
2182         # safe: cross compilers may not add the suffix if given an `-o'
2183         # argument, so we may need to know it at that point already.
2184         # Even if this section looks crufty: it has the advantage of
2185         # actually working.
2186         break;;
2187     * )
2188         break;;
2189   esac
2190 done
2191 test "$ac_cv_exeext" = no && ac_cv_exeext=
2192
2193 else
2194   echo "$as_me: failed program was:" >&5
2195 sed 's/^/| /' conftest.$ac_ext >&5
2196
2197 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2198 See \`config.log' for more details." >&5
2199 echo "$as_me: error: C compiler cannot create executables
2200 See \`config.log' for more details." >&2;}
2201    { (exit 77); exit 77; }; }
2202 fi
2203
2204 ac_exeext=$ac_cv_exeext
2205 { echo "$as_me:$LINENO: result: $ac_file" >&5
2206 echo "${ECHO_T}$ac_file" >&6; }
2207
2208 # Check that the compiler produces executables we can run.  If not, either
2209 # the compiler is broken, or we cross compile.
2210 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2211 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2212 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2213 # If not cross compiling, check that we can run a simple program.
2214 if test "$cross_compiling" != yes; then
2215   if { ac_try='./$ac_file'
2216   { (case "(($ac_try" in
2217   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2218   *) ac_try_echo=$ac_try;;
2219 esac
2220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2221   (eval "$ac_try") 2>&5
2222   ac_status=$?
2223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2224   (exit $ac_status); }; }; then
2225     cross_compiling=no
2226   else
2227     if test "$cross_compiling" = maybe; then
2228         cross_compiling=yes
2229     else
2230         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2231 If you meant to cross compile, use \`--host'.
2232 See \`config.log' for more details." >&5
2233 echo "$as_me: error: cannot run C compiled programs.
2234 If you meant to cross compile, use \`--host'.
2235 See \`config.log' for more details." >&2;}
2236    { (exit 1); exit 1; }; }
2237     fi
2238   fi
2239 fi
2240 { echo "$as_me:$LINENO: result: yes" >&5
2241 echo "${ECHO_T}yes" >&6; }
2242
2243 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2244 ac_clean_files=$ac_clean_files_save
2245 # Check that the compiler produces executables we can run.  If not, either
2246 # the compiler is broken, or we cross compile.
2247 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2248 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2249 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2250 echo "${ECHO_T}$cross_compiling" >&6; }
2251
2252 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2253 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2254 if { (ac_try="$ac_link"
2255 case "(($ac_try" in
2256   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2257   *) ac_try_echo=$ac_try;;
2258 esac
2259 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2260   (eval "$ac_link") 2>&5
2261   ac_status=$?
2262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2263   (exit $ac_status); }; then
2264   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2265 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2266 # work properly (i.e., refer to `conftest.exe'), while it won't with
2267 # `rm'.
2268 for ac_file in conftest.exe conftest conftest.*; do
2269   test -f "$ac_file" || continue
2270   case $ac_file in
2271     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2272     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2273           break;;
2274     * ) break;;
2275   esac
2276 done
2277 else
2278   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2279 See \`config.log' for more details." >&5
2280 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2281 See \`config.log' for more details." >&2;}
2282    { (exit 1); exit 1; }; }
2283 fi
2284
2285 rm -f conftest$ac_cv_exeext
2286 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2287 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2288
2289 rm -f conftest.$ac_ext
2290 EXEEXT=$ac_cv_exeext
2291 ac_exeext=$EXEEXT
2292 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2293 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2294 if test "${ac_cv_objext+set}" = set; then
2295   echo $ECHO_N "(cached) $ECHO_C" >&6
2296 else
2297   cat >conftest.$ac_ext <<_ACEOF
2298 /* confdefs.h.  */
2299 _ACEOF
2300 cat confdefs.h >>conftest.$ac_ext
2301 cat >>conftest.$ac_ext <<_ACEOF
2302 /* end confdefs.h.  */
2303
2304 int
2305 main ()
2306 {
2307
2308   ;
2309   return 0;
2310 }
2311 _ACEOF
2312 rm -f conftest.o conftest.obj
2313 if { (ac_try="$ac_compile"
2314 case "(($ac_try" in
2315   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2316   *) ac_try_echo=$ac_try;;
2317 esac
2318 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2319   (eval "$ac_compile") 2>&5
2320   ac_status=$?
2321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2322   (exit $ac_status); }; then
2323   for ac_file in conftest.o conftest.obj conftest.*; do
2324   test -f "$ac_file" || continue;
2325   case $ac_file in
2326     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2327     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2328        break;;
2329   esac
2330 done
2331 else
2332   echo "$as_me: failed program was:" >&5
2333 sed 's/^/| /' conftest.$ac_ext >&5
2334
2335 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2336 See \`config.log' for more details." >&5
2337 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2338 See \`config.log' for more details." >&2;}
2339    { (exit 1); exit 1; }; }
2340 fi
2341
2342 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2343 fi
2344 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2345 echo "${ECHO_T}$ac_cv_objext" >&6; }
2346 OBJEXT=$ac_cv_objext
2347 ac_objext=$OBJEXT
2348 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2349 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2350 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2351   echo $ECHO_N "(cached) $ECHO_C" >&6
2352 else
2353   cat >conftest.$ac_ext <<_ACEOF
2354 /* confdefs.h.  */
2355 _ACEOF
2356 cat confdefs.h >>conftest.$ac_ext
2357 cat >>conftest.$ac_ext <<_ACEOF
2358 /* end confdefs.h.  */
2359
2360 int
2361 main ()
2362 {
2363 #ifndef __GNUC__
2364        choke me
2365 #endif
2366
2367   ;
2368   return 0;
2369 }
2370 _ACEOF
2371 rm -f conftest.$ac_objext
2372 if { (ac_try="$ac_compile"
2373 case "(($ac_try" in
2374   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2375   *) ac_try_echo=$ac_try;;
2376 esac
2377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2378   (eval "$ac_compile") 2>conftest.er1
2379   ac_status=$?
2380   grep -v '^ *+' conftest.er1 >conftest.err
2381   rm -f conftest.er1
2382   cat conftest.err >&5
2383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2384   (exit $ac_status); } &&
2385          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2386   { (case "(($ac_try" in
2387   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2388   *) ac_try_echo=$ac_try;;
2389 esac
2390 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2391   (eval "$ac_try") 2>&5
2392   ac_status=$?
2393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2394   (exit $ac_status); }; } &&
2395          { ac_try='test -s conftest.$ac_objext'
2396   { (case "(($ac_try" in
2397   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2398   *) ac_try_echo=$ac_try;;
2399 esac
2400 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2401   (eval "$ac_try") 2>&5
2402   ac_status=$?
2403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2404   (exit $ac_status); }; }; then
2405   ac_compiler_gnu=yes
2406 else
2407   echo "$as_me: failed program was:" >&5
2408 sed 's/^/| /' conftest.$ac_ext >&5
2409
2410         ac_compiler_gnu=no
2411 fi
2412
2413 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2414 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2415
2416 fi
2417 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2418 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2419 GCC=`test $ac_compiler_gnu = yes && echo yes`
2420 ac_test_CFLAGS=${CFLAGS+set}
2421 ac_save_CFLAGS=$CFLAGS
2422 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2423 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2424 if test "${ac_cv_prog_cc_g+set}" = set; then
2425   echo $ECHO_N "(cached) $ECHO_C" >&6
2426 else
2427   ac_save_c_werror_flag=$ac_c_werror_flag
2428    ac_c_werror_flag=yes
2429    ac_cv_prog_cc_g=no
2430    CFLAGS="-g"
2431    cat >conftest.$ac_ext <<_ACEOF
2432 /* confdefs.h.  */
2433 _ACEOF
2434 cat confdefs.h >>conftest.$ac_ext
2435 cat >>conftest.$ac_ext <<_ACEOF
2436 /* end confdefs.h.  */
2437
2438 int
2439 main ()
2440 {
2441
2442   ;
2443   return 0;
2444 }
2445 _ACEOF
2446 rm -f conftest.$ac_objext
2447 if { (ac_try="$ac_compile"
2448 case "(($ac_try" in
2449   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2450   *) ac_try_echo=$ac_try;;
2451 esac
2452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2453   (eval "$ac_compile") 2>conftest.er1
2454   ac_status=$?
2455   grep -v '^ *+' conftest.er1 >conftest.err
2456   rm -f conftest.er1
2457   cat conftest.err >&5
2458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2459   (exit $ac_status); } &&
2460          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2461   { (case "(($ac_try" in
2462   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2463   *) ac_try_echo=$ac_try;;
2464 esac
2465 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2466   (eval "$ac_try") 2>&5
2467   ac_status=$?
2468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2469   (exit $ac_status); }; } &&
2470          { ac_try='test -s conftest.$ac_objext'
2471   { (case "(($ac_try" in
2472   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2473   *) ac_try_echo=$ac_try;;
2474 esac
2475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2476   (eval "$ac_try") 2>&5
2477   ac_status=$?
2478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2479   (exit $ac_status); }; }; then
2480   ac_cv_prog_cc_g=yes
2481 else
2482   echo "$as_me: failed program was:" >&5
2483 sed 's/^/| /' conftest.$ac_ext >&5
2484
2485         CFLAGS=""
2486       cat >conftest.$ac_ext <<_ACEOF
2487 /* confdefs.h.  */
2488 _ACEOF
2489 cat confdefs.h >>conftest.$ac_ext
2490 cat >>conftest.$ac_ext <<_ACEOF
2491 /* end confdefs.h.  */
2492
2493 int
2494 main ()
2495 {
2496
2497   ;
2498   return 0;
2499 }
2500 _ACEOF
2501 rm -f conftest.$ac_objext
2502 if { (ac_try="$ac_compile"
2503 case "(($ac_try" in
2504   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2505   *) ac_try_echo=$ac_try;;
2506 esac
2507 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2508   (eval "$ac_compile") 2>conftest.er1
2509   ac_status=$?
2510   grep -v '^ *+' conftest.er1 >conftest.err
2511   rm -f conftest.er1
2512   cat conftest.err >&5
2513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2514   (exit $ac_status); } &&
2515          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2516   { (case "(($ac_try" in
2517   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2518   *) ac_try_echo=$ac_try;;
2519 esac
2520 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2521   (eval "$ac_try") 2>&5
2522   ac_status=$?
2523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2524   (exit $ac_status); }; } &&
2525          { ac_try='test -s conftest.$ac_objext'
2526   { (case "(($ac_try" in
2527   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2528   *) ac_try_echo=$ac_try;;
2529 esac
2530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2531   (eval "$ac_try") 2>&5
2532   ac_status=$?
2533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2534   (exit $ac_status); }; }; then
2535   :
2536 else
2537   echo "$as_me: failed program was:" >&5
2538 sed 's/^/| /' conftest.$ac_ext >&5
2539
2540         ac_c_werror_flag=$ac_save_c_werror_flag
2541          CFLAGS="-g"
2542          cat >conftest.$ac_ext <<_ACEOF
2543 /* confdefs.h.  */
2544 _ACEOF
2545 cat confdefs.h >>conftest.$ac_ext
2546 cat >>conftest.$ac_ext <<_ACEOF
2547 /* end confdefs.h.  */
2548
2549 int
2550 main ()
2551 {
2552
2553   ;
2554   return 0;
2555 }
2556 _ACEOF
2557 rm -f conftest.$ac_objext
2558 if { (ac_try="$ac_compile"
2559 case "(($ac_try" in
2560   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2561   *) ac_try_echo=$ac_try;;
2562 esac
2563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2564   (eval "$ac_compile") 2>conftest.er1
2565   ac_status=$?
2566   grep -v '^ *+' conftest.er1 >conftest.err
2567   rm -f conftest.er1
2568   cat conftest.err >&5
2569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2570   (exit $ac_status); } &&
2571          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2572   { (case "(($ac_try" in
2573   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2574   *) ac_try_echo=$ac_try;;
2575 esac
2576 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2577   (eval "$ac_try") 2>&5
2578   ac_status=$?
2579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2580   (exit $ac_status); }; } &&
2581          { ac_try='test -s conftest.$ac_objext'
2582   { (case "(($ac_try" in
2583   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2584   *) ac_try_echo=$ac_try;;
2585 esac
2586 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2587   (eval "$ac_try") 2>&5
2588   ac_status=$?
2589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2590   (exit $ac_status); }; }; then
2591   ac_cv_prog_cc_g=yes
2592 else
2593   echo "$as_me: failed program was:" >&5
2594 sed 's/^/| /' conftest.$ac_ext >&5
2595
2596
2597 fi
2598
2599 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2600 fi
2601
2602 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2603 fi
2604
2605 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2606    ac_c_werror_flag=$ac_save_c_werror_flag
2607 fi
2608 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2609 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2610 if test "$ac_test_CFLAGS" = set; then
2611   CFLAGS=$ac_save_CFLAGS
2612 elif test $ac_cv_prog_cc_g = yes; then
2613   if test "$GCC" = yes; then
2614     CFLAGS="-g -O2"
2615   else
2616     CFLAGS="-g"
2617   fi
2618 else
2619   if test "$GCC" = yes; then
2620     CFLAGS="-O2"
2621   else
2622     CFLAGS=
2623   fi
2624 fi
2625 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2626 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2627 if test "${ac_cv_prog_cc_c89+set}" = set; then
2628   echo $ECHO_N "(cached) $ECHO_C" >&6
2629 else
2630   ac_cv_prog_cc_c89=no
2631 ac_save_CC=$CC
2632 cat >conftest.$ac_ext <<_ACEOF
2633 /* confdefs.h.  */
2634 _ACEOF
2635 cat confdefs.h >>conftest.$ac_ext
2636 cat >>conftest.$ac_ext <<_ACEOF
2637 /* end confdefs.h.  */
2638 #include <stdarg.h>
2639 #include <stdio.h>
2640 #include <sys/types.h>
2641 #include <sys/stat.h>
2642 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2643 struct buf { int x; };
2644 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2645 static char *e (p, i)
2646      char **p;
2647      int i;
2648 {
2649   return p[i];
2650 }
2651 static char *f (char * (*g) (char **, int), char **p, ...)
2652 {
2653   char *s;
2654   va_list v;
2655   va_start (v,p);
2656   s = g (p, va_arg (v,int));
2657   va_end (v);
2658   return s;
2659 }
2660
2661 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2662    function prototypes and stuff, but not '\xHH' hex character constants.
2663    These don't provoke an error unfortunately, instead are silently treated
2664    as 'x'.  The following induces an error, until -std is added to get
2665    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2666    array size at least.  It's necessary to write '\x00'==0 to get something
2667    that's true only with -std.  */
2668 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2669
2670 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2671    inside strings and character constants.  */
2672 #define FOO(x) 'x'
2673 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2674
2675 int test (int i, double x);
2676 struct s1 {int (*f) (int a);};
2677 struct s2 {int (*f) (double a);};
2678 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2679 int argc;
2680 char **argv;
2681 int
2682 main ()
2683 {
2684 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2685   ;
2686   return 0;
2687 }
2688 _ACEOF
2689 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2690         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2691 do
2692   CC="$ac_save_CC $ac_arg"
2693   rm -f conftest.$ac_objext
2694 if { (ac_try="$ac_compile"
2695 case "(($ac_try" in
2696   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2697   *) ac_try_echo=$ac_try;;
2698 esac
2699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2700   (eval "$ac_compile") 2>conftest.er1
2701   ac_status=$?
2702   grep -v '^ *+' conftest.er1 >conftest.err
2703   rm -f conftest.er1
2704   cat conftest.err >&5
2705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2706   (exit $ac_status); } &&
2707          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2708   { (case "(($ac_try" in
2709   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2710   *) ac_try_echo=$ac_try;;
2711 esac
2712 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2713   (eval "$ac_try") 2>&5
2714   ac_status=$?
2715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2716   (exit $ac_status); }; } &&
2717          { ac_try='test -s conftest.$ac_objext'
2718   { (case "(($ac_try" in
2719   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2720   *) ac_try_echo=$ac_try;;
2721 esac
2722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2723   (eval "$ac_try") 2>&5
2724   ac_status=$?
2725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2726   (exit $ac_status); }; }; then
2727   ac_cv_prog_cc_c89=$ac_arg
2728 else
2729   echo "$as_me: failed program was:" >&5
2730 sed 's/^/| /' conftest.$ac_ext >&5
2731
2732
2733 fi
2734
2735 rm -f core conftest.err conftest.$ac_objext
2736   test "x$ac_cv_prog_cc_c89" != "xno" && break
2737 done
2738 rm -f conftest.$ac_ext
2739 CC=$ac_save_CC
2740
2741 fi
2742 # AC_CACHE_VAL
2743 case "x$ac_cv_prog_cc_c89" in
2744   x)
2745     { echo "$as_me:$LINENO: result: none needed" >&5
2746 echo "${ECHO_T}none needed" >&6; } ;;
2747   xno)
2748     { echo "$as_me:$LINENO: result: unsupported" >&5
2749 echo "${ECHO_T}unsupported" >&6; } ;;
2750   *)
2751     CC="$CC $ac_cv_prog_cc_c89"
2752     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2753 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2754 esac
2755
2756
2757 ac_ext=c
2758 ac_cpp='$CPP $CPPFLAGS'
2759 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2760 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2761 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2762
2763 ac_ext=cpp
2764 ac_cpp='$CXXCPP $CPPFLAGS'
2765 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2766 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2767 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2768 if test -z "$CXX"; then
2769   if test -n "$CCC"; then
2770     CXX=$CCC
2771   else
2772     if test -n "$ac_tool_prefix"; then
2773   for ac_prog in clang++ llvm-g++ g++
2774   do
2775     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2776 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2777 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2778 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2779 if test "${ac_cv_prog_CXX+set}" = set; then
2780   echo $ECHO_N "(cached) $ECHO_C" >&6
2781 else
2782   if test -n "$CXX"; then
2783   ac_cv_prog_CXX="$CXX" # Let the user override the test.
2784 else
2785 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2786 for as_dir in $PATH
2787 do
2788   IFS=$as_save_IFS
2789   test -z "$as_dir" && as_dir=.
2790   for ac_exec_ext in '' $ac_executable_extensions; do
2791   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2792     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2793     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2794     break 2
2795   fi
2796 done
2797 done
2798 IFS=$as_save_IFS
2799
2800 fi
2801 fi
2802 CXX=$ac_cv_prog_CXX
2803 if test -n "$CXX"; then
2804   { echo "$as_me:$LINENO: result: $CXX" >&5
2805 echo "${ECHO_T}$CXX" >&6; }
2806 else
2807   { echo "$as_me:$LINENO: result: no" >&5
2808 echo "${ECHO_T}no" >&6; }
2809 fi
2810
2811
2812     test -n "$CXX" && break
2813   done
2814 fi
2815 if test -z "$CXX"; then
2816   ac_ct_CXX=$CXX
2817   for ac_prog in clang++ llvm-g++ g++
2818 do
2819   # Extract the first word of "$ac_prog", so it can be a program name with args.
2820 set dummy $ac_prog; ac_word=$2
2821 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2822 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2823 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2824   echo $ECHO_N "(cached) $ECHO_C" >&6
2825 else
2826   if test -n "$ac_ct_CXX"; then
2827   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2828 else
2829 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2830 for as_dir in $PATH
2831 do
2832   IFS=$as_save_IFS
2833   test -z "$as_dir" && as_dir=.
2834   for ac_exec_ext in '' $ac_executable_extensions; do
2835   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2836     ac_cv_prog_ac_ct_CXX="$ac_prog"
2837     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2838     break 2
2839   fi
2840 done
2841 done
2842 IFS=$as_save_IFS
2843
2844 fi
2845 fi
2846 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2847 if test -n "$ac_ct_CXX"; then
2848   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2849 echo "${ECHO_T}$ac_ct_CXX" >&6; }
2850 else
2851   { echo "$as_me:$LINENO: result: no" >&5
2852 echo "${ECHO_T}no" >&6; }
2853 fi
2854
2855
2856   test -n "$ac_ct_CXX" && break
2857 done
2858
2859   if test "x$ac_ct_CXX" = x; then
2860     CXX="g++"
2861   else
2862     case $cross_compiling:$ac_tool_warned in
2863 yes:)
2864 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2865 whose name does not start with the host triplet.  If you think this
2866 configuration is useful to you, please write to autoconf@gnu.org." >&5
2867 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2868 whose name does not start with the host triplet.  If you think this
2869 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2870 ac_tool_warned=yes ;;
2871 esac
2872     CXX=$ac_ct_CXX
2873   fi
2874 fi
2875
2876   fi
2877 fi
2878 # Provide some information about the compiler.
2879 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
2880 ac_compiler=`set X $ac_compile; echo $2`
2881 { (ac_try="$ac_compiler --version >&5"
2882 case "(($ac_try" in
2883   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2884   *) ac_try_echo=$ac_try;;
2885 esac
2886 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2887   (eval "$ac_compiler --version >&5") 2>&5
2888   ac_status=$?
2889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2890   (exit $ac_status); }
2891 { (ac_try="$ac_compiler -v >&5"
2892 case "(($ac_try" in
2893   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2894   *) ac_try_echo=$ac_try;;
2895 esac
2896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2897   (eval "$ac_compiler -v >&5") 2>&5
2898   ac_status=$?
2899   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2900   (exit $ac_status); }
2901 { (ac_try="$ac_compiler -V >&5"
2902 case "(($ac_try" in
2903   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2904   *) ac_try_echo=$ac_try;;
2905 esac
2906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2907   (eval "$ac_compiler -V >&5") 2>&5
2908   ac_status=$?
2909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2910   (exit $ac_status); }
2911
2912 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2913 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
2914 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2915   echo $ECHO_N "(cached) $ECHO_C" >&6
2916 else
2917   cat >conftest.$ac_ext <<_ACEOF
2918 /* confdefs.h.  */
2919 _ACEOF
2920 cat confdefs.h >>conftest.$ac_ext
2921 cat >>conftest.$ac_ext <<_ACEOF
2922 /* end confdefs.h.  */
2923
2924 int
2925 main ()
2926 {
2927 #ifndef __GNUC__
2928        choke me
2929 #endif
2930
2931   ;
2932   return 0;
2933 }
2934 _ACEOF
2935 rm -f conftest.$ac_objext
2936 if { (ac_try="$ac_compile"
2937 case "(($ac_try" in
2938   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2939   *) ac_try_echo=$ac_try;;
2940 esac
2941 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2942   (eval "$ac_compile") 2>conftest.er1
2943   ac_status=$?
2944   grep -v '^ *+' conftest.er1 >conftest.err
2945   rm -f conftest.er1
2946   cat conftest.err >&5
2947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2948   (exit $ac_status); } &&
2949          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2950   { (case "(($ac_try" in
2951   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2952   *) ac_try_echo=$ac_try;;
2953 esac
2954 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2955   (eval "$ac_try") 2>&5
2956   ac_status=$?
2957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2958   (exit $ac_status); }; } &&
2959          { ac_try='test -s conftest.$ac_objext'
2960   { (case "(($ac_try" in
2961   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2962   *) ac_try_echo=$ac_try;;
2963 esac
2964 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2965   (eval "$ac_try") 2>&5
2966   ac_status=$?
2967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2968   (exit $ac_status); }; }; then
2969   ac_compiler_gnu=yes
2970 else
2971   echo "$as_me: failed program was:" >&5
2972 sed 's/^/| /' conftest.$ac_ext >&5
2973
2974         ac_compiler_gnu=no
2975 fi
2976
2977 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2978 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2979
2980 fi
2981 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2982 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
2983 GXX=`test $ac_compiler_gnu = yes && echo yes`
2984 ac_test_CXXFLAGS=${CXXFLAGS+set}
2985 ac_save_CXXFLAGS=$CXXFLAGS
2986 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2987 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
2988 if test "${ac_cv_prog_cxx_g+set}" = set; then
2989   echo $ECHO_N "(cached) $ECHO_C" >&6
2990 else
2991   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
2992    ac_cxx_werror_flag=yes
2993    ac_cv_prog_cxx_g=no
2994    CXXFLAGS="-g"
2995    cat >conftest.$ac_ext <<_ACEOF
2996 /* confdefs.h.  */
2997 _ACEOF
2998 cat confdefs.h >>conftest.$ac_ext
2999 cat >>conftest.$ac_ext <<_ACEOF
3000 /* end confdefs.h.  */
3001
3002 int
3003 main ()
3004 {
3005
3006   ;
3007   return 0;
3008 }
3009 _ACEOF
3010 rm -f conftest.$ac_objext
3011 if { (ac_try="$ac_compile"
3012 case "(($ac_try" in
3013   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3014   *) ac_try_echo=$ac_try;;
3015 esac
3016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3017   (eval "$ac_compile") 2>conftest.er1
3018   ac_status=$?
3019   grep -v '^ *+' conftest.er1 >conftest.err
3020   rm -f conftest.er1
3021   cat conftest.err >&5
3022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3023   (exit $ac_status); } &&
3024          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3025   { (case "(($ac_try" in
3026   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3027   *) ac_try_echo=$ac_try;;
3028 esac
3029 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3030   (eval "$ac_try") 2>&5
3031   ac_status=$?
3032   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3033   (exit $ac_status); }; } &&
3034          { ac_try='test -s conftest.$ac_objext'
3035   { (case "(($ac_try" in
3036   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3037   *) ac_try_echo=$ac_try;;
3038 esac
3039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3040   (eval "$ac_try") 2>&5
3041   ac_status=$?
3042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3043   (exit $ac_status); }; }; then
3044   ac_cv_prog_cxx_g=yes
3045 else
3046   echo "$as_me: failed program was:" >&5
3047 sed 's/^/| /' conftest.$ac_ext >&5
3048
3049         CXXFLAGS=""
3050       cat >conftest.$ac_ext <<_ACEOF
3051 /* confdefs.h.  */
3052 _ACEOF
3053 cat confdefs.h >>conftest.$ac_ext
3054 cat >>conftest.$ac_ext <<_ACEOF
3055 /* end confdefs.h.  */
3056
3057 int
3058 main ()
3059 {
3060
3061   ;
3062   return 0;
3063 }
3064 _ACEOF
3065 rm -f conftest.$ac_objext
3066 if { (ac_try="$ac_compile"
3067 case "(($ac_try" in
3068   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3069   *) ac_try_echo=$ac_try;;
3070 esac
3071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3072   (eval "$ac_compile") 2>conftest.er1
3073   ac_status=$?
3074   grep -v '^ *+' conftest.er1 >conftest.err
3075   rm -f conftest.er1
3076   cat conftest.err >&5
3077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3078   (exit $ac_status); } &&
3079          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3080   { (case "(($ac_try" in
3081   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3082   *) ac_try_echo=$ac_try;;
3083 esac
3084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3085   (eval "$ac_try") 2>&5
3086   ac_status=$?
3087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3088   (exit $ac_status); }; } &&
3089          { ac_try='test -s conftest.$ac_objext'
3090   { (case "(($ac_try" in
3091   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3092   *) ac_try_echo=$ac_try;;
3093 esac
3094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3095   (eval "$ac_try") 2>&5
3096   ac_status=$?
3097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3098   (exit $ac_status); }; }; then
3099   :
3100 else
3101   echo "$as_me: failed program was:" >&5
3102 sed 's/^/| /' conftest.$ac_ext >&5
3103
3104         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3105          CXXFLAGS="-g"
3106          cat >conftest.$ac_ext <<_ACEOF
3107 /* confdefs.h.  */
3108 _ACEOF
3109 cat confdefs.h >>conftest.$ac_ext
3110 cat >>conftest.$ac_ext <<_ACEOF
3111 /* end confdefs.h.  */
3112
3113 int
3114 main ()
3115 {
3116
3117   ;
3118   return 0;
3119 }
3120 _ACEOF
3121 rm -f conftest.$ac_objext
3122 if { (ac_try="$ac_compile"
3123 case "(($ac_try" in
3124   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3125   *) ac_try_echo=$ac_try;;
3126 esac
3127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3128   (eval "$ac_compile") 2>conftest.er1
3129   ac_status=$?
3130   grep -v '^ *+' conftest.er1 >conftest.err
3131   rm -f conftest.er1
3132   cat conftest.err >&5
3133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3134   (exit $ac_status); } &&
3135          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3136   { (case "(($ac_try" in
3137   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3138   *) ac_try_echo=$ac_try;;
3139 esac
3140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3141   (eval "$ac_try") 2>&5
3142   ac_status=$?
3143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3144   (exit $ac_status); }; } &&
3145          { ac_try='test -s conftest.$ac_objext'
3146   { (case "(($ac_try" in
3147   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3148   *) ac_try_echo=$ac_try;;
3149 esac
3150 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3151   (eval "$ac_try") 2>&5
3152   ac_status=$?
3153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3154   (exit $ac_status); }; }; then
3155   ac_cv_prog_cxx_g=yes
3156 else
3157   echo "$as_me: failed program was:" >&5
3158 sed 's/^/| /' conftest.$ac_ext >&5
3159
3160
3161 fi
3162
3163 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3164 fi
3165
3166 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3167 fi
3168
3169 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3170    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3171 fi
3172 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3173 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3174 if test "$ac_test_CXXFLAGS" = set; then
3175   CXXFLAGS=$ac_save_CXXFLAGS
3176 elif test $ac_cv_prog_cxx_g = yes; then
3177   if test "$GXX" = yes; then
3178     CXXFLAGS="-g -O2"
3179   else
3180     CXXFLAGS="-g"
3181   fi
3182 else
3183   if test "$GXX" = yes; then
3184     CXXFLAGS="-O2"
3185   else
3186     CXXFLAGS=
3187   fi
3188 fi
3189 ac_ext=c
3190 ac_cpp='$CPP $CPPFLAGS'
3191 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3192 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3193 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3194
3195 ac_ext=c
3196 ac_cpp='$CPP $CPPFLAGS'
3197 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3198 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3199 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3200 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3201 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3202 # On Suns, sometimes $CPP names a directory.
3203 if test -n "$CPP" && test -d "$CPP"; then
3204   CPP=
3205 fi
3206 if test -z "$CPP"; then
3207   if test "${ac_cv_prog_CPP+set}" = set; then
3208   echo $ECHO_N "(cached) $ECHO_C" >&6
3209 else
3210       # Double quotes because CPP needs to be expanded
3211     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3212     do
3213       ac_preproc_ok=false
3214 for ac_c_preproc_warn_flag in '' yes
3215 do
3216   # Use a header file that comes with gcc, so configuring glibc
3217   # with a fresh cross-compiler works.
3218   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3219   # <limits.h> exists even on freestanding compilers.
3220   # On the NeXT, cc -E runs the code through the compiler's parser,
3221   # not just through cpp. "Syntax error" is here to catch this case.
3222   cat >conftest.$ac_ext <<_ACEOF
3223 /* confdefs.h.  */
3224 _ACEOF
3225 cat confdefs.h >>conftest.$ac_ext
3226 cat >>conftest.$ac_ext <<_ACEOF
3227 /* end confdefs.h.  */
3228 #ifdef __STDC__
3229 # include <limits.h>
3230 #else
3231 # include <assert.h>
3232 #endif
3233                      Syntax error
3234 _ACEOF
3235 if { (ac_try="$ac_cpp conftest.$ac_ext"
3236 case "(($ac_try" in
3237   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3238   *) ac_try_echo=$ac_try;;
3239 esac
3240 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3241   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3242   ac_status=$?
3243   grep -v '^ *+' conftest.er1 >conftest.err
3244   rm -f conftest.er1
3245   cat conftest.err >&5
3246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3247   (exit $ac_status); } >/dev/null; then
3248   if test -s conftest.err; then
3249     ac_cpp_err=$ac_c_preproc_warn_flag
3250     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3251   else
3252     ac_cpp_err=
3253   fi
3254 else
3255   ac_cpp_err=yes
3256 fi
3257 if test -z "$ac_cpp_err"; then
3258   :
3259 else
3260   echo "$as_me: failed program was:" >&5
3261 sed 's/^/| /' conftest.$ac_ext >&5
3262
3263   # Broken: fails on valid input.
3264 continue
3265 fi
3266
3267 rm -f conftest.err conftest.$ac_ext
3268
3269   # OK, works on sane cases.  Now check whether nonexistent headers
3270   # can be detected and how.
3271   cat >conftest.$ac_ext <<_ACEOF
3272 /* confdefs.h.  */
3273 _ACEOF
3274 cat confdefs.h >>conftest.$ac_ext
3275 cat >>conftest.$ac_ext <<_ACEOF
3276 /* end confdefs.h.  */
3277 #include <ac_nonexistent.h>
3278 _ACEOF
3279 if { (ac_try="$ac_cpp conftest.$ac_ext"
3280 case "(($ac_try" in
3281   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3282   *) ac_try_echo=$ac_try;;
3283 esac
3284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3285   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3286   ac_status=$?
3287   grep -v '^ *+' conftest.er1 >conftest.err
3288   rm -f conftest.er1
3289   cat conftest.err >&5
3290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3291   (exit $ac_status); } >/dev/null; then
3292   if test -s conftest.err; then
3293     ac_cpp_err=$ac_c_preproc_warn_flag
3294     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3295   else
3296     ac_cpp_err=
3297   fi
3298 else
3299   ac_cpp_err=yes
3300 fi
3301 if test -z "$ac_cpp_err"; then
3302   # Broken: success on invalid input.
3303 continue
3304 else
3305   echo "$as_me: failed program was:" >&5
3306 sed 's/^/| /' conftest.$ac_ext >&5
3307
3308   # Passes both tests.
3309 ac_preproc_ok=:
3310 break
3311 fi
3312
3313 rm -f conftest.err conftest.$ac_ext
3314
3315 done
3316 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3317 rm -f conftest.err conftest.$ac_ext
3318 if $ac_preproc_ok; then
3319   break
3320 fi
3321
3322     done
3323     ac_cv_prog_CPP=$CPP
3324
3325 fi
3326   CPP=$ac_cv_prog_CPP
3327 else
3328   ac_cv_prog_CPP=$CPP
3329 fi
3330 { echo "$as_me:$LINENO: result: $CPP" >&5
3331 echo "${ECHO_T}$CPP" >&6; }
3332 ac_preproc_ok=false
3333 for ac_c_preproc_warn_flag in '' yes
3334 do
3335   # Use a header file that comes with gcc, so configuring glibc
3336   # with a fresh cross-compiler works.
3337   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3338   # <limits.h> exists even on freestanding compilers.
3339   # On the NeXT, cc -E runs the code through the compiler's parser,
3340   # not just through cpp. "Syntax error" is here to catch this case.
3341   cat >conftest.$ac_ext <<_ACEOF
3342 /* confdefs.h.  */
3343 _ACEOF
3344 cat confdefs.h >>conftest.$ac_ext
3345 cat >>conftest.$ac_ext <<_ACEOF
3346 /* end confdefs.h.  */
3347 #ifdef __STDC__
3348 # include <limits.h>
3349 #else
3350 # include <assert.h>
3351 #endif
3352                      Syntax error
3353 _ACEOF
3354 if { (ac_try="$ac_cpp conftest.$ac_ext"
3355 case "(($ac_try" in
3356   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3357   *) ac_try_echo=$ac_try;;
3358 esac
3359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3360   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3361   ac_status=$?
3362   grep -v '^ *+' conftest.er1 >conftest.err
3363   rm -f conftest.er1
3364   cat conftest.err >&5
3365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3366   (exit $ac_status); } >/dev/null; then
3367   if test -s conftest.err; then
3368     ac_cpp_err=$ac_c_preproc_warn_flag
3369     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3370   else
3371     ac_cpp_err=
3372   fi
3373 else
3374   ac_cpp_err=yes
3375 fi
3376 if test -z "$ac_cpp_err"; then
3377   :
3378 else
3379   echo "$as_me: failed program was:" >&5
3380 sed 's/^/| /' conftest.$ac_ext >&5
3381
3382   # Broken: fails on valid input.
3383 continue
3384 fi
3385
3386 rm -f conftest.err conftest.$ac_ext
3387
3388   # OK, works on sane cases.  Now check whether nonexistent headers
3389   # can be detected and how.
3390   cat >conftest.$ac_ext <<_ACEOF
3391 /* confdefs.h.  */
3392 _ACEOF
3393 cat confdefs.h >>conftest.$ac_ext
3394 cat >>conftest.$ac_ext <<_ACEOF
3395 /* end confdefs.h.  */
3396 #include <ac_nonexistent.h>
3397 _ACEOF
3398 if { (ac_try="$ac_cpp conftest.$ac_ext"
3399 case "(($ac_try" in
3400   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3401   *) ac_try_echo=$ac_try;;
3402 esac
3403 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3404   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3405   ac_status=$?
3406   grep -v '^ *+' conftest.er1 >conftest.err
3407   rm -f conftest.er1
3408   cat conftest.err >&5
3409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3410   (exit $ac_status); } >/dev/null; then
3411   if test -s conftest.err; then
3412     ac_cpp_err=$ac_c_preproc_warn_flag
3413     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3414   else
3415     ac_cpp_err=
3416   fi
3417 else
3418   ac_cpp_err=yes
3419 fi
3420 if test -z "$ac_cpp_err"; then
3421   # Broken: success on invalid input.
3422 continue
3423 else
3424   echo "$as_me: failed program was:" >&5
3425 sed 's/^/| /' conftest.$ac_ext >&5
3426
3427   # Passes both tests.
3428 ac_preproc_ok=:
3429 break
3430 fi
3431
3432 rm -f conftest.err conftest.$ac_ext
3433
3434 done
3435 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3436 rm -f conftest.err conftest.$ac_ext
3437 if $ac_preproc_ok; then
3438   :
3439 else
3440   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3441 See \`config.log' for more details." >&5
3442 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3443 See \`config.log' for more details." >&2;}
3444    { (exit 1); exit 1; }; }
3445 fi
3446
3447 ac_ext=c
3448 ac_cpp='$CPP $CPPFLAGS'
3449 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3450 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3451 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3452
3453
3454
3455
3456 if test -d ${srcdir}/projects/llvm-gcc ; then
3457   subdirs="$subdirs projects/llvm-gcc"
3458
3459 fi
3460
3461 if test -d ${srcdir}/projects/test-suite ; then
3462   subdirs="$subdirs projects/test-suite"
3463
3464 fi
3465
3466 if test -d ${srcdir}/projects/llvm-test ; then
3467   subdirs="$subdirs projects/llvm-test"
3468
3469 fi
3470
3471 if test -d ${srcdir}/projects/poolalloc ; then
3472   subdirs="$subdirs projects/poolalloc"
3473
3474 fi
3475
3476 if test -d ${srcdir}/projects/llvm-poolalloc ; then
3477   subdirs="$subdirs projects/llvm-poolalloc"
3478
3479 fi
3480
3481 for i in `ls ${srcdir}/projects`
3482 do
3483   if test -d ${srcdir}/projects/${i} ; then
3484     case ${i} in
3485       sample)       subdirs="$subdirs projects/sample"
3486     ;;
3487       privbracket)  subdirs="$subdirs projects/privbracket"
3488  ;;
3489       llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
3490  ;;
3491       llvm-reopt)   subdirs="$subdirs projects/llvm-reopt"
3492 ;;
3493       llvm-java)    subdirs="$subdirs projects/llvm-java"
3494  ;;
3495       llvm-tv)      subdirs="$subdirs projects/llvm-tv"
3496    ;;
3497       safecode)     subdirs="$subdirs projects/safecode"
3498  ;;
3499       llvm-kernel)  subdirs="$subdirs projects/llvm-kernel"
3500  ;;
3501       llvm-gcc)       ;;
3502       test-suite)     ;;
3503       llvm-test)      ;;
3504       poolalloc)      ;;
3505       llvm-poolalloc) ;;
3506       *)
3507         { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
3508 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
3509         ;;
3510     esac
3511   fi
3512 done
3513
3514 # Check whether --enable-polly was given.
3515 if test "${enable_polly+set}" = set; then
3516   enableval=$enable_polly;
3517 else
3518   enableval=default
3519 fi
3520
3521 case "$enableval" in
3522   yes) ENABLE_POLLY=1
3523  ;;
3524   no)  ENABLE_POLLY=0
3525  ;;
3526   default) ENABLE_POLLY=1
3527  ;;
3528   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&5
3529 echo "$as_me: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&2;}
3530    { (exit 1); exit 1; }; } ;;
3531 esac
3532
3533
3534 if (test -d ${srcdir}/tools/polly) && (test $ENABLE_POLLY -eq 1) ; then
3535   LLVM_HAS_POLLY=1
3536
3537   subdirs="$subdirs tools/polly"
3538
3539 fi
3540
3541
3542 # Make sure we can run config.sub.
3543 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3544   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3545 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3546    { (exit 1); exit 1; }; }
3547
3548 { echo "$as_me:$LINENO: checking build system type" >&5
3549 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3550 if test "${ac_cv_build+set}" = set; then
3551   echo $ECHO_N "(cached) $ECHO_C" >&6
3552 else
3553   ac_build_alias=$build_alias
3554 test "x$ac_build_alias" = x &&
3555   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3556 test "x$ac_build_alias" = x &&
3557   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3558 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3559    { (exit 1); exit 1; }; }
3560 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3561   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3562 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3563    { (exit 1); exit 1; }; }
3564
3565 fi
3566 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3567 echo "${ECHO_T}$ac_cv_build" >&6; }
3568 case $ac_cv_build in
3569 *-*-*) ;;
3570 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3571 echo "$as_me: error: invalid value of canonical build" >&2;}
3572    { (exit 1); exit 1; }; };;
3573 esac
3574 build=$ac_cv_build
3575 ac_save_IFS=$IFS; IFS='-'
3576 set x $ac_cv_build
3577 shift
3578 build_cpu=$1
3579 build_vendor=$2
3580 shift; shift
3581 # Remember, the first character of IFS is used to create $*,
3582 # except with old shells:
3583 build_os=$*
3584 IFS=$ac_save_IFS
3585 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3586
3587
3588 { echo "$as_me:$LINENO: checking host system type" >&5
3589 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3590 if test "${ac_cv_host+set}" = set; then
3591   echo $ECHO_N "(cached) $ECHO_C" >&6
3592 else
3593   if test "x$host_alias" = x; then
3594   ac_cv_host=$ac_cv_build
3595 else
3596   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3597     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3598 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3599    { (exit 1); exit 1; }; }
3600 fi
3601
3602 fi
3603 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3604 echo "${ECHO_T}$ac_cv_host" >&6; }
3605 case $ac_cv_host in
3606 *-*-*) ;;
3607 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3608 echo "$as_me: error: invalid value of canonical host" >&2;}
3609    { (exit 1); exit 1; }; };;
3610 esac
3611 host=$ac_cv_host
3612 ac_save_IFS=$IFS; IFS='-'
3613 set x $ac_cv_host
3614 shift
3615 host_cpu=$1
3616 host_vendor=$2
3617 shift; shift
3618 # Remember, the first character of IFS is used to create $*,
3619 # except with old shells:
3620 host_os=$*
3621 IFS=$ac_save_IFS
3622 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3623
3624
3625 { echo "$as_me:$LINENO: checking target system type" >&5
3626 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
3627 if test "${ac_cv_target+set}" = set; then
3628   echo $ECHO_N "(cached) $ECHO_C" >&6
3629 else
3630   if test "x$target_alias" = x; then
3631   ac_cv_target=$ac_cv_host
3632 else
3633   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3634     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
3635 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
3636    { (exit 1); exit 1; }; }
3637 fi
3638
3639 fi
3640 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
3641 echo "${ECHO_T}$ac_cv_target" >&6; }
3642 case $ac_cv_target in
3643 *-*-*) ;;
3644 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
3645 echo "$as_me: error: invalid value of canonical target" >&2;}
3646    { (exit 1); exit 1; }; };;
3647 esac
3648 target=$ac_cv_target
3649 ac_save_IFS=$IFS; IFS='-'
3650 set x $ac_cv_target
3651 shift
3652 target_cpu=$1
3653 target_vendor=$2
3654 shift; shift
3655 # Remember, the first character of IFS is used to create $*,
3656 # except with old shells:
3657 target_os=$*
3658 IFS=$ac_save_IFS
3659 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3660
3661
3662 # The aliases save the names the user supplied, while $host etc.
3663 # will get canonicalized.
3664 test -n "$target_alias" &&
3665   test "$program_prefix$program_suffix$program_transform_name" = \
3666     NONENONEs,x,x, &&
3667   program_prefix=${target_alias}-
3668
3669 { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
3670 echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
3671 if test "${llvm_cv_os_type+set}" = set; then
3672   echo $ECHO_N "(cached) $ECHO_C" >&6
3673 else
3674   case $host in
3675   *-*-aix*)
3676     llvm_cv_link_all_option="-Wl,--whole-archive"
3677     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3678     llvm_cv_os_type="AIX"
3679     llvm_cv_platform_type="Unix" ;;
3680   *-*-irix*)
3681     llvm_cv_link_all_option="-Wl,--whole-archive"
3682     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3683     llvm_cv_os_type="IRIX"
3684     llvm_cv_platform_type="Unix" ;;
3685   *-*-cygwin*)
3686     llvm_cv_link_all_option="-Wl,--whole-archive"
3687     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3688     llvm_cv_os_type="Cygwin"
3689     llvm_cv_platform_type="Unix" ;;
3690   *-*-darwin*)
3691     llvm_cv_link_all_option="-Wl,-all_load"
3692     llvm_cv_no_link_all_option="-Wl,-noall_load"
3693     llvm_cv_os_type="Darwin"
3694     llvm_cv_platform_type="Unix" ;;
3695   *-*-minix*)
3696     llvm_cv_link_all_option="-Wl,-all_load"
3697     llvm_cv_no_link_all_option="-Wl,-noall_load"
3698     llvm_cv_os_type="Minix"
3699     llvm_cv_platform_type="Unix" ;;
3700   *-*-freebsd*)
3701     llvm_cv_link_all_option="-Wl,--whole-archive"
3702     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3703     llvm_cv_os_type="FreeBSD"
3704     llvm_cv_platform_type="Unix" ;;
3705   *-*-openbsd*)
3706     llvm_cv_link_all_option="-Wl,--whole-archive"
3707     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3708     llvm_cv_os_type="OpenBSD"
3709     llvm_cv_platform_type="Unix" ;;
3710   *-*-netbsd*)
3711     llvm_cv_link_all_option="-Wl,--whole-archive"
3712     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3713     llvm_cv_os_type="NetBSD"
3714     llvm_cv_platform_type="Unix" ;;
3715   *-*-dragonfly*)
3716     llvm_cv_link_all_option="-Wl,--whole-archive"
3717     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3718     llvm_cv_os_type="DragonFly"
3719     llvm_cv_platform_type="Unix" ;;
3720   *-*-hpux*)
3721     llvm_cv_link_all_option="-Wl,--whole-archive"
3722     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3723     llvm_cv_os_type="HP-UX"
3724     llvm_cv_platform_type="Unix" ;;
3725   *-*-interix*)
3726     llvm_cv_link_all_option="-Wl,--whole-archive"
3727     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3728     llvm_cv_os_type="Interix"
3729     llvm_cv_platform_type="Unix" ;;
3730   *-*-linux*)
3731     llvm_cv_link_all_option="-Wl,--whole-archive"
3732     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3733     llvm_cv_os_type="Linux"
3734     llvm_cv_platform_type="Unix" ;;
3735   *-*-solaris*)
3736     llvm_cv_link_all_option="-Wl,-z,allextract"
3737     llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
3738     llvm_cv_os_type="SunOS"
3739     llvm_cv_platform_type="Unix" ;;
3740   *-*-auroraux*)
3741     llvm_cv_link_all_option="-Wl,-z,allextract"
3742     llvm_cv_link_all_option="-Wl,-z,defaultextract"
3743     llvm_cv_os_type="AuroraUX"
3744     llvm_cv_platform_type="Unix" ;;
3745   *-*-win32*)
3746     llvm_cv_link_all_option="-Wl,--whole-archive"
3747     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3748     llvm_cv_os_type="Win32"
3749     llvm_cv_platform_type="Win32" ;;
3750   *-*-mingw*)
3751     llvm_cv_link_all_option="-Wl,--whole-archive"
3752     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3753     llvm_cv_os_type="MingW"
3754     llvm_cv_platform_type="Win32" ;;
3755   *-*-haiku*)
3756     llvm_cv_link_all_option="-Wl,--whole-archive"
3757     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3758     llvm_cv_os_type="Haiku"
3759     llvm_cv_platform_type="Unix" ;;
3760   *-unknown-eabi*)
3761     llvm_cv_link_all_option="-Wl,--whole-archive"
3762     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3763     llvm_cv_os_type="Freestanding"
3764     llvm_cv_platform_type="Unix" ;;
3765   *-unknown-elf*)
3766     llvm_cv_link_all_option="-Wl,--whole-archive"
3767     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3768     llvm_cv_os_type="Freestanding"
3769     llvm_cv_platform_type="Unix" ;;
3770   *)
3771     llvm_cv_link_all_option=""
3772     llvm_cv_no_link_all_option=""
3773     llvm_cv_os_type="Unknown"
3774     llvm_cv_platform_type="Unknown" ;;
3775 esac
3776 fi
3777 { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
3778 echo "${ECHO_T}$llvm_cv_os_type" >&6; }
3779
3780 { echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
3781 echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
3782 if test "${llvm_cv_target_os_type+set}" = set; then
3783   echo $ECHO_N "(cached) $ECHO_C" >&6
3784 else
3785   case $target in
3786   *-*-aix*)
3787     llvm_cv_target_os_type="AIX" ;;
3788   *-*-irix*)
3789     llvm_cv_target_os_type="IRIX" ;;
3790   *-*-cygwin*)
3791     llvm_cv_target_os_type="Cygwin" ;;
3792   *-*-darwin*)
3793     llvm_cv_target_os_type="Darwin" ;;
3794   *-*-minix*)
3795     llvm_cv_target_os_type="Minix" ;;
3796   *-*-freebsd*)
3797     llvm_cv_target_os_type="FreeBSD" ;;
3798   *-*-openbsd*)
3799     llvm_cv_target_os_type="OpenBSD" ;;
3800   *-*-netbsd*)
3801     llvm_cv_target_os_type="NetBSD" ;;
3802   *-*-dragonfly*)
3803     llvm_cv_target_os_type="DragonFly" ;;
3804   *-*-hpux*)
3805     llvm_cv_target_os_type="HP-UX" ;;
3806   *-*-interix*)
3807     llvm_cv_target_os_type="Interix" ;;
3808   *-*-linux*)
3809     llvm_cv_target_os_type="Linux" ;;
3810   *-*-solaris*)
3811     llvm_cv_target_os_type="SunOS" ;;
3812   *-*-auroraux*)
3813     llvm_cv_target_os_type="AuroraUX" ;;
3814   *-*-win32*)
3815     llvm_cv_target_os_type="Win32" ;;
3816   *-*-mingw*)
3817     llvm_cv_target_os_type="MingW" ;;
3818   *-*-haiku*)
3819     llvm_cv_target_os_type="Haiku" ;;
3820   *-*-rtems*)
3821     llvm_cv_target_os_type="RTEMS" ;;
3822   *-*-nacl*)
3823     llvm_cv_target_os_type="NativeClient" ;;
3824   *-unknown-eabi*)
3825     llvm_cv_target_os_type="Freestanding" ;;
3826   *)
3827     llvm_cv_target_os_type="Unknown" ;;
3828 esac
3829 fi
3830 { echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
3831 echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
3832
3833 if test "$llvm_cv_os_type" = "Unknown" ; then
3834   { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
3835 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
3836    { (exit 1); exit 1; }; }
3837 fi
3838
3839 OS=$llvm_cv_os_type
3840
3841 HOST_OS=$llvm_cv_os_type
3842
3843 TARGET_OS=$llvm_cv_target_os_type
3844
3845
3846 LINKALL=$llvm_cv_link_all_option
3847
3848 NOLINKALL=$llvm_cv_no_link_all_option
3849
3850
3851 case $llvm_cv_platform_type in
3852   Unix)
3853
3854 cat >>confdefs.h <<\_ACEOF
3855 #define LLVM_ON_UNIX 1
3856 _ACEOF
3857
3858     LLVM_ON_UNIX=1
3859
3860     LLVM_ON_WIN32=0
3861
3862     ;;
3863   Win32)
3864
3865 cat >>confdefs.h <<\_ACEOF
3866 #define LLVM_ON_WIN32 1
3867 _ACEOF
3868
3869     LLVM_ON_UNIX=0
3870
3871     LLVM_ON_WIN32=1
3872
3873     ;;
3874 esac
3875
3876 { echo "$as_me:$LINENO: checking target architecture" >&5
3877 echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
3878 if test "${llvm_cv_target_arch+set}" = set; then
3879   echo $ECHO_N "(cached) $ECHO_C" >&6
3880 else
3881   case $target in
3882   i?86-*)                 llvm_cv_target_arch="x86" ;;
3883   amd64-* | x86_64-*)     llvm_cv_target_arch="x86_64" ;;
3884   sparc*-*)               llvm_cv_target_arch="Sparc" ;;
3885   powerpc*-*)             llvm_cv_target_arch="PowerPC" ;;
3886   alpha*-*)               llvm_cv_target_arch="Alpha" ;;
3887   arm*-*)                 llvm_cv_target_arch="ARM" ;;
3888   mips-*)                 llvm_cv_target_arch="Mips" ;;
3889   xcore-*)                llvm_cv_target_arch="XCore" ;;
3890   msp430-*)               llvm_cv_target_arch="MSP430" ;;
3891   s390x-*)                llvm_cv_target_arch="SystemZ" ;;
3892   bfin-*)                 llvm_cv_target_arch="Blackfin" ;;
3893   mblaze-*)               llvm_cv_target_arch="MBlaze" ;;
3894   ptx-*)                  llvm_cv_target_arch="PTX" ;;
3895   *)                      llvm_cv_target_arch="Unknown" ;;
3896 esac
3897 fi
3898 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
3899 echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
3900
3901 if test "$llvm_cv_target_arch" = "Unknown" ; then
3902   { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
3903 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
3904 fi
3905
3906 # Determine the LLVM native architecture for the target
3907 case "$llvm_cv_target_arch" in
3908     x86)     LLVM_NATIVE_ARCH="X86" ;;
3909     x86_64)  LLVM_NATIVE_ARCH="X86" ;;
3910     *)       LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
3911 esac
3912
3913 ARCH=$llvm_cv_target_arch
3914
3915
3916
3917
3918 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3919 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3920 if test "${ac_cv_path_GREP+set}" = set; then
3921   echo $ECHO_N "(cached) $ECHO_C" >&6
3922 else
3923   # Extract the first word of "grep ggrep" to use in msg output
3924 if test -z "$GREP"; then
3925 set dummy grep ggrep; ac_prog_name=$2
3926 if test "${ac_cv_path_GREP+set}" = set; then
3927   echo $ECHO_N "(cached) $ECHO_C" >&6
3928 else
3929   ac_path_GREP_found=false
3930 # Loop through the user's path and test for each of PROGNAME-LIST
3931 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3932 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3933 do
3934   IFS=$as_save_IFS
3935   test -z "$as_dir" && as_dir=.
3936   for ac_prog in grep ggrep; do
3937   for ac_exec_ext in '' $ac_executable_extensions; do
3938     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3939     { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3940     # Check for GNU ac_path_GREP and select it if it is found.
3941   # Check for GNU $ac_path_GREP
3942 case `"$ac_path_GREP" --version 2>&1` in
3943 *GNU*)
3944   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3945 *)
3946   ac_count=0
3947   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3948   while :
3949   do
3950     cat "conftest.in" "conftest.in" >"conftest.tmp"
3951     mv "conftest.tmp" "conftest.in"
3952     cp "conftest.in" "conftest.nl"
3953     echo 'GREP' >> "conftest.nl"
3954     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3955     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3956     ac_count=`expr $ac_count + 1`
3957     if test $ac_count -gt ${ac_path_GREP_max-0}; then
3958       # Best one so far, save it but keep looking for a better one
3959       ac_cv_path_GREP="$ac_path_GREP"
3960       ac_path_GREP_max=$ac_count
3961     fi
3962     # 10*(2^10) chars as input seems more than enough
3963     test $ac_count -gt 10 && break
3964   done
3965   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3966 esac
3967
3968
3969     $ac_path_GREP_found && break 3
3970   done
3971 done
3972
3973 done
3974 IFS=$as_save_IFS
3975
3976
3977 fi
3978
3979 GREP="$ac_cv_path_GREP"
3980 if test -z "$GREP"; then
3981   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3982 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3983    { (exit 1); exit 1; }; }
3984 fi
3985
3986 else
3987   ac_cv_path_GREP=$GREP
3988 fi
3989
3990
3991 fi
3992 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3993 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3994  GREP="$ac_cv_path_GREP"
3995
3996
3997 { echo "$as_me:$LINENO: checking for egrep" >&5
3998 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3999 if test "${ac_cv_path_EGREP+set}" = set; then
4000   echo $ECHO_N "(cached) $ECHO_C" >&6
4001 else
4002   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4003    then ac_cv_path_EGREP="$GREP -E"
4004    else
4005      # Extract the first word of "egrep" to use in msg output
4006 if test -z "$EGREP"; then
4007 set dummy egrep; ac_prog_name=$2
4008 if test "${ac_cv_path_EGREP+set}" = set; then
4009   echo $ECHO_N "(cached) $ECHO_C" >&6
4010 else
4011   ac_path_EGREP_found=false
4012 # Loop through the user's path and test for each of PROGNAME-LIST
4013 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4014 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4015 do
4016   IFS=$as_save_IFS
4017   test -z "$as_dir" && as_dir=.
4018   for ac_prog in egrep; do
4019   for ac_exec_ext in '' $ac_executable_extensions; do
4020     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4021     { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
4022     # Check for GNU ac_path_EGREP and select it if it is found.
4023   # Check for GNU $ac_path_EGREP
4024 case `"$ac_path_EGREP" --version 2>&1` in
4025 *GNU*)
4026   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4027 *)
4028   ac_count=0
4029   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4030   while :
4031   do
4032     cat "conftest.in" "conftest.in" >"conftest.tmp"
4033     mv "conftest.tmp" "conftest.in"
4034     cp "conftest.in" "conftest.nl"
4035     echo 'EGREP' >> "conftest.nl"
4036     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4037     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4038     ac_count=`expr $ac_count + 1`
4039     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4040       # Best one so far, save it but keep looking for a better one
4041       ac_cv_path_EGREP="$ac_path_EGREP"
4042       ac_path_EGREP_max=$ac_count
4043     fi
4044     # 10*(2^10) chars as input seems more than enough
4045     test $ac_count -gt 10 && break
4046   done
4047   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4048 esac
4049
4050
4051     $ac_path_EGREP_found && break 3
4052   done
4053 done
4054
4055 done
4056 IFS=$as_save_IFS
4057
4058
4059 fi
4060
4061 EGREP="$ac_cv_path_EGREP"
4062 if test -z "$EGREP"; then
4063   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4064 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4065    { (exit 1); exit 1; }; }
4066 fi
4067
4068 else
4069   ac_cv_path_EGREP=$EGREP
4070 fi
4071
4072
4073    fi
4074 fi
4075 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4076 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4077  EGREP="$ac_cv_path_EGREP"
4078
4079
4080 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4081 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4082 if test "${ac_cv_header_stdc+set}" = set; then
4083   echo $ECHO_N "(cached) $ECHO_C" >&6
4084 else
4085   cat >conftest.$ac_ext <<_ACEOF
4086 /* confdefs.h.  */
4087 _ACEOF
4088 cat confdefs.h >>conftest.$ac_ext
4089 cat >>conftest.$ac_ext <<_ACEOF
4090 /* end confdefs.h.  */
4091 #include <stdlib.h>
4092 #include <stdarg.h>
4093 #include <string.h>
4094 #include <float.h>
4095
4096 int
4097 main ()
4098 {
4099
4100   ;
4101   return 0;
4102 }
4103 _ACEOF
4104 rm -f conftest.$ac_objext
4105 if { (ac_try="$ac_compile"
4106 case "(($ac_try" in
4107   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4108   *) ac_try_echo=$ac_try;;
4109 esac
4110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4111   (eval "$ac_compile") 2>conftest.er1
4112   ac_status=$?
4113   grep -v '^ *+' conftest.er1 >conftest.err
4114   rm -f conftest.er1
4115   cat conftest.err >&5
4116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4117   (exit $ac_status); } &&
4118          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4119   { (case "(($ac_try" in
4120   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4121   *) ac_try_echo=$ac_try;;
4122 esac
4123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4124   (eval "$ac_try") 2>&5
4125   ac_status=$?
4126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4127   (exit $ac_status); }; } &&
4128          { ac_try='test -s conftest.$ac_objext'
4129   { (case "(($ac_try" in
4130   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4131   *) ac_try_echo=$ac_try;;
4132 esac
4133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4134   (eval "$ac_try") 2>&5
4135   ac_status=$?
4136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4137   (exit $ac_status); }; }; then
4138   ac_cv_header_stdc=yes
4139 else
4140   echo "$as_me: failed program was:" >&5
4141 sed 's/^/| /' conftest.$ac_ext >&5
4142
4143         ac_cv_header_stdc=no
4144 fi
4145
4146 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4147
4148 if test $ac_cv_header_stdc = yes; then
4149   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4150   cat >conftest.$ac_ext <<_ACEOF
4151 /* confdefs.h.  */
4152 _ACEOF
4153 cat confdefs.h >>conftest.$ac_ext
4154 cat >>conftest.$ac_ext <<_ACEOF
4155 /* end confdefs.h.  */
4156 #include <string.h>
4157
4158 _ACEOF
4159 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4160   $EGREP "memchr" >/dev/null 2>&1; then
4161   :
4162 else
4163   ac_cv_header_stdc=no
4164 fi
4165 rm -f conftest*
4166
4167 fi
4168
4169 if test $ac_cv_header_stdc = yes; then
4170   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4171   cat >conftest.$ac_ext <<_ACEOF
4172 /* confdefs.h.  */
4173 _ACEOF
4174 cat confdefs.h >>conftest.$ac_ext
4175 cat >>conftest.$ac_ext <<_ACEOF
4176 /* end confdefs.h.  */
4177 #include <stdlib.h>
4178
4179 _ACEOF
4180 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4181   $EGREP "free" >/dev/null 2>&1; then
4182   :
4183 else
4184   ac_cv_header_stdc=no
4185 fi
4186 rm -f conftest*
4187
4188 fi
4189
4190 if test $ac_cv_header_stdc = yes; then
4191   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4192   if test "$cross_compiling" = yes; then
4193   :
4194 else
4195   cat >conftest.$ac_ext <<_ACEOF
4196 /* confdefs.h.  */
4197 _ACEOF
4198 cat confdefs.h >>conftest.$ac_ext
4199 cat >>conftest.$ac_ext <<_ACEOF
4200 /* end confdefs.h.  */
4201 #include <ctype.h>
4202 #include <stdlib.h>
4203 #if ((' ' & 0x0FF) == 0x020)
4204 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4205 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4206 #else
4207 # define ISLOWER(c) \
4208                    (('a' <= (c) && (c) <= 'i') \
4209                      || ('j' <= (c) && (c) <= 'r') \
4210                      || ('s' <= (c) && (c) <= 'z'))
4211 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4212 #endif
4213
4214 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4215 int
4216 main ()
4217 {
4218   int i;
4219   for (i = 0; i < 256; i++)
4220     if (XOR (islower (i), ISLOWER (i))
4221         || toupper (i) != TOUPPER (i))
4222       return 2;
4223   return 0;
4224 }
4225 _ACEOF
4226 rm -f conftest$ac_exeext
4227 if { (ac_try="$ac_link"
4228 case "(($ac_try" in
4229   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4230   *) ac_try_echo=$ac_try;;
4231 esac
4232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4233   (eval "$ac_link") 2>&5
4234   ac_status=$?
4235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4236   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4237   { (case "(($ac_try" in
4238   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4239   *) ac_try_echo=$ac_try;;
4240 esac
4241 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4242   (eval "$ac_try") 2>&5
4243   ac_status=$?
4244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4245   (exit $ac_status); }; }; then
4246   :
4247 else
4248   echo "$as_me: program exited with status $ac_status" >&5
4249 echo "$as_me: failed program was:" >&5
4250 sed 's/^/| /' conftest.$ac_ext >&5
4251
4252 ( exit $ac_status )
4253 ac_cv_header_stdc=no
4254 fi
4255 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4256 fi
4257
4258
4259 fi
4260 fi
4261 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4262 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4263 if test $ac_cv_header_stdc = yes; then
4264
4265 cat >>confdefs.h <<\_ACEOF
4266 #define STDC_HEADERS 1
4267 _ACEOF
4268
4269 fi
4270
4271 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4272
4273
4274
4275
4276
4277
4278
4279
4280
4281 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4282                   inttypes.h stdint.h unistd.h
4283 do
4284 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4285 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4286 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4287 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4288   echo $ECHO_N "(cached) $ECHO_C" >&6
4289 else
4290   cat >conftest.$ac_ext <<_ACEOF
4291 /* confdefs.h.  */
4292 _ACEOF
4293 cat confdefs.h >>conftest.$ac_ext
4294 cat >>conftest.$ac_ext <<_ACEOF
4295 /* end confdefs.h.  */
4296 $ac_includes_default
4297
4298 #include <$ac_header>
4299 _ACEOF
4300 rm -f conftest.$ac_objext
4301 if { (ac_try="$ac_compile"
4302 case "(($ac_try" in
4303   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4304   *) ac_try_echo=$ac_try;;
4305 esac
4306 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4307   (eval "$ac_compile") 2>conftest.er1
4308   ac_status=$?
4309   grep -v '^ *+' conftest.er1 >conftest.err
4310   rm -f conftest.er1
4311   cat conftest.err >&5
4312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4313   (exit $ac_status); } &&
4314          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4315   { (case "(($ac_try" in
4316   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4317   *) ac_try_echo=$ac_try;;
4318 esac
4319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4320   (eval "$ac_try") 2>&5
4321   ac_status=$?
4322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4323   (exit $ac_status); }; } &&
4324          { ac_try='test -s conftest.$ac_objext'
4325   { (case "(($ac_try" in
4326   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4327   *) ac_try_echo=$ac_try;;
4328 esac
4329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4330   (eval "$ac_try") 2>&5
4331   ac_status=$?
4332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4333   (exit $ac_status); }; }; then
4334   eval "$as_ac_Header=yes"
4335 else
4336   echo "$as_me: failed program was:" >&5
4337 sed 's/^/| /' conftest.$ac_ext >&5
4338
4339         eval "$as_ac_Header=no"
4340 fi
4341
4342 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4343 fi
4344 ac_res=`eval echo '${'$as_ac_Header'}'`
4345                { echo "$as_me:$LINENO: result: $ac_res" >&5
4346 echo "${ECHO_T}$ac_res" >&6; }
4347 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4348   cat >>confdefs.h <<_ACEOF
4349 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4350 _ACEOF
4351
4352 fi
4353
4354 done
4355
4356
4357 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4358 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4359 if test "${ac_cv_c_bigendian+set}" = set; then
4360   echo $ECHO_N "(cached) $ECHO_C" >&6
4361 else
4362   # See if sys/param.h defines the BYTE_ORDER macro.
4363 cat >conftest.$ac_ext <<_ACEOF
4364 /* confdefs.h.  */
4365 _ACEOF
4366 cat confdefs.h >>conftest.$ac_ext
4367 cat >>conftest.$ac_ext <<_ACEOF
4368 /* end confdefs.h.  */
4369 #include <sys/types.h>
4370 #include <sys/param.h>
4371
4372 int
4373 main ()
4374 {
4375 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4376  bogus endian macros
4377 #endif
4378
4379   ;
4380   return 0;
4381 }
4382 _ACEOF
4383 rm -f conftest.$ac_objext
4384 if { (ac_try="$ac_compile"
4385 case "(($ac_try" in
4386   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4387   *) ac_try_echo=$ac_try;;
4388 esac
4389 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4390   (eval "$ac_compile") 2>conftest.er1
4391   ac_status=$?
4392   grep -v '^ *+' conftest.er1 >conftest.err
4393   rm -f conftest.er1
4394   cat conftest.err >&5
4395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4396   (exit $ac_status); } &&
4397          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4398   { (case "(($ac_try" in
4399   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4400   *) ac_try_echo=$ac_try;;
4401 esac
4402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4403   (eval "$ac_try") 2>&5
4404   ac_status=$?
4405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4406   (exit $ac_status); }; } &&
4407          { ac_try='test -s conftest.$ac_objext'
4408   { (case "(($ac_try" in
4409   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4410   *) ac_try_echo=$ac_try;;
4411 esac
4412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4413   (eval "$ac_try") 2>&5
4414   ac_status=$?
4415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4416   (exit $ac_status); }; }; then
4417   # It does; now see whether it defined to BIG_ENDIAN or not.
4418 cat >conftest.$ac_ext <<_ACEOF
4419 /* confdefs.h.  */
4420 _ACEOF
4421 cat confdefs.h >>conftest.$ac_ext
4422 cat >>conftest.$ac_ext <<_ACEOF
4423 /* end confdefs.h.  */
4424 #include <sys/types.h>
4425 #include <sys/param.h>
4426
4427 int
4428 main ()
4429 {
4430 #if BYTE_ORDER != BIG_ENDIAN
4431  not big endian
4432 #endif
4433
4434   ;
4435   return 0;
4436 }
4437 _ACEOF
4438 rm -f conftest.$ac_objext
4439 if { (ac_try="$ac_compile"
4440 case "(($ac_try" in
4441   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4442   *) ac_try_echo=$ac_try;;
4443 esac
4444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4445   (eval "$ac_compile") 2>conftest.er1
4446   ac_status=$?
4447   grep -v '^ *+' conftest.er1 >conftest.err
4448   rm -f conftest.er1
4449   cat conftest.err >&5
4450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4451   (exit $ac_status); } &&
4452          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4453   { (case "(($ac_try" in
4454   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4455   *) ac_try_echo=$ac_try;;
4456 esac
4457 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4458   (eval "$ac_try") 2>&5
4459   ac_status=$?
4460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4461   (exit $ac_status); }; } &&
4462          { ac_try='test -s conftest.$ac_objext'
4463   { (case "(($ac_try" in
4464   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4465   *) ac_try_echo=$ac_try;;
4466 esac
4467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4468   (eval "$ac_try") 2>&5
4469   ac_status=$?
4470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4471   (exit $ac_status); }; }; then
4472   ac_cv_c_bigendian=yes
4473 else
4474   echo "$as_me: failed program was:" >&5
4475 sed 's/^/| /' conftest.$ac_ext >&5
4476
4477         ac_cv_c_bigendian=no
4478 fi
4479
4480 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4481 else
4482   echo "$as_me: failed program was:" >&5
4483 sed 's/^/| /' conftest.$ac_ext >&5
4484
4485         # It does not; compile a test program.
4486 if test "$cross_compiling" = yes; then
4487   # try to guess the endianness by grepping values into an object file
4488   ac_cv_c_bigendian=unknown
4489   cat >conftest.$ac_ext <<_ACEOF
4490 /* confdefs.h.  */
4491 _ACEOF
4492 cat confdefs.h >>conftest.$ac_ext
4493 cat >>conftest.$ac_ext <<_ACEOF
4494 /* end confdefs.h.  */
4495 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4496 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4497 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4498 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4499 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4500 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4501 int
4502 main ()
4503 {
4504  _ascii (); _ebcdic ();
4505   ;
4506   return 0;
4507 }
4508 _ACEOF
4509 rm -f conftest.$ac_objext
4510 if { (ac_try="$ac_compile"
4511 case "(($ac_try" in
4512   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4513   *) ac_try_echo=$ac_try;;
4514 esac
4515 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4516   (eval "$ac_compile") 2>conftest.er1
4517   ac_status=$?
4518   grep -v '^ *+' conftest.er1 >conftest.err
4519   rm -f conftest.er1
4520   cat conftest.err >&5
4521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4522   (exit $ac_status); } &&
4523          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4524   { (case "(($ac_try" in
4525   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4526   *) ac_try_echo=$ac_try;;
4527 esac
4528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4529   (eval "$ac_try") 2>&5
4530   ac_status=$?
4531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4532   (exit $ac_status); }; } &&
4533          { ac_try='test -s conftest.$ac_objext'
4534   { (case "(($ac_try" in
4535   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4536   *) ac_try_echo=$ac_try;;
4537 esac
4538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4539   (eval "$ac_try") 2>&5
4540   ac_status=$?
4541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4542   (exit $ac_status); }; }; then
4543   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4544   ac_cv_c_bigendian=yes
4545 fi
4546 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4547   if test "$ac_cv_c_bigendian" = unknown; then
4548     ac_cv_c_bigendian=no
4549   else
4550     # finding both strings is unlikely to happen, but who knows?
4551     ac_cv_c_bigendian=unknown
4552   fi
4553 fi
4554 else
4555   echo "$as_me: failed program was:" >&5
4556 sed 's/^/| /' conftest.$ac_ext >&5
4557
4558
4559 fi
4560
4561 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4562 else
4563   cat >conftest.$ac_ext <<_ACEOF
4564 /* confdefs.h.  */
4565 _ACEOF
4566 cat confdefs.h >>conftest.$ac_ext
4567 cat >>conftest.$ac_ext <<_ACEOF
4568 /* end confdefs.h.  */
4569 $ac_includes_default
4570 int
4571 main ()
4572 {
4573
4574   /* Are we little or big endian?  From Harbison&Steele.  */
4575   union
4576   {
4577     long int l;
4578     char c[sizeof (long int)];
4579   } u;
4580   u.l = 1;
4581   return u.c[sizeof (long int) - 1] == 1;
4582
4583   ;
4584   return 0;
4585 }
4586 _ACEOF
4587 rm -f conftest$ac_exeext
4588 if { (ac_try="$ac_link"
4589 case "(($ac_try" in
4590   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4591   *) ac_try_echo=$ac_try;;
4592 esac
4593 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4594   (eval "$ac_link") 2>&5
4595   ac_status=$?
4596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4597   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4598   { (case "(($ac_try" in
4599   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4600   *) ac_try_echo=$ac_try;;
4601 esac
4602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4603   (eval "$ac_try") 2>&5
4604   ac_status=$?
4605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4606   (exit $ac_status); }; }; then
4607   ac_cv_c_bigendian=no
4608 else
4609   echo "$as_me: program exited with status $ac_status" >&5
4610 echo "$as_me: failed program was:" >&5
4611 sed 's/^/| /' conftest.$ac_ext >&5
4612
4613 ( exit $ac_status )
4614 ac_cv_c_bigendian=yes
4615 fi
4616 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4617 fi
4618
4619
4620 fi
4621
4622 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4623 fi
4624 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4625 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4626 case $ac_cv_c_bigendian in
4627   yes)
4628     ENDIAN=big
4629  ;;
4630   no)
4631     ENDIAN=little
4632  ;;
4633   *)
4634     { { echo "$as_me:$LINENO: error: unknown endianness
4635 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4636 echo "$as_me: error: unknown endianness
4637 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4638    { (exit 1); exit 1; }; } ;;
4639 esac
4640
4641
4642 if test "$cross_compiling" = yes; then
4643   LLVM_CROSS_COMPILING=1
4644
4645
4646 { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4647 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4648 if test "${ac_cv_build_exeext+set}" = set; then
4649   echo $ECHO_N "(cached) $ECHO_C" >&6
4650 else
4651   if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4652   ac_cv_build_exeext=.exe
4653 else
4654   ac_build_prefix=${build_alias}-
4655
4656   # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4657 set dummy ${ac_build_prefix}gcc; ac_word=$2
4658 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4659 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4660 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4661   echo $ECHO_N "(cached) $ECHO_C" >&6
4662 else
4663   if test -n "$BUILD_CC"; then
4664   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4665 else
4666 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4667 for as_dir in $PATH
4668 do
4669   IFS=$as_save_IFS
4670   test -z "$as_dir" && as_dir=.
4671   for ac_exec_ext in '' $ac_executable_extensions; do
4672   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4673     ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4674     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4675     break 2
4676   fi
4677 done
4678 done
4679 IFS=$as_save_IFS
4680
4681 fi
4682 fi
4683 BUILD_CC=$ac_cv_prog_BUILD_CC
4684 if test -n "$BUILD_CC"; then
4685   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4686 echo "${ECHO_T}$BUILD_CC" >&6; }
4687 else
4688   { echo "$as_me:$LINENO: result: no" >&5
4689 echo "${ECHO_T}no" >&6; }
4690 fi
4691
4692
4693   if test -z "$BUILD_CC"; then
4694      # Extract the first word of "gcc", so it can be a program name with args.
4695 set dummy gcc; ac_word=$2
4696 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4697 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4698 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4699   echo $ECHO_N "(cached) $ECHO_C" >&6
4700 else
4701   if test -n "$BUILD_CC"; then
4702   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4703 else
4704 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4705 for as_dir in $PATH
4706 do
4707   IFS=$as_save_IFS
4708   test -z "$as_dir" && as_dir=.
4709   for ac_exec_ext in '' $ac_executable_extensions; do
4710   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4711     ac_cv_prog_BUILD_CC="gcc"
4712     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4713     break 2
4714   fi
4715 done
4716 done
4717 IFS=$as_save_IFS
4718
4719 fi
4720 fi
4721 BUILD_CC=$ac_cv_prog_BUILD_CC
4722 if test -n "$BUILD_CC"; then
4723   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4724 echo "${ECHO_T}$BUILD_CC" >&6; }
4725 else
4726   { echo "$as_me:$LINENO: result: no" >&5
4727 echo "${ECHO_T}no" >&6; }
4728 fi
4729
4730
4731      if test -z "$BUILD_CC"; then
4732        # Extract the first word of "cc", so it can be a program name with args.
4733 set dummy cc; ac_word=$2
4734 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4735 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4736 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4737   echo $ECHO_N "(cached) $ECHO_C" >&6
4738 else
4739   if test -n "$BUILD_CC"; then
4740   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4741 else
4742   ac_prog_rejected=no
4743 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4744 for as_dir in $PATH
4745 do
4746   IFS=$as_save_IFS
4747   test -z "$as_dir" && as_dir=.
4748   for ac_exec_ext in '' $ac_executable_extensions; do
4749   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4750     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4751        ac_prog_rejected=yes
4752        continue
4753      fi
4754     ac_cv_prog_BUILD_CC="cc"
4755     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4756     break 2
4757   fi
4758 done
4759 done
4760 IFS=$as_save_IFS
4761
4762 if test $ac_prog_rejected = yes; then
4763   # We found a bogon in the path, so make sure we never use it.
4764   set dummy $ac_cv_prog_BUILD_CC
4765   shift
4766   if test $# != 0; then
4767     # We chose a different compiler from the bogus one.
4768     # However, it has the same basename, so the bogon will be chosen
4769     # first if we set BUILD_CC to just the basename; use the full file name.
4770     shift
4771     ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4772   fi
4773 fi
4774 fi
4775 fi
4776 BUILD_CC=$ac_cv_prog_BUILD_CC
4777 if test -n "$BUILD_CC"; then
4778   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4779 echo "${ECHO_T}$BUILD_CC" >&6; }
4780 else
4781   { echo "$as_me:$LINENO: result: no" >&5
4782 echo "${ECHO_T}no" >&6; }
4783 fi
4784
4785
4786      fi
4787   fi
4788   test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4789 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4790    { (exit 1); exit 1; }; }
4791   ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4792   rm -f conftest*
4793   echo 'int main () { return 0; }' > conftest.$ac_ext
4794   ac_cv_build_exeext=
4795   if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4796   (eval $ac_build_link) 2>&5
4797   ac_status=$?
4798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4799   (exit $ac_status); }; then
4800     for file in conftest.*; do
4801       case $file in
4802       *.c | *.o | *.obj | *.dSYM) ;;
4803       *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4804       esac
4805     done
4806   else
4807     { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4808 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4809    { (exit 1); exit 1; }; }
4810   fi
4811   rm -f conftest*
4812   test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4813 fi
4814 fi
4815
4816 BUILD_EXEEXT=""
4817 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4818 { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4819 echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4820 ac_build_exeext=$BUILD_EXEEXT
4821
4822   ac_build_prefix=${build_alias}-
4823   # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4824 set dummy ${ac_build_prefix}g++; ac_word=$2
4825 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4826 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4827 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4828   echo $ECHO_N "(cached) $ECHO_C" >&6
4829 else
4830   if test -n "$BUILD_CXX"; then
4831   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4832 else
4833 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4834 for as_dir in $PATH
4835 do
4836   IFS=$as_save_IFS
4837   test -z "$as_dir" && as_dir=.
4838   for ac_exec_ext in '' $ac_executable_extensions; do
4839   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4840     ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
4841     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4842     break 2
4843   fi
4844 done
4845 done
4846 IFS=$as_save_IFS
4847
4848 fi
4849 fi
4850 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4851 if test -n "$BUILD_CXX"; then
4852   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4853 echo "${ECHO_T}$BUILD_CXX" >&6; }
4854 else
4855   { echo "$as_me:$LINENO: result: no" >&5
4856 echo "${ECHO_T}no" >&6; }
4857 fi
4858
4859
4860   if test -z "$BUILD_CXX"; then
4861      # Extract the first word of "g++", so it can be a program name with args.
4862 set dummy g++; ac_word=$2
4863 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4864 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4865 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4866   echo $ECHO_N "(cached) $ECHO_C" >&6
4867 else
4868   if test -n "$BUILD_CXX"; then
4869   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4870 else
4871 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4872 for as_dir in $PATH
4873 do
4874   IFS=$as_save_IFS
4875   test -z "$as_dir" && as_dir=.
4876   for ac_exec_ext in '' $ac_executable_extensions; do
4877   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4878     ac_cv_prog_BUILD_CXX="g++"
4879     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4880     break 2
4881   fi
4882 done
4883 done
4884 IFS=$as_save_IFS
4885
4886 fi
4887 fi
4888 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4889 if test -n "$BUILD_CXX"; then
4890   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4891 echo "${ECHO_T}$BUILD_CXX" >&6; }
4892 else
4893   { echo "$as_me:$LINENO: result: no" >&5
4894 echo "${ECHO_T}no" >&6; }
4895 fi
4896
4897
4898      if test -z "$BUILD_CXX"; then
4899        # Extract the first word of "c++", so it can be a program name with args.
4900 set dummy c++; ac_word=$2
4901 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4902 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4903 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4904   echo $ECHO_N "(cached) $ECHO_C" >&6
4905 else
4906   if test -n "$BUILD_CXX"; then
4907   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4908 else
4909   ac_prog_rejected=no
4910 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4911 for as_dir in $PATH
4912 do
4913   IFS=$as_save_IFS
4914   test -z "$as_dir" && as_dir=.
4915   for ac_exec_ext in '' $ac_executable_extensions; do
4916   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4917     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4918        ac_prog_rejected=yes
4919        continue
4920      fi
4921     ac_cv_prog_BUILD_CXX="c++"
4922     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4923     break 2
4924   fi
4925 done
4926 done
4927 IFS=$as_save_IFS
4928
4929 if test $ac_prog_rejected = yes; then
4930   # We found a bogon in the path, so make sure we never use it.
4931   set dummy $ac_cv_prog_BUILD_CXX
4932   shift
4933   if test $# != 0; then
4934     # We chose a different compiler from the bogus one.
4935     # However, it has the same basename, so the bogon will be chosen
4936     # first if we set BUILD_CXX to just the basename; use the full file name.
4937     shift
4938     ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4939   fi
4940 fi
4941 fi
4942 fi
4943 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4944 if test -n "$BUILD_CXX"; then
4945   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4946 echo "${ECHO_T}$BUILD_CXX" >&6; }
4947 else
4948   { echo "$as_me:$LINENO: result: no" >&5
4949 echo "${ECHO_T}no" >&6; }
4950 fi
4951
4952
4953      fi
4954   fi
4955 else
4956   LLVM_CROSS_COMPILING=0
4957
4958 fi
4959
4960 if test -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
4961   cvsbuild="yes"
4962   optimize="no"
4963   CVSBUILD=CVSBUILD=1
4964
4965 else
4966   cvsbuild="no"
4967   optimize="yes"
4968 fi
4969
4970
4971 # Check whether --enable-optimized was given.
4972 if test "${enable_optimized+set}" = set; then
4973   enableval=$enable_optimized;
4974 else
4975   enableval=$optimize
4976 fi
4977
4978 if test ${enableval} = "no" ; then
4979   ENABLE_OPTIMIZED=
4980
4981 else
4982   ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4983
4984 fi
4985
4986 # Check whether --enable-profiling was given.
4987 if test "${enable_profiling+set}" = set; then
4988   enableval=$enable_profiling;
4989 else
4990   enableval="no"
4991 fi
4992
4993 if test ${enableval} = "no" ; then
4994   ENABLE_PROFILING=
4995
4996 else
4997   ENABLE_PROFILING=ENABLE_PROFILING=1
4998
4999 fi
5000
5001 # Check whether --enable-assertions was given.
5002 if test "${enable_assertions+set}" = set; then
5003   enableval=$enable_assertions;
5004 else
5005   enableval="yes"
5006 fi
5007
5008 if test ${enableval} = "yes" ; then
5009   DISABLE_ASSERTIONS=
5010
5011 else
5012   DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
5013
5014 fi
5015
5016 # Check whether --enable-expensive-checks was given.
5017 if test "${enable_expensive_checks+set}" = set; then
5018   enableval=$enable_expensive_checks;
5019 else
5020   enableval="no"
5021 fi
5022
5023 if test ${enableval} = "yes" ; then
5024   ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
5025
5026   EXPENSIVE_CHECKS=yes
5027
5028 else
5029   ENABLE_EXPENSIVE_CHECKS=
5030
5031   EXPENSIVE_CHECKS=no
5032
5033 fi
5034
5035 # Check whether --enable-debug-runtime was given.
5036 if test "${enable_debug_runtime+set}" = set; then
5037   enableval=$enable_debug_runtime;
5038 else
5039   enableval=no
5040 fi
5041
5042 if test ${enableval} = "no" ; then
5043   DEBUG_RUNTIME=
5044
5045 else
5046   DEBUG_RUNTIME=DEBUG_RUNTIME=1
5047
5048 fi
5049
5050 # Check whether --enable-debug-symbols was given.
5051 if test "${enable_debug_symbols+set}" = set; then
5052   enableval=$enable_debug_symbols;
5053 else
5054   enableval=no
5055 fi
5056
5057 if test ${enableval} = "no" ; then
5058   DEBUG_SYMBOLS=
5059
5060 else
5061   DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
5062
5063 fi
5064
5065 # Check whether --enable-jit was given.
5066 if test "${enable_jit+set}" = set; then
5067   enableval=$enable_jit;
5068 else
5069   enableval=default
5070 fi
5071
5072 if test ${enableval} = "no"
5073 then
5074   JIT=
5075
5076 else
5077   case "$llvm_cv_target_arch" in
5078     x86)         TARGET_HAS_JIT=1
5079  ;;
5080     Sparc)       TARGET_HAS_JIT=0
5081  ;;
5082     PowerPC)     TARGET_HAS_JIT=1
5083  ;;
5084     x86_64)      TARGET_HAS_JIT=1
5085  ;;
5086     Alpha)       TARGET_HAS_JIT=0
5087  ;;
5088     ARM)         TARGET_HAS_JIT=1
5089  ;;
5090     Mips)        TARGET_HAS_JIT=1
5091  ;;
5092     XCore)       TARGET_HAS_JIT=0
5093  ;;
5094     MSP430)      TARGET_HAS_JIT=0
5095  ;;
5096     SystemZ)     TARGET_HAS_JIT=0
5097  ;;
5098     Blackfin)    TARGET_HAS_JIT=0
5099  ;;
5100     MBlaze)      TARGET_HAS_JIT=0
5101  ;;
5102     PTX)         TARGET_HAS_JIT=0
5103  ;;
5104     *)           TARGET_HAS_JIT=0
5105  ;;
5106   esac
5107 fi
5108
5109 # Check whether --enable-docs was given.
5110 if test "${enable_docs+set}" = set; then
5111   enableval=$enable_docs;
5112 else
5113   enableval=default
5114 fi
5115
5116 case "$enableval" in
5117   yes) ENABLE_DOCS=1
5118  ;;
5119   no)  ENABLE_DOCS=0
5120  ;;
5121   default) ENABLE_DOCS=1
5122  ;;
5123   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&5
5124 echo "$as_me: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&2;}
5125    { (exit 1); exit 1; }; } ;;
5126 esac
5127
5128 # Check whether --enable-doxygen was given.
5129 if test "${enable_doxygen+set}" = set; then
5130   enableval=$enable_doxygen;
5131 else
5132   enableval=default
5133 fi
5134
5135 case "$enableval" in
5136   yes) ENABLE_DOXYGEN=1
5137  ;;
5138   no)  ENABLE_DOXYGEN=0
5139  ;;
5140   default) ENABLE_DOXYGEN=0
5141  ;;
5142   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
5143 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
5144    { (exit 1); exit 1; }; } ;;
5145 esac
5146
5147 # Check whether --enable-threads was given.
5148 if test "${enable_threads+set}" = set; then
5149   enableval=$enable_threads;
5150 else
5151   enableval=default
5152 fi
5153
5154 case "$enableval" in
5155   yes) ENABLE_THREADS=1
5156  ;;
5157   no)  ENABLE_THREADS=0
5158  ;;
5159   default) ENABLE_THREADS=1
5160  ;;
5161   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
5162 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
5163    { (exit 1); exit 1; }; } ;;
5164 esac
5165
5166 cat >>confdefs.h <<_ACEOF
5167 #define ENABLE_THREADS $ENABLE_THREADS
5168 _ACEOF
5169
5170
5171 # Check whether --enable-pthreads was given.
5172 if test "${enable_pthreads+set}" = set; then
5173   enableval=$enable_pthreads;
5174 else
5175   enableval=default
5176 fi
5177
5178 case "$enableval" in
5179   yes) ENABLE_PTHREADS=1
5180  ;;
5181   no)  ENABLE_PTHREADS=0
5182  ;;
5183   default) ENABLE_PTHREADS=1
5184  ;;
5185   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&5
5186 echo "$as_me: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&2;}
5187    { (exit 1); exit 1; }; } ;;
5188 esac
5189
5190 # Check whether --enable-pic was given.
5191 if test "${enable_pic+set}" = set; then
5192   enableval=$enable_pic;
5193 else
5194   enableval=default
5195 fi
5196
5197 case "$enableval" in
5198   yes) ENABLE_PIC=1
5199  ;;
5200   no)  ENABLE_PIC=0
5201  ;;
5202   default) ENABLE_PIC=1
5203  ;;
5204   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
5205 echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
5206    { (exit 1); exit 1; }; } ;;
5207 esac
5208
5209 cat >>confdefs.h <<_ACEOF
5210 #define ENABLE_PIC $ENABLE_PIC
5211 _ACEOF
5212
5213
5214 # Check whether --enable-shared was given.
5215 if test "${enable_shared+set}" = set; then
5216   enableval=$enable_shared;
5217 else
5218   enableval=default
5219 fi
5220
5221 case "$enableval" in
5222   yes) ENABLE_SHARED=1
5223  ;;
5224   no)  ENABLE_SHARED=0
5225  ;;
5226   default) ENABLE_SHARED=0
5227  ;;
5228   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5
5229 echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;}
5230    { (exit 1); exit 1; }; } ;;
5231 esac
5232
5233 # Check whether --enable-embed-stdcxx was given.
5234 if test "${enable_embed_stdcxx+set}" = set; then
5235   enableval=$enable_embed_stdcxx;
5236 else
5237   enableval=default
5238 fi
5239
5240 case "$enableval" in
5241   yes) ENABLE_EMBED_STDCXX=1
5242  ;;
5243   no)  ENABLE_EMBED_STDCXX=0
5244  ;;
5245   default) ENABLE_EMBED_STDCXX=1
5246  ;;
5247   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&5
5248 echo "$as_me: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&2;}
5249    { (exit 1); exit 1; }; } ;;
5250 esac
5251
5252 # Check whether --enable-timestamps was given.
5253 if test "${enable_timestamps+set}" = set; then
5254   enableval=$enable_timestamps;
5255 else
5256   enableval=default
5257 fi
5258
5259 case "$enableval" in
5260   yes) ENABLE_TIMESTAMPS=1
5261  ;;
5262   no)  ENABLE_TIMESTAMPS=0
5263  ;;
5264   default) ENABLE_TIMESTAMPS=1
5265  ;;
5266   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&5
5267 echo "$as_me: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&2;}
5268    { (exit 1); exit 1; }; } ;;
5269 esac
5270
5271 cat >>confdefs.h <<_ACEOF
5272 #define ENABLE_TIMESTAMPS $ENABLE_TIMESTAMPS
5273 _ACEOF
5274
5275
5276 TARGETS_TO_BUILD=""
5277 # Check whether --enable-targets was given.
5278 if test "${enable_targets+set}" = set; then
5279   enableval=$enable_targets;
5280 else
5281   enableval=all
5282 fi
5283
5284 if test "$enableval" = host-only ; then
5285   enableval=host
5286 fi
5287 case "$enableval" in
5288   all) TARGETS_TO_BUILD="X86 Sparc PowerPC Alpha ARM Mips CellSPU XCore MSP430 SystemZ Blackfin CBackend CppBackend MBlaze PTX" ;;
5289   *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
5290       case "$a_target" in
5291         x86)      TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5292         x86_64)   TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5293         sparc)    TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5294         powerpc)  TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5295         alpha)    TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
5296         arm)      TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5297         mips)     TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5298         spu)      TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
5299         xcore)    TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5300         msp430)   TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5301         systemz)  TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
5302         blackfin) TARGETS_TO_BUILD="Blackfin $TARGETS_TO_BUILD" ;;
5303         cbe)      TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD" ;;
5304         cpp)      TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
5305         mblaze)   TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
5306         ptx)      TARGETS_TO_BUILD="PTX $TARGETS_TO_BUILD" ;;
5307         host) case "$llvm_cv_target_arch" in
5308             x86)         TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5309             x86_64)      TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5310             Sparc)       TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5311             PowerPC)     TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5312             Alpha)       TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
5313             ARM)         TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5314             Mips)        TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5315             MBlaze)      TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
5316             CellSPU|SPU) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
5317             XCore)       TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5318             MSP430)      TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5319             s390x)       TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
5320             Blackfin)    TARGETS_TO_BUILD="Blackfin $TARGETS_TO_BUILD" ;;
5321             PTX)         TARGETS_TO_BUILD="PTX $TARGETS_TO_BUILD" ;;
5322             *)       { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
5323 echo "$as_me: error: Can not set target to build" >&2;}
5324    { (exit 1); exit 1; }; } ;;
5325           esac ;;
5326         *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
5327 echo "$as_me: error: Unrecognized target $a_target" >&2;}
5328    { (exit 1); exit 1; }; } ;;
5329       esac
5330   done
5331   ;;
5332 esac
5333 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
5334
5335
5336 # Determine whether we are building LLVM support for the native architecture.
5337 # If so, define LLVM_NATIVE_ARCH to that LLVM target.
5338 for a_target in $TARGETS_TO_BUILD; do
5339   if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
5340
5341 cat >>confdefs.h <<_ACEOF
5342 #define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCH
5343 _ACEOF
5344
5345     LLVM_NATIVE_TARGET="LLVMInitialize${LLVM_NATIVE_ARCH}Target"
5346     LLVM_NATIVE_TARGETINFO="LLVMInitialize${LLVM_NATIVE_ARCH}TargetInfo"
5347     LLVM_NATIVE_TARGETMC="LLVMInitialize${LLVM_NATIVE_ARCH}TargetMC"
5348     LLVM_NATIVE_ASMPRINTER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmPrinter"
5349     if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5350       LLVM_NATIVE_ASMPARSER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmParser"
5351     fi
5352
5353 cat >>confdefs.h <<_ACEOF
5354 #define LLVM_NATIVE_TARGET $LLVM_NATIVE_TARGET
5355 _ACEOF
5356
5357
5358 cat >>confdefs.h <<_ACEOF
5359 #define LLVM_NATIVE_TARGETINFO $LLVM_NATIVE_TARGETINFO
5360 _ACEOF
5361
5362
5363 cat >>confdefs.h <<_ACEOF
5364 #define LLVM_NATIVE_TARGETMC $LLVM_NATIVE_TARGETMC
5365 _ACEOF
5366
5367
5368 cat >>confdefs.h <<_ACEOF
5369 #define LLVM_NATIVE_ASMPRINTER $LLVM_NATIVE_ASMPRINTER
5370 _ACEOF
5371
5372     if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5373
5374 cat >>confdefs.h <<_ACEOF
5375 #define LLVM_NATIVE_ASMPARSER $LLVM_NATIVE_ASMPARSER
5376 _ACEOF
5377
5378     fi
5379   fi
5380 done
5381
5382 # Build the LLVM_TARGET and LLVM_... macros for Targets.def and the individual
5383 # target feature def files.
5384 LLVM_ENUM_TARGETS=""
5385 LLVM_ENUM_ASM_PRINTERS=""
5386 LLVM_ENUM_ASM_PARSERS=""
5387 LLVM_ENUM_DISASSEMBLERS=""
5388 for target_to_build in $TARGETS_TO_BUILD; do
5389   LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
5390   if test -f ${srcdir}/lib/Target/${target_to_build}/*AsmPrinter.cpp ; then
5391     LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5392   fi
5393   if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5394     LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5395   fi
5396   if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
5397     LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
5398   fi
5399 done
5400
5401
5402
5403
5404
5405 # Check whether --enable-cbe-printf-a was given.
5406 if test "${enable_cbe_printf_a+set}" = set; then
5407   enableval=$enable_cbe_printf_a;
5408 else
5409   enableval=default
5410 fi
5411
5412 case "$enableval" in
5413   yes) ENABLE_CBE_PRINTF_A=1
5414  ;;
5415   no)  ENABLE_CBE_PRINTF_A=0
5416  ;;
5417   default)  ENABLE_CBE_PRINTF_A=1
5418  ;;
5419   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5
5420 echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;}
5421    { (exit 1); exit 1; }; } ;;
5422 esac
5423
5424 cat >>confdefs.h <<_ACEOF
5425 #define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A
5426 _ACEOF
5427
5428
5429
5430 # Check whether --with-clang was given.
5431 if test "${with_clang+set}" = set; then
5432   withval=$with_clang;
5433 else
5434   with_clang=default
5435 fi
5436
5437
5438
5439 # Check whether --with-built-clang was given.
5440 if test "${with_built_clang+set}" = set; then
5441   withval=$with_built_clang;
5442 else
5443   with_built_clang=check
5444 fi
5445
5446
5447 { echo "$as_me:$LINENO: checking clang compiler" >&5
5448 echo $ECHO_N "checking clang compiler... $ECHO_C" >&6; }
5449 WITH_CLANGPATH=""
5450 WITH_BUILT_CLANG=0
5451 if test "$with_clang" != "default"; then
5452    WITH_CLANGPATH="$with_clang"
5453    if ! test -x "$WITH_CLANGPATH"; then
5454      { { echo "$as_me:$LINENO: error: invalid --with-clang, path does not specify an executable" >&5
5455 echo "$as_me: error: invalid --with-clang, path does not specify an executable" >&2;}
5456    { (exit 1); exit 1; }; }
5457    fi
5458 elif test "$with_built_clang" = "yes"; then
5459    WITH_BUILT_CLANG=1
5460 elif test "$with_built_clang" = "no"; then
5461    WITH_BUILT_CLANG=0
5462 else
5463    if test "$with_built_clang" != "check"; then
5464       { { echo "$as_me:$LINENO: error: invalid value for --with-built-clang." >&5
5465 echo "$as_me: error: invalid value for --with-built-clang." >&2;}
5466    { (exit 1); exit 1; }; }
5467    fi
5468
5469    if test -f ${srcdir}/tools/clang/README.txt; then
5470      WITH_BUILT_CLANG=1
5471    fi
5472 fi
5473
5474 if ! test -z "$WITH_CLANGPATH"; then
5475    { echo "$as_me:$LINENO: result: $WITH_CLANGPATH" >&5
5476 echo "${ECHO_T}$WITH_CLANGPATH" >&6; }
5477    WITH_CLANGXXPATH=`"$WITH_CLANGPATH" --print-prog-name=clang++`
5478 elif test "$WITH_BUILT_CLANG" = "1"; then
5479    { echo "$as_me:$LINENO: result: built" >&5
5480 echo "${ECHO_T}built" >&6; }
5481 else
5482    { echo "$as_me:$LINENO: result: none" >&5
5483 echo "${ECHO_T}none" >&6; }
5484 fi
5485 CLANGPATH=$WITH_CLANGPATH
5486
5487 CLANGXXPATH=$WITH_CLANGXXPATH
5488
5489 ENABLE_BUILT_CLANG=$WITH_BUILT_CLANG
5490
5491
5492
5493 # Check whether --with-optimize-option was given.
5494 if test "${with_optimize_option+set}" = set; then
5495   withval=$with_optimize_option;
5496 else
5497   withval=default
5498 fi
5499
5500 { echo "$as_me:$LINENO: checking optimization flags" >&5
5501 echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
5502 case "$withval" in
5503   default)
5504     case "$llvm_cv_os_type" in
5505     FreeBSD) optimize_option=-O2 ;;
5506     MingW) optimize_option=-O2 ;;
5507     *)     optimize_option=-O3 ;;
5508     esac ;;
5509   *) optimize_option="$withval" ;;
5510 esac
5511 OPTIMIZE_OPTION=$optimize_option
5512
5513 { echo "$as_me:$LINENO: result: $optimize_option" >&5
5514 echo "${ECHO_T}$optimize_option" >&6; }
5515
5516
5517 # Check whether --with-extra-options was given.
5518 if test "${with_extra_options+set}" = set; then
5519   withval=$with_extra_options;
5520 else
5521   withval=default
5522 fi
5523
5524 case "$withval" in
5525   default) EXTRA_OPTIONS= ;;
5526   *) EXTRA_OPTIONS=$withval ;;
5527 esac
5528 EXTRA_OPTIONS=$EXTRA_OPTIONS
5529
5530
5531
5532 # Check whether --with-extra-ld-options was given.
5533 if test "${with_extra_ld_options+set}" = set; then
5534   withval=$with_extra_ld_options;
5535 else
5536   withval=default
5537 fi
5538
5539 case "$withval" in
5540   default) EXTRA_LD_OPTIONS= ;;
5541   *) EXTRA_LD_OPTIONS=$withval ;;
5542 esac
5543 EXTRA_LD_OPTIONS=$EXTRA_LD_OPTIONS
5544
5545
5546 # Check whether --enable-bindings was given.
5547 if test "${enable_bindings+set}" = set; then
5548   enableval=$enable_bindings;
5549 else
5550   enableval=default
5551 fi
5552
5553 BINDINGS_TO_BUILD=""
5554 case "$enableval" in
5555   yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
5556   all ) BINDINGS_TO_BUILD="ocaml" ;;
5557   none | no) BINDINGS_TO_BUILD="" ;;
5558   *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5559       case "$a_binding" in
5560         ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5561         *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5562 echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5563    { (exit 1); exit 1; }; } ;;
5564       esac
5565   done
5566   ;;
5567 esac
5568
5569
5570 # Check whether --with-ocaml-libdir was given.
5571 if test "${with_ocaml_libdir+set}" = set; then
5572   withval=$with_ocaml_libdir;
5573 else
5574   withval=auto
5575 fi
5576
5577 case "$withval" in
5578   auto) with_ocaml_libdir="$withval" ;;
5579   /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5580   *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5581 echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5582    { (exit 1); exit 1; }; } ;;
5583 esac
5584
5585
5586 # Check whether --with-clang-resource-dir was given.
5587 if test "${with_clang_resource_dir+set}" = set; then
5588   withval=$with_clang_resource_dir;
5589 else
5590   withval=""
5591 fi
5592
5593
5594 cat >>confdefs.h <<_ACEOF
5595 #define CLANG_RESOURCE_DIR "$withval"
5596 _ACEOF
5597
5598
5599
5600 # Check whether --with-c-include-dirs was given.
5601 if test "${with_c_include_dirs+set}" = set; then
5602   withval=$with_c_include_dirs;
5603 else
5604   withval=""
5605 fi
5606
5607
5608 cat >>confdefs.h <<_ACEOF
5609 #define C_INCLUDE_DIRS "$withval"
5610 _ACEOF
5611
5612
5613
5614 # Check whether --with-cxx-include-root was given.
5615 if test "${with_cxx_include_root+set}" = set; then
5616   withval=$with_cxx_include_root;
5617 else
5618   withval=""
5619 fi
5620
5621
5622 cat >>confdefs.h <<_ACEOF
5623 #define CXX_INCLUDE_ROOT "$withval"
5624 _ACEOF
5625
5626
5627
5628 # Check whether --with-cxx-include-arch was given.
5629 if test "${with_cxx_include_arch+set}" = set; then
5630   withval=$with_cxx_include_arch;
5631 else
5632   withval=""
5633 fi
5634
5635
5636 cat >>confdefs.h <<_ACEOF
5637 #define CXX_INCLUDE_ARCH "$withval"
5638 _ACEOF
5639
5640
5641
5642 # Check whether --with-cxx-include-32bit-dir was given.
5643 if test "${with_cxx_include_32bit_dir+set}" = set; then
5644   withval=$with_cxx_include_32bit_dir;
5645 else
5646   withval=""
5647 fi
5648
5649
5650 cat >>confdefs.h <<_ACEOF
5651 #define CXX_INCLUDE_32BIT_DIR "$withval"
5652 _ACEOF
5653
5654
5655
5656 # Check whether --with-cxx-include-64bit-dir was given.
5657 if test "${with_cxx_include_64bit_dir+set}" = set; then
5658   withval=$with_cxx_include_64bit_dir;
5659 else
5660   withval=""
5661 fi
5662
5663
5664 cat >>confdefs.h <<_ACEOF
5665 #define CXX_INCLUDE_64BIT_DIR "$withval"
5666 _ACEOF
5667
5668
5669
5670 # Check whether --with-binutils-include was given.
5671 if test "${with_binutils_include+set}" = set; then
5672   withval=$with_binutils_include;
5673 else
5674   withval=default
5675 fi
5676
5677 case "$withval" in
5678   default) WITH_BINUTILS_INCDIR=default ;;
5679   /* | [A-Za-z]:[\\/]*)      WITH_BINUTILS_INCDIR=$withval ;;
5680   *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5681 echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5682    { (exit 1); exit 1; }; } ;;
5683 esac
5684 if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5685   BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5686
5687   if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5688      echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5689      { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5690 echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5691    { (exit 1); exit 1; }; };
5692   fi
5693 fi
5694
5695
5696 # Check whether --with-bug-report-url was given.
5697 if test "${with_bug_report_url+set}" = set; then
5698   withval=$with_bug_report_url;
5699 else
5700   withval="http://llvm.org/bugs/"
5701 fi
5702
5703
5704 cat >>confdefs.h <<_ACEOF
5705 #define BUG_REPORT_URL "$withval"
5706 _ACEOF
5707
5708
5709 # Check whether --enable-libffi was given.
5710 if test "${enable_libffi+set}" = set; then
5711   enableval=$enable_libffi; case "$enableval" in
5712     yes) llvm_cv_enable_libffi="yes" ;;
5713     no)  llvm_cv_enable_libffi="no"  ;;
5714     *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
5715 echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5716    { (exit 1); exit 1; }; } ;;
5717   esac
5718 else
5719   llvm_cv_enable_libffi=no
5720 fi
5721
5722
5723
5724 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5725 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
5726 if test "${lt_cv_path_NM+set}" = set; then
5727   echo $ECHO_N "(cached) $ECHO_C" >&6
5728 else
5729   if test -n "$NM"; then
5730   # Let the user override the test.
5731   lt_cv_path_NM="$NM"
5732 else
5733   lt_nm_to_check="${ac_tool_prefix}nm"
5734   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5735     lt_nm_to_check="$lt_nm_to_check nm"
5736   fi
5737   for lt_tmp_nm in $lt_nm_to_check; do
5738     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5739     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5740       IFS="$lt_save_ifs"
5741       test -z "$ac_dir" && ac_dir=.
5742       tmp_nm="$ac_dir/$lt_tmp_nm"
5743       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5744         # Check to see if the nm accepts a BSD-compat flag.
5745         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5746         #   nm: unknown option "B" ignored
5747         # Tru64's nm complains that /dev/null is an invalid object file
5748         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5749         */dev/null* | *'Invalid file or object type'*)
5750           lt_cv_path_NM="$tmp_nm -B"
5751           break
5752           ;;
5753         *)
5754           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5755           */dev/null*)
5756             lt_cv_path_NM="$tmp_nm -p"
5757             break
5758             ;;
5759           *)
5760             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5761             continue # so that we can try to find one that supports BSD flags
5762             ;;
5763           esac
5764           ;;
5765         esac
5766       fi
5767     done
5768     IFS="$lt_save_ifs"
5769   done
5770   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5771 fi
5772 fi
5773 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5774 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
5775 NM="$lt_cv_path_NM"
5776
5777
5778
5779 { echo "$as_me:$LINENO: checking for GNU make" >&5
5780 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
5781 if test "${llvm_cv_gnu_make_command+set}" = set; then
5782   echo $ECHO_N "(cached) $ECHO_C" >&6
5783 else
5784   llvm_cv_gnu_make_command=''
5785  for a in "$MAKE" make gmake gnumake ; do
5786   if test -z "$a" ; then continue ; fi ;
5787   if  ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
5788   then
5789    llvm_cv_gnu_make_command=$a ;
5790    break;
5791   fi
5792  done
5793 fi
5794 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
5795 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
5796  if test "x$llvm_cv_gnu_make_command" != "x"  ; then
5797    ifGNUmake='' ;
5798  else
5799    ifGNUmake='#' ;
5800    { echo "$as_me:$LINENO: result: \"Not found\"" >&5
5801 echo "${ECHO_T}\"Not found\"" >&6; };
5802  fi
5803
5804
5805 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
5806 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
5807 LN_S=$as_ln_s
5808 if test "$LN_S" = "ln -s"; then
5809   { echo "$as_me:$LINENO: result: yes" >&5
5810 echo "${ECHO_T}yes" >&6; }
5811 else
5812   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5813 echo "${ECHO_T}no, using $LN_S" >&6; }
5814 fi
5815
5816 # Extract the first word of "cmp", so it can be a program name with args.
5817 set dummy cmp; ac_word=$2
5818 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5819 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5820 if test "${ac_cv_path_CMP+set}" = set; then
5821   echo $ECHO_N "(cached) $ECHO_C" >&6
5822 else
5823   case $CMP in
5824   [\\/]* | ?:[\\/]*)
5825   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
5826   ;;
5827   *)
5828   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5829 for as_dir in $PATH
5830 do
5831   IFS=$as_save_IFS
5832   test -z "$as_dir" && as_dir=.
5833   for ac_exec_ext in '' $ac_executable_extensions; do
5834   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5835     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
5836     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5837     break 2
5838   fi
5839 done
5840 done
5841 IFS=$as_save_IFS
5842
5843   test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
5844   ;;
5845 esac
5846 fi
5847 CMP=$ac_cv_path_CMP
5848 if test -n "$CMP"; then
5849   { echo "$as_me:$LINENO: result: $CMP" >&5
5850 echo "${ECHO_T}$CMP" >&6; }
5851 else
5852   { echo "$as_me:$LINENO: result: no" >&5
5853 echo "${ECHO_T}no" >&6; }
5854 fi
5855
5856
5857 # Extract the first word of "cp", so it can be a program name with args.
5858 set dummy cp; ac_word=$2
5859 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5860 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5861 if test "${ac_cv_path_CP+set}" = set; then
5862   echo $ECHO_N "(cached) $ECHO_C" >&6
5863 else
5864   case $CP in
5865   [\\/]* | ?:[\\/]*)
5866   ac_cv_path_CP="$CP" # Let the user override the test with a path.
5867   ;;
5868   *)
5869   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5870 for as_dir in $PATH
5871 do
5872   IFS=$as_save_IFS
5873   test -z "$as_dir" && as_dir=.
5874   for ac_exec_ext in '' $ac_executable_extensions; do
5875   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5876     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
5877     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5878     break 2
5879   fi
5880 done
5881 done
5882 IFS=$as_save_IFS
5883
5884   test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
5885   ;;
5886 esac
5887 fi
5888 CP=$ac_cv_path_CP
5889 if test -n "$CP"; then
5890   { echo "$as_me:$LINENO: result: $CP" >&5
5891 echo "${ECHO_T}$CP" >&6; }
5892 else
5893   { echo "$as_me:$LINENO: result: no" >&5
5894 echo "${ECHO_T}no" >&6; }
5895 fi
5896
5897
5898 # Extract the first word of "date", so it can be a program name with args.
5899 set dummy date; ac_word=$2
5900 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5901 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5902 if test "${ac_cv_path_DATE+set}" = set; then
5903   echo $ECHO_N "(cached) $ECHO_C" >&6
5904 else
5905   case $DATE in
5906   [\\/]* | ?:[\\/]*)
5907   ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
5908   ;;
5909   *)
5910   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5911 for as_dir in $PATH
5912 do
5913   IFS=$as_save_IFS
5914   test -z "$as_dir" && as_dir=.
5915   for ac_exec_ext in '' $ac_executable_extensions; do
5916   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5917     ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
5918     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5919     break 2
5920   fi
5921 done
5922 done
5923 IFS=$as_save_IFS
5924
5925   test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
5926   ;;
5927 esac
5928 fi
5929 DATE=$ac_cv_path_DATE
5930 if test -n "$DATE"; then
5931   { echo "$as_me:$LINENO: result: $DATE" >&5
5932 echo "${ECHO_T}$DATE" >&6; }
5933 else
5934   { echo "$as_me:$LINENO: result: no" >&5
5935 echo "${ECHO_T}no" >&6; }
5936 fi
5937
5938
5939 # Extract the first word of "find", so it can be a program name with args.
5940 set dummy find; ac_word=$2
5941 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5942 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5943 if test "${ac_cv_path_FIND+set}" = set; then
5944   echo $ECHO_N "(cached) $ECHO_C" >&6
5945 else
5946   case $FIND in
5947   [\\/]* | ?:[\\/]*)
5948   ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
5949   ;;
5950   *)
5951   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5952 for as_dir in $PATH
5953 do
5954   IFS=$as_save_IFS
5955   test -z "$as_dir" && as_dir=.
5956   for ac_exec_ext in '' $ac_executable_extensions; do
5957   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5958     ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
5959     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5960     break 2
5961   fi
5962 done
5963 done
5964 IFS=$as_save_IFS
5965
5966   test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
5967   ;;
5968 esac
5969 fi
5970 FIND=$ac_cv_path_FIND
5971 if test -n "$FIND"; then
5972   { echo "$as_me:$LINENO: result: $FIND" >&5
5973 echo "${ECHO_T}$FIND" >&6; }
5974 else
5975   { echo "$as_me:$LINENO: result: no" >&5
5976 echo "${ECHO_T}no" >&6; }
5977 fi
5978
5979
5980 # Extract the first word of "grep", so it can be a program name with args.
5981 set dummy grep; ac_word=$2
5982 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5983 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5984 if test "${ac_cv_path_GREP+set}" = set; then
5985   echo $ECHO_N "(cached) $ECHO_C" >&6
5986 else
5987   case $GREP in
5988   [\\/]* | ?:[\\/]*)
5989   ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
5990   ;;
5991   *)
5992   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5993 for as_dir in $PATH
5994 do
5995   IFS=$as_save_IFS
5996   test -z "$as_dir" && as_dir=.
5997   for ac_exec_ext in '' $ac_executable_extensions; do
5998   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5999     ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
6000     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6001     break 2
6002   fi
6003 done
6004 done
6005 IFS=$as_save_IFS
6006
6007   test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
6008   ;;
6009 esac
6010 fi
6011 GREP=$ac_cv_path_GREP
6012 if test -n "$GREP"; then
6013   { echo "$as_me:$LINENO: result: $GREP" >&5
6014 echo "${ECHO_T}$GREP" >&6; }
6015 else
6016   { echo "$as_me:$LINENO: result: no" >&5
6017 echo "${ECHO_T}no" >&6; }
6018 fi
6019
6020
6021 # Extract the first word of "mkdir", so it can be a program name with args.
6022 set dummy mkdir; ac_word=$2
6023 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6024 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6025 if test "${ac_cv_path_MKDIR+set}" = set; then
6026   echo $ECHO_N "(cached) $ECHO_C" >&6
6027 else
6028   case $MKDIR in
6029   [\\/]* | ?:[\\/]*)
6030   ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6031   ;;
6032   *)
6033   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6034 for as_dir in $PATH
6035 do
6036   IFS=$as_save_IFS
6037   test -z "$as_dir" && as_dir=.
6038   for ac_exec_ext in '' $ac_executable_extensions; do
6039   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6040     ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
6041     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6042     break 2
6043   fi
6044 done
6045 done
6046 IFS=$as_save_IFS
6047
6048   test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6049   ;;
6050 esac
6051 fi
6052 MKDIR=$ac_cv_path_MKDIR
6053 if test -n "$MKDIR"; then
6054   { echo "$as_me:$LINENO: result: $MKDIR" >&5
6055 echo "${ECHO_T}$MKDIR" >&6; }
6056 else
6057   { echo "$as_me:$LINENO: result: no" >&5
6058 echo "${ECHO_T}no" >&6; }
6059 fi
6060
6061
6062 # Extract the first word of "mv", so it can be a program name with args.
6063 set dummy mv; ac_word=$2
6064 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6065 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6066 if test "${ac_cv_path_MV+set}" = set; then
6067   echo $ECHO_N "(cached) $ECHO_C" >&6
6068 else
6069   case $MV in
6070   [\\/]* | ?:[\\/]*)
6071   ac_cv_path_MV="$MV" # Let the user override the test with a path.
6072   ;;
6073   *)
6074   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6075 for as_dir in $PATH
6076 do
6077   IFS=$as_save_IFS
6078   test -z "$as_dir" && as_dir=.
6079   for ac_exec_ext in '' $ac_executable_extensions; do
6080   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6081     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
6082     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6083     break 2
6084   fi
6085 done
6086 done
6087 IFS=$as_save_IFS
6088
6089   test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6090   ;;
6091 esac
6092 fi
6093 MV=$ac_cv_path_MV
6094 if test -n "$MV"; then
6095   { echo "$as_me:$LINENO: result: $MV" >&5
6096 echo "${ECHO_T}$MV" >&6; }
6097 else
6098   { echo "$as_me:$LINENO: result: no" >&5
6099 echo "${ECHO_T}no" >&6; }
6100 fi
6101
6102
6103 if test -n "$ac_tool_prefix"; then
6104   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6105 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6106 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6107 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6108 if test "${ac_cv_prog_RANLIB+set}" = set; then
6109   echo $ECHO_N "(cached) $ECHO_C" >&6
6110 else
6111   if test -n "$RANLIB"; then
6112   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6113 else
6114 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6115 for as_dir in $PATH
6116 do
6117   IFS=$as_save_IFS
6118   test -z "$as_dir" && as_dir=.
6119   for ac_exec_ext in '' $ac_executable_extensions; do
6120   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6121     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6122     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6123     break 2
6124   fi
6125 done
6126 done
6127 IFS=$as_save_IFS
6128
6129 fi
6130 fi
6131 RANLIB=$ac_cv_prog_RANLIB
6132 if test -n "$RANLIB"; then
6133   { echo "$as_me:$LINENO: result: $RANLIB" >&5
6134 echo "${ECHO_T}$RANLIB" >&6; }
6135 else
6136   { echo "$as_me:$LINENO: result: no" >&5
6137 echo "${ECHO_T}no" >&6; }
6138 fi
6139
6140
6141 fi
6142 if test -z "$ac_cv_prog_RANLIB"; then
6143   ac_ct_RANLIB=$RANLIB
6144   # Extract the first word of "ranlib", so it can be a program name with args.
6145 set dummy ranlib; ac_word=$2
6146 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6147 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6148 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6149   echo $ECHO_N "(cached) $ECHO_C" >&6
6150 else
6151   if test -n "$ac_ct_RANLIB"; then
6152   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6153 else
6154 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6155 for as_dir in $PATH
6156 do
6157   IFS=$as_save_IFS
6158   test -z "$as_dir" && as_dir=.
6159   for ac_exec_ext in '' $ac_executable_extensions; do
6160   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6161     ac_cv_prog_ac_ct_RANLIB="ranlib"
6162     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6163     break 2
6164   fi
6165 done
6166 done
6167 IFS=$as_save_IFS
6168
6169 fi
6170 fi
6171 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6172 if test -n "$ac_ct_RANLIB"; then
6173   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6174 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6175 else
6176   { echo "$as_me:$LINENO: result: no" >&5
6177 echo "${ECHO_T}no" >&6; }
6178 fi
6179
6180   if test "x$ac_ct_RANLIB" = x; then
6181     RANLIB=":"
6182   else
6183     case $cross_compiling:$ac_tool_warned in
6184 yes:)
6185 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6186 whose name does not start with the host triplet.  If you think this
6187 configuration is useful to you, please write to autoconf@gnu.org." >&5
6188 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6189 whose name does not start with the host triplet.  If you think this
6190 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6191 ac_tool_warned=yes ;;
6192 esac
6193     RANLIB=$ac_ct_RANLIB
6194   fi
6195 else
6196   RANLIB="$ac_cv_prog_RANLIB"
6197 fi
6198
6199 if test -n "$ac_tool_prefix"; then
6200   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6201 set dummy ${ac_tool_prefix}ar; ac_word=$2
6202 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6203 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6204 if test "${ac_cv_prog_AR+set}" = set; then
6205   echo $ECHO_N "(cached) $ECHO_C" >&6
6206 else
6207   if test -n "$AR"; then
6208   ac_cv_prog_AR="$AR" # Let the user override the test.
6209 else
6210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6211 for as_dir in $PATH
6212 do
6213   IFS=$as_save_IFS
6214   test -z "$as_dir" && as_dir=.
6215   for ac_exec_ext in '' $ac_executable_extensions; do
6216   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6217     ac_cv_prog_AR="${ac_tool_prefix}ar"
6218     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6219     break 2
6220   fi
6221 done
6222 done
6223 IFS=$as_save_IFS
6224
6225 fi
6226 fi
6227 AR=$ac_cv_prog_AR
6228 if test -n "$AR"; then
6229   { echo "$as_me:$LINENO: result: $AR" >&5
6230 echo "${ECHO_T}$AR" >&6; }
6231 else
6232   { echo "$as_me:$LINENO: result: no" >&5
6233 echo "${ECHO_T}no" >&6; }
6234 fi
6235
6236
6237 fi
6238 if test -z "$ac_cv_prog_AR"; then
6239   ac_ct_AR=$AR
6240   # Extract the first word of "ar", so it can be a program name with args.
6241 set dummy ar; ac_word=$2
6242 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6243 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6244 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6245   echo $ECHO_N "(cached) $ECHO_C" >&6
6246 else
6247   if test -n "$ac_ct_AR"; then
6248   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6249 else
6250 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6251 for as_dir in $PATH
6252 do
6253   IFS=$as_save_IFS
6254   test -z "$as_dir" && as_dir=.
6255   for ac_exec_ext in '' $ac_executable_extensions; do
6256   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6257     ac_cv_prog_ac_ct_AR="ar"
6258     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6259     break 2
6260   fi
6261 done
6262 done
6263 IFS=$as_save_IFS
6264
6265 fi
6266 fi
6267 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6268 if test -n "$ac_ct_AR"; then
6269   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6270 echo "${ECHO_T}$ac_ct_AR" >&6; }
6271 else
6272   { echo "$as_me:$LINENO: result: no" >&5
6273 echo "${ECHO_T}no" >&6; }
6274 fi
6275
6276   if test "x$ac_ct_AR" = x; then
6277     AR="false"
6278   else
6279     case $cross_compiling:$ac_tool_warned in
6280 yes:)
6281 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6282 whose name does not start with the host triplet.  If you think this
6283 configuration is useful to you, please write to autoconf@gnu.org." >&5
6284 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6285 whose name does not start with the host triplet.  If you think this
6286 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6287 ac_tool_warned=yes ;;
6288 esac
6289     AR=$ac_ct_AR
6290   fi
6291 else
6292   AR="$ac_cv_prog_AR"
6293 fi
6294
6295 # Extract the first word of "rm", so it can be a program name with args.
6296 set dummy rm; ac_word=$2
6297 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6298 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6299 if test "${ac_cv_path_RM+set}" = set; then
6300   echo $ECHO_N "(cached) $ECHO_C" >&6
6301 else
6302   case $RM in
6303   [\\/]* | ?:[\\/]*)
6304   ac_cv_path_RM="$RM" # Let the user override the test with a path.
6305   ;;
6306   *)
6307   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6308 for as_dir in $PATH
6309 do
6310   IFS=$as_save_IFS
6311   test -z "$as_dir" && as_dir=.
6312   for ac_exec_ext in '' $ac_executable_extensions; do
6313   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6314     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
6315     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6316     break 2
6317   fi
6318 done
6319 done
6320 IFS=$as_save_IFS
6321
6322   test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
6323   ;;
6324 esac
6325 fi
6326 RM=$ac_cv_path_RM
6327 if test -n "$RM"; then
6328   { echo "$as_me:$LINENO: result: $RM" >&5
6329 echo "${ECHO_T}$RM" >&6; }
6330 else
6331   { echo "$as_me:$LINENO: result: no" >&5
6332 echo "${ECHO_T}no" >&6; }
6333 fi
6334
6335
6336 # Extract the first word of "sed", so it can be a program name with args.
6337 set dummy sed; ac_word=$2
6338 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6339 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6340 if test "${ac_cv_path_SED+set}" = set; then
6341   echo $ECHO_N "(cached) $ECHO_C" >&6
6342 else
6343   case $SED in
6344   [\\/]* | ?:[\\/]*)
6345   ac_cv_path_SED="$SED" # Let the user override the test with a path.
6346   ;;
6347   *)
6348   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6349 for as_dir in $PATH
6350 do
6351   IFS=$as_save_IFS
6352   test -z "$as_dir" && as_dir=.
6353   for ac_exec_ext in '' $ac_executable_extensions; do
6354   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6355     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
6356     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6357     break 2
6358   fi
6359 done
6360 done
6361 IFS=$as_save_IFS
6362
6363   test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
6364   ;;
6365 esac
6366 fi
6367 SED=$ac_cv_path_SED
6368 if test -n "$SED"; then
6369   { echo "$as_me:$LINENO: result: $SED" >&5
6370 echo "${ECHO_T}$SED" >&6; }
6371 else
6372   { echo "$as_me:$LINENO: result: no" >&5
6373 echo "${ECHO_T}no" >&6; }
6374 fi
6375
6376
6377 # Extract the first word of "tar", so it can be a program name with args.
6378 set dummy tar; ac_word=$2
6379 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6380 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6381 if test "${ac_cv_path_TAR+set}" = set; then
6382   echo $ECHO_N "(cached) $ECHO_C" >&6
6383 else
6384   case $TAR in
6385   [\\/]* | ?:[\\/]*)
6386   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6387   ;;
6388   *)
6389   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6390 for as_dir in $PATH
6391 do
6392   IFS=$as_save_IFS
6393   test -z "$as_dir" && as_dir=.
6394   for ac_exec_ext in '' $ac_executable_extensions; do
6395   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6396     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
6397     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6398     break 2
6399   fi
6400 done
6401 done
6402 IFS=$as_save_IFS
6403
6404   test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
6405   ;;
6406 esac
6407 fi
6408 TAR=$ac_cv_path_TAR
6409 if test -n "$TAR"; then
6410   { echo "$as_me:$LINENO: result: $TAR" >&5
6411 echo "${ECHO_T}$TAR" >&6; }
6412 else
6413   { echo "$as_me:$LINENO: result: no" >&5
6414 echo "${ECHO_T}no" >&6; }
6415 fi
6416
6417
6418 # Extract the first word of "pwd", so it can be a program name with args.
6419 set dummy pwd; ac_word=$2
6420 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6421 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6422 if test "${ac_cv_path_BINPWD+set}" = set; then
6423   echo $ECHO_N "(cached) $ECHO_C" >&6
6424 else
6425   case $BINPWD in
6426   [\\/]* | ?:[\\/]*)
6427   ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
6428   ;;
6429   *)
6430   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6431 for as_dir in $PATH
6432 do
6433   IFS=$as_save_IFS
6434   test -z "$as_dir" && as_dir=.
6435   for ac_exec_ext in '' $ac_executable_extensions; do
6436   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6437     ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
6438     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6439     break 2
6440   fi
6441 done
6442 done
6443 IFS=$as_save_IFS
6444
6445   test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
6446   ;;
6447 esac
6448 fi
6449 BINPWD=$ac_cv_path_BINPWD
6450 if test -n "$BINPWD"; then
6451   { echo "$as_me:$LINENO: result: $BINPWD" >&5
6452 echo "${ECHO_T}$BINPWD" >&6; }
6453 else
6454   { echo "$as_me:$LINENO: result: no" >&5
6455 echo "${ECHO_T}no" >&6; }
6456 fi
6457
6458
6459
6460 # Extract the first word of "Graphviz", so it can be a program name with args.
6461 set dummy Graphviz; ac_word=$2
6462 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6463 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6464 if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
6465   echo $ECHO_N "(cached) $ECHO_C" >&6
6466 else
6467   case $GRAPHVIZ in
6468   [\\/]* | ?:[\\/]*)
6469   ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
6470   ;;
6471   *)
6472   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6473 for as_dir in $PATH
6474 do
6475   IFS=$as_save_IFS
6476   test -z "$as_dir" && as_dir=.
6477   for ac_exec_ext in '' $ac_executable_extensions; do
6478   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6479     ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
6480     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6481     break 2
6482   fi
6483 done
6484 done
6485 IFS=$as_save_IFS
6486
6487   test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
6488   ;;
6489 esac
6490 fi
6491 GRAPHVIZ=$ac_cv_path_GRAPHVIZ
6492 if test -n "$GRAPHVIZ"; then
6493   { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
6494 echo "${ECHO_T}$GRAPHVIZ" >&6; }
6495 else
6496   { echo "$as_me:$LINENO: result: no" >&5
6497 echo "${ECHO_T}no" >&6; }
6498 fi
6499
6500
6501 if test "$GRAPHVIZ" != "echo Graphviz" ; then
6502
6503 cat >>confdefs.h <<\_ACEOF
6504 #define HAVE_GRAPHVIZ 1
6505 _ACEOF
6506
6507     if test "$llvm_cv_os_type" = "MingW" ; then
6508     GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6509   fi
6510
6511 cat >>confdefs.h <<_ACEOF
6512 #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
6513 _ACEOF
6514
6515 fi
6516 # Extract the first word of "dot", so it can be a program name with args.
6517 set dummy dot; ac_word=$2
6518 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6519 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6520 if test "${ac_cv_path_DOT+set}" = set; then
6521   echo $ECHO_N "(cached) $ECHO_C" >&6
6522 else
6523   case $DOT in
6524   [\\/]* | ?:[\\/]*)
6525   ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
6526   ;;
6527   *)
6528   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6529 for as_dir in $PATH
6530 do
6531   IFS=$as_save_IFS
6532   test -z "$as_dir" && as_dir=.
6533   for ac_exec_ext in '' $ac_executable_extensions; do
6534   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6535     ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
6536     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6537     break 2
6538   fi
6539 done
6540 done
6541 IFS=$as_save_IFS
6542
6543   test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
6544   ;;
6545 esac
6546 fi
6547 DOT=$ac_cv_path_DOT
6548 if test -n "$DOT"; then
6549   { echo "$as_me:$LINENO: result: $DOT" >&5
6550 echo "${ECHO_T}$DOT" >&6; }
6551 else
6552   { echo "$as_me:$LINENO: result: no" >&5
6553 echo "${ECHO_T}no" >&6; }
6554 fi
6555
6556
6557 if test "$DOT" != "echo dot" ; then
6558
6559 cat >>confdefs.h <<\_ACEOF
6560 #define HAVE_DOT 1
6561 _ACEOF
6562
6563     if test "$llvm_cv_os_type" = "MingW" ; then
6564     DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6565   fi
6566
6567 cat >>confdefs.h <<_ACEOF
6568 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
6569 _ACEOF
6570
6571 fi
6572 # Extract the first word of "fdp", so it can be a program name with args.
6573 set dummy fdp; ac_word=$2
6574 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6575 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6576 if test "${ac_cv_path_FDP+set}" = set; then
6577   echo $ECHO_N "(cached) $ECHO_C" >&6
6578 else
6579   case $FDP in
6580   [\\/]* | ?:[\\/]*)
6581   ac_cv_path_FDP="$FDP" # Let the user override the test with a path.
6582   ;;
6583   *)
6584   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6585 for as_dir in $PATH
6586 do
6587   IFS=$as_save_IFS
6588   test -z "$as_dir" && as_dir=.
6589   for ac_exec_ext in '' $ac_executable_extensions; do
6590   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6591     ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext"
6592     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6593     break 2
6594   fi
6595 done
6596 done
6597 IFS=$as_save_IFS
6598
6599   test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp"
6600   ;;
6601 esac
6602 fi
6603 FDP=$ac_cv_path_FDP
6604 if test -n "$FDP"; then
6605   { echo "$as_me:$LINENO: result: $FDP" >&5
6606 echo "${ECHO_T}$FDP" >&6; }
6607 else
6608   { echo "$as_me:$LINENO: result: no" >&5
6609 echo "${ECHO_T}no" >&6; }
6610 fi
6611
6612
6613 if test "$FDP" != "echo fdp" ; then
6614
6615 cat >>confdefs.h <<\_ACEOF
6616 #define HAVE_FDP 1
6617 _ACEOF
6618
6619     if test "$llvm_cv_os_type" = "MingW" ; then
6620     FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6621   fi
6622
6623 cat >>confdefs.h <<_ACEOF
6624 #define LLVM_PATH_FDP "$FDP${EXEEXT}"
6625 _ACEOF
6626
6627 fi
6628 # Extract the first word of "neato", so it can be a program name with args.
6629 set dummy neato; ac_word=$2
6630 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6631 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6632 if test "${ac_cv_path_NEATO+set}" = set; then
6633   echo $ECHO_N "(cached) $ECHO_C" >&6
6634 else
6635   case $NEATO in
6636   [\\/]* | ?:[\\/]*)
6637   ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path.
6638   ;;
6639   *)
6640   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6641 for as_dir in $PATH
6642 do
6643   IFS=$as_save_IFS
6644   test -z "$as_dir" && as_dir=.
6645   for ac_exec_ext in '' $ac_executable_extensions; do
6646   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6647     ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext"
6648     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6649     break 2
6650   fi
6651 done
6652 done
6653 IFS=$as_save_IFS
6654
6655   test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato"
6656   ;;
6657 esac
6658 fi
6659 NEATO=$ac_cv_path_NEATO
6660 if test -n "$NEATO"; then
6661   { echo "$as_me:$LINENO: result: $NEATO" >&5
6662 echo "${ECHO_T}$NEATO" >&6; }
6663 else
6664   { echo "$as_me:$LINENO: result: no" >&5
6665 echo "${ECHO_T}no" >&6; }
6666 fi
6667
6668
6669 if test "$NEATO" != "echo neato" ; then
6670
6671 cat >>confdefs.h <<\_ACEOF
6672 #define HAVE_NEATO 1
6673 _ACEOF
6674
6675     if test "$llvm_cv_os_type" = "MingW" ; then
6676     NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6677   fi
6678
6679 cat >>confdefs.h <<_ACEOF
6680 #define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
6681 _ACEOF
6682
6683 fi
6684 # Extract the first word of "twopi", so it can be a program name with args.
6685 set dummy twopi; ac_word=$2
6686 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6687 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6688 if test "${ac_cv_path_TWOPI+set}" = set; then
6689   echo $ECHO_N "(cached) $ECHO_C" >&6
6690 else
6691   case $TWOPI in
6692   [\\/]* | ?:[\\/]*)
6693   ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path.
6694   ;;
6695   *)
6696   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6697 for as_dir in $PATH
6698 do
6699   IFS=$as_save_IFS
6700   test -z "$as_dir" && as_dir=.
6701   for ac_exec_ext in '' $ac_executable_extensions; do
6702   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6703     ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext"
6704     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6705     break 2
6706   fi
6707 done
6708 done
6709 IFS=$as_save_IFS
6710
6711   test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi"
6712   ;;
6713 esac
6714 fi
6715 TWOPI=$ac_cv_path_TWOPI
6716 if test -n "$TWOPI"; then
6717   { echo "$as_me:$LINENO: result: $TWOPI" >&5
6718 echo "${ECHO_T}$TWOPI" >&6; }
6719 else
6720   { echo "$as_me:$LINENO: result: no" >&5
6721 echo "${ECHO_T}no" >&6; }
6722 fi
6723
6724
6725 if test "$TWOPI" != "echo twopi" ; then
6726
6727 cat >>confdefs.h <<\_ACEOF
6728 #define HAVE_TWOPI 1
6729 _ACEOF
6730
6731     if test "$llvm_cv_os_type" = "MingW" ; then
6732     TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6733   fi
6734
6735 cat >>confdefs.h <<_ACEOF
6736 #define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
6737 _ACEOF
6738
6739 fi
6740 # Extract the first word of "circo", so it can be a program name with args.
6741 set dummy circo; ac_word=$2
6742 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6743 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6744 if test "${ac_cv_path_CIRCO+set}" = set; then
6745   echo $ECHO_N "(cached) $ECHO_C" >&6
6746 else
6747   case $CIRCO in
6748   [\\/]* | ?:[\\/]*)
6749   ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path.
6750   ;;
6751   *)
6752   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6753 for as_dir in $PATH
6754 do
6755   IFS=$as_save_IFS
6756   test -z "$as_dir" && as_dir=.
6757   for ac_exec_ext in '' $ac_executable_extensions; do
6758   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6759     ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext"
6760     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6761     break 2
6762   fi
6763 done
6764 done
6765 IFS=$as_save_IFS
6766
6767   test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo"
6768   ;;
6769 esac
6770 fi
6771 CIRCO=$ac_cv_path_CIRCO
6772 if test -n "$CIRCO"; then
6773   { echo "$as_me:$LINENO: result: $CIRCO" >&5
6774 echo "${ECHO_T}$CIRCO" >&6; }
6775 else
6776   { echo "$as_me:$LINENO: result: no" >&5
6777 echo "${ECHO_T}no" >&6; }
6778 fi
6779
6780
6781 if test "$CIRCO" != "echo circo" ; then
6782
6783 cat >>confdefs.h <<\_ACEOF
6784 #define HAVE_CIRCO 1
6785 _ACEOF
6786
6787     if test "$llvm_cv_os_type" = "MingW" ; then
6788     CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6789   fi
6790
6791 cat >>confdefs.h <<_ACEOF
6792 #define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
6793 _ACEOF
6794
6795 fi
6796 for ac_prog in gv gsview32
6797 do
6798   # Extract the first word of "$ac_prog", so it can be a program name with args.
6799 set dummy $ac_prog; ac_word=$2
6800 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6801 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6802 if test "${ac_cv_path_GV+set}" = set; then
6803   echo $ECHO_N "(cached) $ECHO_C" >&6
6804 else
6805   case $GV in
6806   [\\/]* | ?:[\\/]*)
6807   ac_cv_path_GV="$GV" # Let the user override the test with a path.
6808   ;;
6809   *)
6810   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6811 for as_dir in $PATH
6812 do
6813   IFS=$as_save_IFS
6814   test -z "$as_dir" && as_dir=.
6815   for ac_exec_ext in '' $ac_executable_extensions; do
6816   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6817     ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
6818     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6819     break 2
6820   fi
6821 done
6822 done
6823 IFS=$as_save_IFS
6824
6825   ;;
6826 esac
6827 fi
6828 GV=$ac_cv_path_GV
6829 if test -n "$GV"; then
6830   { echo "$as_me:$LINENO: result: $GV" >&5
6831 echo "${ECHO_T}$GV" >&6; }
6832 else
6833   { echo "$as_me:$LINENO: result: no" >&5
6834 echo "${ECHO_T}no" >&6; }
6835 fi
6836
6837
6838   test -n "$GV" && break
6839 done
6840 test -n "$GV" || GV="echo gv"
6841
6842 if test "$GV" != "echo gv" ; then
6843
6844 cat >>confdefs.h <<\_ACEOF
6845 #define HAVE_GV 1
6846 _ACEOF
6847
6848     if test "$llvm_cv_os_type" = "MingW" ; then
6849     GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6850   fi
6851
6852 cat >>confdefs.h <<_ACEOF
6853 #define LLVM_PATH_GV "$GV${EXEEXT}"
6854 _ACEOF
6855
6856 fi
6857 # Extract the first word of "dotty", so it can be a program name with args.
6858 set dummy dotty; 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_DOTTY+set}" = set; then
6862   echo $ECHO_N "(cached) $ECHO_C" >&6
6863 else
6864   case $DOTTY in
6865   [\\/]* | ?:[\\/]*)
6866   ac_cv_path_DOTTY="$DOTTY" # 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_DOTTY="$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_DOTTY" && ac_cv_path_DOTTY="echo dotty"
6885   ;;
6886 esac
6887 fi
6888 DOTTY=$ac_cv_path_DOTTY
6889 if test -n "$DOTTY"; then
6890   { echo "$as_me:$LINENO: result: $DOTTY" >&5
6891 echo "${ECHO_T}$DOTTY" >&6; }
6892 else
6893   { echo "$as_me:$LINENO: result: no" >&5
6894 echo "${ECHO_T}no" >&6; }
6895 fi
6896
6897
6898 if test "$DOTTY" != "echo dotty" ; then
6899
6900 cat >>confdefs.h <<\_ACEOF
6901 #define HAVE_DOTTY 1
6902 _ACEOF
6903
6904     if test "$llvm_cv_os_type" = "MingW" ; then
6905     DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6906   fi
6907
6908 cat >>confdefs.h <<_ACEOF
6909 #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
6910 _ACEOF
6911
6912 fi
6913 # Extract the first word of "xdot.py", so it can be a program name with args.
6914 set dummy xdot.py; ac_word=$2
6915 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6916 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6917 if test "${ac_cv_path_XDOT_PY+set}" = set; then
6918   echo $ECHO_N "(cached) $ECHO_C" >&6
6919 else
6920   case $XDOT_PY in
6921   [\\/]* | ?:[\\/]*)
6922   ac_cv_path_XDOT_PY="$XDOT_PY" # Let the user override the test with a path.
6923   ;;
6924   *)
6925   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6926 for as_dir in $PATH
6927 do
6928   IFS=$as_save_IFS
6929   test -z "$as_dir" && as_dir=.
6930   for ac_exec_ext in '' $ac_executable_extensions; do
6931   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6932     ac_cv_path_XDOT_PY="$as_dir/$ac_word$ac_exec_ext"
6933     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6934     break 2
6935   fi
6936 done
6937 done
6938 IFS=$as_save_IFS
6939
6940   test -z "$ac_cv_path_XDOT_PY" && ac_cv_path_XDOT_PY="echo xdot.py"
6941   ;;
6942 esac
6943 fi
6944 XDOT_PY=$ac_cv_path_XDOT_PY
6945 if test -n "$XDOT_PY"; then
6946   { echo "$as_me:$LINENO: result: $XDOT_PY" >&5
6947 echo "${ECHO_T}$XDOT_PY" >&6; }
6948 else
6949   { echo "$as_me:$LINENO: result: no" >&5
6950 echo "${ECHO_T}no" >&6; }
6951 fi
6952
6953
6954 if test "$XDOT_PY" != "echo xdot.py" ; then
6955
6956 cat >>confdefs.h <<\_ACEOF
6957 #define HAVE_XDOT_PY 1
6958 _ACEOF
6959
6960     if test "$llvm_cv_os_type" = "MingW" ; then
6961     XDOT_PY=`echo $XDOT_PY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6962   fi
6963
6964 cat >>confdefs.h <<_ACEOF
6965 #define LLVM_PATH_XDOT_PY "$XDOT_PY${EXEEXT}"
6966 _ACEOF
6967
6968 fi
6969
6970
6971 # Extract the first word of "perl", so it can be a program name with args.
6972 set dummy perl; ac_word=$2
6973 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6974 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6975 if test "${ac_cv_path_PERL+set}" = set; then
6976   echo $ECHO_N "(cached) $ECHO_C" >&6
6977 else
6978   case $PERL in
6979   [\\/]* | ?:[\\/]*)
6980   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
6981   ;;
6982   *)
6983   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6984 for as_dir in $PATH
6985 do
6986   IFS=$as_save_IFS
6987   test -z "$as_dir" && as_dir=.
6988   for ac_exec_ext in '' $ac_executable_extensions; do
6989   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6990     ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
6991     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6992     break 2
6993   fi
6994 done
6995 done
6996 IFS=$as_save_IFS
6997
6998   test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
6999   ;;
7000 esac
7001 fi
7002 PERL=$ac_cv_path_PERL
7003 if test -n "$PERL"; then
7004   { echo "$as_me:$LINENO: result: $PERL" >&5
7005 echo "${ECHO_T}$PERL" >&6; }
7006 else
7007   { echo "$as_me:$LINENO: result: no" >&5
7008 echo "${ECHO_T}no" >&6; }
7009 fi
7010
7011
7012 if test "$PERL" != "none"; then
7013   { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
7014 echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; }
7015   if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then
7016     { echo "$as_me:$LINENO: result: yes" >&5
7017 echo "${ECHO_T}yes" >&6; }
7018   else
7019     PERL=none
7020     { echo "$as_me:$LINENO: result: not found" >&5
7021 echo "${ECHO_T}not found" >&6; }
7022   fi
7023 fi
7024
7025
7026 if test x"$PERL" = xnone; then
7027    HAVE_PERL=0
7028
7029    { { echo "$as_me:$LINENO: error: perl is required but was not found, please install it" >&5
7030 echo "$as_me: error: perl is required but was not found, please install it" >&2;}
7031    { (exit 1); exit 1; }; }
7032 else
7033    HAVE_PERL=1
7034
7035 fi
7036
7037 # Find a good install program.  We prefer a C program (faster),
7038 # so one script is as good as another.  But avoid the broken or
7039 # incompatible versions:
7040 # SysV /etc/install, /usr/sbin/install
7041 # SunOS /usr/etc/install
7042 # IRIX /sbin/install
7043 # AIX /bin/install
7044 # AmigaOS /C/install, which installs bootblocks on floppy discs
7045 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7046 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7047 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7048 # OS/2's system install, which has a completely different semantic
7049 # ./install, which can be erroneously created by make from ./install.sh.
7050 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7051 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
7052 if test -z "$INSTALL"; then
7053 if test "${ac_cv_path_install+set}" = set; then
7054   echo $ECHO_N "(cached) $ECHO_C" >&6
7055 else
7056   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7057 for as_dir in $PATH
7058 do
7059   IFS=$as_save_IFS
7060   test -z "$as_dir" && as_dir=.
7061   # Account for people who put trailing slashes in PATH elements.
7062 case $as_dir/ in
7063   ./ | .// | /cC/* | \
7064   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7065   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
7066   /usr/ucb/* ) ;;
7067   *)
7068     # OSF1 and SCO ODT 3.0 have their own names for install.
7069     # Don't use installbsd from OSF since it installs stuff as root
7070     # by default.
7071     for ac_prog in ginstall scoinst install; do
7072       for ac_exec_ext in '' $ac_executable_extensions; do
7073         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
7074           if test $ac_prog = install &&
7075             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7076             # AIX install.  It has an incompatible calling convention.
7077             :
7078           elif test $ac_prog = install &&
7079             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7080             # program-specific install script used by HP pwplus--don't use.
7081             :
7082           else
7083             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7084             break 3
7085           fi
7086         fi
7087       done
7088     done
7089     ;;
7090 esac
7091 done
7092 IFS=$as_save_IFS
7093
7094
7095 fi
7096   if test "${ac_cv_path_install+set}" = set; then
7097     INSTALL=$ac_cv_path_install
7098   else
7099     # As a last resort, use the slow shell script.  Don't cache a
7100     # value for INSTALL within a source directory, because that will
7101     # break other packages using the cache if that directory is
7102     # removed, or if the value is a relative name.
7103     INSTALL=$ac_install_sh
7104   fi
7105 fi
7106 { echo "$as_me:$LINENO: result: $INSTALL" >&5
7107 echo "${ECHO_T}$INSTALL" >&6; }
7108
7109 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7110 # It thinks the first close brace ends the variable substitution.
7111 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7112
7113 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7114
7115 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7116
7117 case "$INSTALL" in
7118  [\\/$]* | ?:[\\/]* ) ;;
7119  *)  INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
7120 esac
7121
7122 # Extract the first word of "bzip2", so it can be a program name with args.
7123 set dummy bzip2; ac_word=$2
7124 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7125 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7126 if test "${ac_cv_path_BZIP2+set}" = set; then
7127   echo $ECHO_N "(cached) $ECHO_C" >&6
7128 else
7129   case $BZIP2 in
7130   [\\/]* | ?:[\\/]*)
7131   ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7132   ;;
7133   *)
7134   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7135 for as_dir in $PATH
7136 do
7137   IFS=$as_save_IFS
7138   test -z "$as_dir" && as_dir=.
7139   for ac_exec_ext in '' $ac_executable_extensions; do
7140   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7141     ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
7142     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7143     break 2
7144   fi
7145 done
7146 done
7147 IFS=$as_save_IFS
7148
7149   ;;
7150 esac
7151 fi
7152 BZIP2=$ac_cv_path_BZIP2
7153 if test -n "$BZIP2"; then
7154   { echo "$as_me:$LINENO: result: $BZIP2" >&5
7155 echo "${ECHO_T}$BZIP2" >&6; }
7156 else
7157   { echo "$as_me:$LINENO: result: no" >&5
7158 echo "${ECHO_T}no" >&6; }
7159 fi
7160
7161
7162 # Extract the first word of "cat", so it can be a program name with args.
7163 set dummy cat; ac_word=$2
7164 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7165 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7166 if test "${ac_cv_path_CAT+set}" = set; then
7167   echo $ECHO_N "(cached) $ECHO_C" >&6
7168 else
7169   case $CAT in
7170   [\\/]* | ?:[\\/]*)
7171   ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
7172   ;;
7173   *)
7174   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7175 for as_dir in $PATH
7176 do
7177   IFS=$as_save_IFS
7178   test -z "$as_dir" && as_dir=.
7179   for ac_exec_ext in '' $ac_executable_extensions; do
7180   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7181     ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
7182     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7183     break 2
7184   fi
7185 done
7186 done
7187 IFS=$as_save_IFS
7188
7189   ;;
7190 esac
7191 fi
7192 CAT=$ac_cv_path_CAT
7193 if test -n "$CAT"; then
7194   { echo "$as_me:$LINENO: result: $CAT" >&5
7195 echo "${ECHO_T}$CAT" >&6; }
7196 else
7197   { echo "$as_me:$LINENO: result: no" >&5
7198 echo "${ECHO_T}no" >&6; }
7199 fi
7200
7201
7202 # Extract the first word of "doxygen", so it can be a program name with args.
7203 set dummy doxygen; ac_word=$2
7204 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7205 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7206 if test "${ac_cv_path_DOXYGEN+set}" = set; then
7207   echo $ECHO_N "(cached) $ECHO_C" >&6
7208 else
7209   case $DOXYGEN in
7210   [\\/]* | ?:[\\/]*)
7211   ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7212   ;;
7213   *)
7214   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7215 for as_dir in $PATH
7216 do
7217   IFS=$as_save_IFS
7218   test -z "$as_dir" && as_dir=.
7219   for ac_exec_ext in '' $ac_executable_extensions; do
7220   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7221     ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
7222     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7223     break 2
7224   fi
7225 done
7226 done
7227 IFS=$as_save_IFS
7228
7229   ;;
7230 esac
7231 fi
7232 DOXYGEN=$ac_cv_path_DOXYGEN
7233 if test -n "$DOXYGEN"; then
7234   { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7235 echo "${ECHO_T}$DOXYGEN" >&6; }
7236 else
7237   { echo "$as_me:$LINENO: result: no" >&5
7238 echo "${ECHO_T}no" >&6; }
7239 fi
7240
7241
7242 # Extract the first word of "groff", so it can be a program name with args.
7243 set dummy groff; ac_word=$2
7244 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7245 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7246 if test "${ac_cv_path_GROFF+set}" = set; then
7247   echo $ECHO_N "(cached) $ECHO_C" >&6
7248 else
7249   case $GROFF in
7250   [\\/]* | ?:[\\/]*)
7251   ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7252   ;;
7253   *)
7254   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7255 for as_dir in $PATH
7256 do
7257   IFS=$as_save_IFS
7258   test -z "$as_dir" && as_dir=.
7259   for ac_exec_ext in '' $ac_executable_extensions; do
7260   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7261     ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7262     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7263     break 2
7264   fi
7265 done
7266 done
7267 IFS=$as_save_IFS
7268
7269   ;;
7270 esac
7271 fi
7272 GROFF=$ac_cv_path_GROFF
7273 if test -n "$GROFF"; then
7274   { echo "$as_me:$LINENO: result: $GROFF" >&5
7275 echo "${ECHO_T}$GROFF" >&6; }
7276 else
7277   { echo "$as_me:$LINENO: result: no" >&5
7278 echo "${ECHO_T}no" >&6; }
7279 fi
7280
7281
7282 # Extract the first word of "gzip", so it can be a program name with args.
7283 set dummy gzip; ac_word=$2
7284 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7285 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7286 if test "${ac_cv_path_GZIPBIN+set}" = set; then
7287   echo $ECHO_N "(cached) $ECHO_C" >&6
7288 else
7289   case $GZIPBIN in
7290   [\\/]* | ?:[\\/]*)
7291   ac_cv_path_GZIPBIN="$GZIPBIN" # Let the user override the test with a path.
7292   ;;
7293   *)
7294   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7295 for as_dir in $PATH
7296 do
7297   IFS=$as_save_IFS
7298   test -z "$as_dir" && as_dir=.
7299   for ac_exec_ext in '' $ac_executable_extensions; do
7300   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7301     ac_cv_path_GZIPBIN="$as_dir/$ac_word$ac_exec_ext"
7302     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7303     break 2
7304   fi
7305 done
7306 done
7307 IFS=$as_save_IFS
7308
7309   ;;
7310 esac
7311 fi
7312 GZIPBIN=$ac_cv_path_GZIPBIN
7313 if test -n "$GZIPBIN"; then
7314   { echo "$as_me:$LINENO: result: $GZIPBIN" >&5
7315 echo "${ECHO_T}$GZIPBIN" >&6; }
7316 else
7317   { echo "$as_me:$LINENO: result: no" >&5
7318 echo "${ECHO_T}no" >&6; }
7319 fi
7320
7321
7322 # Extract the first word of "pod2html", so it can be a program name with args.
7323 set dummy pod2html; ac_word=$2
7324 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7325 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7326 if test "${ac_cv_path_POD2HTML+set}" = set; then
7327   echo $ECHO_N "(cached) $ECHO_C" >&6
7328 else
7329   case $POD2HTML in
7330   [\\/]* | ?:[\\/]*)
7331   ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
7332   ;;
7333   *)
7334   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7335 for as_dir in $PATH
7336 do
7337   IFS=$as_save_IFS
7338   test -z "$as_dir" && as_dir=.
7339   for ac_exec_ext in '' $ac_executable_extensions; do
7340   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7341     ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
7342     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7343     break 2
7344   fi
7345 done
7346 done
7347 IFS=$as_save_IFS
7348
7349   ;;
7350 esac
7351 fi
7352 POD2HTML=$ac_cv_path_POD2HTML
7353 if test -n "$POD2HTML"; then
7354   { echo "$as_me:$LINENO: result: $POD2HTML" >&5
7355 echo "${ECHO_T}$POD2HTML" >&6; }
7356 else
7357   { echo "$as_me:$LINENO: result: no" >&5
7358 echo "${ECHO_T}no" >&6; }
7359 fi
7360
7361
7362 # Extract the first word of "pod2man", so it can be a program name with args.
7363 set dummy pod2man; ac_word=$2
7364 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7365 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7366 if test "${ac_cv_path_POD2MAN+set}" = set; then
7367   echo $ECHO_N "(cached) $ECHO_C" >&6
7368 else
7369   case $POD2MAN in
7370   [\\/]* | ?:[\\/]*)
7371   ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
7372   ;;
7373   *)
7374   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7375 for as_dir in $PATH
7376 do
7377   IFS=$as_save_IFS
7378   test -z "$as_dir" && as_dir=.
7379   for ac_exec_ext in '' $ac_executable_extensions; do
7380   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7381     ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
7382     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7383     break 2
7384   fi
7385 done
7386 done
7387 IFS=$as_save_IFS
7388
7389   ;;
7390 esac
7391 fi
7392 POD2MAN=$ac_cv_path_POD2MAN
7393 if test -n "$POD2MAN"; then
7394   { echo "$as_me:$LINENO: result: $POD2MAN" >&5
7395 echo "${ECHO_T}$POD2MAN" >&6; }
7396 else
7397   { echo "$as_me:$LINENO: result: no" >&5
7398 echo "${ECHO_T}no" >&6; }
7399 fi
7400
7401
7402 # Extract the first word of "pdfroff", so it can be a program name with args.
7403 set dummy pdfroff; ac_word=$2
7404 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7405 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7406 if test "${ac_cv_path_PDFROFF+set}" = set; then
7407   echo $ECHO_N "(cached) $ECHO_C" >&6
7408 else
7409   case $PDFROFF in
7410   [\\/]* | ?:[\\/]*)
7411   ac_cv_path_PDFROFF="$PDFROFF" # Let the user override the test with a path.
7412   ;;
7413   *)
7414   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7415 for as_dir in $PATH
7416 do
7417   IFS=$as_save_IFS
7418   test -z "$as_dir" && as_dir=.
7419   for ac_exec_ext in '' $ac_executable_extensions; do
7420   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7421     ac_cv_path_PDFROFF="$as_dir/$ac_word$ac_exec_ext"
7422     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7423     break 2
7424   fi
7425 done
7426 done
7427 IFS=$as_save_IFS
7428
7429   ;;
7430 esac
7431 fi
7432 PDFROFF=$ac_cv_path_PDFROFF
7433 if test -n "$PDFROFF"; then
7434   { echo "$as_me:$LINENO: result: $PDFROFF" >&5
7435 echo "${ECHO_T}$PDFROFF" >&6; }
7436 else
7437   { echo "$as_me:$LINENO: result: no" >&5
7438 echo "${ECHO_T}no" >&6; }
7439 fi
7440
7441
7442 # Extract the first word of "runtest", so it can be a program name with args.
7443 set dummy runtest; ac_word=$2
7444 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7445 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7446 if test "${ac_cv_path_RUNTEST+set}" = set; then
7447   echo $ECHO_N "(cached) $ECHO_C" >&6
7448 else
7449   case $RUNTEST in
7450   [\\/]* | ?:[\\/]*)
7451   ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
7452   ;;
7453   *)
7454   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7455 for as_dir in $PATH
7456 do
7457   IFS=$as_save_IFS
7458   test -z "$as_dir" && as_dir=.
7459   for ac_exec_ext in '' $ac_executable_extensions; do
7460   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7461     ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
7462     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7463     break 2
7464   fi
7465 done
7466 done
7467 IFS=$as_save_IFS
7468
7469   ;;
7470 esac
7471 fi
7472 RUNTEST=$ac_cv_path_RUNTEST
7473 if test -n "$RUNTEST"; then
7474   { echo "$as_me:$LINENO: result: $RUNTEST" >&5
7475 echo "${ECHO_T}$RUNTEST" >&6; }
7476 else
7477   { echo "$as_me:$LINENO: result: no" >&5
7478 echo "${ECHO_T}no" >&6; }
7479 fi
7480
7481
7482
7483 no_itcl=true
7484 { echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
7485 echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
7486
7487 # Check whether --with-tclinclude was given.
7488 if test "${with_tclinclude+set}" = set; then
7489   withval=$with_tclinclude; with_tclinclude=${withval}
7490 else
7491   with_tclinclude=''
7492 fi
7493
7494 if test "${ac_cv_path_tclsh+set}" = set; then
7495   echo $ECHO_N "(cached) $ECHO_C" >&6
7496 else
7497
7498 if test x"${with_tclinclude}" != x ; then
7499   if test -f ${with_tclinclude}/tclsh ; then
7500     ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
7501   elif test -f ${with_tclinclude}/src/tclsh ; then
7502     ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
7503   else
7504     { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
7505 echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
7506    { (exit 1); exit 1; }; }
7507   fi
7508 fi
7509 fi
7510
7511
7512 if test x"${ac_cv_path_tclsh}" = x ; then
7513   { echo "$as_me:$LINENO: result: none" >&5
7514 echo "${ECHO_T}none" >&6; }
7515   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
7516 do
7517   # Extract the first word of "$ac_prog", so it can be a program name with args.
7518 set dummy $ac_prog; ac_word=$2
7519 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7520 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7521 if test "${ac_cv_path_TCLSH+set}" = set; then
7522   echo $ECHO_N "(cached) $ECHO_C" >&6
7523 else
7524   case $TCLSH in
7525   [\\/]* | ?:[\\/]*)
7526   ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
7527   ;;
7528   *)
7529   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7530 for as_dir in $PATH
7531 do
7532   IFS=$as_save_IFS
7533   test -z "$as_dir" && as_dir=.
7534   for ac_exec_ext in '' $ac_executable_extensions; do
7535   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7536     ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
7537     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7538     break 2
7539   fi
7540 done
7541 done
7542 IFS=$as_save_IFS
7543
7544   ;;
7545 esac
7546 fi
7547 TCLSH=$ac_cv_path_TCLSH
7548 if test -n "$TCLSH"; then
7549   { echo "$as_me:$LINENO: result: $TCLSH" >&5
7550 echo "${ECHO_T}$TCLSH" >&6; }
7551 else
7552   { echo "$as_me:$LINENO: result: no" >&5
7553 echo "${ECHO_T}no" >&6; }
7554 fi
7555
7556
7557   test -n "$TCLSH" && break
7558 done
7559
7560   if test x"${TCLSH}" = x ; then
7561     ac_cv_path_tclsh='';
7562   else
7563     ac_cv_path_tclsh="${TCLSH}";
7564   fi
7565 else
7566   { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
7567 echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
7568   TCLSH="${ac_cv_path_tclsh}"
7569
7570 fi
7571
7572 # Extract the first word of "zip", so it can be a program name with args.
7573 set dummy zip; ac_word=$2
7574 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7575 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7576 if test "${ac_cv_path_ZIP+set}" = set; then
7577   echo $ECHO_N "(cached) $ECHO_C" >&6
7578 else
7579   case $ZIP in
7580   [\\/]* | ?:[\\/]*)
7581   ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
7582   ;;
7583   *)
7584   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7585 for as_dir in $PATH
7586 do
7587   IFS=$as_save_IFS
7588   test -z "$as_dir" && as_dir=.
7589   for ac_exec_ext in '' $ac_executable_extensions; do
7590   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7591     ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
7592     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7593     break 2
7594   fi
7595 done
7596 done
7597 IFS=$as_save_IFS
7598
7599   ;;
7600 esac
7601 fi
7602 ZIP=$ac_cv_path_ZIP
7603 if test -n "$ZIP"; then
7604   { echo "$as_me:$LINENO: result: $ZIP" >&5
7605 echo "${ECHO_T}$ZIP" >&6; }
7606 else
7607   { echo "$as_me:$LINENO: result: no" >&5
7608 echo "${ECHO_T}no" >&6; }
7609 fi
7610
7611
7612 for ac_prog in ocamlc
7613 do
7614   # Extract the first word of "$ac_prog", so it can be a program name with args.
7615 set dummy $ac_prog; ac_word=$2
7616 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7617 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7618 if test "${ac_cv_path_OCAMLC+set}" = set; then
7619   echo $ECHO_N "(cached) $ECHO_C" >&6
7620 else
7621   case $OCAMLC in
7622   [\\/]* | ?:[\\/]*)
7623   ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
7624   ;;
7625   *)
7626   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7627 for as_dir in $PATH
7628 do
7629   IFS=$as_save_IFS
7630   test -z "$as_dir" && as_dir=.
7631   for ac_exec_ext in '' $ac_executable_extensions; do
7632   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7633     ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
7634     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7635     break 2
7636   fi
7637 done
7638 done
7639 IFS=$as_save_IFS
7640
7641   ;;
7642 esac
7643 fi
7644 OCAMLC=$ac_cv_path_OCAMLC
7645 if test -n "$OCAMLC"; then
7646   { echo "$as_me:$LINENO: result: $OCAMLC" >&5
7647 echo "${ECHO_T}$OCAMLC" >&6; }
7648 else
7649   { echo "$as_me:$LINENO: result: no" >&5
7650 echo "${ECHO_T}no" >&6; }
7651 fi
7652
7653
7654   test -n "$OCAMLC" && break
7655 done
7656
7657 for ac_prog in ocamlopt
7658 do
7659   # Extract the first word of "$ac_prog", so it can be a program name with args.
7660 set dummy $ac_prog; ac_word=$2
7661 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7662 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7663 if test "${ac_cv_path_OCAMLOPT+set}" = set; then
7664   echo $ECHO_N "(cached) $ECHO_C" >&6
7665 else
7666   case $OCAMLOPT in
7667   [\\/]* | ?:[\\/]*)
7668   ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
7669   ;;
7670   *)
7671   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7672 for as_dir in $PATH
7673 do
7674   IFS=$as_save_IFS
7675   test -z "$as_dir" && as_dir=.
7676   for ac_exec_ext in '' $ac_executable_extensions; do
7677   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7678     ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
7679     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7680     break 2
7681   fi
7682 done
7683 done
7684 IFS=$as_save_IFS
7685
7686   ;;
7687 esac
7688 fi
7689 OCAMLOPT=$ac_cv_path_OCAMLOPT
7690 if test -n "$OCAMLOPT"; then
7691   { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
7692 echo "${ECHO_T}$OCAMLOPT" >&6; }
7693 else
7694   { echo "$as_me:$LINENO: result: no" >&5
7695 echo "${ECHO_T}no" >&6; }
7696 fi
7697
7698
7699   test -n "$OCAMLOPT" && break
7700 done
7701
7702 for ac_prog in ocamldep
7703 do
7704   # Extract the first word of "$ac_prog", so it can be a program name with args.
7705 set dummy $ac_prog; ac_word=$2
7706 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7707 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7708 if test "${ac_cv_path_OCAMLDEP+set}" = set; then
7709   echo $ECHO_N "(cached) $ECHO_C" >&6
7710 else
7711   case $OCAMLDEP in
7712   [\\/]* | ?:[\\/]*)
7713   ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
7714   ;;
7715   *)
7716   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7717 for as_dir in $PATH
7718 do
7719   IFS=$as_save_IFS
7720   test -z "$as_dir" && as_dir=.
7721   for ac_exec_ext in '' $ac_executable_extensions; do
7722   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7723     ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
7724     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7725     break 2
7726   fi
7727 done
7728 done
7729 IFS=$as_save_IFS
7730
7731   ;;
7732 esac
7733 fi
7734 OCAMLDEP=$ac_cv_path_OCAMLDEP
7735 if test -n "$OCAMLDEP"; then
7736   { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
7737 echo "${ECHO_T}$OCAMLDEP" >&6; }
7738 else
7739   { echo "$as_me:$LINENO: result: no" >&5
7740 echo "${ECHO_T}no" >&6; }
7741 fi
7742
7743
7744   test -n "$OCAMLDEP" && break
7745 done
7746
7747 for ac_prog in ocamldoc
7748 do
7749   # Extract the first word of "$ac_prog", so it can be a program name with args.
7750 set dummy $ac_prog; ac_word=$2
7751 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7752 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7753 if test "${ac_cv_path_OCAMLDOC+set}" = set; then
7754   echo $ECHO_N "(cached) $ECHO_C" >&6
7755 else
7756   case $OCAMLDOC in
7757   [\\/]* | ?:[\\/]*)
7758   ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
7759   ;;
7760   *)
7761   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7762 for as_dir in $PATH
7763 do
7764   IFS=$as_save_IFS
7765   test -z "$as_dir" && as_dir=.
7766   for ac_exec_ext in '' $ac_executable_extensions; do
7767   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7768     ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
7769     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7770     break 2
7771   fi
7772 done
7773 done
7774 IFS=$as_save_IFS
7775
7776   ;;
7777 esac
7778 fi
7779 OCAMLDOC=$ac_cv_path_OCAMLDOC
7780 if test -n "$OCAMLDOC"; then
7781   { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
7782 echo "${ECHO_T}$OCAMLDOC" >&6; }
7783 else
7784   { echo "$as_me:$LINENO: result: no" >&5
7785 echo "${ECHO_T}no" >&6; }
7786 fi
7787
7788
7789   test -n "$OCAMLDOC" && break
7790 done
7791
7792 for ac_prog in gas as
7793 do
7794   # Extract the first word of "$ac_prog", so it can be a program name with args.
7795 set dummy $ac_prog; ac_word=$2
7796 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7797 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7798 if test "${ac_cv_path_GAS+set}" = set; then
7799   echo $ECHO_N "(cached) $ECHO_C" >&6
7800 else
7801   case $GAS in
7802   [\\/]* | ?:[\\/]*)
7803   ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
7804   ;;
7805   *)
7806   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7807 for as_dir in $PATH
7808 do
7809   IFS=$as_save_IFS
7810   test -z "$as_dir" && as_dir=.
7811   for ac_exec_ext in '' $ac_executable_extensions; do
7812   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7813     ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
7814     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7815     break 2
7816   fi
7817 done
7818 done
7819 IFS=$as_save_IFS
7820
7821   ;;
7822 esac
7823 fi
7824 GAS=$ac_cv_path_GAS
7825 if test -n "$GAS"; then
7826   { echo "$as_me:$LINENO: result: $GAS" >&5
7827 echo "${ECHO_T}$GAS" >&6; }
7828 else
7829   { echo "$as_me:$LINENO: result: no" >&5
7830 echo "${ECHO_T}no" >&6; }
7831 fi
7832
7833
7834   test -n "$GAS" && break
7835 done
7836
7837
7838 { echo "$as_me:$LINENO: checking for linker version" >&5
7839 echo $ECHO_N "checking for linker version... $ECHO_C" >&6; }
7840 if test "${llvm_cv_link_version+set}" = set; then
7841   echo $ECHO_N "(cached) $ECHO_C" >&6
7842 else
7843
7844    version_string="$(ld -v 2>&1 | head -1)"
7845
7846    # Check for ld64.
7847    if (echo "$version_string" | grep -q "ld64"); then
7848      llvm_cv_link_version=$(echo "$version_string" | sed -e "s#.*ld64-\([^ ]*\)#\1#")
7849    else
7850      llvm_cv_link_version=$(echo "$version_string" | sed -e "s#[^0-9]*\([0-9.]*\).*#\1#")
7851    fi
7852
7853 fi
7854 { echo "$as_me:$LINENO: result: $llvm_cv_link_version" >&5
7855 echo "${ECHO_T}$llvm_cv_link_version" >&6; }
7856
7857 cat >>confdefs.h <<_ACEOF
7858 #define HOST_LINK_VERSION "$llvm_cv_link_version"
7859 _ACEOF
7860
7861
7862
7863 { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
7864 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
7865 if test "${llvm_cv_link_use_r+set}" = set; then
7866   echo $ECHO_N "(cached) $ECHO_C" >&6
7867 else
7868    ac_ext=c
7869 ac_cpp='$CPP $CPPFLAGS'
7870 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7871 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7872 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7873
7874   oldcflags="$CFLAGS"
7875   CFLAGS="$CFLAGS -Wl,-R."
7876   cat >conftest.$ac_ext <<_ACEOF
7877 /* confdefs.h.  */
7878 _ACEOF
7879 cat confdefs.h >>conftest.$ac_ext
7880 cat >>conftest.$ac_ext <<_ACEOF
7881 /* end confdefs.h.  */
7882
7883 int
7884 main ()
7885 {
7886
7887   ;
7888   return 0;
7889 }
7890 _ACEOF
7891 rm -f conftest.$ac_objext conftest$ac_exeext
7892 if { (ac_try="$ac_link"
7893 case "(($ac_try" in
7894   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7895   *) ac_try_echo=$ac_try;;
7896 esac
7897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7898   (eval "$ac_link") 2>conftest.er1
7899   ac_status=$?
7900   grep -v '^ *+' conftest.er1 >conftest.err
7901   rm -f conftest.er1
7902   cat conftest.err >&5
7903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7904   (exit $ac_status); } &&
7905          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7906   { (case "(($ac_try" in
7907   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7908   *) ac_try_echo=$ac_try;;
7909 esac
7910 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7911   (eval "$ac_try") 2>&5
7912   ac_status=$?
7913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7914   (exit $ac_status); }; } &&
7915          { ac_try='test -s conftest$ac_exeext'
7916   { (case "(($ac_try" in
7917   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7918   *) ac_try_echo=$ac_try;;
7919 esac
7920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7921   (eval "$ac_try") 2>&5
7922   ac_status=$?
7923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7924   (exit $ac_status); }; }; then
7925   llvm_cv_link_use_r=yes
7926 else
7927   echo "$as_me: failed program was:" >&5
7928 sed 's/^/| /' conftest.$ac_ext >&5
7929
7930         llvm_cv_link_use_r=no
7931 fi
7932
7933 rm -f core conftest.err conftest.$ac_objext \
7934       conftest$ac_exeext conftest.$ac_ext
7935   CFLAGS="$oldcflags"
7936   ac_ext=c
7937 ac_cpp='$CPP $CPPFLAGS'
7938 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7939 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7940 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7941
7942
7943 fi
7944 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
7945 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
7946 if test "$llvm_cv_link_use_r" = yes ; then
7947
7948 cat >>confdefs.h <<\_ACEOF
7949 #define HAVE_LINK_R 1
7950 _ACEOF
7951
7952   fi
7953
7954
7955 { echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5
7956 echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; }
7957 if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
7958   echo $ECHO_N "(cached) $ECHO_C" >&6
7959 else
7960    ac_ext=c
7961 ac_cpp='$CPP $CPPFLAGS'
7962 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7963 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7964 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7965
7966   oldcflags="$CFLAGS"
7967   CFLAGS="$CFLAGS -Wl,-export-dynamic"
7968   cat >conftest.$ac_ext <<_ACEOF
7969 /* confdefs.h.  */
7970 _ACEOF
7971 cat confdefs.h >>conftest.$ac_ext
7972 cat >>conftest.$ac_ext <<_ACEOF
7973 /* end confdefs.h.  */
7974
7975 int
7976 main ()
7977 {
7978
7979   ;
7980   return 0;
7981 }
7982 _ACEOF
7983 rm -f conftest.$ac_objext conftest$ac_exeext
7984 if { (ac_try="$ac_link"
7985 case "(($ac_try" in
7986   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7987   *) ac_try_echo=$ac_try;;
7988 esac
7989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7990   (eval "$ac_link") 2>conftest.er1
7991   ac_status=$?
7992   grep -v '^ *+' conftest.er1 >conftest.err
7993   rm -f conftest.er1
7994   cat conftest.err >&5
7995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7996   (exit $ac_status); } &&
7997          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7998   { (case "(($ac_try" in
7999   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8000   *) ac_try_echo=$ac_try;;
8001 esac
8002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8003   (eval "$ac_try") 2>&5
8004   ac_status=$?
8005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8006   (exit $ac_status); }; } &&
8007          { ac_try='test -s conftest$ac_exeext'
8008   { (case "(($ac_try" in
8009   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8010   *) ac_try_echo=$ac_try;;
8011 esac
8012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8013   (eval "$ac_try") 2>&5
8014   ac_status=$?
8015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8016   (exit $ac_status); }; }; then
8017   llvm_cv_link_use_export_dynamic=yes
8018 else
8019   echo "$as_me: failed program was:" >&5
8020 sed 's/^/| /' conftest.$ac_ext >&5
8021
8022         llvm_cv_link_use_export_dynamic=no
8023 fi
8024
8025 rm -f core conftest.err conftest.$ac_objext \
8026       conftest$ac_exeext conftest.$ac_ext
8027   CFLAGS="$oldcflags"
8028   ac_ext=c
8029 ac_cpp='$CPP $CPPFLAGS'
8030 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8031 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8032 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8033
8034
8035 fi
8036 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
8037 echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
8038 if test "$llvm_cv_link_use_export_dynamic" = yes ; then
8039
8040 cat >>confdefs.h <<\_ACEOF
8041 #define HAVE_LINK_EXPORT_DYNAMIC 1
8042 _ACEOF
8043
8044   fi
8045
8046
8047 { echo "$as_me:$LINENO: checking for compiler -Wl,--version-script option" >&5
8048 echo $ECHO_N "checking for compiler -Wl,--version-script option... $ECHO_C" >&6; }
8049 if test "${llvm_cv_link_use_version_script+set}" = set; then
8050   echo $ECHO_N "(cached) $ECHO_C" >&6
8051 else
8052    ac_ext=c
8053 ac_cpp='$CPP $CPPFLAGS'
8054 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8055 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8056 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8057
8058   oldcflags="$CFLAGS"
8059
8060   # The following code is from the autoconf manual,
8061   # "11.13: Limitations of Usual Tools".
8062   # Create a temporary directory $tmp in $TMPDIR (default /tmp).
8063   # Use mktemp if possible; otherwise fall back on mkdir,
8064   # with $RANDOM to make collisions less likely.
8065   : ${TMPDIR=/tmp}
8066   {
8067     tmp=`
8068       (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null
8069     ` &&
8070     test -n "$tmp" && test -d "$tmp"
8071   } || {
8072     tmp=$TMPDIR/foo$$-$RANDOM
8073     (umask 077 && mkdir "$tmp")
8074   } || exit $?
8075
8076   echo "{" > "$tmp/export.map"
8077   echo "  global: main;" >> "$tmp/export.map"
8078   echo "  local: *;" >> "$tmp/export.map"
8079   echo "};" >> "$tmp/export.map"
8080
8081   CFLAGS="$CFLAGS -Wl,--version-script=$tmp/export.map"
8082   cat >conftest.$ac_ext <<_ACEOF
8083 /* confdefs.h.  */
8084 _ACEOF
8085 cat confdefs.h >>conftest.$ac_ext
8086 cat >>conftest.$ac_ext <<_ACEOF
8087 /* end confdefs.h.  */
8088
8089 int
8090 main ()
8091 {
8092
8093   ;
8094   return 0;
8095 }
8096 _ACEOF
8097 rm -f conftest.$ac_objext conftest$ac_exeext
8098 if { (ac_try="$ac_link"
8099 case "(($ac_try" in
8100   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8101   *) ac_try_echo=$ac_try;;
8102 esac
8103 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8104   (eval "$ac_link") 2>conftest.er1
8105   ac_status=$?
8106   grep -v '^ *+' conftest.er1 >conftest.err
8107   rm -f conftest.er1
8108   cat conftest.err >&5
8109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8110   (exit $ac_status); } &&
8111          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8112   { (case "(($ac_try" in
8113   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8114   *) ac_try_echo=$ac_try;;
8115 esac
8116 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8117   (eval "$ac_try") 2>&5
8118   ac_status=$?
8119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8120   (exit $ac_status); }; } &&
8121          { ac_try='test -s conftest$ac_exeext'
8122   { (case "(($ac_try" in
8123   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8124   *) ac_try_echo=$ac_try;;
8125 esac
8126 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8127   (eval "$ac_try") 2>&5
8128   ac_status=$?
8129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8130   (exit $ac_status); }; }; then
8131   llvm_cv_link_use_version_script=yes
8132 else
8133   echo "$as_me: failed program was:" >&5
8134 sed 's/^/| /' conftest.$ac_ext >&5
8135
8136         llvm_cv_link_use_version_script=no
8137 fi
8138
8139 rm -f core conftest.err conftest.$ac_objext \
8140       conftest$ac_exeext conftest.$ac_ext
8141   rm "$tmp/export.map"
8142   rmdir "$tmp"
8143   CFLAGS="$oldcflags"
8144   ac_ext=c
8145 ac_cpp='$CPP $CPPFLAGS'
8146 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8147 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8148 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8149
8150
8151 fi
8152 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_version_script" >&5
8153 echo "${ECHO_T}$llvm_cv_link_use_version_script" >&6; }
8154 if test "$llvm_cv_link_use_version_script" = yes ; then
8155   HAVE_LINK_VERSION_SCRIPT=1
8156
8157   fi
8158
8159
8160
8161
8162 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8163 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8164 if test "${ac_cv_c_const+set}" = set; then
8165   echo $ECHO_N "(cached) $ECHO_C" >&6
8166 else
8167   cat >conftest.$ac_ext <<_ACEOF
8168 /* confdefs.h.  */
8169 _ACEOF
8170 cat confdefs.h >>conftest.$ac_ext
8171 cat >>conftest.$ac_ext <<_ACEOF
8172 /* end confdefs.h.  */
8173
8174 int
8175 main ()
8176 {
8177 /* FIXME: Include the comments suggested by Paul. */
8178 #ifndef __cplusplus
8179   /* Ultrix mips cc rejects this.  */
8180   typedef int charset[2];
8181   const charset x;
8182   /* SunOS 4.1.1 cc rejects this.  */
8183   char const *const *ccp;
8184   char **p;
8185   /* NEC SVR4.0.2 mips cc rejects this.  */
8186   struct point {int x, y;};
8187   static struct point const zero = {0,0};
8188   /* AIX XL C 1.02.0.0 rejects this.
8189      It does not let you subtract one const X* pointer from another in
8190      an arm of an if-expression whose if-part is not a constant
8191      expression */
8192   const char *g = "string";
8193   ccp = &g + (g ? g-g : 0);
8194   /* HPUX 7.0 cc rejects these. */
8195   ++ccp;
8196   p = (char**) ccp;
8197   ccp = (char const *const *) p;
8198   { /* SCO 3.2v4 cc rejects this.  */
8199     char *t;
8200     char const *s = 0 ? (char *) 0 : (char const *) 0;
8201
8202     *t++ = 0;
8203     if (s) return 0;
8204   }
8205   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
8206     int x[] = {25, 17};
8207     const int *foo = &x[0];
8208     ++foo;
8209   }
8210   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8211     typedef const int *iptr;
8212     iptr p = 0;
8213     ++p;
8214   }
8215   { /* AIX XL C 1.02.0.0 rejects this saying
8216        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8217     struct s { int j; const int *ap[3]; };
8218     struct s *b; b->j = 5;
8219   }
8220   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8221     const int foo = 10;
8222     if (!foo) return 0;
8223   }
8224   return !x[0] && !zero.x;
8225 #endif
8226
8227   ;
8228   return 0;
8229 }
8230 _ACEOF
8231 rm -f conftest.$ac_objext
8232 if { (ac_try="$ac_compile"
8233 case "(($ac_try" in
8234   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8235   *) ac_try_echo=$ac_try;;
8236 esac
8237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8238   (eval "$ac_compile") 2>conftest.er1
8239   ac_status=$?
8240   grep -v '^ *+' conftest.er1 >conftest.err
8241   rm -f conftest.er1
8242   cat conftest.err >&5
8243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8244   (exit $ac_status); } &&
8245          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8246   { (case "(($ac_try" in
8247   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8248   *) ac_try_echo=$ac_try;;
8249 esac
8250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8251   (eval "$ac_try") 2>&5
8252   ac_status=$?
8253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8254   (exit $ac_status); }; } &&
8255          { ac_try='test -s conftest.$ac_objext'
8256   { (case "(($ac_try" in
8257   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8258   *) ac_try_echo=$ac_try;;
8259 esac
8260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8261   (eval "$ac_try") 2>&5
8262   ac_status=$?
8263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8264   (exit $ac_status); }; }; then
8265   ac_cv_c_const=yes
8266 else
8267   echo "$as_me: failed program was:" >&5
8268 sed 's/^/| /' conftest.$ac_ext >&5
8269
8270         ac_cv_c_const=no
8271 fi
8272
8273 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8274 fi
8275 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8276 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8277 if test $ac_cv_c_const = no; then
8278
8279 cat >>confdefs.h <<\_ACEOF
8280 #define const
8281 _ACEOF
8282
8283 fi
8284
8285
8286
8287
8288
8289
8290 ac_header_dirent=no
8291 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8292   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8293 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8294 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8295 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8296   echo $ECHO_N "(cached) $ECHO_C" >&6
8297 else
8298   cat >conftest.$ac_ext <<_ACEOF
8299 /* confdefs.h.  */
8300 _ACEOF
8301 cat confdefs.h >>conftest.$ac_ext
8302 cat >>conftest.$ac_ext <<_ACEOF
8303 /* end confdefs.h.  */
8304 #include <sys/types.h>
8305 #include <$ac_hdr>
8306
8307 int
8308 main ()
8309 {
8310 if ((DIR *) 0)
8311 return 0;
8312   ;
8313   return 0;
8314 }
8315 _ACEOF
8316 rm -f conftest.$ac_objext
8317 if { (ac_try="$ac_compile"
8318 case "(($ac_try" in
8319   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8320   *) ac_try_echo=$ac_try;;
8321 esac
8322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8323   (eval "$ac_compile") 2>conftest.er1
8324   ac_status=$?
8325   grep -v '^ *+' conftest.er1 >conftest.err
8326   rm -f conftest.er1
8327   cat conftest.err >&5
8328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8329   (exit $ac_status); } &&
8330          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8331   { (case "(($ac_try" in
8332   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8333   *) ac_try_echo=$ac_try;;
8334 esac
8335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8336   (eval "$ac_try") 2>&5
8337   ac_status=$?
8338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8339   (exit $ac_status); }; } &&
8340          { ac_try='test -s conftest.$ac_objext'
8341   { (case "(($ac_try" in
8342   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8343   *) ac_try_echo=$ac_try;;
8344 esac
8345 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8346   (eval "$ac_try") 2>&5
8347   ac_status=$?
8348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8349   (exit $ac_status); }; }; then
8350   eval "$as_ac_Header=yes"
8351 else
8352   echo "$as_me: failed program was:" >&5
8353 sed 's/^/| /' conftest.$ac_ext >&5
8354
8355         eval "$as_ac_Header=no"
8356 fi
8357
8358 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8359 fi
8360 ac_res=`eval echo '${'$as_ac_Header'}'`
8361                { echo "$as_me:$LINENO: result: $ac_res" >&5
8362 echo "${ECHO_T}$ac_res" >&6; }
8363 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8364   cat >>confdefs.h <<_ACEOF
8365 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8366 _ACEOF
8367
8368 ac_header_dirent=$ac_hdr; break
8369 fi
8370
8371 done
8372 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8373 if test $ac_header_dirent = dirent.h; then
8374   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8375 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8376 if test "${ac_cv_search_opendir+set}" = set; then
8377   echo $ECHO_N "(cached) $ECHO_C" >&6
8378 else
8379   ac_func_search_save_LIBS=$LIBS
8380 cat >conftest.$ac_ext <<_ACEOF
8381 /* confdefs.h.  */
8382 _ACEOF
8383 cat confdefs.h >>conftest.$ac_ext
8384 cat >>conftest.$ac_ext <<_ACEOF
8385 /* end confdefs.h.  */
8386
8387 /* Override any GCC internal prototype to avoid an error.
8388    Use char because int might match the return type of a GCC
8389    builtin and then its argument prototype would still apply.  */
8390 #ifdef __cplusplus
8391 extern "C"
8392 #endif
8393 char opendir ();
8394 int
8395 main ()
8396 {
8397 return opendir ();
8398   ;
8399   return 0;
8400 }
8401 _ACEOF
8402 for ac_lib in '' dir; do
8403   if test -z "$ac_lib"; then
8404     ac_res="none required"
8405   else
8406     ac_res=-l$ac_lib
8407     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8408   fi
8409   rm -f conftest.$ac_objext conftest$ac_exeext
8410 if { (ac_try="$ac_link"
8411 case "(($ac_try" in
8412   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8413   *) ac_try_echo=$ac_try;;
8414 esac
8415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8416   (eval "$ac_link") 2>conftest.er1
8417   ac_status=$?
8418   grep -v '^ *+' conftest.er1 >conftest.err
8419   rm -f conftest.er1
8420   cat conftest.err >&5
8421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8422   (exit $ac_status); } &&
8423          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8424   { (case "(($ac_try" in
8425   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8426   *) ac_try_echo=$ac_try;;
8427 esac
8428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8429   (eval "$ac_try") 2>&5
8430   ac_status=$?
8431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8432   (exit $ac_status); }; } &&
8433          { ac_try='test -s conftest$ac_exeext'
8434   { (case "(($ac_try" in
8435   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8436   *) ac_try_echo=$ac_try;;
8437 esac
8438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8439   (eval "$ac_try") 2>&5
8440   ac_status=$?
8441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8442   (exit $ac_status); }; }; then
8443   ac_cv_search_opendir=$ac_res
8444 else
8445   echo "$as_me: failed program was:" >&5
8446 sed 's/^/| /' conftest.$ac_ext >&5
8447
8448
8449 fi
8450
8451 rm -f core conftest.err conftest.$ac_objext \
8452       conftest$ac_exeext
8453   if test "${ac_cv_search_opendir+set}" = set; then
8454   break
8455 fi
8456 done
8457 if test "${ac_cv_search_opendir+set}" = set; then
8458   :
8459 else
8460   ac_cv_search_opendir=no
8461 fi
8462 rm conftest.$ac_ext
8463 LIBS=$ac_func_search_save_LIBS
8464 fi
8465 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8466 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8467 ac_res=$ac_cv_search_opendir
8468 if test "$ac_res" != no; then
8469   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8470
8471 fi
8472
8473 else
8474   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8475 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8476 if test "${ac_cv_search_opendir+set}" = set; then
8477   echo $ECHO_N "(cached) $ECHO_C" >&6
8478 else
8479   ac_func_search_save_LIBS=$LIBS
8480 cat >conftest.$ac_ext <<_ACEOF
8481 /* confdefs.h.  */
8482 _ACEOF
8483 cat confdefs.h >>conftest.$ac_ext
8484 cat >>conftest.$ac_ext <<_ACEOF
8485 /* end confdefs.h.  */
8486
8487 /* Override any GCC internal prototype to avoid an error.
8488    Use char because int might match the return type of a GCC
8489    builtin and then its argument prototype would still apply.  */
8490 #ifdef __cplusplus
8491 extern "C"
8492 #endif
8493 char opendir ();
8494 int
8495 main ()
8496 {
8497 return opendir ();
8498   ;
8499   return 0;
8500 }
8501 _ACEOF
8502 for ac_lib in '' x; do
8503   if test -z "$ac_lib"; then
8504     ac_res="none required"
8505   else
8506     ac_res=-l$ac_lib
8507     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8508   fi
8509   rm -f conftest.$ac_objext conftest$ac_exeext
8510 if { (ac_try="$ac_link"
8511 case "(($ac_try" in
8512   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8513   *) ac_try_echo=$ac_try;;
8514 esac
8515 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8516   (eval "$ac_link") 2>conftest.er1
8517   ac_status=$?
8518   grep -v '^ *+' conftest.er1 >conftest.err
8519   rm -f conftest.er1
8520   cat conftest.err >&5
8521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8522   (exit $ac_status); } &&
8523          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8524   { (case "(($ac_try" in
8525   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8526   *) ac_try_echo=$ac_try;;
8527 esac
8528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8529   (eval "$ac_try") 2>&5
8530   ac_status=$?
8531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8532   (exit $ac_status); }; } &&
8533          { ac_try='test -s conftest$ac_exeext'
8534   { (case "(($ac_try" in
8535   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8536   *) ac_try_echo=$ac_try;;
8537 esac
8538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8539   (eval "$ac_try") 2>&5
8540   ac_status=$?
8541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8542   (exit $ac_status); }; }; then
8543   ac_cv_search_opendir=$ac_res
8544 else
8545   echo "$as_me: failed program was:" >&5
8546 sed 's/^/| /' conftest.$ac_ext >&5
8547
8548
8549 fi
8550
8551 rm -f core conftest.err conftest.$ac_objext \
8552       conftest$ac_exeext
8553   if test "${ac_cv_search_opendir+set}" = set; then
8554   break
8555 fi
8556 done
8557 if test "${ac_cv_search_opendir+set}" = set; then
8558   :
8559 else
8560   ac_cv_search_opendir=no
8561 fi
8562 rm conftest.$ac_ext
8563 LIBS=$ac_func_search_save_LIBS
8564 fi
8565 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8566 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8567 ac_res=$ac_cv_search_opendir
8568 if test "$ac_res" != no; then
8569   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8570
8571 fi
8572
8573 fi
8574
8575
8576 for ac_header in dlfcn.h
8577 do
8578 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8579 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8580   { echo "$as_me:$LINENO: checking for $ac_header" >&5
8581 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8582 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8583   echo $ECHO_N "(cached) $ECHO_C" >&6
8584 fi
8585 ac_res=`eval echo '${'$as_ac_Header'}'`
8586                { echo "$as_me:$LINENO: result: $ac_res" >&5
8587 echo "${ECHO_T}$ac_res" >&6; }
8588 else
8589   # Is the header compilable?
8590 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8591 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8592 cat >conftest.$ac_ext <<_ACEOF
8593 /* confdefs.h.  */
8594 _ACEOF
8595 cat confdefs.h >>conftest.$ac_ext
8596 cat >>conftest.$ac_ext <<_ACEOF
8597 /* end confdefs.h.  */
8598 $ac_includes_default
8599 #include <$ac_header>
8600 _ACEOF
8601 rm -f conftest.$ac_objext
8602 if { (ac_try="$ac_compile"
8603 case "(($ac_try" in
8604   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8605   *) ac_try_echo=$ac_try;;
8606 esac
8607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8608   (eval "$ac_compile") 2>conftest.er1
8609   ac_status=$?
8610   grep -v '^ *+' conftest.er1 >conftest.err
8611   rm -f conftest.er1
8612   cat conftest.err >&5
8613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8614   (exit $ac_status); } &&
8615          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8616   { (case "(($ac_try" in
8617   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8618   *) ac_try_echo=$ac_try;;
8619 esac
8620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8621   (eval "$ac_try") 2>&5
8622   ac_status=$?
8623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8624   (exit $ac_status); }; } &&
8625          { ac_try='test -s conftest.$ac_objext'
8626   { (case "(($ac_try" in
8627   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8628   *) ac_try_echo=$ac_try;;
8629 esac
8630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8631   (eval "$ac_try") 2>&5
8632   ac_status=$?
8633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8634   (exit $ac_status); }; }; then
8635   ac_header_compiler=yes
8636 else
8637   echo "$as_me: failed program was:" >&5
8638 sed 's/^/| /' conftest.$ac_ext >&5
8639
8640         ac_header_compiler=no
8641 fi
8642
8643 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8644 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8645 echo "${ECHO_T}$ac_header_compiler" >&6; }
8646
8647 # Is the header present?
8648 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8649 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8650 cat >conftest.$ac_ext <<_ACEOF
8651 /* confdefs.h.  */
8652 _ACEOF
8653 cat confdefs.h >>conftest.$ac_ext
8654 cat >>conftest.$ac_ext <<_ACEOF
8655 /* end confdefs.h.  */
8656 #include <$ac_header>
8657 _ACEOF
8658 if { (ac_try="$ac_cpp conftest.$ac_ext"
8659 case "(($ac_try" in
8660   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8661   *) ac_try_echo=$ac_try;;
8662 esac
8663 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8664   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8665   ac_status=$?
8666   grep -v '^ *+' conftest.er1 >conftest.err
8667   rm -f conftest.er1
8668   cat conftest.err >&5
8669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8670   (exit $ac_status); } >/dev/null; then
8671   if test -s conftest.err; then
8672     ac_cpp_err=$ac_c_preproc_warn_flag
8673     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8674   else
8675     ac_cpp_err=
8676   fi
8677 else
8678   ac_cpp_err=yes
8679 fi
8680 if test -z "$ac_cpp_err"; then
8681   ac_header_preproc=yes
8682 else
8683   echo "$as_me: failed program was:" >&5
8684 sed 's/^/| /' conftest.$ac_ext >&5
8685
8686   ac_header_preproc=no
8687 fi
8688
8689 rm -f conftest.err conftest.$ac_ext
8690 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8691 echo "${ECHO_T}$ac_header_preproc" >&6; }
8692
8693 # So?  What about this header?
8694 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8695   yes:no: )
8696     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8697 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8698     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8699 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8700     ac_header_preproc=yes
8701     ;;
8702   no:yes:* )
8703     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8704 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8705     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8706 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8707     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8708 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8709     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8710 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8711     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8712 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8713     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8714 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8715     ( cat <<\_ASBOX
8716 ## ----------------------------------- ##
8717 ## Report this to llvmbugs@cs.uiuc.edu ##
8718 ## ----------------------------------- ##
8719 _ASBOX
8720      ) | sed "s/^/$as_me: WARNING:     /" >&2
8721     ;;
8722 esac
8723 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8724 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8725 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8726   echo $ECHO_N "(cached) $ECHO_C" >&6
8727 else
8728   eval "$as_ac_Header=\$ac_header_preproc"
8729 fi
8730 ac_res=`eval echo '${'$as_ac_Header'}'`
8731                { echo "$as_me:$LINENO: result: $ac_res" >&5
8732 echo "${ECHO_T}$ac_res" >&6; }
8733
8734 fi
8735 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8736   cat >>confdefs.h <<_ACEOF
8737 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8738 _ACEOF
8739
8740 fi
8741
8742 done
8743
8744 # Check whether --enable-ltdl-install was given.
8745 if test "${enable_ltdl_install+set}" = set; then
8746   enableval=$enable_ltdl_install;
8747 fi
8748
8749
8750
8751
8752 if test x"${enable_ltdl_install-no}" != xno; then
8753   INSTALL_LTDL_TRUE=
8754   INSTALL_LTDL_FALSE='#'
8755 else
8756   INSTALL_LTDL_TRUE='#'
8757   INSTALL_LTDL_FALSE=
8758 fi
8759
8760
8761
8762 if test x"${enable_ltdl_convenience-no}" != xno; then
8763   CONVENIENCE_LTDL_TRUE=
8764   CONVENIENCE_LTDL_FALSE='#'
8765 else
8766   CONVENIENCE_LTDL_TRUE='#'
8767   CONVENIENCE_LTDL_FALSE=
8768 fi
8769
8770
8771 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8772 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8773 library_names_spec=
8774 libname_spec='lib$name'
8775 soname_spec=
8776 shrext_cmds=".so"
8777 postinstall_cmds=
8778 postuninstall_cmds=
8779 finish_cmds=
8780 finish_eval=
8781 shlibpath_var=
8782 shlibpath_overrides_runpath=unknown
8783 version_type=none
8784 dynamic_linker="$host_os ld.so"
8785 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8786 if test "$GCC" = yes; then
8787   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8788   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8789     # if the path contains ";" then we assume it to be the separator
8790     # otherwise default to the standard path separator (i.e. ":") - it is
8791     # assumed that no part of a normal pathname contains ";" but that should
8792     # okay in the real world where ";" in dirpaths is itself problematic.
8793     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8794   else
8795     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8796   fi
8797 else
8798   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8799 fi
8800 need_lib_prefix=unknown
8801 hardcode_into_libs=no
8802
8803 # when you set need_version to no, make sure it does not cause -set_version
8804 # flags to be left without arguments
8805 need_version=unknown
8806
8807 case $host_os in
8808 aix3*)
8809   version_type=linux
8810   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8811   shlibpath_var=LIBPATH
8812
8813   # AIX 3 has no versioning support, so we append a major version to the name.
8814   soname_spec='${libname}${release}${shared_ext}$major'
8815   ;;
8816
8817 aix4* | aix5*)
8818   version_type=linux
8819   need_lib_prefix=no
8820   need_version=no
8821   hardcode_into_libs=yes
8822   if test "$host_cpu" = ia64; then
8823     # AIX 5 supports IA64
8824     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8825     shlibpath_var=LD_LIBRARY_PATH
8826   else
8827     # With GCC up to 2.95.x, collect2 would create an import file
8828     # for dependence libraries.  The import file would start with
8829     # the line `#! .'.  This would cause the generated library to
8830     # depend on `.', always an invalid library.  This was fixed in
8831     # development snapshots of GCC prior to 3.0.
8832     case $host_os in
8833       aix4 | aix4.[01] | aix4.[01].*)
8834       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8835            echo ' yes '
8836            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8837         :
8838       else
8839         can_build_shared=no
8840       fi
8841       ;;
8842     esac
8843     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8844     # soname into executable. Probably we can add versioning support to
8845     # collect2, so additional links can be useful in future.
8846     if test "$aix_use_runtimelinking" = yes; then
8847       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8848       # instead of lib<name>.a to let people know that these are not
8849       # typical AIX shared libraries.
8850       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8851     else
8852       # We preserve .a as extension for shared libraries through AIX4.2
8853       # and later when we are not doing run time linking.
8854       library_names_spec='${libname}${release}.a $libname.a'
8855       soname_spec='${libname}${release}${shared_ext}$major'
8856     fi
8857     shlibpath_var=LIBPATH
8858   fi
8859   ;;
8860
8861 amigaos*)
8862   library_names_spec='$libname.ixlibrary $libname.a'
8863   # Create ${libname}_ixlibrary.a entries in /sys/libs.
8864   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'
8865   ;;
8866
8867 beos*)
8868   library_names_spec='${libname}${shared_ext}'
8869   dynamic_linker="$host_os ld.so"
8870   shlibpath_var=LIBRARY_PATH
8871   ;;
8872
8873 bsdi[45]*)
8874   version_type=linux
8875   need_version=no
8876   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8877   soname_spec='${libname}${release}${shared_ext}$major'
8878   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8879   shlibpath_var=LD_LIBRARY_PATH
8880   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8881   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8882   # the default ld.so.conf also contains /usr/contrib/lib and
8883   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8884   # libtool to hard-code these into programs
8885   ;;
8886
8887 cygwin* | mingw* | pw32*)
8888   version_type=windows
8889   shrext_cmds=".dll"
8890   need_version=no
8891   need_lib_prefix=no
8892
8893   case $GCC,$host_os in
8894   yes,cygwin* | yes,mingw* | yes,pw32*)
8895     library_names_spec='$libname.dll.a'
8896     # DLL is installed to $(libdir)/../bin by postinstall_cmds
8897     postinstall_cmds='base_file=`basename \${file}`~
8898       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8899       dldir=$destdir/`dirname \$dlpath`~
8900       test -d \$dldir || mkdir -p \$dldir~
8901       $install_prog $dir/$dlname \$dldir/$dlname~
8902       chmod a+x \$dldir/$dlname'
8903     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8904       dlpath=$dir/\$dldll~
8905        $rm \$dlpath'
8906     shlibpath_overrides_runpath=yes
8907
8908     case $host_os in
8909     cygwin*)
8910       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8911       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8912       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8913       ;;
8914     mingw*)
8915       # MinGW DLLs use traditional 'lib' prefix
8916       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8917       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8918       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8919         # It is most probably a Windows format PATH printed by
8920         # mingw gcc, but we are running on Cygwin. Gcc prints its search
8921         # path with ; separators, and with drive letters. We can handle the
8922         # drive letters (cygwin fileutils understands them), so leave them,
8923         # especially as we might pass files found there to a mingw objdump,
8924         # which wouldn't understand a cygwinified path. Ahh.
8925         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8926       else
8927         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8928       fi
8929       ;;
8930     pw32*)
8931       # pw32 DLLs use 'pw' prefix rather than 'lib'
8932       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8933       ;;
8934     esac
8935     ;;
8936
8937   *)
8938     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8939     ;;
8940   esac
8941   dynamic_linker='Win32 ld.exe'
8942   # FIXME: first we should search . and the directory the executable is in
8943   shlibpath_var=PATH
8944   ;;
8945
8946 darwin* | rhapsody*)
8947   dynamic_linker="$host_os dyld"
8948   version_type=darwin
8949   need_lib_prefix=no
8950   need_version=no
8951   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8952   soname_spec='${libname}${release}${major}$shared_ext'
8953   shlibpath_overrides_runpath=yes
8954   shlibpath_var=DYLD_LIBRARY_PATH
8955   shrext_cmds='.dylib'
8956   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8957   if test "$GCC" = yes; then
8958     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"`
8959   else
8960     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8961   fi
8962   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8963   ;;
8964
8965 dgux*)
8966   version_type=linux
8967   need_lib_prefix=no
8968   need_version=no
8969   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8970   soname_spec='${libname}${release}${shared_ext}$major'
8971   shlibpath_var=LD_LIBRARY_PATH
8972   ;;
8973
8974 freebsd1*)
8975   dynamic_linker=no
8976   ;;
8977
8978 kfreebsd*-gnu)
8979   version_type=linux
8980   need_lib_prefix=no
8981   need_version=no
8982   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8983   soname_spec='${libname}${release}${shared_ext}$major'
8984   shlibpath_var=LD_LIBRARY_PATH
8985   shlibpath_overrides_runpath=no
8986   hardcode_into_libs=yes
8987   dynamic_linker='GNU ld.so'
8988   ;;
8989
8990 freebsd* | dragonfly*)
8991   # DragonFly does not have aout.  When/if they implement a new
8992   # versioning mechanism, adjust this.
8993   if test -x /usr/bin/objformat; then
8994     objformat=`/usr/bin/objformat`
8995   else
8996     case $host_os in
8997     freebsd[123]*) objformat=aout ;;
8998     *) objformat=elf ;;
8999     esac
9000   fi
9001   version_type=freebsd-$objformat
9002   case $version_type in
9003     freebsd-elf*)
9004       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9005       need_version=no
9006       need_lib_prefix=no
9007       ;;
9008     freebsd-*)
9009       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9010       need_version=yes
9011       ;;
9012   esac
9013   shlibpath_var=LD_LIBRARY_PATH
9014   case $host_os in
9015   freebsd2*)
9016     shlibpath_overrides_runpath=yes
9017     ;;
9018   freebsd3.[01]* | freebsdelf3.[01]*)
9019     shlibpath_overrides_runpath=yes
9020     hardcode_into_libs=yes
9021     ;;
9022   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9023   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9024     shlibpath_overrides_runpath=no
9025     hardcode_into_libs=yes
9026     ;;
9027   freebsd*) # from 4.6 on
9028     shlibpath_overrides_runpath=yes
9029     hardcode_into_libs=yes
9030     ;;
9031   esac
9032   ;;
9033
9034 gnu*)
9035   version_type=linux
9036   need_lib_prefix=no
9037   need_version=no
9038   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9039   soname_spec='${libname}${release}${shared_ext}$major'
9040   shlibpath_var=LD_LIBRARY_PATH
9041   hardcode_into_libs=yes
9042   ;;
9043
9044 hpux9* | hpux10* | hpux11*)
9045   # Give a soname corresponding to the major version so that dld.sl refuses to
9046   # link against other versions.
9047   version_type=sunos
9048   need_lib_prefix=no
9049   need_version=no
9050   case $host_cpu in
9051   ia64*)
9052     shrext_cmds='.so'
9053     hardcode_into_libs=yes
9054     dynamic_linker="$host_os dld.so"
9055     shlibpath_var=LD_LIBRARY_PATH
9056     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9057     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9058     soname_spec='${libname}${release}${shared_ext}$major'
9059     if test "X$HPUX_IA64_MODE" = X32; then
9060       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9061     else
9062       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9063     fi
9064     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9065     ;;
9066    hppa*64*)
9067      shrext_cmds='.sl'
9068      hardcode_into_libs=yes
9069      dynamic_linker="$host_os dld.sl"
9070      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9071      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9072      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9073      soname_spec='${libname}${release}${shared_ext}$major'
9074      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9075      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9076      ;;
9077    *)
9078     shrext_cmds='.sl'
9079     dynamic_linker="$host_os dld.sl"
9080     shlibpath_var=SHLIB_PATH
9081     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9082     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9083     soname_spec='${libname}${release}${shared_ext}$major'
9084     ;;
9085   esac
9086   # HP-UX runs *really* slowly unless shared libraries are mode 555.
9087   postinstall_cmds='chmod 555 $lib'
9088   ;;
9089
9090 interix3*)
9091   version_type=linux
9092   need_lib_prefix=no
9093   need_version=no
9094   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9095   soname_spec='${libname}${release}${shared_ext}$major'
9096   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9097   shlibpath_var=LD_LIBRARY_PATH
9098   shlibpath_overrides_runpath=no
9099   hardcode_into_libs=yes
9100   ;;
9101
9102 irix5* | irix6* | nonstopux*)
9103   case $host_os in
9104     nonstopux*) version_type=nonstopux ;;
9105     *)
9106         if test "$lt_cv_prog_gnu_ld" = yes; then
9107                 version_type=linux
9108         else
9109                 version_type=irix
9110         fi ;;
9111   esac
9112   need_lib_prefix=no
9113   need_version=no
9114   soname_spec='${libname}${release}${shared_ext}$major'
9115   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9116   case $host_os in
9117   irix5* | nonstopux*)
9118     libsuff= shlibsuff=
9119     ;;
9120   *)
9121     case $LD in # libtool.m4 will add one of these switches to LD
9122     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9123       libsuff= shlibsuff= libmagic=32-bit;;
9124     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9125       libsuff=32 shlibsuff=N32 libmagic=N32;;
9126     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9127       libsuff=64 shlibsuff=64 libmagic=64-bit;;
9128     *) libsuff= shlibsuff= libmagic=never-match;;
9129     esac
9130     ;;
9131   esac
9132   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9133   shlibpath_overrides_runpath=no
9134   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9135   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9136   hardcode_into_libs=yes
9137   ;;
9138
9139 # No shared lib support for Linux oldld, aout, or coff.
9140 linux*oldld* | linux*aout* | linux*coff*)
9141   dynamic_linker=no
9142   ;;
9143
9144 # This must be Linux ELF.
9145 linux*)
9146   version_type=linux
9147   need_lib_prefix=no
9148   need_version=no
9149   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9150   soname_spec='${libname}${release}${shared_ext}$major'
9151   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9152   shlibpath_var=LD_LIBRARY_PATH
9153   shlibpath_overrides_runpath=no
9154   # This implies no fast_install, which is unacceptable.
9155   # Some rework will be needed to allow for fast_install
9156   # before this can be enabled.
9157   hardcode_into_libs=yes
9158
9159   # Append ld.so.conf contents to the search path
9160   if test -f /etc/ld.so.conf; then
9161     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' ' '`
9162     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9163   fi
9164
9165   # We used to test for /lib/ld.so.1 and disable shared libraries on
9166   # powerpc, because MkLinux only supported shared libraries with the
9167   # GNU dynamic linker.  Since this was broken with cross compilers,
9168   # most powerpc-linux boxes support dynamic linking these days and
9169   # people can always --disable-shared, the test was removed, and we
9170   # assume the GNU/Linux dynamic linker is in use.
9171   dynamic_linker='GNU/Linux ld.so'
9172   ;;
9173
9174 knetbsd*-gnu)
9175   version_type=linux
9176   need_lib_prefix=no
9177   need_version=no
9178   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9179   soname_spec='${libname}${release}${shared_ext}$major'
9180   shlibpath_var=LD_LIBRARY_PATH
9181   shlibpath_overrides_runpath=no
9182   hardcode_into_libs=yes
9183   dynamic_linker='GNU ld.so'
9184   ;;
9185
9186 netbsd*)
9187   version_type=sunos
9188   need_lib_prefix=no
9189   need_version=no
9190   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9191     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9192     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9193     dynamic_linker='NetBSD (a.out) ld.so'
9194   else
9195     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9196     soname_spec='${libname}${release}${shared_ext}$major'
9197     dynamic_linker='NetBSD ld.elf_so'
9198   fi
9199   shlibpath_var=LD_LIBRARY_PATH
9200   shlibpath_overrides_runpath=yes
9201   hardcode_into_libs=yes
9202   ;;
9203
9204 newsos6)
9205   version_type=linux
9206   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9207   shlibpath_var=LD_LIBRARY_PATH
9208   shlibpath_overrides_runpath=yes
9209   ;;
9210
9211 nto-qnx*)
9212   version_type=linux
9213   need_lib_prefix=no
9214   need_version=no
9215   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9216   soname_spec='${libname}${release}${shared_ext}$major'
9217   shlibpath_var=LD_LIBRARY_PATH
9218   shlibpath_overrides_runpath=yes
9219   ;;
9220
9221 openbsd*)
9222   version_type=sunos
9223   sys_lib_dlsearch_path_spec="/usr/lib"
9224   need_lib_prefix=no
9225   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9226   case $host_os in
9227     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9228     *)                         need_version=no  ;;
9229   esac
9230   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9231   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9232   shlibpath_var=LD_LIBRARY_PATH
9233   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9234     case $host_os in
9235       openbsd2.[89] | openbsd2.[89].*)
9236         shlibpath_overrides_runpath=no
9237         ;;
9238       *)
9239         shlibpath_overrides_runpath=yes
9240         ;;
9241       esac
9242   else
9243     shlibpath_overrides_runpath=yes
9244   fi
9245   ;;
9246
9247 os2*)
9248   libname_spec='$name'
9249   shrext_cmds=".dll"
9250   need_lib_prefix=no
9251   library_names_spec='$libname${shared_ext} $libname.a'
9252   dynamic_linker='OS/2 ld.exe'
9253   shlibpath_var=LIBPATH
9254   ;;
9255
9256 osf3* | osf4* | osf5*)
9257   version_type=osf
9258   need_lib_prefix=no
9259   need_version=no
9260   soname_spec='${libname}${release}${shared_ext}$major'
9261   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9262   shlibpath_var=LD_LIBRARY_PATH
9263   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9264   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9265   ;;
9266
9267 solaris*)
9268   version_type=linux
9269   need_lib_prefix=no
9270   need_version=no
9271   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9272   soname_spec='${libname}${release}${shared_ext}$major'
9273   shlibpath_var=LD_LIBRARY_PATH
9274   shlibpath_overrides_runpath=yes
9275   hardcode_into_libs=yes
9276   # ldd complains unless libraries are executable
9277   postinstall_cmds='chmod +x $lib'
9278   ;;
9279
9280 sunos4*)
9281   version_type=sunos
9282   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9283   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9284   shlibpath_var=LD_LIBRARY_PATH
9285   shlibpath_overrides_runpath=yes
9286   if test "$with_gnu_ld" = yes; then
9287     need_lib_prefix=no
9288   fi
9289   need_version=yes
9290   ;;
9291
9292 sysv4 | sysv4.3*)
9293   version_type=linux
9294   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9295   soname_spec='${libname}${release}${shared_ext}$major'
9296   shlibpath_var=LD_LIBRARY_PATH
9297   case $host_vendor in
9298     sni)
9299       shlibpath_overrides_runpath=no
9300       need_lib_prefix=no
9301       export_dynamic_flag_spec='${wl}-Blargedynsym'
9302       runpath_var=LD_RUN_PATH
9303       ;;
9304     siemens)
9305       need_lib_prefix=no
9306       ;;
9307     motorola)
9308       need_lib_prefix=no
9309       need_version=no
9310       shlibpath_overrides_runpath=no
9311       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9312       ;;
9313   esac
9314   ;;
9315
9316 sysv4*MP*)
9317   if test -d /usr/nec ;then
9318     version_type=linux
9319     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9320     soname_spec='$libname${shared_ext}.$major'
9321     shlibpath_var=LD_LIBRARY_PATH
9322   fi
9323   ;;
9324
9325 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9326   version_type=freebsd-elf
9327   need_lib_prefix=no
9328   need_version=no
9329   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9330   soname_spec='${libname}${release}${shared_ext}$major'
9331   shlibpath_var=LD_LIBRARY_PATH
9332   hardcode_into_libs=yes
9333   if test "$with_gnu_ld" = yes; then
9334     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9335     shlibpath_overrides_runpath=no
9336   else
9337     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9338     shlibpath_overrides_runpath=yes
9339     case $host_os in
9340       sco3.2v5*)
9341         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9342         ;;
9343     esac
9344   fi
9345   sys_lib_dlsearch_path_spec='/usr/lib'
9346   ;;
9347
9348 uts4*)
9349   version_type=linux
9350   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9351   soname_spec='${libname}${release}${shared_ext}$major'
9352   shlibpath_var=LD_LIBRARY_PATH
9353   ;;
9354
9355 *)
9356   dynamic_linker=no
9357   ;;
9358 esac
9359 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9360 echo "${ECHO_T}$dynamic_linker" >&6; }
9361 test "$dynamic_linker" = no && can_build_shared=no
9362
9363 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9364 if test "$GCC" = yes; then
9365   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9366 fi
9367
9368
9369 { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9370 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
9371 if test "${libltdl_cv_shlibext+set}" = set; then
9372   echo $ECHO_N "(cached) $ECHO_C" >&6
9373 else
9374
9375 module=yes
9376 eval libltdl_cv_shlibext=$shrext_cmds
9377
9378 fi
9379 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9380 echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
9381 if test -n "$libltdl_cv_shlibext"; then
9382
9383 cat >>confdefs.h <<_ACEOF
9384 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9385 _ACEOF
9386
9387 fi
9388
9389
9390 { echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
9391 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
9392 if test "${libltdl_cv_shlibpath_var+set}" = set; then
9393   echo $ECHO_N "(cached) $ECHO_C" >&6
9394 else
9395   libltdl_cv_shlibpath_var="$shlibpath_var"
9396 fi
9397 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
9398 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
9399 if test -n "$libltdl_cv_shlibpath_var"; then
9400
9401 cat >>confdefs.h <<_ACEOF
9402 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
9403 _ACEOF
9404
9405 fi
9406
9407
9408 { echo "$as_me:$LINENO: checking for the default library search path" >&5
9409 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
9410 if test "${libltdl_cv_sys_search_path+set}" = set; then
9411   echo $ECHO_N "(cached) $ECHO_C" >&6
9412 else
9413   libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9414 fi
9415 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9416 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
9417 if test -n "$libltdl_cv_sys_search_path"; then
9418   sys_search_path=
9419   for dir in $libltdl_cv_sys_search_path; do
9420     if test -z "$sys_search_path"; then
9421       sys_search_path="$dir"
9422     else
9423       sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9424     fi
9425   done
9426
9427 cat >>confdefs.h <<_ACEOF
9428 #define LTDL_SYSSEARCHPATH "$sys_search_path"
9429 _ACEOF
9430
9431 fi
9432
9433 { echo "$as_me:$LINENO: checking for objdir" >&5
9434 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9435 if test "${libltdl_cv_objdir+set}" = set; then
9436   echo $ECHO_N "(cached) $ECHO_C" >&6
9437 else
9438   libltdl_cv_objdir="$objdir"
9439   if test -n "$objdir"; then
9440     :
9441   else
9442     rm -f .libs 2>/dev/null
9443     mkdir .libs 2>/dev/null
9444     if test -d .libs; then
9445       libltdl_cv_objdir=.libs
9446     else
9447       # MS-DOS does not allow filenames that begin with a dot.
9448       libltdl_cv_objdir=_libs
9449     fi
9450   rmdir .libs 2>/dev/null
9451   fi
9452
9453 fi
9454 { echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9455 echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
9456
9457 cat >>confdefs.h <<_ACEOF
9458 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
9459 _ACEOF
9460
9461
9462
9463
9464
9465
9466 # Check for command to grab the raw symbol name followed by C symbol from nm.
9467 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9468 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
9469 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9470   echo $ECHO_N "(cached) $ECHO_C" >&6
9471 else
9472
9473 # These are sane defaults that work on at least a few old systems.
9474 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
9475
9476 # Character class describing NM global symbol codes.
9477 symcode='[BCDEGRST]'
9478
9479 # Regexp to match symbols that can be accessed directly from C.
9480 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9481
9482 # Transform an extracted symbol line into a proper C declaration
9483 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9484
9485 # Transform an extracted symbol line into symbol name and symbol address
9486 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'"
9487
9488 # Define system-specific variables.
9489 case $host_os in
9490 aix*)
9491   symcode='[BCDT]'
9492   ;;
9493 cygwin* | mingw* | pw32*)
9494   symcode='[ABCDGISTW]'
9495   ;;
9496 hpux*) # Its linker distinguishes data from code symbols
9497   if test "$host_cpu" = ia64; then
9498     symcode='[ABCDEGRST]'
9499   fi
9500   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9501   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'"
9502   ;;
9503 linux*)
9504   if test "$host_cpu" = ia64; then
9505     symcode='[ABCDGIRSTW]'
9506     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9507     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'"
9508   fi
9509   ;;
9510 irix* | nonstopux*)
9511   symcode='[BCDEGRST]'
9512   ;;
9513 osf*)
9514   symcode='[BCDEGQRST]'
9515   ;;
9516 solaris*)
9517   symcode='[BDRT]'
9518   ;;
9519 sco3.2v5*)
9520   symcode='[DT]'
9521   ;;
9522 sysv4.2uw2*)
9523   symcode='[DT]'
9524   ;;
9525 sysv5* | sco5v6* | unixware* | OpenUNIX*)
9526   symcode='[ABDT]'
9527   ;;
9528 sysv4)
9529   symcode='[DFNSTU]'
9530   ;;
9531 esac
9532
9533 # Handle CRLF in mingw tool chain
9534 opt_cr=
9535 case $build_os in
9536 mingw*)
9537   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9538   ;;
9539 esac
9540
9541 # If we're using GNU nm, then use its standard symbol codes.
9542 case `$NM -V 2>&1` in
9543 *GNU* | *'with BFD'*)
9544   symcode='[ABCDGIRSTW]' ;;
9545 esac
9546
9547 # Try without a prefix undercore, then with it.
9548 for ac_symprfx in "" "_"; do
9549
9550   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9551   symxfrm="\\1 $ac_symprfx\\2 \\2"
9552
9553   # Write the raw and C identifiers.
9554   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9555
9556   # Check to see that the pipe works correctly.
9557   pipe_works=no
9558
9559   rm -f conftest*
9560   cat > conftest.$ac_ext <<EOF
9561 #ifdef __cplusplus
9562 extern "C" {
9563 #endif
9564 char nm_test_var;
9565 void nm_test_func(){}
9566 #ifdef __cplusplus
9567 }
9568 #endif
9569 int main(){nm_test_var='a';nm_test_func();return(0);}
9570 EOF
9571
9572   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9573   (eval $ac_compile) 2>&5
9574   ac_status=$?
9575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9576   (exit $ac_status); }; then
9577     # Now try to grab the symbols.
9578     nlist=conftest.nm
9579     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
9580   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9581   ac_status=$?
9582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9583   (exit $ac_status); } && test -s "$nlist"; then
9584       # Try sorting and uniquifying the output.
9585       if sort "$nlist" | uniq > "$nlist"T; then
9586         mv -f "$nlist"T "$nlist"
9587       else
9588         rm -f "$nlist"T
9589       fi
9590
9591       # Make sure that we snagged all the symbols we need.
9592       if grep ' nm_test_var$' "$nlist" >/dev/null; then
9593         if grep ' nm_test_func$' "$nlist" >/dev/null; then
9594           cat <<EOF > conftest.$ac_ext
9595 #ifdef __cplusplus
9596 extern "C" {
9597 #endif
9598
9599 EOF
9600           # Now generate the symbol file.
9601           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9602
9603           cat <<EOF >> conftest.$ac_ext
9604 #if defined (__STDC__) && __STDC__
9605 # define lt_ptr_t void *
9606 #else
9607 # define lt_ptr_t char *
9608 # define const
9609 #endif
9610
9611 /* The mapping between symbol names and symbols. */
9612 const struct {
9613   const char *name;
9614   lt_ptr_t address;
9615 }
9616 lt_preloaded_symbols[] =
9617 {
9618 EOF
9619           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9620           cat <<\EOF >> conftest.$ac_ext
9621   {0, (lt_ptr_t) 0}
9622 };
9623
9624 #ifdef __cplusplus
9625 }
9626 #endif
9627 EOF
9628           # Now try linking the two files.
9629           mv conftest.$ac_objext conftstm.$ac_objext
9630           lt_save_LIBS="$LIBS"
9631           lt_save_CFLAGS="$CFLAGS"
9632           LIBS="conftstm.$ac_objext"
9633           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9634           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9635   (eval $ac_link) 2>&5
9636   ac_status=$?
9637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9638   (exit $ac_status); } && test -s conftest${ac_exeext}; then
9639             pipe_works=yes
9640           fi
9641           LIBS="$lt_save_LIBS"
9642           CFLAGS="$lt_save_CFLAGS"
9643         else
9644           echo "cannot find nm_test_func in $nlist" >&5
9645         fi
9646       else
9647         echo "cannot find nm_test_var in $nlist" >&5
9648       fi
9649     else
9650       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9651     fi
9652   else
9653     echo "$progname: failed program was:" >&5
9654     cat conftest.$ac_ext >&5
9655   fi
9656   rm -f conftest* conftst*
9657
9658   # Do not use the global_symbol_pipe unless it works.
9659   if test "$pipe_works" = yes; then
9660     break
9661   else
9662     lt_cv_sys_global_symbol_pipe=
9663   fi
9664 done
9665
9666 fi
9667
9668 if test -z "$lt_cv_sys_global_symbol_pipe"; then
9669   lt_cv_sys_global_symbol_to_cdecl=
9670 fi
9671 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9672   { echo "$as_me:$LINENO: result: failed" >&5
9673 echo "${ECHO_T}failed" >&6; }
9674 else
9675   { echo "$as_me:$LINENO: result: ok" >&5
9676 echo "${ECHO_T}ok" >&6; }
9677 fi
9678
9679
9680 { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
9681 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
9682 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
9683   echo $ECHO_N "(cached) $ECHO_C" >&6
9684 else
9685   if test -n "$lt_cv_sys_global_symbol_pipe"; then
9686     libltdl_cv_preloaded_symbols=yes
9687   else
9688     libltdl_cv_preloaded_symbols=no
9689   fi
9690
9691 fi
9692 { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
9693 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
9694 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
9695
9696 cat >>confdefs.h <<\_ACEOF
9697 #define HAVE_PRELOADED_SYMBOLS 1
9698 _ACEOF
9699
9700 fi
9701
9702 LIBADD_DL=
9703
9704 ac_ext=c
9705 ac_cpp='$CPP $CPPFLAGS'
9706 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9707 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9708 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9709
9710
9711 { echo "$as_me:$LINENO: checking for shl_load" >&5
9712 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9713 if test "${ac_cv_func_shl_load+set}" = set; then
9714   echo $ECHO_N "(cached) $ECHO_C" >&6
9715 else
9716   cat >conftest.$ac_ext <<_ACEOF
9717 /* confdefs.h.  */
9718 _ACEOF
9719 cat confdefs.h >>conftest.$ac_ext
9720 cat >>conftest.$ac_ext <<_ACEOF
9721 /* end confdefs.h.  */
9722 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9723    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9724 #define shl_load innocuous_shl_load
9725
9726 /* System header to define __stub macros and hopefully few prototypes,
9727     which can conflict with char shl_load (); below.
9728     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9729     <limits.h> exists even on freestanding compilers.  */
9730
9731 #ifdef __STDC__
9732 # include <limits.h>
9733 #else
9734 # include <assert.h>
9735 #endif
9736
9737 #undef shl_load
9738
9739 /* Override any GCC internal prototype to avoid an error.
9740    Use char because int might match the return type of a GCC
9741    builtin and then its argument prototype would still apply.  */
9742 #ifdef __cplusplus
9743 extern "C"
9744 #endif
9745 char shl_load ();
9746 /* The GNU C library defines this for functions which it implements
9747     to always fail with ENOSYS.  Some functions are actually named
9748     something starting with __ and the normal name is an alias.  */
9749 #if defined __stub_shl_load || defined __stub___shl_load
9750 choke me
9751 #endif
9752
9753 int
9754 main ()
9755 {
9756 return shl_load ();
9757   ;
9758   return 0;
9759 }
9760 _ACEOF
9761 rm -f conftest.$ac_objext conftest$ac_exeext
9762 if { (ac_try="$ac_link"
9763 case "(($ac_try" in
9764   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9765   *) ac_try_echo=$ac_try;;
9766 esac
9767 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9768   (eval "$ac_link") 2>conftest.er1
9769   ac_status=$?
9770   grep -v '^ *+' conftest.er1 >conftest.err
9771   rm -f conftest.er1
9772   cat conftest.err >&5
9773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9774   (exit $ac_status); } &&
9775          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9776   { (case "(($ac_try" in
9777   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9778   *) ac_try_echo=$ac_try;;
9779 esac
9780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9781   (eval "$ac_try") 2>&5
9782   ac_status=$?
9783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9784   (exit $ac_status); }; } &&
9785          { ac_try='test -s conftest$ac_exeext'
9786   { (case "(($ac_try" in
9787   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9788   *) ac_try_echo=$ac_try;;
9789 esac
9790 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9791   (eval "$ac_try") 2>&5
9792   ac_status=$?
9793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9794   (exit $ac_status); }; }; then
9795   ac_cv_func_shl_load=yes
9796 else
9797   echo "$as_me: failed program was:" >&5
9798 sed 's/^/| /' conftest.$ac_ext >&5
9799
9800         ac_cv_func_shl_load=no
9801 fi
9802
9803 rm -f core conftest.err conftest.$ac_objext \
9804       conftest$ac_exeext conftest.$ac_ext
9805 fi
9806 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9807 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9808 if test $ac_cv_func_shl_load = yes; then
9809
9810 cat >>confdefs.h <<\_ACEOF
9811 #define HAVE_SHL_LOAD 1
9812 _ACEOF
9813
9814 else
9815   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9816 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9817 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9818   echo $ECHO_N "(cached) $ECHO_C" >&6
9819 else
9820   ac_check_lib_save_LIBS=$LIBS
9821 LIBS="-ldld  $LIBS"
9822 cat >conftest.$ac_ext <<_ACEOF
9823 /* confdefs.h.  */
9824 _ACEOF
9825 cat confdefs.h >>conftest.$ac_ext
9826 cat >>conftest.$ac_ext <<_ACEOF
9827 /* end confdefs.h.  */
9828
9829 /* Override any GCC internal prototype to avoid an error.
9830    Use char because int might match the return type of a GCC
9831    builtin and then its argument prototype would still apply.  */
9832 #ifdef __cplusplus
9833 extern "C"
9834 #endif
9835 char shl_load ();
9836 int
9837 main ()
9838 {
9839 return shl_load ();
9840   ;
9841   return 0;
9842 }
9843 _ACEOF
9844 rm -f conftest.$ac_objext conftest$ac_exeext
9845 if { (ac_try="$ac_link"
9846 case "(($ac_try" in
9847   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9848   *) ac_try_echo=$ac_try;;
9849 esac
9850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9851   (eval "$ac_link") 2>conftest.er1
9852   ac_status=$?
9853   grep -v '^ *+' conftest.er1 >conftest.err
9854   rm -f conftest.er1
9855   cat conftest.err >&5
9856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9857   (exit $ac_status); } &&
9858          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9859   { (case "(($ac_try" in
9860   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9861   *) ac_try_echo=$ac_try;;
9862 esac
9863 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9864   (eval "$ac_try") 2>&5
9865   ac_status=$?
9866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9867   (exit $ac_status); }; } &&
9868          { ac_try='test -s conftest$ac_exeext'
9869   { (case "(($ac_try" in
9870   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9871   *) ac_try_echo=$ac_try;;
9872 esac
9873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9874   (eval "$ac_try") 2>&5
9875   ac_status=$?
9876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9877   (exit $ac_status); }; }; then
9878   ac_cv_lib_dld_shl_load=yes
9879 else
9880   echo "$as_me: failed program was:" >&5
9881 sed 's/^/| /' conftest.$ac_ext >&5
9882
9883         ac_cv_lib_dld_shl_load=no
9884 fi
9885
9886 rm -f core conftest.err conftest.$ac_objext \
9887       conftest$ac_exeext conftest.$ac_ext
9888 LIBS=$ac_check_lib_save_LIBS
9889 fi
9890 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9891 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9892 if test $ac_cv_lib_dld_shl_load = yes; then
9893
9894 cat >>confdefs.h <<\_ACEOF
9895 #define HAVE_SHL_LOAD 1
9896 _ACEOF
9897
9898         LIBADD_DL="$LIBADD_DL -ldld"
9899 else
9900   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9901 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9902 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9903   echo $ECHO_N "(cached) $ECHO_C" >&6
9904 else
9905   ac_check_lib_save_LIBS=$LIBS
9906 LIBS="-ldl  $LIBS"
9907 cat >conftest.$ac_ext <<_ACEOF
9908 /* confdefs.h.  */
9909 _ACEOF
9910 cat confdefs.h >>conftest.$ac_ext
9911 cat >>conftest.$ac_ext <<_ACEOF
9912 /* end confdefs.h.  */
9913
9914 /* Override any GCC internal prototype to avoid an error.
9915    Use char because int might match the return type of a GCC
9916    builtin and then its argument prototype would still apply.  */
9917 #ifdef __cplusplus
9918 extern "C"
9919 #endif
9920 char dlopen ();
9921 int
9922 main ()
9923 {
9924 return dlopen ();
9925   ;
9926   return 0;
9927 }
9928 _ACEOF
9929 rm -f conftest.$ac_objext conftest$ac_exeext
9930 if { (ac_try="$ac_link"
9931 case "(($ac_try" in
9932   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9933   *) ac_try_echo=$ac_try;;
9934 esac
9935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9936   (eval "$ac_link") 2>conftest.er1
9937   ac_status=$?
9938   grep -v '^ *+' conftest.er1 >conftest.err
9939   rm -f conftest.er1
9940   cat conftest.err >&5
9941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9942   (exit $ac_status); } &&
9943          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9944   { (case "(($ac_try" in
9945   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9946   *) ac_try_echo=$ac_try;;
9947 esac
9948 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9949   (eval "$ac_try") 2>&5
9950   ac_status=$?
9951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9952   (exit $ac_status); }; } &&
9953          { ac_try='test -s conftest$ac_exeext'
9954   { (case "(($ac_try" in
9955   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9956   *) ac_try_echo=$ac_try;;
9957 esac
9958 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9959   (eval "$ac_try") 2>&5
9960   ac_status=$?
9961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9962   (exit $ac_status); }; }; then
9963   ac_cv_lib_dl_dlopen=yes
9964 else
9965   echo "$as_me: failed program was:" >&5
9966 sed 's/^/| /' conftest.$ac_ext >&5
9967
9968         ac_cv_lib_dl_dlopen=no
9969 fi
9970
9971 rm -f core conftest.err conftest.$ac_objext \
9972       conftest$ac_exeext conftest.$ac_ext
9973 LIBS=$ac_check_lib_save_LIBS
9974 fi
9975 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9976 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9977 if test $ac_cv_lib_dl_dlopen = yes; then
9978
9979 cat >>confdefs.h <<\_ACEOF
9980 #define HAVE_LIBDL 1
9981 _ACEOF
9982
9983                 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
9984 else
9985   cat >conftest.$ac_ext <<_ACEOF
9986 /* confdefs.h.  */
9987 _ACEOF
9988 cat confdefs.h >>conftest.$ac_ext
9989 cat >>conftest.$ac_ext <<_ACEOF
9990 /* end confdefs.h.  */
9991 #if HAVE_DLFCN_H
9992 #  include <dlfcn.h>
9993 #endif
9994
9995 int
9996 main ()
9997 {
9998 dlopen(0, 0);
9999   ;
10000   return 0;
10001 }
10002 _ACEOF
10003 rm -f conftest.$ac_objext conftest$ac_exeext
10004 if { (ac_try="$ac_link"
10005 case "(($ac_try" in
10006   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10007   *) ac_try_echo=$ac_try;;
10008 esac
10009 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10010   (eval "$ac_link") 2>conftest.er1
10011   ac_status=$?
10012   grep -v '^ *+' conftest.er1 >conftest.err
10013   rm -f conftest.er1
10014   cat conftest.err >&5
10015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10016   (exit $ac_status); } &&
10017          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10018   { (case "(($ac_try" in
10019   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10020   *) ac_try_echo=$ac_try;;
10021 esac
10022 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10023   (eval "$ac_try") 2>&5
10024   ac_status=$?
10025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10026   (exit $ac_status); }; } &&
10027          { ac_try='test -s conftest$ac_exeext'
10028   { (case "(($ac_try" in
10029   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10030   *) ac_try_echo=$ac_try;;
10031 esac
10032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10033   (eval "$ac_try") 2>&5
10034   ac_status=$?
10035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10036   (exit $ac_status); }; }; then
10037
10038 cat >>confdefs.h <<\_ACEOF
10039 #define HAVE_LIBDL 1
10040 _ACEOF
10041  libltdl_cv_func_dlopen="yes"
10042 else
10043   echo "$as_me: failed program was:" >&5
10044 sed 's/^/| /' conftest.$ac_ext >&5
10045
10046         { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10047 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10048 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10049   echo $ECHO_N "(cached) $ECHO_C" >&6
10050 else
10051   ac_check_lib_save_LIBS=$LIBS
10052 LIBS="-lsvld  $LIBS"
10053 cat >conftest.$ac_ext <<_ACEOF
10054 /* confdefs.h.  */
10055 _ACEOF
10056 cat confdefs.h >>conftest.$ac_ext
10057 cat >>conftest.$ac_ext <<_ACEOF
10058 /* end confdefs.h.  */
10059
10060 /* Override any GCC internal prototype to avoid an error.
10061    Use char because int might match the return type of a GCC
10062    builtin and then its argument prototype would still apply.  */
10063 #ifdef __cplusplus
10064 extern "C"
10065 #endif
10066 char dlopen ();
10067 int
10068 main ()
10069 {
10070 return dlopen ();
10071   ;
10072   return 0;
10073 }
10074 _ACEOF
10075 rm -f conftest.$ac_objext conftest$ac_exeext
10076 if { (ac_try="$ac_link"
10077 case "(($ac_try" in
10078   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10079   *) ac_try_echo=$ac_try;;
10080 esac
10081 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10082   (eval "$ac_link") 2>conftest.er1
10083   ac_status=$?
10084   grep -v '^ *+' conftest.er1 >conftest.err
10085   rm -f conftest.er1
10086   cat conftest.err >&5
10087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10088   (exit $ac_status); } &&
10089          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10090   { (case "(($ac_try" in
10091   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10092   *) ac_try_echo=$ac_try;;
10093 esac
10094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10095   (eval "$ac_try") 2>&5
10096   ac_status=$?
10097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10098   (exit $ac_status); }; } &&
10099          { ac_try='test -s conftest$ac_exeext'
10100   { (case "(($ac_try" in
10101   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10102   *) ac_try_echo=$ac_try;;
10103 esac
10104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10105   (eval "$ac_try") 2>&5
10106   ac_status=$?
10107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10108   (exit $ac_status); }; }; then
10109   ac_cv_lib_svld_dlopen=yes
10110 else
10111   echo "$as_me: failed program was:" >&5
10112 sed 's/^/| /' conftest.$ac_ext >&5
10113
10114         ac_cv_lib_svld_dlopen=no
10115 fi
10116
10117 rm -f core conftest.err conftest.$ac_objext \
10118       conftest$ac_exeext conftest.$ac_ext
10119 LIBS=$ac_check_lib_save_LIBS
10120 fi
10121 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10122 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10123 if test $ac_cv_lib_svld_dlopen = yes; then
10124
10125 cat >>confdefs.h <<\_ACEOF
10126 #define HAVE_LIBDL 1
10127 _ACEOF
10128
10129                     LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
10130 else
10131   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10132 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10133 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10134   echo $ECHO_N "(cached) $ECHO_C" >&6
10135 else
10136   ac_check_lib_save_LIBS=$LIBS
10137 LIBS="-ldld  $LIBS"
10138 cat >conftest.$ac_ext <<_ACEOF
10139 /* confdefs.h.  */
10140 _ACEOF
10141 cat confdefs.h >>conftest.$ac_ext
10142 cat >>conftest.$ac_ext <<_ACEOF
10143 /* end confdefs.h.  */
10144
10145 /* Override any GCC internal prototype to avoid an error.
10146    Use char because int might match the return type of a GCC
10147    builtin and then its argument prototype would still apply.  */
10148 #ifdef __cplusplus
10149 extern "C"
10150 #endif
10151 char dld_link ();
10152 int
10153 main ()
10154 {
10155 return dld_link ();
10156   ;
10157   return 0;
10158 }
10159 _ACEOF
10160 rm -f conftest.$ac_objext conftest$ac_exeext
10161 if { (ac_try="$ac_link"
10162 case "(($ac_try" in
10163   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10164   *) ac_try_echo=$ac_try;;
10165 esac
10166 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10167   (eval "$ac_link") 2>conftest.er1
10168   ac_status=$?
10169   grep -v '^ *+' conftest.er1 >conftest.err
10170   rm -f conftest.er1
10171   cat conftest.err >&5
10172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10173   (exit $ac_status); } &&
10174          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10175   { (case "(($ac_try" in
10176   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10177   *) ac_try_echo=$ac_try;;
10178 esac
10179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10180   (eval "$ac_try") 2>&5
10181   ac_status=$?
10182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10183   (exit $ac_status); }; } &&
10184          { ac_try='test -s conftest$ac_exeext'
10185   { (case "(($ac_try" in
10186   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10187   *) ac_try_echo=$ac_try;;
10188 esac
10189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10190   (eval "$ac_try") 2>&5
10191   ac_status=$?
10192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10193   (exit $ac_status); }; }; then
10194   ac_cv_lib_dld_dld_link=yes
10195 else
10196   echo "$as_me: failed program was:" >&5
10197 sed 's/^/| /' conftest.$ac_ext >&5
10198
10199         ac_cv_lib_dld_dld_link=no
10200 fi
10201
10202 rm -f core conftest.err conftest.$ac_objext \
10203       conftest$ac_exeext conftest.$ac_ext
10204 LIBS=$ac_check_lib_save_LIBS
10205 fi
10206 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10207 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10208 if test $ac_cv_lib_dld_dld_link = yes; then
10209
10210 cat >>confdefs.h <<\_ACEOF
10211 #define HAVE_DLD 1
10212 _ACEOF
10213
10214                 LIBADD_DL="$LIBADD_DL -ldld"
10215 else
10216   { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
10217 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
10218 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
10219   echo $ECHO_N "(cached) $ECHO_C" >&6
10220 else
10221   cat >conftest.$ac_ext <<_ACEOF
10222 /* confdefs.h.  */
10223 _ACEOF
10224 cat confdefs.h >>conftest.$ac_ext
10225 cat >>conftest.$ac_ext <<_ACEOF
10226 /* end confdefs.h.  */
10227 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10228    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10229 #define _dyld_func_lookup innocuous__dyld_func_lookup
10230
10231 /* System header to define __stub macros and hopefully few prototypes,
10232     which can conflict with char _dyld_func_lookup (); below.
10233     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10234     <limits.h> exists even on freestanding compilers.  */
10235
10236 #ifdef __STDC__
10237 # include <limits.h>
10238 #else
10239 # include <assert.h>
10240 #endif
10241
10242 #undef _dyld_func_lookup
10243
10244 /* Override any GCC internal prototype to avoid an error.
10245    Use char because int might match the return type of a GCC
10246    builtin and then its argument prototype would still apply.  */
10247 #ifdef __cplusplus
10248 extern "C"
10249 #endif
10250 char _dyld_func_lookup ();
10251 /* The GNU C library defines this for functions which it implements
10252     to always fail with ENOSYS.  Some functions are actually named
10253     something starting with __ and the normal name is an alias.  */
10254 #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
10255 choke me
10256 #endif
10257
10258 int
10259 main ()
10260 {
10261 return _dyld_func_lookup ();
10262   ;
10263   return 0;
10264 }
10265 _ACEOF
10266 rm -f conftest.$ac_objext conftest$ac_exeext
10267 if { (ac_try="$ac_link"
10268 case "(($ac_try" in
10269   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10270   *) ac_try_echo=$ac_try;;
10271 esac
10272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10273   (eval "$ac_link") 2>conftest.er1
10274   ac_status=$?
10275   grep -v '^ *+' conftest.er1 >conftest.err
10276   rm -f conftest.er1
10277   cat conftest.err >&5
10278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10279   (exit $ac_status); } &&
10280          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10281   { (case "(($ac_try" in
10282   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10283   *) ac_try_echo=$ac_try;;
10284 esac
10285 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10286   (eval "$ac_try") 2>&5
10287   ac_status=$?
10288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10289   (exit $ac_status); }; } &&
10290          { ac_try='test -s conftest$ac_exeext'
10291   { (case "(($ac_try" in
10292   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10293   *) ac_try_echo=$ac_try;;
10294 esac
10295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10296   (eval "$ac_try") 2>&5
10297   ac_status=$?
10298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10299   (exit $ac_status); }; }; then
10300   ac_cv_func__dyld_func_lookup=yes
10301 else
10302   echo "$as_me: failed program was:" >&5
10303 sed 's/^/| /' conftest.$ac_ext >&5
10304
10305         ac_cv_func__dyld_func_lookup=no
10306 fi
10307
10308 rm -f core conftest.err conftest.$ac_objext \
10309       conftest$ac_exeext conftest.$ac_ext
10310 fi
10311 { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10312 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
10313 if test $ac_cv_func__dyld_func_lookup = yes; then
10314
10315 cat >>confdefs.h <<\_ACEOF
10316 #define HAVE_DYLD 1
10317 _ACEOF
10318
10319 fi
10320
10321
10322 fi
10323
10324
10325 fi
10326
10327
10328 fi
10329
10330 rm -f core conftest.err conftest.$ac_objext \
10331       conftest$ac_exeext conftest.$ac_ext
10332
10333 fi
10334
10335
10336 fi
10337
10338
10339 fi
10340
10341
10342 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10343 then
10344   lt_save_LIBS="$LIBS"
10345   LIBS="$LIBS $LIBADD_DL"
10346
10347 for ac_func in dlerror
10348 do
10349 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10350 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10351 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10352 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10353   echo $ECHO_N "(cached) $ECHO_C" >&6
10354 else
10355   cat >conftest.$ac_ext <<_ACEOF
10356 /* confdefs.h.  */
10357 _ACEOF
10358 cat confdefs.h >>conftest.$ac_ext
10359 cat >>conftest.$ac_ext <<_ACEOF
10360 /* end confdefs.h.  */
10361 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10362    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10363 #define $ac_func innocuous_$ac_func
10364
10365 /* System header to define __stub macros and hopefully few prototypes,
10366     which can conflict with char $ac_func (); below.
10367     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10368     <limits.h> exists even on freestanding compilers.  */
10369
10370 #ifdef __STDC__
10371 # include <limits.h>
10372 #else
10373 # include <assert.h>
10374 #endif
10375
10376 #undef $ac_func
10377
10378 /* Override any GCC internal prototype to avoid an error.
10379    Use char because int might match the return type of a GCC
10380    builtin and then its argument prototype would still apply.  */
10381 #ifdef __cplusplus
10382 extern "C"
10383 #endif
10384 char $ac_func ();
10385 /* The GNU C library defines this for functions which it implements
10386     to always fail with ENOSYS.  Some functions are actually named
10387     something starting with __ and the normal name is an alias.  */
10388 #if defined __stub_$ac_func || defined __stub___$ac_func
10389 choke me
10390 #endif
10391
10392 int
10393 main ()
10394 {
10395 return $ac_func ();
10396   ;
10397   return 0;
10398 }
10399 _ACEOF
10400 rm -f conftest.$ac_objext conftest$ac_exeext
10401 if { (ac_try="$ac_link"
10402 case "(($ac_try" in
10403   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10404   *) ac_try_echo=$ac_try;;
10405 esac
10406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10407   (eval "$ac_link") 2>conftest.er1
10408   ac_status=$?
10409   grep -v '^ *+' conftest.er1 >conftest.err
10410   rm -f conftest.er1
10411   cat conftest.err >&5
10412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10413   (exit $ac_status); } &&
10414          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10415   { (case "(($ac_try" in
10416   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10417   *) ac_try_echo=$ac_try;;
10418 esac
10419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10420   (eval "$ac_try") 2>&5
10421   ac_status=$?
10422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10423   (exit $ac_status); }; } &&
10424          { ac_try='test -s conftest$ac_exeext'
10425   { (case "(($ac_try" in
10426   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10427   *) ac_try_echo=$ac_try;;
10428 esac
10429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10430   (eval "$ac_try") 2>&5
10431   ac_status=$?
10432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10433   (exit $ac_status); }; }; then
10434   eval "$as_ac_var=yes"
10435 else
10436   echo "$as_me: failed program was:" >&5
10437 sed 's/^/| /' conftest.$ac_ext >&5
10438
10439         eval "$as_ac_var=no"
10440 fi
10441
10442 rm -f core conftest.err conftest.$ac_objext \
10443       conftest$ac_exeext conftest.$ac_ext
10444 fi
10445 ac_res=`eval echo '${'$as_ac_var'}'`
10446                { echo "$as_me:$LINENO: result: $ac_res" >&5
10447 echo "${ECHO_T}$ac_res" >&6; }
10448 if test `eval echo '${'$as_ac_var'}'` = yes; then
10449   cat >>confdefs.h <<_ACEOF
10450 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10451 _ACEOF
10452
10453 fi
10454 done
10455
10456   LIBS="$lt_save_LIBS"
10457 fi
10458 ac_ext=c
10459 ac_cpp='$CPP $CPPFLAGS'
10460 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10461 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10462 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10463
10464
10465
10466 { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10467 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
10468 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10469   echo $ECHO_N "(cached) $ECHO_C" >&6
10470 else
10471   ac_cv_sys_symbol_underscore=no
10472   cat > conftest.$ac_ext <<EOF
10473 void nm_test_func(){}
10474 int main(){nm_test_func;return 0;}
10475 EOF
10476   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10477   (eval $ac_compile) 2>&5
10478   ac_status=$?
10479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10480   (exit $ac_status); }; then
10481     # Now try to grab the symbols.
10482     ac_nlist=conftest.nm
10483     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
10484   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10485   ac_status=$?
10486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10487   (exit $ac_status); } && test -s "$ac_nlist"; then
10488       # See whether the symbols have a leading underscore.
10489       if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10490         ac_cv_sys_symbol_underscore=yes
10491       else
10492         if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10493           :
10494         else
10495           echo "configure: cannot find nm_test_func in $ac_nlist" >&5
10496         fi
10497       fi
10498     else
10499       echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
10500     fi
10501   else
10502     echo "configure: failed program was:" >&5
10503     cat conftest.c >&5
10504   fi
10505   rm -rf conftest*
10506
10507 fi
10508 { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
10509 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
10510
10511
10512 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10513   if test x"$libltdl_cv_func_dlopen" = xyes ||
10514      test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
10515         { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
10516 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
10517 if test "${libltdl_cv_need_uscore+set}" = set; then
10518   echo $ECHO_N "(cached) $ECHO_C" >&6
10519 else
10520   libltdl_cv_need_uscore=unknown
10521           save_LIBS="$LIBS"
10522           LIBS="$LIBS $LIBADD_DL"
10523           if test "$cross_compiling" = yes; then :
10524   libltdl_cv_need_uscore=cross
10525 else
10526   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10527   lt_status=$lt_dlunknown
10528   cat > conftest.$ac_ext <<EOF
10529 #line 10529 "configure"
10530 #include "confdefs.h"
10531
10532 #if HAVE_DLFCN_H
10533 #include <dlfcn.h>
10534 #endif
10535
10536 #include <stdio.h>
10537
10538 #ifdef RTLD_GLOBAL
10539 #  define LT_DLGLOBAL           RTLD_GLOBAL
10540 #else
10541 #  ifdef DL_GLOBAL
10542 #    define LT_DLGLOBAL         DL_GLOBAL
10543 #  else
10544 #    define LT_DLGLOBAL         0
10545 #  endif
10546 #endif
10547
10548 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10549    find out it does not work in some platform. */
10550 #ifndef LT_DLLAZY_OR_NOW
10551 #  ifdef RTLD_LAZY
10552 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10553 #  else
10554 #    ifdef DL_LAZY
10555 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10556 #    else
10557 #      ifdef RTLD_NOW
10558 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10559 #      else
10560 #        ifdef DL_NOW
10561 #          define LT_DLLAZY_OR_NOW      DL_NOW
10562 #        else
10563 #          define LT_DLLAZY_OR_NOW      0
10564 #        endif
10565 #      endif
10566 #    endif
10567 #  endif
10568 #endif
10569
10570 #ifdef __cplusplus
10571 extern "C" void exit (int);
10572 #endif
10573
10574 void fnord() { int i=42;}
10575 int main ()
10576 {
10577   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10578   int status = $lt_dlunknown;
10579
10580   if (self)
10581     {
10582       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10583       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10584       /* dlclose (self); */
10585     }
10586   else
10587     puts (dlerror ());
10588
10589     exit (status);
10590 }
10591 EOF
10592   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10593   (eval $ac_link) 2>&5
10594   ac_status=$?
10595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10596   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10597     (./conftest; exit; ) >&5 2>/dev/null
10598     lt_status=$?
10599     case x$lt_status in
10600       x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
10601       x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
10602       x$lt_dlunknown|x*)  ;;
10603     esac
10604   else :
10605     # compilation failed
10606
10607   fi
10608 fi
10609 rm -fr conftest*
10610
10611           LIBS="$save_LIBS"
10612
10613 fi
10614 { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
10615 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
10616   fi
10617 fi
10618
10619 if test x"$libltdl_cv_need_uscore" = xyes; then
10620
10621 cat >>confdefs.h <<\_ACEOF
10622 #define NEED_USCORE 1
10623 _ACEOF
10624
10625 fi
10626
10627
10628 { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
10629 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
10630 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
10631   echo $ECHO_N "(cached) $ECHO_C" >&6
10632 else
10633   # PORTME does your system automatically load deplibs for dlopen?
10634   # or its logical equivalent (e.g. shl_load for HP-UX < 11)
10635   # For now, we just catch OSes we know something about -- in the
10636   # future, we'll try test this programmatically.
10637   libltdl_cv_sys_dlopen_deplibs=unknown
10638   case "$host_os" in
10639   aix3*|aix4.1.*|aix4.2.*)
10640     # Unknown whether this is true for these versions of AIX, but
10641     # we want this `case' here to explicitly catch those versions.
10642     libltdl_cv_sys_dlopen_deplibs=unknown
10643     ;;
10644   aix[45]*)
10645     libltdl_cv_sys_dlopen_deplibs=yes
10646     ;;
10647   darwin*)
10648     # Assuming the user has installed a libdl from somewhere, this is true
10649     # If you are looking for one http://www.opendarwin.org/projects/dlcompat
10650     libltdl_cv_sys_dlopen_deplibs=yes
10651     ;;
10652   gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
10653     # GNU and its variants, using gnu ld.so (Glibc)
10654     libltdl_cv_sys_dlopen_deplibs=yes
10655     ;;
10656   hpux10*|hpux11*)
10657     libltdl_cv_sys_dlopen_deplibs=yes
10658     ;;
10659   interix*)
10660     libltdl_cv_sys_dlopen_deplibs=yes
10661     ;;
10662   irix[12345]*|irix6.[01]*)
10663     # Catch all versions of IRIX before 6.2, and indicate that we don't
10664     # know how it worked for any of those versions.
10665     libltdl_cv_sys_dlopen_deplibs=unknown
10666     ;;
10667   irix*)
10668     # The case above catches anything before 6.2, and it's known that
10669     # at 6.2 and later dlopen does load deplibs.
10670     libltdl_cv_sys_dlopen_deplibs=yes
10671     ;;
10672   netbsd*)
10673     libltdl_cv_sys_dlopen_deplibs=yes
10674     ;;
10675   openbsd*)
10676     libltdl_cv_sys_dlopen_deplibs=yes
10677     ;;
10678   osf[1234]*)
10679     # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
10680     # it did *not* use an RPATH in a shared library to find objects the
10681     # library depends on, so we explicitly say `no'.
10682     libltdl_cv_sys_dlopen_deplibs=no
10683     ;;
10684   osf5.0|osf5.0a|osf5.1)
10685     # dlopen *does* load deplibs and with the right loader patch applied
10686     # it even uses RPATH in a shared library to search for shared objects
10687     # that the library depends on, but there's no easy way to know if that
10688     # patch is installed.  Since this is the case, all we can really
10689     # say is unknown -- it depends on the patch being installed.  If
10690     # it is, this changes to `yes'.  Without it, it would be `no'.
10691     libltdl_cv_sys_dlopen_deplibs=unknown
10692     ;;
10693   osf*)
10694     # the two cases above should catch all versions of osf <= 5.1.  Read
10695     # the comments above for what we know about them.
10696     # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
10697     # is used to find them so we can finally say `yes'.
10698     libltdl_cv_sys_dlopen_deplibs=yes
10699     ;;
10700   solaris*)
10701     libltdl_cv_sys_dlopen_deplibs=yes
10702     ;;
10703   sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10704     libltdl_cv_sys_dlopen_deplibs=yes
10705     ;;
10706   esac
10707
10708 fi
10709 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
10710 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
10711 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
10712
10713 cat >>confdefs.h <<\_ACEOF
10714 #define LTDL_DLOPEN_DEPLIBS 1
10715 _ACEOF
10716
10717 fi
10718
10719
10720 for ac_header in argz.h
10721 do
10722 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10723 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10724   { echo "$as_me:$LINENO: checking for $ac_header" >&5
10725 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10726 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10727   echo $ECHO_N "(cached) $ECHO_C" >&6
10728 fi
10729 ac_res=`eval echo '${'$as_ac_Header'}'`
10730                { echo "$as_me:$LINENO: result: $ac_res" >&5
10731 echo "${ECHO_T}$ac_res" >&6; }
10732 else
10733   # Is the header compilable?
10734 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10735 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10736 cat >conftest.$ac_ext <<_ACEOF
10737 /* confdefs.h.  */
10738 _ACEOF
10739 cat confdefs.h >>conftest.$ac_ext
10740 cat >>conftest.$ac_ext <<_ACEOF
10741 /* end confdefs.h.  */
10742 $ac_includes_default
10743 #include <$ac_header>
10744 _ACEOF
10745 rm -f conftest.$ac_objext
10746 if { (ac_try="$ac_compile"
10747 case "(($ac_try" in
10748   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10749   *) ac_try_echo=$ac_try;;
10750 esac
10751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10752   (eval "$ac_compile") 2>conftest.er1
10753   ac_status=$?
10754   grep -v '^ *+' conftest.er1 >conftest.err
10755   rm -f conftest.er1
10756   cat conftest.err >&5
10757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10758   (exit $ac_status); } &&
10759          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10760   { (case "(($ac_try" in
10761   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10762   *) ac_try_echo=$ac_try;;
10763 esac
10764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10765   (eval "$ac_try") 2>&5
10766   ac_status=$?
10767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10768   (exit $ac_status); }; } &&
10769          { ac_try='test -s conftest.$ac_objext'
10770   { (case "(($ac_try" in
10771   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10772   *) ac_try_echo=$ac_try;;
10773 esac
10774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10775   (eval "$ac_try") 2>&5
10776   ac_status=$?
10777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10778   (exit $ac_status); }; }; then
10779   ac_header_compiler=yes
10780 else
10781   echo "$as_me: failed program was:" >&5
10782 sed 's/^/| /' conftest.$ac_ext >&5
10783
10784         ac_header_compiler=no
10785 fi
10786
10787 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10788 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10789 echo "${ECHO_T}$ac_header_compiler" >&6; }
10790
10791 # Is the header present?
10792 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10793 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10794 cat >conftest.$ac_ext <<_ACEOF
10795 /* confdefs.h.  */
10796 _ACEOF
10797 cat confdefs.h >>conftest.$ac_ext
10798 cat >>conftest.$ac_ext <<_ACEOF
10799 /* end confdefs.h.  */
10800 #include <$ac_header>
10801 _ACEOF
10802 if { (ac_try="$ac_cpp conftest.$ac_ext"
10803 case "(($ac_try" in
10804   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10805   *) ac_try_echo=$ac_try;;
10806 esac
10807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10808   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10809   ac_status=$?
10810   grep -v '^ *+' conftest.er1 >conftest.err
10811   rm -f conftest.er1
10812   cat conftest.err >&5
10813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10814   (exit $ac_status); } >/dev/null; then
10815   if test -s conftest.err; then
10816     ac_cpp_err=$ac_c_preproc_warn_flag
10817     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10818   else
10819     ac_cpp_err=
10820   fi
10821 else
10822   ac_cpp_err=yes
10823 fi
10824 if test -z "$ac_cpp_err"; then
10825   ac_header_preproc=yes
10826 else
10827   echo "$as_me: failed program was:" >&5
10828 sed 's/^/| /' conftest.$ac_ext >&5
10829
10830   ac_header_preproc=no
10831 fi
10832
10833 rm -f conftest.err conftest.$ac_ext
10834 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10835 echo "${ECHO_T}$ac_header_preproc" >&6; }
10836
10837 # So?  What about this header?
10838 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10839   yes:no: )
10840     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10841 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10842     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10843 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10844     ac_header_preproc=yes
10845     ;;
10846   no:yes:* )
10847     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10848 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10849     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10850 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10851     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10852 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10853     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10854 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10855     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10856 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10857     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10858 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10859     ( cat <<\_ASBOX
10860 ## ----------------------------------- ##
10861 ## Report this to llvmbugs@cs.uiuc.edu ##
10862 ## ----------------------------------- ##
10863 _ASBOX
10864      ) | sed "s/^/$as_me: WARNING:     /" >&2
10865     ;;
10866 esac
10867 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10868 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10869 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10870   echo $ECHO_N "(cached) $ECHO_C" >&6
10871 else
10872   eval "$as_ac_Header=\$ac_header_preproc"
10873 fi
10874 ac_res=`eval echo '${'$as_ac_Header'}'`
10875                { echo "$as_me:$LINENO: result: $ac_res" >&5
10876 echo "${ECHO_T}$ac_res" >&6; }
10877
10878 fi
10879 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10880   cat >>confdefs.h <<_ACEOF
10881 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10882 _ACEOF
10883
10884 fi
10885
10886 done
10887
10888
10889 { echo "$as_me:$LINENO: checking for error_t" >&5
10890 echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
10891 if test "${ac_cv_type_error_t+set}" = set; then
10892   echo $ECHO_N "(cached) $ECHO_C" >&6
10893 else
10894   cat >conftest.$ac_ext <<_ACEOF
10895 /* confdefs.h.  */
10896 _ACEOF
10897 cat confdefs.h >>conftest.$ac_ext
10898 cat >>conftest.$ac_ext <<_ACEOF
10899 /* end confdefs.h.  */
10900 #if HAVE_ARGZ_H
10901 #  include <argz.h>
10902 #endif
10903
10904 typedef error_t ac__type_new_;
10905 int
10906 main ()
10907 {
10908 if ((ac__type_new_ *) 0)
10909   return 0;
10910 if (sizeof (ac__type_new_))
10911   return 0;
10912   ;
10913   return 0;
10914 }
10915 _ACEOF
10916 rm -f conftest.$ac_objext
10917 if { (ac_try="$ac_compile"
10918 case "(($ac_try" in
10919   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10920   *) ac_try_echo=$ac_try;;
10921 esac
10922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10923   (eval "$ac_compile") 2>conftest.er1
10924   ac_status=$?
10925   grep -v '^ *+' conftest.er1 >conftest.err
10926   rm -f conftest.er1
10927   cat conftest.err >&5
10928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10929   (exit $ac_status); } &&
10930          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10931   { (case "(($ac_try" in
10932   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10933   *) ac_try_echo=$ac_try;;
10934 esac
10935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10936   (eval "$ac_try") 2>&5
10937   ac_status=$?
10938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10939   (exit $ac_status); }; } &&
10940          { ac_try='test -s conftest.$ac_objext'
10941   { (case "(($ac_try" in
10942   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10943   *) ac_try_echo=$ac_try;;
10944 esac
10945 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10946   (eval "$ac_try") 2>&5
10947   ac_status=$?
10948   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10949   (exit $ac_status); }; }; then
10950   ac_cv_type_error_t=yes
10951 else
10952   echo "$as_me: failed program was:" >&5
10953 sed 's/^/| /' conftest.$ac_ext >&5
10954
10955         ac_cv_type_error_t=no
10956 fi
10957
10958 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10959 fi
10960 { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
10961 echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
10962 if test $ac_cv_type_error_t = yes; then
10963
10964 cat >>confdefs.h <<_ACEOF
10965 #define HAVE_ERROR_T 1
10966 _ACEOF
10967
10968
10969 else
10970
10971 cat >>confdefs.h <<\_ACEOF
10972 #define error_t int
10973 _ACEOF
10974
10975 fi
10976
10977
10978
10979
10980
10981
10982
10983 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
10984 do
10985 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10986 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10987 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10988 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10989   echo $ECHO_N "(cached) $ECHO_C" >&6
10990 else
10991   cat >conftest.$ac_ext <<_ACEOF
10992 /* confdefs.h.  */
10993 _ACEOF
10994 cat confdefs.h >>conftest.$ac_ext
10995 cat >>conftest.$ac_ext <<_ACEOF
10996 /* end confdefs.h.  */
10997 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10998    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10999 #define $ac_func innocuous_$ac_func
11000
11001 /* System header to define __stub macros and hopefully few prototypes,
11002     which can conflict with char $ac_func (); below.
11003     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11004     <limits.h> exists even on freestanding compilers.  */
11005
11006 #ifdef __STDC__
11007 # include <limits.h>
11008 #else
11009 # include <assert.h>
11010 #endif
11011
11012 #undef $ac_func
11013
11014 /* Override any GCC internal prototype to avoid an error.
11015    Use char because int might match the return type of a GCC
11016    builtin and then its argument prototype would still apply.  */
11017 #ifdef __cplusplus
11018 extern "C"
11019 #endif
11020 char $ac_func ();
11021 /* The GNU C library defines this for functions which it implements
11022     to always fail with ENOSYS.  Some functions are actually named
11023     something starting with __ and the normal name is an alias.  */
11024 #if defined __stub_$ac_func || defined __stub___$ac_func
11025 choke me
11026 #endif
11027
11028 int
11029 main ()
11030 {
11031 return $ac_func ();
11032   ;
11033   return 0;
11034 }
11035 _ACEOF
11036 rm -f conftest.$ac_objext conftest$ac_exeext
11037 if { (ac_try="$ac_link"
11038 case "(($ac_try" in
11039   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11040   *) ac_try_echo=$ac_try;;
11041 esac
11042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11043   (eval "$ac_link") 2>conftest.er1
11044   ac_status=$?
11045   grep -v '^ *+' conftest.er1 >conftest.err
11046   rm -f conftest.er1
11047   cat conftest.err >&5
11048   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11049   (exit $ac_status); } &&
11050          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11051   { (case "(($ac_try" in
11052   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11053   *) ac_try_echo=$ac_try;;
11054 esac
11055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11056   (eval "$ac_try") 2>&5
11057   ac_status=$?
11058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11059   (exit $ac_status); }; } &&
11060          { ac_try='test -s conftest$ac_exeext'
11061   { (case "(($ac_try" in
11062   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11063   *) ac_try_echo=$ac_try;;
11064 esac
11065 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11066   (eval "$ac_try") 2>&5
11067   ac_status=$?
11068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11069   (exit $ac_status); }; }; then
11070   eval "$as_ac_var=yes"
11071 else
11072   echo "$as_me: failed program was:" >&5
11073 sed 's/^/| /' conftest.$ac_ext >&5
11074
11075         eval "$as_ac_var=no"
11076 fi
11077
11078 rm -f core conftest.err conftest.$ac_objext \
11079       conftest$ac_exeext conftest.$ac_ext
11080 fi
11081 ac_res=`eval echo '${'$as_ac_var'}'`
11082                { echo "$as_me:$LINENO: result: $ac_res" >&5
11083 echo "${ECHO_T}$ac_res" >&6; }
11084 if test `eval echo '${'$as_ac_var'}'` = yes; then
11085   cat >>confdefs.h <<_ACEOF
11086 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11087 _ACEOF
11088
11089 fi
11090 done
11091
11092
11093
11094
11095
11096
11097
11098
11099
11100
11101
11102
11103
11104
11105
11106
11107
11108
11109
11110
11111
11112
11113
11114
11115
11116
11117
11118
11119 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
11120                   stdio.h unistd.h
11121 do
11122 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11123 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11124   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11125 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11126 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11127   echo $ECHO_N "(cached) $ECHO_C" >&6
11128 fi
11129 ac_res=`eval echo '${'$as_ac_Header'}'`
11130                { echo "$as_me:$LINENO: result: $ac_res" >&5
11131 echo "${ECHO_T}$ac_res" >&6; }
11132 else
11133   # Is the header compilable?
11134 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11135 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11136 cat >conftest.$ac_ext <<_ACEOF
11137 /* confdefs.h.  */
11138 _ACEOF
11139 cat confdefs.h >>conftest.$ac_ext
11140 cat >>conftest.$ac_ext <<_ACEOF
11141 /* end confdefs.h.  */
11142 $ac_includes_default
11143 #include <$ac_header>
11144 _ACEOF
11145 rm -f conftest.$ac_objext
11146 if { (ac_try="$ac_compile"
11147 case "(($ac_try" in
11148   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11149   *) ac_try_echo=$ac_try;;
11150 esac
11151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11152   (eval "$ac_compile") 2>conftest.er1
11153   ac_status=$?
11154   grep -v '^ *+' conftest.er1 >conftest.err
11155   rm -f conftest.er1
11156   cat conftest.err >&5
11157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11158   (exit $ac_status); } &&
11159          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11160   { (case "(($ac_try" in
11161   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11162   *) ac_try_echo=$ac_try;;
11163 esac
11164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11165   (eval "$ac_try") 2>&5
11166   ac_status=$?
11167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11168   (exit $ac_status); }; } &&
11169          { ac_try='test -s conftest.$ac_objext'
11170   { (case "(($ac_try" in
11171   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11172   *) ac_try_echo=$ac_try;;
11173 esac
11174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11175   (eval "$ac_try") 2>&5
11176   ac_status=$?
11177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11178   (exit $ac_status); }; }; then
11179   ac_header_compiler=yes
11180 else
11181   echo "$as_me: failed program was:" >&5
11182 sed 's/^/| /' conftest.$ac_ext >&5
11183
11184         ac_header_compiler=no
11185 fi
11186
11187 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11188 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11189 echo "${ECHO_T}$ac_header_compiler" >&6; }
11190
11191 # Is the header present?
11192 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11193 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11194 cat >conftest.$ac_ext <<_ACEOF
11195 /* confdefs.h.  */
11196 _ACEOF
11197 cat confdefs.h >>conftest.$ac_ext
11198 cat >>conftest.$ac_ext <<_ACEOF
11199 /* end confdefs.h.  */
11200 #include <$ac_header>
11201 _ACEOF
11202 if { (ac_try="$ac_cpp conftest.$ac_ext"
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_cpp conftest.$ac_ext") 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); } >/dev/null; then
11215   if test -s conftest.err; then
11216     ac_cpp_err=$ac_c_preproc_warn_flag
11217     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11218   else
11219     ac_cpp_err=
11220   fi
11221 else
11222   ac_cpp_err=yes
11223 fi
11224 if test -z "$ac_cpp_err"; then
11225   ac_header_preproc=yes
11226 else
11227   echo "$as_me: failed program was:" >&5
11228 sed 's/^/| /' conftest.$ac_ext >&5
11229
11230   ac_header_preproc=no
11231 fi
11232
11233 rm -f conftest.err conftest.$ac_ext
11234 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11235 echo "${ECHO_T}$ac_header_preproc" >&6; }
11236
11237 # So?  What about this header?
11238 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11239   yes:no: )
11240     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11241 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11242     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11243 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11244     ac_header_preproc=yes
11245     ;;
11246   no:yes:* )
11247     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11248 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11249     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11250 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11251     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11252 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11253     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11254 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11255     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11256 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11257     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11258 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11259     ( cat <<\_ASBOX
11260 ## ----------------------------------- ##
11261 ## Report this to llvmbugs@cs.uiuc.edu ##
11262 ## ----------------------------------- ##
11263 _ASBOX
11264      ) | sed "s/^/$as_me: WARNING:     /" >&2
11265     ;;
11266 esac
11267 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11268 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11269 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11270   echo $ECHO_N "(cached) $ECHO_C" >&6
11271 else
11272   eval "$as_ac_Header=\$ac_header_preproc"
11273 fi
11274 ac_res=`eval echo '${'$as_ac_Header'}'`
11275                { echo "$as_me:$LINENO: result: $ac_res" >&5
11276 echo "${ECHO_T}$ac_res" >&6; }
11277
11278 fi
11279 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11280   cat >>confdefs.h <<_ACEOF
11281 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11282 _ACEOF
11283
11284 fi
11285
11286 done
11287
11288
11289
11290
11291
11292 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
11293 do
11294 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11295 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11296   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11297 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11298 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11299   echo $ECHO_N "(cached) $ECHO_C" >&6
11300 fi
11301 ac_res=`eval echo '${'$as_ac_Header'}'`
11302                { echo "$as_me:$LINENO: result: $ac_res" >&5
11303 echo "${ECHO_T}$ac_res" >&6; }
11304 else
11305   # Is the header compilable?
11306 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11307 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11308 cat >conftest.$ac_ext <<_ACEOF
11309 /* confdefs.h.  */
11310 _ACEOF
11311 cat confdefs.h >>conftest.$ac_ext
11312 cat >>conftest.$ac_ext <<_ACEOF
11313 /* end confdefs.h.  */
11314 $ac_includes_default
11315 #include <$ac_header>
11316 _ACEOF
11317 rm -f conftest.$ac_objext
11318 if { (ac_try="$ac_compile"
11319 case "(($ac_try" in
11320   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11321   *) ac_try_echo=$ac_try;;
11322 esac
11323 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11324   (eval "$ac_compile") 2>conftest.er1
11325   ac_status=$?
11326   grep -v '^ *+' conftest.er1 >conftest.err
11327   rm -f conftest.er1
11328   cat conftest.err >&5
11329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11330   (exit $ac_status); } &&
11331          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
11341          { ac_try='test -s conftest.$ac_objext'
11342   { (case "(($ac_try" in
11343   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11344   *) ac_try_echo=$ac_try;;
11345 esac
11346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11347   (eval "$ac_try") 2>&5
11348   ac_status=$?
11349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11350   (exit $ac_status); }; }; then
11351   ac_header_compiler=yes
11352 else
11353   echo "$as_me: failed program was:" >&5
11354 sed 's/^/| /' conftest.$ac_ext >&5
11355
11356         ac_header_compiler=no
11357 fi
11358
11359 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11360 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11361 echo "${ECHO_T}$ac_header_compiler" >&6; }
11362
11363 # Is the header present?
11364 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11365 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11366 cat >conftest.$ac_ext <<_ACEOF
11367 /* confdefs.h.  */
11368 _ACEOF
11369 cat confdefs.h >>conftest.$ac_ext
11370 cat >>conftest.$ac_ext <<_ACEOF
11371 /* end confdefs.h.  */
11372 #include <$ac_header>
11373 _ACEOF
11374 if { (ac_try="$ac_cpp conftest.$ac_ext"
11375 case "(($ac_try" in
11376   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11377   *) ac_try_echo=$ac_try;;
11378 esac
11379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11380   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11381   ac_status=$?
11382   grep -v '^ *+' conftest.er1 >conftest.err
11383   rm -f conftest.er1
11384   cat conftest.err >&5
11385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11386   (exit $ac_status); } >/dev/null; then
11387   if test -s conftest.err; then
11388     ac_cpp_err=$ac_c_preproc_warn_flag
11389     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11390   else
11391     ac_cpp_err=
11392   fi
11393 else
11394   ac_cpp_err=yes
11395 fi
11396 if test -z "$ac_cpp_err"; then
11397   ac_header_preproc=yes
11398 else
11399   echo "$as_me: failed program was:" >&5
11400 sed 's/^/| /' conftest.$ac_ext >&5
11401
11402   ac_header_preproc=no
11403 fi
11404
11405 rm -f conftest.err conftest.$ac_ext
11406 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11407 echo "${ECHO_T}$ac_header_preproc" >&6; }
11408
11409 # So?  What about this header?
11410 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11411   yes:no: )
11412     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11413 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11414     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11415 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11416     ac_header_preproc=yes
11417     ;;
11418   no:yes:* )
11419     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11420 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11421     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11422 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11423     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11424 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11425     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11426 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11427     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11428 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11429     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11430 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11431     ( cat <<\_ASBOX
11432 ## ----------------------------------- ##
11433 ## Report this to llvmbugs@cs.uiuc.edu ##
11434 ## ----------------------------------- ##
11435 _ASBOX
11436      ) | sed "s/^/$as_me: WARNING:     /" >&2
11437     ;;
11438 esac
11439 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11440 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11441 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11442   echo $ECHO_N "(cached) $ECHO_C" >&6
11443 else
11444   eval "$as_ac_Header=\$ac_header_preproc"
11445 fi
11446 ac_res=`eval echo '${'$as_ac_Header'}'`
11447                { echo "$as_me:$LINENO: result: $ac_res" >&5
11448 echo "${ECHO_T}$ac_res" >&6; }
11449
11450 fi
11451 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11452   cat >>confdefs.h <<_ACEOF
11453 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11454 _ACEOF
11455
11456 fi
11457
11458 done
11459
11460
11461
11462 for ac_header in string.h strings.h
11463 do
11464 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11465 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11466   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11467 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11468 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11469   echo $ECHO_N "(cached) $ECHO_C" >&6
11470 fi
11471 ac_res=`eval echo '${'$as_ac_Header'}'`
11472                { echo "$as_me:$LINENO: result: $ac_res" >&5
11473 echo "${ECHO_T}$ac_res" >&6; }
11474 else
11475   # Is the header compilable?
11476 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11477 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11478 cat >conftest.$ac_ext <<_ACEOF
11479 /* confdefs.h.  */
11480 _ACEOF
11481 cat confdefs.h >>conftest.$ac_ext
11482 cat >>conftest.$ac_ext <<_ACEOF
11483 /* end confdefs.h.  */
11484 $ac_includes_default
11485 #include <$ac_header>
11486 _ACEOF
11487 rm -f conftest.$ac_objext
11488 if { (ac_try="$ac_compile"
11489 case "(($ac_try" in
11490   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11491   *) ac_try_echo=$ac_try;;
11492 esac
11493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11494   (eval "$ac_compile") 2>conftest.er1
11495   ac_status=$?
11496   grep -v '^ *+' conftest.er1 >conftest.err
11497   rm -f conftest.er1
11498   cat conftest.err >&5
11499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11500   (exit $ac_status); } &&
11501          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11502   { (case "(($ac_try" in
11503   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11504   *) ac_try_echo=$ac_try;;
11505 esac
11506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11507   (eval "$ac_try") 2>&5
11508   ac_status=$?
11509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11510   (exit $ac_status); }; } &&
11511          { ac_try='test -s conftest.$ac_objext'
11512   { (case "(($ac_try" in
11513   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11514   *) ac_try_echo=$ac_try;;
11515 esac
11516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11517   (eval "$ac_try") 2>&5
11518   ac_status=$?
11519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11520   (exit $ac_status); }; }; then
11521   ac_header_compiler=yes
11522 else
11523   echo "$as_me: failed program was:" >&5
11524 sed 's/^/| /' conftest.$ac_ext >&5
11525
11526         ac_header_compiler=no
11527 fi
11528
11529 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11530 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11531 echo "${ECHO_T}$ac_header_compiler" >&6; }
11532
11533 # Is the header present?
11534 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11535 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11536 cat >conftest.$ac_ext <<_ACEOF
11537 /* confdefs.h.  */
11538 _ACEOF
11539 cat confdefs.h >>conftest.$ac_ext
11540 cat >>conftest.$ac_ext <<_ACEOF
11541 /* end confdefs.h.  */
11542 #include <$ac_header>
11543 _ACEOF
11544 if { (ac_try="$ac_cpp conftest.$ac_ext"
11545 case "(($ac_try" in
11546   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11547   *) ac_try_echo=$ac_try;;
11548 esac
11549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11550   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11551   ac_status=$?
11552   grep -v '^ *+' conftest.er1 >conftest.err
11553   rm -f conftest.er1
11554   cat conftest.err >&5
11555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11556   (exit $ac_status); } >/dev/null; then
11557   if test -s conftest.err; then
11558     ac_cpp_err=$ac_c_preproc_warn_flag
11559     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11560   else
11561     ac_cpp_err=
11562   fi
11563 else
11564   ac_cpp_err=yes
11565 fi
11566 if test -z "$ac_cpp_err"; then
11567   ac_header_preproc=yes
11568 else
11569   echo "$as_me: failed program was:" >&5
11570 sed 's/^/| /' conftest.$ac_ext >&5
11571
11572   ac_header_preproc=no
11573 fi
11574
11575 rm -f conftest.err conftest.$ac_ext
11576 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11577 echo "${ECHO_T}$ac_header_preproc" >&6; }
11578
11579 # So?  What about this header?
11580 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11581   yes:no: )
11582     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11583 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11584     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11585 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11586     ac_header_preproc=yes
11587     ;;
11588   no:yes:* )
11589     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11590 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11591     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11592 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11593     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11594 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11595     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11596 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11597     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11598 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11599     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11600 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11601     ( cat <<\_ASBOX
11602 ## ----------------------------------- ##
11603 ## Report this to llvmbugs@cs.uiuc.edu ##
11604 ## ----------------------------------- ##
11605 _ASBOX
11606      ) | sed "s/^/$as_me: WARNING:     /" >&2
11607     ;;
11608 esac
11609 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11610 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11611 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11612   echo $ECHO_N "(cached) $ECHO_C" >&6
11613 else
11614   eval "$as_ac_Header=\$ac_header_preproc"
11615 fi
11616 ac_res=`eval echo '${'$as_ac_Header'}'`
11617                { echo "$as_me:$LINENO: result: $ac_res" >&5
11618 echo "${ECHO_T}$ac_res" >&6; }
11619
11620 fi
11621 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11622   cat >>confdefs.h <<_ACEOF
11623 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11624 _ACEOF
11625  break
11626 fi
11627
11628 done
11629
11630
11631
11632
11633 for ac_func in strchr index
11634 do
11635 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11636 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11637 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11638 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11639   echo $ECHO_N "(cached) $ECHO_C" >&6
11640 else
11641   cat >conftest.$ac_ext <<_ACEOF
11642 /* confdefs.h.  */
11643 _ACEOF
11644 cat confdefs.h >>conftest.$ac_ext
11645 cat >>conftest.$ac_ext <<_ACEOF
11646 /* end confdefs.h.  */
11647 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11648    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11649 #define $ac_func innocuous_$ac_func
11650
11651 /* System header to define __stub macros and hopefully few prototypes,
11652     which can conflict with char $ac_func (); below.
11653     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11654     <limits.h> exists even on freestanding compilers.  */
11655
11656 #ifdef __STDC__
11657 # include <limits.h>
11658 #else
11659 # include <assert.h>
11660 #endif
11661
11662 #undef $ac_func
11663
11664 /* Override any GCC internal prototype to avoid an error.
11665    Use char because int might match the return type of a GCC
11666    builtin and then its argument prototype would still apply.  */
11667 #ifdef __cplusplus
11668 extern "C"
11669 #endif
11670 char $ac_func ();
11671 /* The GNU C library defines this for functions which it implements
11672     to always fail with ENOSYS.  Some functions are actually named
11673     something starting with __ and the normal name is an alias.  */
11674 #if defined __stub_$ac_func || defined __stub___$ac_func
11675 choke me
11676 #endif
11677
11678 int
11679 main ()
11680 {
11681 return $ac_func ();
11682   ;
11683   return 0;
11684 }
11685 _ACEOF
11686 rm -f conftest.$ac_objext conftest$ac_exeext
11687 if { (ac_try="$ac_link"
11688 case "(($ac_try" in
11689   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11690   *) ac_try_echo=$ac_try;;
11691 esac
11692 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11693   (eval "$ac_link") 2>conftest.er1
11694   ac_status=$?
11695   grep -v '^ *+' conftest.er1 >conftest.err
11696   rm -f conftest.er1
11697   cat conftest.err >&5
11698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11699   (exit $ac_status); } &&
11700          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11701   { (case "(($ac_try" in
11702   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11703   *) ac_try_echo=$ac_try;;
11704 esac
11705 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11706   (eval "$ac_try") 2>&5
11707   ac_status=$?
11708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11709   (exit $ac_status); }; } &&
11710          { ac_try='test -s conftest$ac_exeext'
11711   { (case "(($ac_try" in
11712   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11713   *) ac_try_echo=$ac_try;;
11714 esac
11715 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11716   (eval "$ac_try") 2>&5
11717   ac_status=$?
11718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11719   (exit $ac_status); }; }; then
11720   eval "$as_ac_var=yes"
11721 else
11722   echo "$as_me: failed program was:" >&5
11723 sed 's/^/| /' conftest.$ac_ext >&5
11724
11725         eval "$as_ac_var=no"
11726 fi
11727
11728 rm -f core conftest.err conftest.$ac_objext \
11729       conftest$ac_exeext conftest.$ac_ext
11730 fi
11731 ac_res=`eval echo '${'$as_ac_var'}'`
11732                { echo "$as_me:$LINENO: result: $ac_res" >&5
11733 echo "${ECHO_T}$ac_res" >&6; }
11734 if test `eval echo '${'$as_ac_var'}'` = yes; then
11735   cat >>confdefs.h <<_ACEOF
11736 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11737 _ACEOF
11738  break
11739 fi
11740 done
11741
11742
11743
11744 for ac_func in strrchr rindex
11745 do
11746 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11747 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11748 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11749 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11750   echo $ECHO_N "(cached) $ECHO_C" >&6
11751 else
11752   cat >conftest.$ac_ext <<_ACEOF
11753 /* confdefs.h.  */
11754 _ACEOF
11755 cat confdefs.h >>conftest.$ac_ext
11756 cat >>conftest.$ac_ext <<_ACEOF
11757 /* end confdefs.h.  */
11758 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11759    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11760 #define $ac_func innocuous_$ac_func
11761
11762 /* System header to define __stub macros and hopefully few prototypes,
11763     which can conflict with char $ac_func (); below.
11764     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11765     <limits.h> exists even on freestanding compilers.  */
11766
11767 #ifdef __STDC__
11768 # include <limits.h>
11769 #else
11770 # include <assert.h>
11771 #endif
11772
11773 #undef $ac_func
11774
11775 /* Override any GCC internal prototype to avoid an error.
11776    Use char because int might match the return type of a GCC
11777    builtin and then its argument prototype would still apply.  */
11778 #ifdef __cplusplus
11779 extern "C"
11780 #endif
11781 char $ac_func ();
11782 /* The GNU C library defines this for functions which it implements
11783     to always fail with ENOSYS.  Some functions are actually named
11784     something starting with __ and the normal name is an alias.  */
11785 #if defined __stub_$ac_func || defined __stub___$ac_func
11786 choke me
11787 #endif
11788
11789 int
11790 main ()
11791 {
11792 return $ac_func ();
11793   ;
11794   return 0;
11795 }
11796 _ACEOF
11797 rm -f conftest.$ac_objext conftest$ac_exeext
11798 if { (ac_try="$ac_link"
11799 case "(($ac_try" in
11800   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11801   *) ac_try_echo=$ac_try;;
11802 esac
11803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11804   (eval "$ac_link") 2>conftest.er1
11805   ac_status=$?
11806   grep -v '^ *+' conftest.er1 >conftest.err
11807   rm -f conftest.er1
11808   cat conftest.err >&5
11809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11810   (exit $ac_status); } &&
11811          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11812   { (case "(($ac_try" in
11813   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11814   *) ac_try_echo=$ac_try;;
11815 esac
11816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11817   (eval "$ac_try") 2>&5
11818   ac_status=$?
11819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11820   (exit $ac_status); }; } &&
11821          { ac_try='test -s conftest$ac_exeext'
11822   { (case "(($ac_try" in
11823   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11824   *) ac_try_echo=$ac_try;;
11825 esac
11826 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11827   (eval "$ac_try") 2>&5
11828   ac_status=$?
11829   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11830   (exit $ac_status); }; }; then
11831   eval "$as_ac_var=yes"
11832 else
11833   echo "$as_me: failed program was:" >&5
11834 sed 's/^/| /' conftest.$ac_ext >&5
11835
11836         eval "$as_ac_var=no"
11837 fi
11838
11839 rm -f core conftest.err conftest.$ac_objext \
11840       conftest$ac_exeext conftest.$ac_ext
11841 fi
11842 ac_res=`eval echo '${'$as_ac_var'}'`
11843                { echo "$as_me:$LINENO: result: $ac_res" >&5
11844 echo "${ECHO_T}$ac_res" >&6; }
11845 if test `eval echo '${'$as_ac_var'}'` = yes; then
11846   cat >>confdefs.h <<_ACEOF
11847 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11848 _ACEOF
11849  break
11850 fi
11851 done
11852
11853
11854
11855 for ac_func in memcpy bcopy
11856 do
11857 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11858 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11859 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11860 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11861   echo $ECHO_N "(cached) $ECHO_C" >&6
11862 else
11863   cat >conftest.$ac_ext <<_ACEOF
11864 /* confdefs.h.  */
11865 _ACEOF
11866 cat confdefs.h >>conftest.$ac_ext
11867 cat >>conftest.$ac_ext <<_ACEOF
11868 /* end confdefs.h.  */
11869 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11870    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11871 #define $ac_func innocuous_$ac_func
11872
11873 /* System header to define __stub macros and hopefully few prototypes,
11874     which can conflict with char $ac_func (); below.
11875     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11876     <limits.h> exists even on freestanding compilers.  */
11877
11878 #ifdef __STDC__
11879 # include <limits.h>
11880 #else
11881 # include <assert.h>
11882 #endif
11883
11884 #undef $ac_func
11885
11886 /* Override any GCC internal prototype to avoid an error.
11887    Use char because int might match the return type of a GCC
11888    builtin and then its argument prototype would still apply.  */
11889 #ifdef __cplusplus
11890 extern "C"
11891 #endif
11892 char $ac_func ();
11893 /* The GNU C library defines this for functions which it implements
11894     to always fail with ENOSYS.  Some functions are actually named
11895     something starting with __ and the normal name is an alias.  */
11896 #if defined __stub_$ac_func || defined __stub___$ac_func
11897 choke me
11898 #endif
11899
11900 int
11901 main ()
11902 {
11903 return $ac_func ();
11904   ;
11905   return 0;
11906 }
11907 _ACEOF
11908 rm -f conftest.$ac_objext conftest$ac_exeext
11909 if { (ac_try="$ac_link"
11910 case "(($ac_try" in
11911   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11912   *) ac_try_echo=$ac_try;;
11913 esac
11914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11915   (eval "$ac_link") 2>conftest.er1
11916   ac_status=$?
11917   grep -v '^ *+' conftest.er1 >conftest.err
11918   rm -f conftest.er1
11919   cat conftest.err >&5
11920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11921   (exit $ac_status); } &&
11922          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11923   { (case "(($ac_try" in
11924   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11925   *) ac_try_echo=$ac_try;;
11926 esac
11927 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11928   (eval "$ac_try") 2>&5
11929   ac_status=$?
11930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11931   (exit $ac_status); }; } &&
11932          { ac_try='test -s conftest$ac_exeext'
11933   { (case "(($ac_try" in
11934   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11935   *) ac_try_echo=$ac_try;;
11936 esac
11937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11938   (eval "$ac_try") 2>&5
11939   ac_status=$?
11940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11941   (exit $ac_status); }; }; then
11942   eval "$as_ac_var=yes"
11943 else
11944   echo "$as_me: failed program was:" >&5
11945 sed 's/^/| /' conftest.$ac_ext >&5
11946
11947         eval "$as_ac_var=no"
11948 fi
11949
11950 rm -f core conftest.err conftest.$ac_objext \
11951       conftest$ac_exeext conftest.$ac_ext
11952 fi
11953 ac_res=`eval echo '${'$as_ac_var'}'`
11954                { echo "$as_me:$LINENO: result: $ac_res" >&5
11955 echo "${ECHO_T}$ac_res" >&6; }
11956 if test `eval echo '${'$as_ac_var'}'` = yes; then
11957   cat >>confdefs.h <<_ACEOF
11958 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11959 _ACEOF
11960  break
11961 fi
11962 done
11963
11964
11965
11966 for ac_func in memmove strcmp
11967 do
11968 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11969 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11970 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11971 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11972   echo $ECHO_N "(cached) $ECHO_C" >&6
11973 else
11974   cat >conftest.$ac_ext <<_ACEOF
11975 /* confdefs.h.  */
11976 _ACEOF
11977 cat confdefs.h >>conftest.$ac_ext
11978 cat >>conftest.$ac_ext <<_ACEOF
11979 /* end confdefs.h.  */
11980 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11981    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11982 #define $ac_func innocuous_$ac_func
11983
11984 /* System header to define __stub macros and hopefully few prototypes,
11985     which can conflict with char $ac_func (); below.
11986     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11987     <limits.h> exists even on freestanding compilers.  */
11988
11989 #ifdef __STDC__
11990 # include <limits.h>
11991 #else
11992 # include <assert.h>
11993 #endif
11994
11995 #undef $ac_func
11996
11997 /* Override any GCC internal prototype to avoid an error.
11998    Use char because int might match the return type of a GCC
11999    builtin and then its argument prototype would still apply.  */
12000 #ifdef __cplusplus
12001 extern "C"
12002 #endif
12003 char $ac_func ();
12004 /* The GNU C library defines this for functions which it implements
12005     to always fail with ENOSYS.  Some functions are actually named
12006     something starting with __ and the normal name is an alias.  */
12007 #if defined __stub_$ac_func || defined __stub___$ac_func
12008 choke me
12009 #endif
12010
12011 int
12012 main ()
12013 {
12014 return $ac_func ();
12015   ;
12016   return 0;
12017 }
12018 _ACEOF
12019 rm -f conftest.$ac_objext conftest$ac_exeext
12020 if { (ac_try="$ac_link"
12021 case "(($ac_try" in
12022   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12023   *) ac_try_echo=$ac_try;;
12024 esac
12025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12026   (eval "$ac_link") 2>conftest.er1
12027   ac_status=$?
12028   grep -v '^ *+' conftest.er1 >conftest.err
12029   rm -f conftest.er1
12030   cat conftest.err >&5
12031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12032   (exit $ac_status); } &&
12033          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12034   { (case "(($ac_try" in
12035   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12036   *) ac_try_echo=$ac_try;;
12037 esac
12038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12039   (eval "$ac_try") 2>&5
12040   ac_status=$?
12041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12042   (exit $ac_status); }; } &&
12043          { ac_try='test -s conftest$ac_exeext'
12044   { (case "(($ac_try" in
12045   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12046   *) ac_try_echo=$ac_try;;
12047 esac
12048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12049   (eval "$ac_try") 2>&5
12050   ac_status=$?
12051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12052   (exit $ac_status); }; }; then
12053   eval "$as_ac_var=yes"
12054 else
12055   echo "$as_me: failed program was:" >&5
12056 sed 's/^/| /' conftest.$ac_ext >&5
12057
12058         eval "$as_ac_var=no"
12059 fi
12060
12061 rm -f core conftest.err conftest.$ac_objext \
12062       conftest$ac_exeext conftest.$ac_ext
12063 fi
12064 ac_res=`eval echo '${'$as_ac_var'}'`
12065                { echo "$as_me:$LINENO: result: $ac_res" >&5
12066 echo "${ECHO_T}$ac_res" >&6; }
12067 if test `eval echo '${'$as_ac_var'}'` = yes; then
12068   cat >>confdefs.h <<_ACEOF
12069 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12070 _ACEOF
12071
12072 fi
12073 done
12074
12075
12076
12077
12078 for ac_func in closedir opendir readdir
12079 do
12080 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12081 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12082 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12083 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12084   echo $ECHO_N "(cached) $ECHO_C" >&6
12085 else
12086   cat >conftest.$ac_ext <<_ACEOF
12087 /* confdefs.h.  */
12088 _ACEOF
12089 cat confdefs.h >>conftest.$ac_ext
12090 cat >>conftest.$ac_ext <<_ACEOF
12091 /* end confdefs.h.  */
12092 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12093    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12094 #define $ac_func innocuous_$ac_func
12095
12096 /* System header to define __stub macros and hopefully few prototypes,
12097     which can conflict with char $ac_func (); below.
12098     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12099     <limits.h> exists even on freestanding compilers.  */
12100
12101 #ifdef __STDC__
12102 # include <limits.h>
12103 #else
12104 # include <assert.h>
12105 #endif
12106
12107 #undef $ac_func
12108
12109 /* Override any GCC internal prototype to avoid an error.
12110    Use char because int might match the return type of a GCC
12111    builtin and then its argument prototype would still apply.  */
12112 #ifdef __cplusplus
12113 extern "C"
12114 #endif
12115 char $ac_func ();
12116 /* The GNU C library defines this for functions which it implements
12117     to always fail with ENOSYS.  Some functions are actually named
12118     something starting with __ and the normal name is an alias.  */
12119 #if defined __stub_$ac_func || defined __stub___$ac_func
12120 choke me
12121 #endif
12122
12123 int
12124 main ()
12125 {
12126 return $ac_func ();
12127   ;
12128   return 0;
12129 }
12130 _ACEOF
12131 rm -f conftest.$ac_objext conftest$ac_exeext
12132 if { (ac_try="$ac_link"
12133 case "(($ac_try" in
12134   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12135   *) ac_try_echo=$ac_try;;
12136 esac
12137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12138   (eval "$ac_link") 2>conftest.er1
12139   ac_status=$?
12140   grep -v '^ *+' conftest.er1 >conftest.err
12141   rm -f conftest.er1
12142   cat conftest.err >&5
12143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12144   (exit $ac_status); } &&
12145          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12146   { (case "(($ac_try" in
12147   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12148   *) ac_try_echo=$ac_try;;
12149 esac
12150 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12151   (eval "$ac_try") 2>&5
12152   ac_status=$?
12153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12154   (exit $ac_status); }; } &&
12155          { ac_try='test -s conftest$ac_exeext'
12156   { (case "(($ac_try" in
12157   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12158   *) ac_try_echo=$ac_try;;
12159 esac
12160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12161   (eval "$ac_try") 2>&5
12162   ac_status=$?
12163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12164   (exit $ac_status); }; }; then
12165   eval "$as_ac_var=yes"
12166 else
12167   echo "$as_me: failed program was:" >&5
12168 sed 's/^/| /' conftest.$ac_ext >&5
12169
12170         eval "$as_ac_var=no"
12171 fi
12172
12173 rm -f core conftest.err conftest.$ac_objext \
12174       conftest$ac_exeext conftest.$ac_ext
12175 fi
12176 ac_res=`eval echo '${'$as_ac_var'}'`
12177                { echo "$as_me:$LINENO: result: $ac_res" >&5
12178 echo "${ECHO_T}$ac_res" >&6; }
12179 if test `eval echo '${'$as_ac_var'}'` = yes; then
12180   cat >>confdefs.h <<_ACEOF
12181 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12182 _ACEOF
12183
12184 fi
12185 done
12186
12187
12188
12189
12190 # Check whether --with-llvmcc was given.
12191 if test "${with_llvmcc+set}" = set; then
12192   withval=$with_llvmcc;
12193 else
12194   with_llvmcc=check
12195 fi
12196
12197 { echo "$as_me:$LINENO: checking LLVM capable compiler" >&5
12198 echo $ECHO_N "checking LLVM capable compiler... $ECHO_C" >&6; }
12199 if test "$with_llvmcc" != "check"; then
12200    if (test "$with_llvmcc" != "llvm-gcc" &&
12201        test "$with_llvmcc" != "clang" &&
12202        test "$with_llvmcc" != "none"); then
12203       { { echo "$as_me:$LINENO: error: invalid value for --with-llvmcc, expected 'clang', 'llvm-gcc', or 'none'." >&5
12204 echo "$as_me: error: invalid value for --with-llvmcc, expected 'clang', 'llvm-gcc', or 'none'." >&2;}
12205    { (exit 1); exit 1; }; }
12206    fi
12207    WITH_LLVMCC="$with_llvmcc"
12208 elif test -n "$WITH_CLANGPATH" || test "$WITH_BUILT_CLANG" -ne "0"; then
12209    WITH_LLVMCC=clang
12210 else
12211    WITH_LLVMCC=none
12212 fi
12213 { echo "$as_me:$LINENO: result: $WITH_LLVMCC" >&5
12214 echo "${ECHO_T}$WITH_LLVMCC" >&6; }
12215 LLVMCC_OPTION=$WITH_LLVMCC
12216
12217
12218 { echo "$as_me:$LINENO: checking tool compatibility" >&5
12219 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
12220
12221 ICC=no
12222 IXX=no
12223 case $CC in
12224   icc*|icpc*)
12225     ICC=yes
12226     IXX=yes
12227     ;;
12228    *)
12229     ;;
12230 esac
12231
12232 if test "$GCC" != "yes" && test "$ICC" != "yes"
12233 then
12234   { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
12235 echo "$as_me: error: gcc|icc required but not found" >&2;}
12236    { (exit 1); exit 1; }; }
12237 fi
12238
12239 if test "$GXX" != "yes" && test "$IXX" != "yes"
12240 then
12241   { { echo "$as_me:$LINENO: error: g++|clang++|icc required but not found" >&5
12242 echo "$as_me: error: g++|clang++|icc required but not found" >&2;}
12243    { (exit 1); exit 1; }; }
12244 fi
12245
12246 if test "$GCC" = "yes"
12247 then
12248   cat >conftest.$ac_ext <<_ACEOF
12249 #if !defined(__GNUC__) || __GNUC__ < 3
12250 #error Unsupported GCC version
12251 #endif
12252
12253 _ACEOF
12254 rm -f conftest.$ac_objext
12255 if { (ac_try="$ac_compile"
12256 case "(($ac_try" in
12257   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12258   *) ac_try_echo=$ac_try;;
12259 esac
12260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12261   (eval "$ac_compile") 2>conftest.er1
12262   ac_status=$?
12263   grep -v '^ *+' conftest.er1 >conftest.err
12264   rm -f conftest.er1
12265   cat conftest.err >&5
12266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12267   (exit $ac_status); } &&
12268          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12269   { (case "(($ac_try" in
12270   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12271   *) ac_try_echo=$ac_try;;
12272 esac
12273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12274   (eval "$ac_try") 2>&5
12275   ac_status=$?
12276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12277   (exit $ac_status); }; } &&
12278          { ac_try='test -s conftest.$ac_objext'
12279   { (case "(($ac_try" in
12280   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12281   *) ac_try_echo=$ac_try;;
12282 esac
12283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12284   (eval "$ac_try") 2>&5
12285   ac_status=$?
12286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12287   (exit $ac_status); }; }; then
12288   :
12289 else
12290   echo "$as_me: failed program was:" >&5
12291 sed 's/^/| /' conftest.$ac_ext >&5
12292
12293         { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
12294 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
12295    { (exit 1); exit 1; }; }
12296 fi
12297
12298 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12299 fi
12300
12301 if test -z "$llvm_cv_gnu_make_command"
12302 then
12303   { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
12304 echo "$as_me: error: GNU Make required but not found" >&2;}
12305    { (exit 1); exit 1; }; }
12306 fi
12307
12308 { echo "$as_me:$LINENO: result: ok" >&5
12309 echo "${ECHO_T}ok" >&6; }
12310
12311 { echo "$as_me:$LINENO: checking optional compiler flags" >&5
12312 echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
12313 NO_VARIADIC_MACROS=`$CXX -Wno-variadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
12314
12315 NO_MISSING_FIELD_INITIALIZERS=`$CXX -Wno-missing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
12316
12317 { echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&5
12318 echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&6; }
12319
12320
12321
12322 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
12323 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
12324 if test "${ac_cv_lib_m_sin+set}" = set; then
12325   echo $ECHO_N "(cached) $ECHO_C" >&6
12326 else
12327   ac_check_lib_save_LIBS=$LIBS
12328 LIBS="-lm  $LIBS"
12329 cat >conftest.$ac_ext <<_ACEOF
12330 /* confdefs.h.  */
12331 _ACEOF
12332 cat confdefs.h >>conftest.$ac_ext
12333 cat >>conftest.$ac_ext <<_ACEOF
12334 /* end confdefs.h.  */
12335
12336 /* Override any GCC internal prototype to avoid an error.
12337    Use char because int might match the return type of a GCC
12338    builtin and then its argument prototype would still apply.  */
12339 #ifdef __cplusplus
12340 extern "C"
12341 #endif
12342 char sin ();
12343 int
12344 main ()
12345 {
12346 return sin ();
12347   ;
12348   return 0;
12349 }
12350 _ACEOF
12351 rm -f conftest.$ac_objext conftest$ac_exeext
12352 if { (ac_try="$ac_link"
12353 case "(($ac_try" in
12354   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12355   *) ac_try_echo=$ac_try;;
12356 esac
12357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12358   (eval "$ac_link") 2>conftest.er1
12359   ac_status=$?
12360   grep -v '^ *+' conftest.er1 >conftest.err
12361   rm -f conftest.er1
12362   cat conftest.err >&5
12363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12364   (exit $ac_status); } &&
12365          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12366   { (case "(($ac_try" in
12367   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12368   *) ac_try_echo=$ac_try;;
12369 esac
12370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12371   (eval "$ac_try") 2>&5
12372   ac_status=$?
12373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12374   (exit $ac_status); }; } &&
12375          { ac_try='test -s conftest$ac_exeext'
12376   { (case "(($ac_try" in
12377   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12378   *) ac_try_echo=$ac_try;;
12379 esac
12380 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12381   (eval "$ac_try") 2>&5
12382   ac_status=$?
12383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12384   (exit $ac_status); }; }; then
12385   ac_cv_lib_m_sin=yes
12386 else
12387   echo "$as_me: failed program was:" >&5
12388 sed 's/^/| /' conftest.$ac_ext >&5
12389
12390         ac_cv_lib_m_sin=no
12391 fi
12392
12393 rm -f core conftest.err conftest.$ac_objext \
12394       conftest$ac_exeext conftest.$ac_ext
12395 LIBS=$ac_check_lib_save_LIBS
12396 fi
12397 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
12398 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
12399 if test $ac_cv_lib_m_sin = yes; then
12400   cat >>confdefs.h <<_ACEOF
12401 #define HAVE_LIBM 1
12402 _ACEOF
12403
12404   LIBS="-lm $LIBS"
12405
12406 fi
12407
12408 if test "$llvm_cv_os_type" = "MingW" ; then
12409
12410 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
12411 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
12412 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
12413   echo $ECHO_N "(cached) $ECHO_C" >&6
12414 else
12415   ac_check_lib_save_LIBS=$LIBS
12416 LIBS="-limagehlp  $LIBS"
12417 cat >conftest.$ac_ext <<_ACEOF
12418 /* confdefs.h.  */
12419 _ACEOF
12420 cat confdefs.h >>conftest.$ac_ext
12421 cat >>conftest.$ac_ext <<_ACEOF
12422 /* end confdefs.h.  */
12423
12424
12425 int
12426 main ()
12427 {
12428 return main ();
12429   ;
12430   return 0;
12431 }
12432 _ACEOF
12433 rm -f conftest.$ac_objext conftest$ac_exeext
12434 if { (ac_try="$ac_link"
12435 case "(($ac_try" in
12436   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12437   *) ac_try_echo=$ac_try;;
12438 esac
12439 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12440   (eval "$ac_link") 2>conftest.er1
12441   ac_status=$?
12442   grep -v '^ *+' conftest.er1 >conftest.err
12443   rm -f conftest.er1
12444   cat conftest.err >&5
12445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12446   (exit $ac_status); } &&
12447          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12448   { (case "(($ac_try" in
12449   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12450   *) ac_try_echo=$ac_try;;
12451 esac
12452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12453   (eval "$ac_try") 2>&5
12454   ac_status=$?
12455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12456   (exit $ac_status); }; } &&
12457          { ac_try='test -s conftest$ac_exeext'
12458   { (case "(($ac_try" in
12459   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12460   *) ac_try_echo=$ac_try;;
12461 esac
12462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12463   (eval "$ac_try") 2>&5
12464   ac_status=$?
12465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12466   (exit $ac_status); }; }; then
12467   ac_cv_lib_imagehlp_main=yes
12468 else
12469   echo "$as_me: failed program was:" >&5
12470 sed 's/^/| /' conftest.$ac_ext >&5
12471
12472         ac_cv_lib_imagehlp_main=no
12473 fi
12474
12475 rm -f core conftest.err conftest.$ac_objext \
12476       conftest$ac_exeext conftest.$ac_ext
12477 LIBS=$ac_check_lib_save_LIBS
12478 fi
12479 { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
12480 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
12481 if test $ac_cv_lib_imagehlp_main = yes; then
12482   cat >>confdefs.h <<_ACEOF
12483 #define HAVE_LIBIMAGEHLP 1
12484 _ACEOF
12485
12486   LIBS="-limagehlp $LIBS"
12487
12488 fi
12489
12490
12491 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
12492 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
12493 if test "${ac_cv_lib_psapi_main+set}" = set; then
12494   echo $ECHO_N "(cached) $ECHO_C" >&6
12495 else
12496   ac_check_lib_save_LIBS=$LIBS
12497 LIBS="-lpsapi  $LIBS"
12498 cat >conftest.$ac_ext <<_ACEOF
12499 /* confdefs.h.  */
12500 _ACEOF
12501 cat confdefs.h >>conftest.$ac_ext
12502 cat >>conftest.$ac_ext <<_ACEOF
12503 /* end confdefs.h.  */
12504
12505
12506 int
12507 main ()
12508 {
12509 return main ();
12510   ;
12511   return 0;
12512 }
12513 _ACEOF
12514 rm -f conftest.$ac_objext conftest$ac_exeext
12515 if { (ac_try="$ac_link"
12516 case "(($ac_try" in
12517   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12518   *) ac_try_echo=$ac_try;;
12519 esac
12520 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12521   (eval "$ac_link") 2>conftest.er1
12522   ac_status=$?
12523   grep -v '^ *+' conftest.er1 >conftest.err
12524   rm -f conftest.er1
12525   cat conftest.err >&5
12526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12527   (exit $ac_status); } &&
12528          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12529   { (case "(($ac_try" in
12530   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12531   *) ac_try_echo=$ac_try;;
12532 esac
12533 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12534   (eval "$ac_try") 2>&5
12535   ac_status=$?
12536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12537   (exit $ac_status); }; } &&
12538          { ac_try='test -s conftest$ac_exeext'
12539   { (case "(($ac_try" in
12540   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12541   *) ac_try_echo=$ac_try;;
12542 esac
12543 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12544   (eval "$ac_try") 2>&5
12545   ac_status=$?
12546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12547   (exit $ac_status); }; }; then
12548   ac_cv_lib_psapi_main=yes
12549 else
12550   echo "$as_me: failed program was:" >&5
12551 sed 's/^/| /' conftest.$ac_ext >&5
12552
12553         ac_cv_lib_psapi_main=no
12554 fi
12555
12556 rm -f core conftest.err conftest.$ac_objext \
12557       conftest$ac_exeext conftest.$ac_ext
12558 LIBS=$ac_check_lib_save_LIBS
12559 fi
12560 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
12561 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
12562 if test $ac_cv_lib_psapi_main = yes; then
12563   cat >>confdefs.h <<_ACEOF
12564 #define HAVE_LIBPSAPI 1
12565 _ACEOF
12566
12567   LIBS="-lpsapi $LIBS"
12568
12569 fi
12570
12571 fi
12572
12573 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
12574 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
12575 if test "${ac_cv_search_dlopen+set}" = set; then
12576   echo $ECHO_N "(cached) $ECHO_C" >&6
12577 else
12578   ac_func_search_save_LIBS=$LIBS
12579 cat >conftest.$ac_ext <<_ACEOF
12580 /* confdefs.h.  */
12581 _ACEOF
12582 cat confdefs.h >>conftest.$ac_ext
12583 cat >>conftest.$ac_ext <<_ACEOF
12584 /* end confdefs.h.  */
12585
12586 /* Override any GCC internal prototype to avoid an error.
12587    Use char because int might match the return type of a GCC
12588    builtin and then its argument prototype would still apply.  */
12589 #ifdef __cplusplus
12590 extern "C"
12591 #endif
12592 char dlopen ();
12593 int
12594 main ()
12595 {
12596 return dlopen ();
12597   ;
12598   return 0;
12599 }
12600 _ACEOF
12601 for ac_lib in '' dl; do
12602   if test -z "$ac_lib"; then
12603     ac_res="none required"
12604   else
12605     ac_res=-l$ac_lib
12606     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12607   fi
12608   rm -f conftest.$ac_objext conftest$ac_exeext
12609 if { (ac_try="$ac_link"
12610 case "(($ac_try" in
12611   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12612   *) ac_try_echo=$ac_try;;
12613 esac
12614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12615   (eval "$ac_link") 2>conftest.er1
12616   ac_status=$?
12617   grep -v '^ *+' conftest.er1 >conftest.err
12618   rm -f conftest.er1
12619   cat conftest.err >&5
12620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12621   (exit $ac_status); } &&
12622          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12623   { (case "(($ac_try" in
12624   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12625   *) ac_try_echo=$ac_try;;
12626 esac
12627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12628   (eval "$ac_try") 2>&5
12629   ac_status=$?
12630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12631   (exit $ac_status); }; } &&
12632          { ac_try='test -s conftest$ac_exeext'
12633   { (case "(($ac_try" in
12634   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12635   *) ac_try_echo=$ac_try;;
12636 esac
12637 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12638   (eval "$ac_try") 2>&5
12639   ac_status=$?
12640   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12641   (exit $ac_status); }; }; then
12642   ac_cv_search_dlopen=$ac_res
12643 else
12644   echo "$as_me: failed program was:" >&5
12645 sed 's/^/| /' conftest.$ac_ext >&5
12646
12647
12648 fi
12649
12650 rm -f core conftest.err conftest.$ac_objext \
12651       conftest$ac_exeext
12652   if test "${ac_cv_search_dlopen+set}" = set; then
12653   break
12654 fi
12655 done
12656 if test "${ac_cv_search_dlopen+set}" = set; then
12657   :
12658 else
12659   ac_cv_search_dlopen=no
12660 fi
12661 rm conftest.$ac_ext
12662 LIBS=$ac_func_search_save_LIBS
12663 fi
12664 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
12665 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
12666 ac_res=$ac_cv_search_dlopen
12667 if test "$ac_res" != no; then
12668   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12669
12670 cat >>confdefs.h <<\_ACEOF
12671 #define HAVE_DLOPEN 1
12672 _ACEOF
12673
12674 else
12675   { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
12676 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
12677 fi
12678
12679
12680 if test "$llvm_cv_enable_libffi" = "yes" ; then
12681   { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
12682 echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
12683 if test "${ac_cv_search_ffi_call+set}" = set; then
12684   echo $ECHO_N "(cached) $ECHO_C" >&6
12685 else
12686   ac_func_search_save_LIBS=$LIBS
12687 cat >conftest.$ac_ext <<_ACEOF
12688 /* confdefs.h.  */
12689 _ACEOF
12690 cat confdefs.h >>conftest.$ac_ext
12691 cat >>conftest.$ac_ext <<_ACEOF
12692 /* end confdefs.h.  */
12693
12694 /* Override any GCC internal prototype to avoid an error.
12695    Use char because int might match the return type of a GCC
12696    builtin and then its argument prototype would still apply.  */
12697 #ifdef __cplusplus
12698 extern "C"
12699 #endif
12700 char ffi_call ();
12701 int
12702 main ()
12703 {
12704 return ffi_call ();
12705   ;
12706   return 0;
12707 }
12708 _ACEOF
12709 for ac_lib in '' ffi; do
12710   if test -z "$ac_lib"; then
12711     ac_res="none required"
12712   else
12713     ac_res=-l$ac_lib
12714     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12715   fi
12716   rm -f conftest.$ac_objext conftest$ac_exeext
12717 if { (ac_try="$ac_link"
12718 case "(($ac_try" in
12719   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12720   *) ac_try_echo=$ac_try;;
12721 esac
12722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12723   (eval "$ac_link") 2>conftest.er1
12724   ac_status=$?
12725   grep -v '^ *+' conftest.er1 >conftest.err
12726   rm -f conftest.er1
12727   cat conftest.err >&5
12728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12729   (exit $ac_status); } &&
12730          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12731   { (case "(($ac_try" in
12732   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12733   *) ac_try_echo=$ac_try;;
12734 esac
12735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12736   (eval "$ac_try") 2>&5
12737   ac_status=$?
12738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12739   (exit $ac_status); }; } &&
12740          { ac_try='test -s conftest$ac_exeext'
12741   { (case "(($ac_try" in
12742   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12743   *) ac_try_echo=$ac_try;;
12744 esac
12745 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12746   (eval "$ac_try") 2>&5
12747   ac_status=$?
12748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12749   (exit $ac_status); }; }; then
12750   ac_cv_search_ffi_call=$ac_res
12751 else
12752   echo "$as_me: failed program was:" >&5
12753 sed 's/^/| /' conftest.$ac_ext >&5
12754
12755
12756 fi
12757
12758 rm -f core conftest.err conftest.$ac_objext \
12759       conftest$ac_exeext
12760   if test "${ac_cv_search_ffi_call+set}" = set; then
12761   break
12762 fi
12763 done
12764 if test "${ac_cv_search_ffi_call+set}" = set; then
12765   :
12766 else
12767   ac_cv_search_ffi_call=no
12768 fi
12769 rm conftest.$ac_ext
12770 LIBS=$ac_func_search_save_LIBS
12771 fi
12772 { echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
12773 echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
12774 ac_res=$ac_cv_search_ffi_call
12775 if test "$ac_res" != no; then
12776   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12777
12778 cat >>confdefs.h <<\_ACEOF
12779 #define HAVE_FFI_CALL 1
12780 _ACEOF
12781
12782 else
12783   { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
12784 echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
12785    { (exit 1); exit 1; }; }
12786 fi
12787
12788 fi
12789
12790 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
12791 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
12792 if test "${ac_cv_search_mallinfo+set}" = set; then
12793   echo $ECHO_N "(cached) $ECHO_C" >&6
12794 else
12795   ac_func_search_save_LIBS=$LIBS
12796 cat >conftest.$ac_ext <<_ACEOF
12797 /* confdefs.h.  */
12798 _ACEOF
12799 cat confdefs.h >>conftest.$ac_ext
12800 cat >>conftest.$ac_ext <<_ACEOF
12801 /* end confdefs.h.  */
12802
12803 /* Override any GCC internal prototype to avoid an error.
12804    Use char because int might match the return type of a GCC
12805    builtin and then its argument prototype would still apply.  */
12806 #ifdef __cplusplus
12807 extern "C"
12808 #endif
12809 char mallinfo ();
12810 int
12811 main ()
12812 {
12813 return mallinfo ();
12814   ;
12815   return 0;
12816 }
12817 _ACEOF
12818 for ac_lib in '' malloc; do
12819   if test -z "$ac_lib"; then
12820     ac_res="none required"
12821   else
12822     ac_res=-l$ac_lib
12823     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12824   fi
12825   rm -f conftest.$ac_objext conftest$ac_exeext
12826 if { (ac_try="$ac_link"
12827 case "(($ac_try" in
12828   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12829   *) ac_try_echo=$ac_try;;
12830 esac
12831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12832   (eval "$ac_link") 2>conftest.er1
12833   ac_status=$?
12834   grep -v '^ *+' conftest.er1 >conftest.err
12835   rm -f conftest.er1
12836   cat conftest.err >&5
12837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12838   (exit $ac_status); } &&
12839          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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_try") 2>&5
12846   ac_status=$?
12847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12848   (exit $ac_status); }; } &&
12849          { ac_try='test -s conftest$ac_exeext'
12850   { (case "(($ac_try" in
12851   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12852   *) ac_try_echo=$ac_try;;
12853 esac
12854 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12855   (eval "$ac_try") 2>&5
12856   ac_status=$?
12857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12858   (exit $ac_status); }; }; then
12859   ac_cv_search_mallinfo=$ac_res
12860 else
12861   echo "$as_me: failed program was:" >&5
12862 sed 's/^/| /' conftest.$ac_ext >&5
12863
12864
12865 fi
12866
12867 rm -f core conftest.err conftest.$ac_objext \
12868       conftest$ac_exeext
12869   if test "${ac_cv_search_mallinfo+set}" = set; then
12870   break
12871 fi
12872 done
12873 if test "${ac_cv_search_mallinfo+set}" = set; then
12874   :
12875 else
12876   ac_cv_search_mallinfo=no
12877 fi
12878 rm conftest.$ac_ext
12879 LIBS=$ac_func_search_save_LIBS
12880 fi
12881 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
12882 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
12883 ac_res=$ac_cv_search_mallinfo
12884 if test "$ac_res" != no; then
12885   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12886
12887 cat >>confdefs.h <<\_ACEOF
12888 #define HAVE_MALLINFO 1
12889 _ACEOF
12890
12891 fi
12892
12893
12894 if test "$ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
12895
12896 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
12897 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
12898 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
12899   echo $ECHO_N "(cached) $ECHO_C" >&6
12900 else
12901   ac_check_lib_save_LIBS=$LIBS
12902 LIBS="-lpthread  $LIBS"
12903 cat >conftest.$ac_ext <<_ACEOF
12904 /* confdefs.h.  */
12905 _ACEOF
12906 cat confdefs.h >>conftest.$ac_ext
12907 cat >>conftest.$ac_ext <<_ACEOF
12908 /* end confdefs.h.  */
12909
12910 /* Override any GCC internal prototype to avoid an error.
12911    Use char because int might match the return type of a GCC
12912    builtin and then its argument prototype would still apply.  */
12913 #ifdef __cplusplus
12914 extern "C"
12915 #endif
12916 char pthread_mutex_init ();
12917 int
12918 main ()
12919 {
12920 return pthread_mutex_init ();
12921   ;
12922   return 0;
12923 }
12924 _ACEOF
12925 rm -f conftest.$ac_objext conftest$ac_exeext
12926 if { (ac_try="$ac_link"
12927 case "(($ac_try" in
12928   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12929   *) ac_try_echo=$ac_try;;
12930 esac
12931 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12932   (eval "$ac_link") 2>conftest.er1
12933   ac_status=$?
12934   grep -v '^ *+' conftest.er1 >conftest.err
12935   rm -f conftest.er1
12936   cat conftest.err >&5
12937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12938   (exit $ac_status); } &&
12939          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12940   { (case "(($ac_try" in
12941   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12942   *) ac_try_echo=$ac_try;;
12943 esac
12944 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12945   (eval "$ac_try") 2>&5
12946   ac_status=$?
12947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12948   (exit $ac_status); }; } &&
12949          { ac_try='test -s conftest$ac_exeext'
12950   { (case "(($ac_try" in
12951   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12952   *) ac_try_echo=$ac_try;;
12953 esac
12954 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12955   (eval "$ac_try") 2>&5
12956   ac_status=$?
12957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12958   (exit $ac_status); }; }; then
12959   ac_cv_lib_pthread_pthread_mutex_init=yes
12960 else
12961   echo "$as_me: failed program was:" >&5
12962 sed 's/^/| /' conftest.$ac_ext >&5
12963
12964         ac_cv_lib_pthread_pthread_mutex_init=no
12965 fi
12966
12967 rm -f core conftest.err conftest.$ac_objext \
12968       conftest$ac_exeext conftest.$ac_ext
12969 LIBS=$ac_check_lib_save_LIBS
12970 fi
12971 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
12972 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
12973 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
12974   cat >>confdefs.h <<_ACEOF
12975 #define HAVE_LIBPTHREAD 1
12976 _ACEOF
12977
12978   LIBS="-lpthread $LIBS"
12979
12980 fi
12981
12982   { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
12983 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
12984 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12985   echo $ECHO_N "(cached) $ECHO_C" >&6
12986 else
12987   ac_func_search_save_LIBS=$LIBS
12988 cat >conftest.$ac_ext <<_ACEOF
12989 /* confdefs.h.  */
12990 _ACEOF
12991 cat confdefs.h >>conftest.$ac_ext
12992 cat >>conftest.$ac_ext <<_ACEOF
12993 /* end confdefs.h.  */
12994
12995 /* Override any GCC internal prototype to avoid an error.
12996    Use char because int might match the return type of a GCC
12997    builtin and then its argument prototype would still apply.  */
12998 #ifdef __cplusplus
12999 extern "C"
13000 #endif
13001 char pthread_mutex_lock ();
13002 int
13003 main ()
13004 {
13005 return pthread_mutex_lock ();
13006   ;
13007   return 0;
13008 }
13009 _ACEOF
13010 for ac_lib in '' pthread; do
13011   if test -z "$ac_lib"; then
13012     ac_res="none required"
13013   else
13014     ac_res=-l$ac_lib
13015     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13016   fi
13017   rm -f conftest.$ac_objext conftest$ac_exeext
13018 if { (ac_try="$ac_link"
13019 case "(($ac_try" in
13020   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13021   *) ac_try_echo=$ac_try;;
13022 esac
13023 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13024   (eval "$ac_link") 2>conftest.er1
13025   ac_status=$?
13026   grep -v '^ *+' conftest.er1 >conftest.err
13027   rm -f conftest.er1
13028   cat conftest.err >&5
13029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13030   (exit $ac_status); } &&
13031          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13032   { (case "(($ac_try" in
13033   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13034   *) ac_try_echo=$ac_try;;
13035 esac
13036 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13037   (eval "$ac_try") 2>&5
13038   ac_status=$?
13039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13040   (exit $ac_status); }; } &&
13041          { ac_try='test -s conftest$ac_exeext'
13042   { (case "(($ac_try" in
13043   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13044   *) ac_try_echo=$ac_try;;
13045 esac
13046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13047   (eval "$ac_try") 2>&5
13048   ac_status=$?
13049   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13050   (exit $ac_status); }; }; then
13051   ac_cv_search_pthread_mutex_lock=$ac_res
13052 else
13053   echo "$as_me: failed program was:" >&5
13054 sed 's/^/| /' conftest.$ac_ext >&5
13055
13056
13057 fi
13058
13059 rm -f core conftest.err conftest.$ac_objext \
13060       conftest$ac_exeext
13061   if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
13062   break
13063 fi
13064 done
13065 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
13066   :
13067 else
13068   ac_cv_search_pthread_mutex_lock=no
13069 fi
13070 rm conftest.$ac_ext
13071 LIBS=$ac_func_search_save_LIBS
13072 fi
13073 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
13074 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
13075 ac_res=$ac_cv_search_pthread_mutex_lock
13076 if test "$ac_res" != no; then
13077   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13078
13079 cat >>confdefs.h <<\_ACEOF
13080 #define HAVE_PTHREAD_MUTEX_LOCK 1
13081 _ACEOF
13082
13083 fi
13084
13085   { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
13086 echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
13087 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13088   echo $ECHO_N "(cached) $ECHO_C" >&6
13089 else
13090   ac_func_search_save_LIBS=$LIBS
13091 cat >conftest.$ac_ext <<_ACEOF
13092 /* confdefs.h.  */
13093 _ACEOF
13094 cat confdefs.h >>conftest.$ac_ext
13095 cat >>conftest.$ac_ext <<_ACEOF
13096 /* end confdefs.h.  */
13097
13098 /* Override any GCC internal prototype to avoid an error.
13099    Use char because int might match the return type of a GCC
13100    builtin and then its argument prototype would still apply.  */
13101 #ifdef __cplusplus
13102 extern "C"
13103 #endif
13104 char pthread_rwlock_init ();
13105 int
13106 main ()
13107 {
13108 return pthread_rwlock_init ();
13109   ;
13110   return 0;
13111 }
13112 _ACEOF
13113 for ac_lib in '' pthread; do
13114   if test -z "$ac_lib"; then
13115     ac_res="none required"
13116   else
13117     ac_res=-l$ac_lib
13118     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13119   fi
13120   rm -f conftest.$ac_objext conftest$ac_exeext
13121 if { (ac_try="$ac_link"
13122 case "(($ac_try" in
13123   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13124   *) ac_try_echo=$ac_try;;
13125 esac
13126 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13127   (eval "$ac_link") 2>conftest.er1
13128   ac_status=$?
13129   grep -v '^ *+' conftest.er1 >conftest.err
13130   rm -f conftest.er1
13131   cat conftest.err >&5
13132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13133   (exit $ac_status); } &&
13134          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13135   { (case "(($ac_try" in
13136   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13137   *) ac_try_echo=$ac_try;;
13138 esac
13139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13140   (eval "$ac_try") 2>&5
13141   ac_status=$?
13142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13143   (exit $ac_status); }; } &&
13144          { ac_try='test -s conftest$ac_exeext'
13145   { (case "(($ac_try" in
13146   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13147   *) ac_try_echo=$ac_try;;
13148 esac
13149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13150   (eval "$ac_try") 2>&5
13151   ac_status=$?
13152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13153   (exit $ac_status); }; }; then
13154   ac_cv_search_pthread_rwlock_init=$ac_res
13155 else
13156   echo "$as_me: failed program was:" >&5
13157 sed 's/^/| /' conftest.$ac_ext >&5
13158
13159
13160 fi
13161
13162 rm -f core conftest.err conftest.$ac_objext \
13163       conftest$ac_exeext
13164   if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13165   break
13166 fi
13167 done
13168 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13169   :
13170 else
13171   ac_cv_search_pthread_rwlock_init=no
13172 fi
13173 rm conftest.$ac_ext
13174 LIBS=$ac_func_search_save_LIBS
13175 fi
13176 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
13177 echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
13178 ac_res=$ac_cv_search_pthread_rwlock_init
13179 if test "$ac_res" != no; then
13180   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13181
13182 cat >>confdefs.h <<\_ACEOF
13183 #define HAVE_PTHREAD_RWLOCK_INIT 1
13184 _ACEOF
13185
13186 fi
13187
13188   { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
13189 echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
13190 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13191   echo $ECHO_N "(cached) $ECHO_C" >&6
13192 else
13193   ac_func_search_save_LIBS=$LIBS
13194 cat >conftest.$ac_ext <<_ACEOF
13195 /* confdefs.h.  */
13196 _ACEOF
13197 cat confdefs.h >>conftest.$ac_ext
13198 cat >>conftest.$ac_ext <<_ACEOF
13199 /* end confdefs.h.  */
13200
13201 /* Override any GCC internal prototype to avoid an error.
13202    Use char because int might match the return type of a GCC
13203    builtin and then its argument prototype would still apply.  */
13204 #ifdef __cplusplus
13205 extern "C"
13206 #endif
13207 char pthread_getspecific ();
13208 int
13209 main ()
13210 {
13211 return pthread_getspecific ();
13212   ;
13213   return 0;
13214 }
13215 _ACEOF
13216 for ac_lib in '' pthread; do
13217   if test -z "$ac_lib"; then
13218     ac_res="none required"
13219   else
13220     ac_res=-l$ac_lib
13221     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13222   fi
13223   rm -f conftest.$ac_objext conftest$ac_exeext
13224 if { (ac_try="$ac_link"
13225 case "(($ac_try" in
13226   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13227   *) ac_try_echo=$ac_try;;
13228 esac
13229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13230   (eval "$ac_link") 2>conftest.er1
13231   ac_status=$?
13232   grep -v '^ *+' conftest.er1 >conftest.err
13233   rm -f conftest.er1
13234   cat conftest.err >&5
13235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13236   (exit $ac_status); } &&
13237          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13238   { (case "(($ac_try" in
13239   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13240   *) ac_try_echo=$ac_try;;
13241 esac
13242 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13243   (eval "$ac_try") 2>&5
13244   ac_status=$?
13245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13246   (exit $ac_status); }; } &&
13247          { ac_try='test -s conftest$ac_exeext'
13248   { (case "(($ac_try" in
13249   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13250   *) ac_try_echo=$ac_try;;
13251 esac
13252 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13253   (eval "$ac_try") 2>&5
13254   ac_status=$?
13255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13256   (exit $ac_status); }; }; then
13257   ac_cv_search_pthread_getspecific=$ac_res
13258 else
13259   echo "$as_me: failed program was:" >&5
13260 sed 's/^/| /' conftest.$ac_ext >&5
13261
13262
13263 fi
13264
13265 rm -f core conftest.err conftest.$ac_objext \
13266       conftest$ac_exeext
13267   if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13268   break
13269 fi
13270 done
13271 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13272   :
13273 else
13274   ac_cv_search_pthread_getspecific=no
13275 fi
13276 rm conftest.$ac_ext
13277 LIBS=$ac_func_search_save_LIBS
13278 fi
13279 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
13280 echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
13281 ac_res=$ac_cv_search_pthread_getspecific
13282 if test "$ac_res" != no; then
13283   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13284
13285 cat >>confdefs.h <<\_ACEOF
13286 #define HAVE_PTHREAD_GETSPECIFIC 1
13287 _ACEOF
13288
13289 fi
13290
13291 fi
13292
13293
13294 # Check whether --with-udis86 was given.
13295 if test "${with_udis86+set}" = set; then
13296   withval=$with_udis86;
13297       USE_UDIS86=1
13298
13299       case "$withval" in
13300         /usr/lib|yes) ;;
13301         *) LDFLAGS="$LDFLAGS -L${withval}" ;;
13302       esac
13303
13304 { echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
13305 echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
13306 if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
13307   echo $ECHO_N "(cached) $ECHO_C" >&6
13308 else
13309   ac_check_lib_save_LIBS=$LIBS
13310 LIBS="-ludis86  $LIBS"
13311 cat >conftest.$ac_ext <<_ACEOF
13312 /* confdefs.h.  */
13313 _ACEOF
13314 cat confdefs.h >>conftest.$ac_ext
13315 cat >>conftest.$ac_ext <<_ACEOF
13316 /* end confdefs.h.  */
13317
13318 /* Override any GCC internal prototype to avoid an error.
13319    Use char because int might match the return type of a GCC
13320    builtin and then its argument prototype would still apply.  */
13321 #ifdef __cplusplus
13322 extern "C"
13323 #endif
13324 char ud_init ();
13325 int
13326 main ()
13327 {
13328 return ud_init ();
13329   ;
13330   return 0;
13331 }
13332 _ACEOF
13333 rm -f conftest.$ac_objext conftest$ac_exeext
13334 if { (ac_try="$ac_link"
13335 case "(($ac_try" in
13336   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13337   *) ac_try_echo=$ac_try;;
13338 esac
13339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13340   (eval "$ac_link") 2>conftest.er1
13341   ac_status=$?
13342   grep -v '^ *+' conftest.er1 >conftest.err
13343   rm -f conftest.er1
13344   cat conftest.err >&5
13345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13346   (exit $ac_status); } &&
13347          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13348   { (case "(($ac_try" in
13349   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13350   *) ac_try_echo=$ac_try;;
13351 esac
13352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13353   (eval "$ac_try") 2>&5
13354   ac_status=$?
13355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13356   (exit $ac_status); }; } &&
13357          { ac_try='test -s conftest$ac_exeext'
13358   { (case "(($ac_try" in
13359   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13360   *) ac_try_echo=$ac_try;;
13361 esac
13362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13363   (eval "$ac_try") 2>&5
13364   ac_status=$?
13365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13366   (exit $ac_status); }; }; then
13367   ac_cv_lib_udis86_ud_init=yes
13368 else
13369   echo "$as_me: failed program was:" >&5
13370 sed 's/^/| /' conftest.$ac_ext >&5
13371
13372         ac_cv_lib_udis86_ud_init=no
13373 fi
13374
13375 rm -f core conftest.err conftest.$ac_objext \
13376       conftest$ac_exeext conftest.$ac_ext
13377 LIBS=$ac_check_lib_save_LIBS
13378 fi
13379 { echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
13380 echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
13381 if test $ac_cv_lib_udis86_ud_init = yes; then
13382   cat >>confdefs.h <<_ACEOF
13383 #define HAVE_LIBUDIS86 1
13384 _ACEOF
13385
13386   LIBS="-ludis86 $LIBS"
13387
13388 else
13389
13390         echo "Error! You need to have libudis86 around."
13391         exit -1
13392
13393 fi
13394
13395
13396 else
13397   USE_UDIS86=0
13398
13399 fi
13400
13401
13402 cat >>confdefs.h <<_ACEOF
13403 #define USE_UDIS86 $USE_UDIS86
13404 _ACEOF
13405
13406
13407
13408 # Check whether --with-oprofile was given.
13409 if test "${with_oprofile+set}" = set; then
13410   withval=$with_oprofile;
13411       USE_OPROFILE=1
13412
13413       case "$withval" in
13414         /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
13415         no) llvm_cv_oppath=
13416             USE_OPROFILE=0
13417  ;;
13418         *) llvm_cv_oppath="${withval}/lib/oprofile"
13419            CPPFLAGS="-I${withval}/include";;
13420       esac
13421       if test -n "$llvm_cv_oppath" ; then
13422         LIBS="$LIBS -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
13423                                         { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
13424 echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
13425 if test "${ac_cv_search_bfd_init+set}" = set; then
13426   echo $ECHO_N "(cached) $ECHO_C" >&6
13427 else
13428   ac_func_search_save_LIBS=$LIBS
13429 cat >conftest.$ac_ext <<_ACEOF
13430 /* confdefs.h.  */
13431 _ACEOF
13432 cat confdefs.h >>conftest.$ac_ext
13433 cat >>conftest.$ac_ext <<_ACEOF
13434 /* end confdefs.h.  */
13435
13436 /* Override any GCC internal prototype to avoid an error.
13437    Use char because int might match the return type of a GCC
13438    builtin and then its argument prototype would still apply.  */
13439 #ifdef __cplusplus
13440 extern "C"
13441 #endif
13442 char bfd_init ();
13443 int
13444 main ()
13445 {
13446 return bfd_init ();
13447   ;
13448   return 0;
13449 }
13450 _ACEOF
13451 for ac_lib in '' bfd; do
13452   if test -z "$ac_lib"; then
13453     ac_res="none required"
13454   else
13455     ac_res=-l$ac_lib
13456     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13457   fi
13458   rm -f conftest.$ac_objext conftest$ac_exeext
13459 if { (ac_try="$ac_link"
13460 case "(($ac_try" in
13461   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13462   *) ac_try_echo=$ac_try;;
13463 esac
13464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13465   (eval "$ac_link") 2>conftest.er1
13466   ac_status=$?
13467   grep -v '^ *+' conftest.er1 >conftest.err
13468   rm -f conftest.er1
13469   cat conftest.err >&5
13470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13471   (exit $ac_status); } &&
13472          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13473   { (case "(($ac_try" in
13474   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13475   *) ac_try_echo=$ac_try;;
13476 esac
13477 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13478   (eval "$ac_try") 2>&5
13479   ac_status=$?
13480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13481   (exit $ac_status); }; } &&
13482          { ac_try='test -s conftest$ac_exeext'
13483   { (case "(($ac_try" in
13484   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13485   *) ac_try_echo=$ac_try;;
13486 esac
13487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13488   (eval "$ac_try") 2>&5
13489   ac_status=$?
13490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13491   (exit $ac_status); }; }; then
13492   ac_cv_search_bfd_init=$ac_res
13493 else
13494   echo "$as_me: failed program was:" >&5
13495 sed 's/^/| /' conftest.$ac_ext >&5
13496
13497
13498 fi
13499
13500 rm -f core conftest.err conftest.$ac_objext \
13501       conftest$ac_exeext
13502   if test "${ac_cv_search_bfd_init+set}" = set; then
13503   break
13504 fi
13505 done
13506 if test "${ac_cv_search_bfd_init+set}" = set; then
13507   :
13508 else
13509   ac_cv_search_bfd_init=no
13510 fi
13511 rm conftest.$ac_ext
13512 LIBS=$ac_func_search_save_LIBS
13513 fi
13514 { echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
13515 echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
13516 ac_res=$ac_cv_search_bfd_init
13517 if test "$ac_res" != no; then
13518   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13519
13520 fi
13521
13522         { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
13523 echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
13524 if test "${ac_cv_search_op_open_agent+set}" = set; then
13525   echo $ECHO_N "(cached) $ECHO_C" >&6
13526 else
13527   ac_func_search_save_LIBS=$LIBS
13528 cat >conftest.$ac_ext <<_ACEOF
13529 /* confdefs.h.  */
13530 _ACEOF
13531 cat confdefs.h >>conftest.$ac_ext
13532 cat >>conftest.$ac_ext <<_ACEOF
13533 /* end confdefs.h.  */
13534
13535 /* Override any GCC internal prototype to avoid an error.
13536    Use char because int might match the return type of a GCC
13537    builtin and then its argument prototype would still apply.  */
13538 #ifdef __cplusplus
13539 extern "C"
13540 #endif
13541 char op_open_agent ();
13542 int
13543 main ()
13544 {
13545 return op_open_agent ();
13546   ;
13547   return 0;
13548 }
13549 _ACEOF
13550 for ac_lib in '' opagent; do
13551   if test -z "$ac_lib"; then
13552     ac_res="none required"
13553   else
13554     ac_res=-l$ac_lib
13555     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13556   fi
13557   rm -f conftest.$ac_objext conftest$ac_exeext
13558 if { (ac_try="$ac_link"
13559 case "(($ac_try" in
13560   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13561   *) ac_try_echo=$ac_try;;
13562 esac
13563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13564   (eval "$ac_link") 2>conftest.er1
13565   ac_status=$?
13566   grep -v '^ *+' conftest.er1 >conftest.err
13567   rm -f conftest.er1
13568   cat conftest.err >&5
13569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13570   (exit $ac_status); } &&
13571          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13572   { (case "(($ac_try" in
13573   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13574   *) ac_try_echo=$ac_try;;
13575 esac
13576 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13577   (eval "$ac_try") 2>&5
13578   ac_status=$?
13579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13580   (exit $ac_status); }; } &&
13581          { ac_try='test -s conftest$ac_exeext'
13582   { (case "(($ac_try" in
13583   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13584   *) ac_try_echo=$ac_try;;
13585 esac
13586 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13587   (eval "$ac_try") 2>&5
13588   ac_status=$?
13589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13590   (exit $ac_status); }; }; then
13591   ac_cv_search_op_open_agent=$ac_res
13592 else
13593   echo "$as_me: failed program was:" >&5
13594 sed 's/^/| /' conftest.$ac_ext >&5
13595
13596
13597 fi
13598
13599 rm -f core conftest.err conftest.$ac_objext \
13600       conftest$ac_exeext
13601   if test "${ac_cv_search_op_open_agent+set}" = set; then
13602   break
13603 fi
13604 done
13605 if test "${ac_cv_search_op_open_agent+set}" = set; then
13606   :
13607 else
13608   ac_cv_search_op_open_agent=no
13609 fi
13610 rm conftest.$ac_ext
13611 LIBS=$ac_func_search_save_LIBS
13612 fi
13613 { echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
13614 echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
13615 ac_res=$ac_cv_search_op_open_agent
13616 if test "$ac_res" != no; then
13617   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13618
13619 else
13620
13621           echo "Error! You need to have libopagent around."
13622           exit -1
13623
13624 fi
13625
13626         if test "${ac_cv_header_opagent_h+set}" = set; then
13627   { echo "$as_me:$LINENO: checking for opagent.h" >&5
13628 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13629 if test "${ac_cv_header_opagent_h+set}" = set; then
13630   echo $ECHO_N "(cached) $ECHO_C" >&6
13631 fi
13632 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13633 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13634 else
13635   # Is the header compilable?
13636 { echo "$as_me:$LINENO: checking opagent.h usability" >&5
13637 echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
13638 cat >conftest.$ac_ext <<_ACEOF
13639 /* confdefs.h.  */
13640 _ACEOF
13641 cat confdefs.h >>conftest.$ac_ext
13642 cat >>conftest.$ac_ext <<_ACEOF
13643 /* end confdefs.h.  */
13644 $ac_includes_default
13645 #include <opagent.h>
13646 _ACEOF
13647 rm -f conftest.$ac_objext
13648 if { (ac_try="$ac_compile"
13649 case "(($ac_try" in
13650   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13651   *) ac_try_echo=$ac_try;;
13652 esac
13653 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13654   (eval "$ac_compile") 2>conftest.er1
13655   ac_status=$?
13656   grep -v '^ *+' conftest.er1 >conftest.err
13657   rm -f conftest.er1
13658   cat conftest.err >&5
13659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13660   (exit $ac_status); } &&
13661          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13662   { (case "(($ac_try" in
13663   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13664   *) ac_try_echo=$ac_try;;
13665 esac
13666 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13667   (eval "$ac_try") 2>&5
13668   ac_status=$?
13669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13670   (exit $ac_status); }; } &&
13671          { ac_try='test -s conftest.$ac_objext'
13672   { (case "(($ac_try" in
13673   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13674   *) ac_try_echo=$ac_try;;
13675 esac
13676 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13677   (eval "$ac_try") 2>&5
13678   ac_status=$?
13679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13680   (exit $ac_status); }; }; then
13681   ac_header_compiler=yes
13682 else
13683   echo "$as_me: failed program was:" >&5
13684 sed 's/^/| /' conftest.$ac_ext >&5
13685
13686         ac_header_compiler=no
13687 fi
13688
13689 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13690 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13691 echo "${ECHO_T}$ac_header_compiler" >&6; }
13692
13693 # Is the header present?
13694 { echo "$as_me:$LINENO: checking opagent.h presence" >&5
13695 echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
13696 cat >conftest.$ac_ext <<_ACEOF
13697 /* confdefs.h.  */
13698 _ACEOF
13699 cat confdefs.h >>conftest.$ac_ext
13700 cat >>conftest.$ac_ext <<_ACEOF
13701 /* end confdefs.h.  */
13702 #include <opagent.h>
13703 _ACEOF
13704 if { (ac_try="$ac_cpp conftest.$ac_ext"
13705 case "(($ac_try" in
13706   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13707   *) ac_try_echo=$ac_try;;
13708 esac
13709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13710   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13711   ac_status=$?
13712   grep -v '^ *+' conftest.er1 >conftest.err
13713   rm -f conftest.er1
13714   cat conftest.err >&5
13715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13716   (exit $ac_status); } >/dev/null; then
13717   if test -s conftest.err; then
13718     ac_cpp_err=$ac_c_preproc_warn_flag
13719     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13720   else
13721     ac_cpp_err=
13722   fi
13723 else
13724   ac_cpp_err=yes
13725 fi
13726 if test -z "$ac_cpp_err"; then
13727   ac_header_preproc=yes
13728 else
13729   echo "$as_me: failed program was:" >&5
13730 sed 's/^/| /' conftest.$ac_ext >&5
13731
13732   ac_header_preproc=no
13733 fi
13734
13735 rm -f conftest.err conftest.$ac_ext
13736 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13737 echo "${ECHO_T}$ac_header_preproc" >&6; }
13738
13739 # So?  What about this header?
13740 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13741   yes:no: )
13742     { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
13743 echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13744     { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
13745 echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
13746     ac_header_preproc=yes
13747     ;;
13748   no:yes:* )
13749     { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
13750 echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
13751     { echo "$as_me:$LINENO: WARNING: opagent.h:     check for missing prerequisite headers?" >&5
13752 echo "$as_me: WARNING: opagent.h:     check for missing prerequisite headers?" >&2;}
13753     { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
13754 echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
13755     { echo "$as_me:$LINENO: WARNING: opagent.h:     section \"Present But Cannot Be Compiled\"" >&5
13756 echo "$as_me: WARNING: opagent.h:     section \"Present But Cannot Be Compiled\"" >&2;}
13757     { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
13758 echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
13759     { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
13760 echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
13761     ( cat <<\_ASBOX
13762 ## ----------------------------------- ##
13763 ## Report this to llvmbugs@cs.uiuc.edu ##
13764 ## ----------------------------------- ##
13765 _ASBOX
13766      ) | sed "s/^/$as_me: WARNING:     /" >&2
13767     ;;
13768 esac
13769 { echo "$as_me:$LINENO: checking for opagent.h" >&5
13770 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13771 if test "${ac_cv_header_opagent_h+set}" = set; then
13772   echo $ECHO_N "(cached) $ECHO_C" >&6
13773 else
13774   ac_cv_header_opagent_h=$ac_header_preproc
13775 fi
13776 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13777 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13778
13779 fi
13780 if test $ac_cv_header_opagent_h = yes; then
13781   :
13782 else
13783
13784           echo "Error! You need to have opagent.h around."
13785           exit -1
13786
13787 fi
13788
13789
13790       fi
13791
13792 else
13793
13794       USE_OPROFILE=0
13795
13796
13797 fi
13798
13799
13800 cat >>confdefs.h <<_ACEOF
13801 #define USE_OPROFILE $USE_OPROFILE
13802 _ACEOF
13803
13804
13805
13806
13807
13808
13809
13810
13811 ac_header_dirent=no
13812 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
13813   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
13814 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
13815 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
13816 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13817   echo $ECHO_N "(cached) $ECHO_C" >&6
13818 else
13819   cat >conftest.$ac_ext <<_ACEOF
13820 /* confdefs.h.  */
13821 _ACEOF
13822 cat confdefs.h >>conftest.$ac_ext
13823 cat >>conftest.$ac_ext <<_ACEOF
13824 /* end confdefs.h.  */
13825 #include <sys/types.h>
13826 #include <$ac_hdr>
13827
13828 int
13829 main ()
13830 {
13831 if ((DIR *) 0)
13832 return 0;
13833   ;
13834   return 0;
13835 }
13836 _ACEOF
13837 rm -f conftest.$ac_objext
13838 if { (ac_try="$ac_compile"
13839 case "(($ac_try" in
13840   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13841   *) ac_try_echo=$ac_try;;
13842 esac
13843 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13844   (eval "$ac_compile") 2>conftest.er1
13845   ac_status=$?
13846   grep -v '^ *+' conftest.er1 >conftest.err
13847   rm -f conftest.er1
13848   cat conftest.err >&5
13849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13850   (exit $ac_status); } &&
13851          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13852   { (case "(($ac_try" in
13853   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13854   *) ac_try_echo=$ac_try;;
13855 esac
13856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13857   (eval "$ac_try") 2>&5
13858   ac_status=$?
13859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13860   (exit $ac_status); }; } &&
13861          { ac_try='test -s conftest.$ac_objext'
13862   { (case "(($ac_try" in
13863   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13864   *) ac_try_echo=$ac_try;;
13865 esac
13866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13867   (eval "$ac_try") 2>&5
13868   ac_status=$?
13869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13870   (exit $ac_status); }; }; then
13871   eval "$as_ac_Header=yes"
13872 else
13873   echo "$as_me: failed program was:" >&5
13874 sed 's/^/| /' conftest.$ac_ext >&5
13875
13876         eval "$as_ac_Header=no"
13877 fi
13878
13879 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13880 fi
13881 ac_res=`eval echo '${'$as_ac_Header'}'`
13882                { echo "$as_me:$LINENO: result: $ac_res" >&5
13883 echo "${ECHO_T}$ac_res" >&6; }
13884 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13885   cat >>confdefs.h <<_ACEOF
13886 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
13887 _ACEOF
13888
13889 ac_header_dirent=$ac_hdr; break
13890 fi
13891
13892 done
13893 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
13894 if test $ac_header_dirent = dirent.h; then
13895   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
13896 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
13897 if test "${ac_cv_search_opendir+set}" = set; then
13898   echo $ECHO_N "(cached) $ECHO_C" >&6
13899 else
13900   ac_func_search_save_LIBS=$LIBS
13901 cat >conftest.$ac_ext <<_ACEOF
13902 /* confdefs.h.  */
13903 _ACEOF
13904 cat confdefs.h >>conftest.$ac_ext
13905 cat >>conftest.$ac_ext <<_ACEOF
13906 /* end confdefs.h.  */
13907
13908 /* Override any GCC internal prototype to avoid an error.
13909    Use char because int might match the return type of a GCC
13910    builtin and then its argument prototype would still apply.  */
13911 #ifdef __cplusplus
13912 extern "C"
13913 #endif
13914 char opendir ();
13915 int
13916 main ()
13917 {
13918 return opendir ();
13919   ;
13920   return 0;
13921 }
13922 _ACEOF
13923 for ac_lib in '' dir; do
13924   if test -z "$ac_lib"; then
13925     ac_res="none required"
13926   else
13927     ac_res=-l$ac_lib
13928     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13929   fi
13930   rm -f conftest.$ac_objext conftest$ac_exeext
13931 if { (ac_try="$ac_link"
13932 case "(($ac_try" in
13933   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13934   *) ac_try_echo=$ac_try;;
13935 esac
13936 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13937   (eval "$ac_link") 2>conftest.er1
13938   ac_status=$?
13939   grep -v '^ *+' conftest.er1 >conftest.err
13940   rm -f conftest.er1
13941   cat conftest.err >&5
13942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13943   (exit $ac_status); } &&
13944          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13945   { (case "(($ac_try" in
13946   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13947   *) ac_try_echo=$ac_try;;
13948 esac
13949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13950   (eval "$ac_try") 2>&5
13951   ac_status=$?
13952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13953   (exit $ac_status); }; } &&
13954          { ac_try='test -s conftest$ac_exeext'
13955   { (case "(($ac_try" in
13956   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13957   *) ac_try_echo=$ac_try;;
13958 esac
13959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13960   (eval "$ac_try") 2>&5
13961   ac_status=$?
13962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13963   (exit $ac_status); }; }; then
13964   ac_cv_search_opendir=$ac_res
13965 else
13966   echo "$as_me: failed program was:" >&5
13967 sed 's/^/| /' conftest.$ac_ext >&5
13968
13969
13970 fi
13971
13972 rm -f core conftest.err conftest.$ac_objext \
13973       conftest$ac_exeext
13974   if test "${ac_cv_search_opendir+set}" = set; then
13975   break
13976 fi
13977 done
13978 if test "${ac_cv_search_opendir+set}" = set; then
13979   :
13980 else
13981   ac_cv_search_opendir=no
13982 fi
13983 rm conftest.$ac_ext
13984 LIBS=$ac_func_search_save_LIBS
13985 fi
13986 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
13987 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
13988 ac_res=$ac_cv_search_opendir
13989 if test "$ac_res" != no; then
13990   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13991
13992 fi
13993
13994 else
13995   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
13996 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
13997 if test "${ac_cv_search_opendir+set}" = set; then
13998   echo $ECHO_N "(cached) $ECHO_C" >&6
13999 else
14000   ac_func_search_save_LIBS=$LIBS
14001 cat >conftest.$ac_ext <<_ACEOF
14002 /* confdefs.h.  */
14003 _ACEOF
14004 cat confdefs.h >>conftest.$ac_ext
14005 cat >>conftest.$ac_ext <<_ACEOF
14006 /* end confdefs.h.  */
14007
14008 /* Override any GCC internal prototype to avoid an error.
14009    Use char because int might match the return type of a GCC
14010    builtin and then its argument prototype would still apply.  */
14011 #ifdef __cplusplus
14012 extern "C"
14013 #endif
14014 char opendir ();
14015 int
14016 main ()
14017 {
14018 return opendir ();
14019   ;
14020   return 0;
14021 }
14022 _ACEOF
14023 for ac_lib in '' x; do
14024   if test -z "$ac_lib"; then
14025     ac_res="none required"
14026   else
14027     ac_res=-l$ac_lib
14028     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14029   fi
14030   rm -f conftest.$ac_objext conftest$ac_exeext
14031 if { (ac_try="$ac_link"
14032 case "(($ac_try" in
14033   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14034   *) ac_try_echo=$ac_try;;
14035 esac
14036 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14037   (eval "$ac_link") 2>conftest.er1
14038   ac_status=$?
14039   grep -v '^ *+' conftest.er1 >conftest.err
14040   rm -f conftest.er1
14041   cat conftest.err >&5
14042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14043   (exit $ac_status); } &&
14044          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14045   { (case "(($ac_try" in
14046   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14047   *) ac_try_echo=$ac_try;;
14048 esac
14049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14050   (eval "$ac_try") 2>&5
14051   ac_status=$?
14052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14053   (exit $ac_status); }; } &&
14054          { ac_try='test -s conftest$ac_exeext'
14055   { (case "(($ac_try" in
14056   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14057   *) ac_try_echo=$ac_try;;
14058 esac
14059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14060   (eval "$ac_try") 2>&5
14061   ac_status=$?
14062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14063   (exit $ac_status); }; }; then
14064   ac_cv_search_opendir=$ac_res
14065 else
14066   echo "$as_me: failed program was:" >&5
14067 sed 's/^/| /' conftest.$ac_ext >&5
14068
14069
14070 fi
14071
14072 rm -f core conftest.err conftest.$ac_objext \
14073       conftest$ac_exeext
14074   if test "${ac_cv_search_opendir+set}" = set; then
14075   break
14076 fi
14077 done
14078 if test "${ac_cv_search_opendir+set}" = set; then
14079   :
14080 else
14081   ac_cv_search_opendir=no
14082 fi
14083 rm conftest.$ac_ext
14084 LIBS=$ac_func_search_save_LIBS
14085 fi
14086 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14087 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
14088 ac_res=$ac_cv_search_opendir
14089 if test "$ac_res" != no; then
14090   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14091
14092 fi
14093
14094 fi
14095
14096 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
14097 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
14098 if test "${ac_cv_header_mmap_anon+set}" = set; then
14099   echo $ECHO_N "(cached) $ECHO_C" >&6
14100 else
14101    ac_ext=c
14102 ac_cpp='$CPP $CPPFLAGS'
14103 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14104 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14105 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14106
14107   cat >conftest.$ac_ext <<_ACEOF
14108 /* confdefs.h.  */
14109 _ACEOF
14110 cat confdefs.h >>conftest.$ac_ext
14111 cat >>conftest.$ac_ext <<_ACEOF
14112 /* end confdefs.h.  */
14113 #include <sys/mman.h>
14114 #include <unistd.h>
14115 #include <fcntl.h>
14116 int
14117 main ()
14118 {
14119 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
14120   ;
14121   return 0;
14122 }
14123 _ACEOF
14124 rm -f conftest.$ac_objext
14125 if { (ac_try="$ac_compile"
14126 case "(($ac_try" in
14127   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14128   *) ac_try_echo=$ac_try;;
14129 esac
14130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14131   (eval "$ac_compile") 2>conftest.er1
14132   ac_status=$?
14133   grep -v '^ *+' conftest.er1 >conftest.err
14134   rm -f conftest.er1
14135   cat conftest.err >&5
14136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14137   (exit $ac_status); } &&
14138          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14139   { (case "(($ac_try" in
14140   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14141   *) ac_try_echo=$ac_try;;
14142 esac
14143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14144   (eval "$ac_try") 2>&5
14145   ac_status=$?
14146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14147   (exit $ac_status); }; } &&
14148          { ac_try='test -s conftest.$ac_objext'
14149   { (case "(($ac_try" in
14150   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14151   *) ac_try_echo=$ac_try;;
14152 esac
14153 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14154   (eval "$ac_try") 2>&5
14155   ac_status=$?
14156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14157   (exit $ac_status); }; }; then
14158   ac_cv_header_mmap_anon=yes
14159 else
14160   echo "$as_me: failed program was:" >&5
14161 sed 's/^/| /' conftest.$ac_ext >&5
14162
14163         ac_cv_header_mmap_anon=no
14164 fi
14165
14166 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14167   ac_ext=c
14168 ac_cpp='$CPP $CPPFLAGS'
14169 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14170 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14171 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14172
14173
14174 fi
14175 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
14176 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
14177 if test "$ac_cv_header_mmap_anon" = yes; then
14178
14179 cat >>confdefs.h <<\_ACEOF
14180 #define HAVE_MMAP_ANONYMOUS 1
14181 _ACEOF
14182
14183 fi
14184
14185 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
14186 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
14187 if test "${ac_cv_header_stat_broken+set}" = set; then
14188   echo $ECHO_N "(cached) $ECHO_C" >&6
14189 else
14190   cat >conftest.$ac_ext <<_ACEOF
14191 /* confdefs.h.  */
14192 _ACEOF
14193 cat confdefs.h >>conftest.$ac_ext
14194 cat >>conftest.$ac_ext <<_ACEOF
14195 /* end confdefs.h.  */
14196 #include <sys/types.h>
14197 #include <sys/stat.h>
14198
14199 #if defined S_ISBLK && defined S_IFDIR
14200 # if S_ISBLK (S_IFDIR)
14201 You lose.
14202 # endif
14203 #endif
14204
14205 #if defined S_ISBLK && defined S_IFCHR
14206 # if S_ISBLK (S_IFCHR)
14207 You lose.
14208 # endif
14209 #endif
14210
14211 #if defined S_ISLNK && defined S_IFREG
14212 # if S_ISLNK (S_IFREG)
14213 You lose.
14214 # endif
14215 #endif
14216
14217 #if defined S_ISSOCK && defined S_IFREG
14218 # if S_ISSOCK (S_IFREG)
14219 You lose.
14220 # endif
14221 #endif
14222
14223 _ACEOF
14224 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14225   $EGREP "You lose" >/dev/null 2>&1; then
14226   ac_cv_header_stat_broken=yes
14227 else
14228   ac_cv_header_stat_broken=no
14229 fi
14230 rm -f conftest*
14231
14232 fi
14233 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
14234 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
14235 if test $ac_cv_header_stat_broken = yes; then
14236
14237 cat >>confdefs.h <<\_ACEOF
14238 #define STAT_MACROS_BROKEN 1
14239 _ACEOF
14240
14241 fi
14242
14243 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
14244 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
14245 if test "${ac_cv_header_stdc+set}" = set; then
14246   echo $ECHO_N "(cached) $ECHO_C" >&6
14247 else
14248   cat >conftest.$ac_ext <<_ACEOF
14249 /* confdefs.h.  */
14250 _ACEOF
14251 cat confdefs.h >>conftest.$ac_ext
14252 cat >>conftest.$ac_ext <<_ACEOF
14253 /* end confdefs.h.  */
14254 #include <stdlib.h>
14255 #include <stdarg.h>
14256 #include <string.h>
14257 #include <float.h>
14258
14259 int
14260 main ()
14261 {
14262
14263   ;
14264   return 0;
14265 }
14266 _ACEOF
14267 rm -f conftest.$ac_objext
14268 if { (ac_try="$ac_compile"
14269 case "(($ac_try" in
14270   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14271   *) ac_try_echo=$ac_try;;
14272 esac
14273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14274   (eval "$ac_compile") 2>conftest.er1
14275   ac_status=$?
14276   grep -v '^ *+' conftest.er1 >conftest.err
14277   rm -f conftest.er1
14278   cat conftest.err >&5
14279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14280   (exit $ac_status); } &&
14281          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14282   { (case "(($ac_try" in
14283   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14284   *) ac_try_echo=$ac_try;;
14285 esac
14286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14287   (eval "$ac_try") 2>&5
14288   ac_status=$?
14289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14290   (exit $ac_status); }; } &&
14291          { ac_try='test -s conftest.$ac_objext'
14292   { (case "(($ac_try" in
14293   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14294   *) ac_try_echo=$ac_try;;
14295 esac
14296 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14297   (eval "$ac_try") 2>&5
14298   ac_status=$?
14299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14300   (exit $ac_status); }; }; then
14301   ac_cv_header_stdc=yes
14302 else
14303   echo "$as_me: failed program was:" >&5
14304 sed 's/^/| /' conftest.$ac_ext >&5
14305
14306         ac_cv_header_stdc=no
14307 fi
14308
14309 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14310
14311 if test $ac_cv_header_stdc = yes; then
14312   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
14313   cat >conftest.$ac_ext <<_ACEOF
14314 /* confdefs.h.  */
14315 _ACEOF
14316 cat confdefs.h >>conftest.$ac_ext
14317 cat >>conftest.$ac_ext <<_ACEOF
14318 /* end confdefs.h.  */
14319 #include <string.h>
14320
14321 _ACEOF
14322 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14323   $EGREP "memchr" >/dev/null 2>&1; then
14324   :
14325 else
14326   ac_cv_header_stdc=no
14327 fi
14328 rm -f conftest*
14329
14330 fi
14331
14332 if test $ac_cv_header_stdc = yes; then
14333   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
14334   cat >conftest.$ac_ext <<_ACEOF
14335 /* confdefs.h.  */
14336 _ACEOF
14337 cat confdefs.h >>conftest.$ac_ext
14338 cat >>conftest.$ac_ext <<_ACEOF
14339 /* end confdefs.h.  */
14340 #include <stdlib.h>
14341
14342 _ACEOF
14343 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14344   $EGREP "free" >/dev/null 2>&1; then
14345   :
14346 else
14347   ac_cv_header_stdc=no
14348 fi
14349 rm -f conftest*
14350
14351 fi
14352
14353 if test $ac_cv_header_stdc = yes; then
14354   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
14355   if test "$cross_compiling" = yes; then
14356   :
14357 else
14358   cat >conftest.$ac_ext <<_ACEOF
14359 /* confdefs.h.  */
14360 _ACEOF
14361 cat confdefs.h >>conftest.$ac_ext
14362 cat >>conftest.$ac_ext <<_ACEOF
14363 /* end confdefs.h.  */
14364 #include <ctype.h>
14365 #include <stdlib.h>
14366 #if ((' ' & 0x0FF) == 0x020)
14367 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
14368 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
14369 #else
14370 # define ISLOWER(c) \
14371                    (('a' <= (c) && (c) <= 'i') \
14372                      || ('j' <= (c) && (c) <= 'r') \
14373                      || ('s' <= (c) && (c) <= 'z'))
14374 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
14375 #endif
14376
14377 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
14378 int
14379 main ()
14380 {
14381   int i;
14382   for (i = 0; i < 256; i++)
14383     if (XOR (islower (i), ISLOWER (i))
14384         || toupper (i) != TOUPPER (i))
14385       return 2;
14386   return 0;
14387 }
14388 _ACEOF
14389 rm -f conftest$ac_exeext
14390 if { (ac_try="$ac_link"
14391 case "(($ac_try" in
14392   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14393   *) ac_try_echo=$ac_try;;
14394 esac
14395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14396   (eval "$ac_link") 2>&5
14397   ac_status=$?
14398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14399   (exit $ac_status); } && { ac_try='./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   :
14410 else
14411   echo "$as_me: program exited with status $ac_status" >&5
14412 echo "$as_me: failed program was:" >&5
14413 sed 's/^/| /' conftest.$ac_ext >&5
14414
14415 ( exit $ac_status )
14416 ac_cv_header_stdc=no
14417 fi
14418 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14419 fi
14420
14421
14422 fi
14423 fi
14424 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
14425 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
14426 if test $ac_cv_header_stdc = yes; then
14427
14428 cat >>confdefs.h <<\_ACEOF
14429 #define STDC_HEADERS 1
14430 _ACEOF
14431
14432 fi
14433
14434 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
14435 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
14436 if test "${ac_cv_header_sys_wait_h+set}" = set; then
14437   echo $ECHO_N "(cached) $ECHO_C" >&6
14438 else
14439   cat >conftest.$ac_ext <<_ACEOF
14440 /* confdefs.h.  */
14441 _ACEOF
14442 cat confdefs.h >>conftest.$ac_ext
14443 cat >>conftest.$ac_ext <<_ACEOF
14444 /* end confdefs.h.  */
14445 #include <sys/types.h>
14446 #include <sys/wait.h>
14447 #ifndef WEXITSTATUS
14448 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
14449 #endif
14450 #ifndef WIFEXITED
14451 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
14452 #endif
14453
14454 int
14455 main ()
14456 {
14457   int s;
14458   wait (&s);
14459   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
14460   ;
14461   return 0;
14462 }
14463 _ACEOF
14464 rm -f conftest.$ac_objext
14465 if { (ac_try="$ac_compile"
14466 case "(($ac_try" in
14467   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14468   *) ac_try_echo=$ac_try;;
14469 esac
14470 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14471   (eval "$ac_compile") 2>conftest.er1
14472   ac_status=$?
14473   grep -v '^ *+' conftest.er1 >conftest.err
14474   rm -f conftest.er1
14475   cat conftest.err >&5
14476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14477   (exit $ac_status); } &&
14478          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14479   { (case "(($ac_try" in
14480   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14481   *) ac_try_echo=$ac_try;;
14482 esac
14483 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14484   (eval "$ac_try") 2>&5
14485   ac_status=$?
14486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14487   (exit $ac_status); }; } &&
14488          { ac_try='test -s conftest.$ac_objext'
14489   { (case "(($ac_try" in
14490   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14491   *) ac_try_echo=$ac_try;;
14492 esac
14493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14494   (eval "$ac_try") 2>&5
14495   ac_status=$?
14496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14497   (exit $ac_status); }; }; then
14498   ac_cv_header_sys_wait_h=yes
14499 else
14500   echo "$as_me: failed program was:" >&5
14501 sed 's/^/| /' conftest.$ac_ext >&5
14502
14503         ac_cv_header_sys_wait_h=no
14504 fi
14505
14506 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14507 fi
14508 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
14509 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
14510 if test $ac_cv_header_sys_wait_h = yes; then
14511
14512 cat >>confdefs.h <<\_ACEOF
14513 #define HAVE_SYS_WAIT_H 1
14514 _ACEOF
14515
14516 fi
14517
14518 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
14519 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
14520 if test "${ac_cv_header_time+set}" = set; then
14521   echo $ECHO_N "(cached) $ECHO_C" >&6
14522 else
14523   cat >conftest.$ac_ext <<_ACEOF
14524 /* confdefs.h.  */
14525 _ACEOF
14526 cat confdefs.h >>conftest.$ac_ext
14527 cat >>conftest.$ac_ext <<_ACEOF
14528 /* end confdefs.h.  */
14529 #include <sys/types.h>
14530 #include <sys/time.h>
14531 #include <time.h>
14532
14533 int
14534 main ()
14535 {
14536 if ((struct tm *) 0)
14537 return 0;
14538   ;
14539   return 0;
14540 }
14541 _ACEOF
14542 rm -f conftest.$ac_objext
14543 if { (ac_try="$ac_compile"
14544 case "(($ac_try" in
14545   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14546   *) ac_try_echo=$ac_try;;
14547 esac
14548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14549   (eval "$ac_compile") 2>conftest.er1
14550   ac_status=$?
14551   grep -v '^ *+' conftest.er1 >conftest.err
14552   rm -f conftest.er1
14553   cat conftest.err >&5
14554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14555   (exit $ac_status); } &&
14556          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14557   { (case "(($ac_try" in
14558   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14559   *) ac_try_echo=$ac_try;;
14560 esac
14561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14562   (eval "$ac_try") 2>&5
14563   ac_status=$?
14564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14565   (exit $ac_status); }; } &&
14566          { ac_try='test -s conftest.$ac_objext'
14567   { (case "(($ac_try" in
14568   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14569   *) ac_try_echo=$ac_try;;
14570 esac
14571 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14572   (eval "$ac_try") 2>&5
14573   ac_status=$?
14574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14575   (exit $ac_status); }; }; then
14576   ac_cv_header_time=yes
14577 else
14578   echo "$as_me: failed program was:" >&5
14579 sed 's/^/| /' conftest.$ac_ext >&5
14580
14581         ac_cv_header_time=no
14582 fi
14583
14584 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14585 fi
14586 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
14587 echo "${ECHO_T}$ac_cv_header_time" >&6; }
14588 if test $ac_cv_header_time = yes; then
14589
14590 cat >>confdefs.h <<\_ACEOF
14591 #define TIME_WITH_SYS_TIME 1
14592 _ACEOF
14593
14594 fi
14595
14596
14597
14598
14599
14600
14601
14602
14603 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
14604 do
14605 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14606 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14607   { echo "$as_me:$LINENO: checking for $ac_header" >&5
14608 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14609 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14610   echo $ECHO_N "(cached) $ECHO_C" >&6
14611 fi
14612 ac_res=`eval echo '${'$as_ac_Header'}'`
14613                { echo "$as_me:$LINENO: result: $ac_res" >&5
14614 echo "${ECHO_T}$ac_res" >&6; }
14615 else
14616   # Is the header compilable?
14617 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14618 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14619 cat >conftest.$ac_ext <<_ACEOF
14620 /* confdefs.h.  */
14621 _ACEOF
14622 cat confdefs.h >>conftest.$ac_ext
14623 cat >>conftest.$ac_ext <<_ACEOF
14624 /* end confdefs.h.  */
14625 $ac_includes_default
14626 #include <$ac_header>
14627 _ACEOF
14628 rm -f conftest.$ac_objext
14629 if { (ac_try="$ac_compile"
14630 case "(($ac_try" in
14631   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14632   *) ac_try_echo=$ac_try;;
14633 esac
14634 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14635   (eval "$ac_compile") 2>conftest.er1
14636   ac_status=$?
14637   grep -v '^ *+' conftest.er1 >conftest.err
14638   rm -f conftest.er1
14639   cat conftest.err >&5
14640   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14641   (exit $ac_status); } &&
14642          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14643   { (case "(($ac_try" in
14644   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14645   *) ac_try_echo=$ac_try;;
14646 esac
14647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14648   (eval "$ac_try") 2>&5
14649   ac_status=$?
14650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14651   (exit $ac_status); }; } &&
14652          { ac_try='test -s conftest.$ac_objext'
14653   { (case "(($ac_try" in
14654   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14655   *) ac_try_echo=$ac_try;;
14656 esac
14657 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14658   (eval "$ac_try") 2>&5
14659   ac_status=$?
14660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14661   (exit $ac_status); }; }; then
14662   ac_header_compiler=yes
14663 else
14664   echo "$as_me: failed program was:" >&5
14665 sed 's/^/| /' conftest.$ac_ext >&5
14666
14667         ac_header_compiler=no
14668 fi
14669
14670 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14671 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14672 echo "${ECHO_T}$ac_header_compiler" >&6; }
14673
14674 # Is the header present?
14675 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14676 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14677 cat >conftest.$ac_ext <<_ACEOF
14678 /* confdefs.h.  */
14679 _ACEOF
14680 cat confdefs.h >>conftest.$ac_ext
14681 cat >>conftest.$ac_ext <<_ACEOF
14682 /* end confdefs.h.  */
14683 #include <$ac_header>
14684 _ACEOF
14685 if { (ac_try="$ac_cpp conftest.$ac_ext"
14686 case "(($ac_try" in
14687   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14688   *) ac_try_echo=$ac_try;;
14689 esac
14690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14691   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14692   ac_status=$?
14693   grep -v '^ *+' conftest.er1 >conftest.err
14694   rm -f conftest.er1
14695   cat conftest.err >&5
14696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14697   (exit $ac_status); } >/dev/null; then
14698   if test -s conftest.err; then
14699     ac_cpp_err=$ac_c_preproc_warn_flag
14700     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14701   else
14702     ac_cpp_err=
14703   fi
14704 else
14705   ac_cpp_err=yes
14706 fi
14707 if test -z "$ac_cpp_err"; then
14708   ac_header_preproc=yes
14709 else
14710   echo "$as_me: failed program was:" >&5
14711 sed 's/^/| /' conftest.$ac_ext >&5
14712
14713   ac_header_preproc=no
14714 fi
14715
14716 rm -f conftest.err conftest.$ac_ext
14717 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14718 echo "${ECHO_T}$ac_header_preproc" >&6; }
14719
14720 # So?  What about this header?
14721 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14722   yes:no: )
14723     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14724 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14725     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14726 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14727     ac_header_preproc=yes
14728     ;;
14729   no:yes:* )
14730     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14731 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14732     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14733 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14734     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14735 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14736     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14737 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14738     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14739 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14740     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14741 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14742     ( cat <<\_ASBOX
14743 ## ----------------------------------- ##
14744 ## Report this to llvmbugs@cs.uiuc.edu ##
14745 ## ----------------------------------- ##
14746 _ASBOX
14747      ) | sed "s/^/$as_me: WARNING:     /" >&2
14748     ;;
14749 esac
14750 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14751 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14752 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14753   echo $ECHO_N "(cached) $ECHO_C" >&6
14754 else
14755   eval "$as_ac_Header=\$ac_header_preproc"
14756 fi
14757 ac_res=`eval echo '${'$as_ac_Header'}'`
14758                { echo "$as_me:$LINENO: result: $ac_res" >&5
14759 echo "${ECHO_T}$ac_res" >&6; }
14760
14761 fi
14762 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14763   cat >>confdefs.h <<_ACEOF
14764 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14765 _ACEOF
14766
14767 fi
14768
14769 done
14770
14771
14772
14773
14774
14775
14776
14777 for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
14778 do
14779 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14780 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14781   { echo "$as_me:$LINENO: checking for $ac_header" >&5
14782 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14783 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14784   echo $ECHO_N "(cached) $ECHO_C" >&6
14785 fi
14786 ac_res=`eval echo '${'$as_ac_Header'}'`
14787                { echo "$as_me:$LINENO: result: $ac_res" >&5
14788 echo "${ECHO_T}$ac_res" >&6; }
14789 else
14790   # Is the header compilable?
14791 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14792 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14793 cat >conftest.$ac_ext <<_ACEOF
14794 /* confdefs.h.  */
14795 _ACEOF
14796 cat confdefs.h >>conftest.$ac_ext
14797 cat >>conftest.$ac_ext <<_ACEOF
14798 /* end confdefs.h.  */
14799 $ac_includes_default
14800 #include <$ac_header>
14801 _ACEOF
14802 rm -f conftest.$ac_objext
14803 if { (ac_try="$ac_compile"
14804 case "(($ac_try" in
14805   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14806   *) ac_try_echo=$ac_try;;
14807 esac
14808 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14809   (eval "$ac_compile") 2>conftest.er1
14810   ac_status=$?
14811   grep -v '^ *+' conftest.er1 >conftest.err
14812   rm -f conftest.er1
14813   cat conftest.err >&5
14814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14815   (exit $ac_status); } &&
14816          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14817   { (case "(($ac_try" in
14818   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14819   *) ac_try_echo=$ac_try;;
14820 esac
14821 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14822   (eval "$ac_try") 2>&5
14823   ac_status=$?
14824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14825   (exit $ac_status); }; } &&
14826          { ac_try='test -s conftest.$ac_objext'
14827   { (case "(($ac_try" in
14828   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14829   *) ac_try_echo=$ac_try;;
14830 esac
14831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14832   (eval "$ac_try") 2>&5
14833   ac_status=$?
14834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14835   (exit $ac_status); }; }; then
14836   ac_header_compiler=yes
14837 else
14838   echo "$as_me: failed program was:" >&5
14839 sed 's/^/| /' conftest.$ac_ext >&5
14840
14841         ac_header_compiler=no
14842 fi
14843
14844 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14845 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14846 echo "${ECHO_T}$ac_header_compiler" >&6; }
14847
14848 # Is the header present?
14849 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14850 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14851 cat >conftest.$ac_ext <<_ACEOF
14852 /* confdefs.h.  */
14853 _ACEOF
14854 cat confdefs.h >>conftest.$ac_ext
14855 cat >>conftest.$ac_ext <<_ACEOF
14856 /* end confdefs.h.  */
14857 #include <$ac_header>
14858 _ACEOF
14859 if { (ac_try="$ac_cpp conftest.$ac_ext"
14860 case "(($ac_try" in
14861   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14862   *) ac_try_echo=$ac_try;;
14863 esac
14864 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14865   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14866   ac_status=$?
14867   grep -v '^ *+' conftest.er1 >conftest.err
14868   rm -f conftest.er1
14869   cat conftest.err >&5
14870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14871   (exit $ac_status); } >/dev/null; then
14872   if test -s conftest.err; then
14873     ac_cpp_err=$ac_c_preproc_warn_flag
14874     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14875   else
14876     ac_cpp_err=
14877   fi
14878 else
14879   ac_cpp_err=yes
14880 fi
14881 if test -z "$ac_cpp_err"; then
14882   ac_header_preproc=yes
14883 else
14884   echo "$as_me: failed program was:" >&5
14885 sed 's/^/| /' conftest.$ac_ext >&5
14886
14887   ac_header_preproc=no
14888 fi
14889
14890 rm -f conftest.err conftest.$ac_ext
14891 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14892 echo "${ECHO_T}$ac_header_preproc" >&6; }
14893
14894 # So?  What about this header?
14895 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14896   yes:no: )
14897     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14898 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14899     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14900 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14901     ac_header_preproc=yes
14902     ;;
14903   no:yes:* )
14904     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14905 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14906     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14907 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14908     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14909 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14910     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14911 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14912     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14913 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14914     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14915 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14916     ( cat <<\_ASBOX
14917 ## ----------------------------------- ##
14918 ## Report this to llvmbugs@cs.uiuc.edu ##
14919 ## ----------------------------------- ##
14920 _ASBOX
14921      ) | sed "s/^/$as_me: WARNING:     /" >&2
14922     ;;
14923 esac
14924 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14925 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14926 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14927   echo $ECHO_N "(cached) $ECHO_C" >&6
14928 else
14929   eval "$as_ac_Header=\$ac_header_preproc"
14930 fi
14931 ac_res=`eval echo '${'$as_ac_Header'}'`
14932                { echo "$as_me:$LINENO: result: $ac_res" >&5
14933 echo "${ECHO_T}$ac_res" >&6; }
14934
14935 fi
14936 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14937   cat >>confdefs.h <<_ACEOF
14938 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14939 _ACEOF
14940
14941 fi
14942
14943 done
14944
14945
14946
14947 for ac_header in utime.h windows.h
14948 do
14949 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14950 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14951   { echo "$as_me:$LINENO: checking for $ac_header" >&5
14952 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14953 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14954   echo $ECHO_N "(cached) $ECHO_C" >&6
14955 fi
14956 ac_res=`eval echo '${'$as_ac_Header'}'`
14957                { echo "$as_me:$LINENO: result: $ac_res" >&5
14958 echo "${ECHO_T}$ac_res" >&6; }
14959 else
14960   # Is the header compilable?
14961 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14962 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14963 cat >conftest.$ac_ext <<_ACEOF
14964 /* confdefs.h.  */
14965 _ACEOF
14966 cat confdefs.h >>conftest.$ac_ext
14967 cat >>conftest.$ac_ext <<_ACEOF
14968 /* end confdefs.h.  */
14969 $ac_includes_default
14970 #include <$ac_header>
14971 _ACEOF
14972 rm -f conftest.$ac_objext
14973 if { (ac_try="$ac_compile"
14974 case "(($ac_try" in
14975   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14976   *) ac_try_echo=$ac_try;;
14977 esac
14978 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14979   (eval "$ac_compile") 2>conftest.er1
14980   ac_status=$?
14981   grep -v '^ *+' conftest.er1 >conftest.err
14982   rm -f conftest.er1
14983   cat conftest.err >&5
14984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14985   (exit $ac_status); } &&
14986          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14987   { (case "(($ac_try" in
14988   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14989   *) ac_try_echo=$ac_try;;
14990 esac
14991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14992   (eval "$ac_try") 2>&5
14993   ac_status=$?
14994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14995   (exit $ac_status); }; } &&
14996          { ac_try='test -s conftest.$ac_objext'
14997   { (case "(($ac_try" in
14998   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14999   *) ac_try_echo=$ac_try;;
15000 esac
15001 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15002   (eval "$ac_try") 2>&5
15003   ac_status=$?
15004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15005   (exit $ac_status); }; }; then
15006   ac_header_compiler=yes
15007 else
15008   echo "$as_me: failed program was:" >&5
15009 sed 's/^/| /' conftest.$ac_ext >&5
15010
15011         ac_header_compiler=no
15012 fi
15013
15014 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15015 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15016 echo "${ECHO_T}$ac_header_compiler" >&6; }
15017
15018 # Is the header present?
15019 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15020 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15021 cat >conftest.$ac_ext <<_ACEOF
15022 /* confdefs.h.  */
15023 _ACEOF
15024 cat confdefs.h >>conftest.$ac_ext
15025 cat >>conftest.$ac_ext <<_ACEOF
15026 /* end confdefs.h.  */
15027 #include <$ac_header>
15028 _ACEOF
15029 if { (ac_try="$ac_cpp conftest.$ac_ext"
15030 case "(($ac_try" in
15031   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15032   *) ac_try_echo=$ac_try;;
15033 esac
15034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15035   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15036   ac_status=$?
15037   grep -v '^ *+' conftest.er1 >conftest.err
15038   rm -f conftest.er1
15039   cat conftest.err >&5
15040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15041   (exit $ac_status); } >/dev/null; then
15042   if test -s conftest.err; then
15043     ac_cpp_err=$ac_c_preproc_warn_flag
15044     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15045   else
15046     ac_cpp_err=
15047   fi
15048 else
15049   ac_cpp_err=yes
15050 fi
15051 if test -z "$ac_cpp_err"; then
15052   ac_header_preproc=yes
15053 else
15054   echo "$as_me: failed program was:" >&5
15055 sed 's/^/| /' conftest.$ac_ext >&5
15056
15057   ac_header_preproc=no
15058 fi
15059
15060 rm -f conftest.err conftest.$ac_ext
15061 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15062 echo "${ECHO_T}$ac_header_preproc" >&6; }
15063
15064 # So?  What about this header?
15065 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15066   yes:no: )
15067     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15068 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15069     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15070 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15071     ac_header_preproc=yes
15072     ;;
15073   no:yes:* )
15074     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15075 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15076     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15077 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15078     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15079 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15080     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15081 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15082     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15083 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15084     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15085 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15086     ( cat <<\_ASBOX
15087 ## ----------------------------------- ##
15088 ## Report this to llvmbugs@cs.uiuc.edu ##
15089 ## ----------------------------------- ##
15090 _ASBOX
15091      ) | sed "s/^/$as_me: WARNING:     /" >&2
15092     ;;
15093 esac
15094 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15095 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15096 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15097   echo $ECHO_N "(cached) $ECHO_C" >&6
15098 else
15099   eval "$as_ac_Header=\$ac_header_preproc"
15100 fi
15101 ac_res=`eval echo '${'$as_ac_Header'}'`
15102                { echo "$as_me:$LINENO: result: $ac_res" >&5
15103 echo "${ECHO_T}$ac_res" >&6; }
15104
15105 fi
15106 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15107   cat >>confdefs.h <<_ACEOF
15108 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15109 _ACEOF
15110
15111 fi
15112
15113 done
15114
15115
15116
15117
15118
15119
15120 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h sys/uio.h
15121 do
15122 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15123 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15124   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15125 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15126 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15127   echo $ECHO_N "(cached) $ECHO_C" >&6
15128 fi
15129 ac_res=`eval echo '${'$as_ac_Header'}'`
15130                { echo "$as_me:$LINENO: result: $ac_res" >&5
15131 echo "${ECHO_T}$ac_res" >&6; }
15132 else
15133   # Is the header compilable?
15134 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15135 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15136 cat >conftest.$ac_ext <<_ACEOF
15137 /* confdefs.h.  */
15138 _ACEOF
15139 cat confdefs.h >>conftest.$ac_ext
15140 cat >>conftest.$ac_ext <<_ACEOF
15141 /* end confdefs.h.  */
15142 $ac_includes_default
15143 #include <$ac_header>
15144 _ACEOF
15145 rm -f conftest.$ac_objext
15146 if { (ac_try="$ac_compile"
15147 case "(($ac_try" in
15148   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15149   *) ac_try_echo=$ac_try;;
15150 esac
15151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15152   (eval "$ac_compile") 2>conftest.er1
15153   ac_status=$?
15154   grep -v '^ *+' conftest.er1 >conftest.err
15155   rm -f conftest.er1
15156   cat conftest.err >&5
15157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15158   (exit $ac_status); } &&
15159          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15160   { (case "(($ac_try" in
15161   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15162   *) ac_try_echo=$ac_try;;
15163 esac
15164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15165   (eval "$ac_try") 2>&5
15166   ac_status=$?
15167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15168   (exit $ac_status); }; } &&
15169          { ac_try='test -s conftest.$ac_objext'
15170   { (case "(($ac_try" in
15171   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15172   *) ac_try_echo=$ac_try;;
15173 esac
15174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15175   (eval "$ac_try") 2>&5
15176   ac_status=$?
15177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15178   (exit $ac_status); }; }; then
15179   ac_header_compiler=yes
15180 else
15181   echo "$as_me: failed program was:" >&5
15182 sed 's/^/| /' conftest.$ac_ext >&5
15183
15184         ac_header_compiler=no
15185 fi
15186
15187 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15188 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15189 echo "${ECHO_T}$ac_header_compiler" >&6; }
15190
15191 # Is the header present?
15192 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15193 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15194 cat >conftest.$ac_ext <<_ACEOF
15195 /* confdefs.h.  */
15196 _ACEOF
15197 cat confdefs.h >>conftest.$ac_ext
15198 cat >>conftest.$ac_ext <<_ACEOF
15199 /* end confdefs.h.  */
15200 #include <$ac_header>
15201 _ACEOF
15202 if { (ac_try="$ac_cpp conftest.$ac_ext"
15203 case "(($ac_try" in
15204   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15205   *) ac_try_echo=$ac_try;;
15206 esac
15207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15208   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15209   ac_status=$?
15210   grep -v '^ *+' conftest.er1 >conftest.err
15211   rm -f conftest.er1
15212   cat conftest.err >&5
15213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15214   (exit $ac_status); } >/dev/null; then
15215   if test -s conftest.err; then
15216     ac_cpp_err=$ac_c_preproc_warn_flag
15217     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15218   else
15219     ac_cpp_err=
15220   fi
15221 else
15222   ac_cpp_err=yes
15223 fi
15224 if test -z "$ac_cpp_err"; then
15225   ac_header_preproc=yes
15226 else
15227   echo "$as_me: failed program was:" >&5
15228 sed 's/^/| /' conftest.$ac_ext >&5
15229
15230   ac_header_preproc=no
15231 fi
15232
15233 rm -f conftest.err conftest.$ac_ext
15234 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15235 echo "${ECHO_T}$ac_header_preproc" >&6; }
15236
15237 # So?  What about this header?
15238 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15239   yes:no: )
15240     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15241 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15242     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15243 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15244     ac_header_preproc=yes
15245     ;;
15246   no:yes:* )
15247     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15248 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15249     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15250 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15251     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15252 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15253     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15254 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15255     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15256 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15257     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15258 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15259     ( cat <<\_ASBOX
15260 ## ----------------------------------- ##
15261 ## Report this to llvmbugs@cs.uiuc.edu ##
15262 ## ----------------------------------- ##
15263 _ASBOX
15264      ) | sed "s/^/$as_me: WARNING:     /" >&2
15265     ;;
15266 esac
15267 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15268 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15269 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15270   echo $ECHO_N "(cached) $ECHO_C" >&6
15271 else
15272   eval "$as_ac_Header=\$ac_header_preproc"
15273 fi
15274 ac_res=`eval echo '${'$as_ac_Header'}'`
15275                { echo "$as_me:$LINENO: result: $ac_res" >&5
15276 echo "${ECHO_T}$ac_res" >&6; }
15277
15278 fi
15279 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15280   cat >>confdefs.h <<_ACEOF
15281 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15282 _ACEOF
15283
15284 fi
15285
15286 done
15287
15288
15289
15290
15291
15292 for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h
15293 do
15294 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15295 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15296   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15297 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15298 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15299   echo $ECHO_N "(cached) $ECHO_C" >&6
15300 fi
15301 ac_res=`eval echo '${'$as_ac_Header'}'`
15302                { echo "$as_me:$LINENO: result: $ac_res" >&5
15303 echo "${ECHO_T}$ac_res" >&6; }
15304 else
15305   # Is the header compilable?
15306 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15307 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15308 cat >conftest.$ac_ext <<_ACEOF
15309 /* confdefs.h.  */
15310 _ACEOF
15311 cat confdefs.h >>conftest.$ac_ext
15312 cat >>conftest.$ac_ext <<_ACEOF
15313 /* end confdefs.h.  */
15314 $ac_includes_default
15315 #include <$ac_header>
15316 _ACEOF
15317 rm -f conftest.$ac_objext
15318 if { (ac_try="$ac_compile"
15319 case "(($ac_try" in
15320   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15321   *) ac_try_echo=$ac_try;;
15322 esac
15323 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15324   (eval "$ac_compile") 2>conftest.er1
15325   ac_status=$?
15326   grep -v '^ *+' conftest.er1 >conftest.err
15327   rm -f conftest.er1
15328   cat conftest.err >&5
15329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15330   (exit $ac_status); } &&
15331          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15332   { (case "(($ac_try" in
15333   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15334   *) ac_try_echo=$ac_try;;
15335 esac
15336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15337   (eval "$ac_try") 2>&5
15338   ac_status=$?
15339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15340   (exit $ac_status); }; } &&
15341          { ac_try='test -s conftest.$ac_objext'
15342   { (case "(($ac_try" in
15343   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15344   *) ac_try_echo=$ac_try;;
15345 esac
15346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15347   (eval "$ac_try") 2>&5
15348   ac_status=$?
15349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15350   (exit $ac_status); }; }; then
15351   ac_header_compiler=yes
15352 else
15353   echo "$as_me: failed program was:" >&5
15354 sed 's/^/| /' conftest.$ac_ext >&5
15355
15356         ac_header_compiler=no
15357 fi
15358
15359 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15360 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15361 echo "${ECHO_T}$ac_header_compiler" >&6; }
15362
15363 # Is the header present?
15364 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15365 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15366 cat >conftest.$ac_ext <<_ACEOF
15367 /* confdefs.h.  */
15368 _ACEOF
15369 cat confdefs.h >>conftest.$ac_ext
15370 cat >>conftest.$ac_ext <<_ACEOF
15371 /* end confdefs.h.  */
15372 #include <$ac_header>
15373 _ACEOF
15374 if { (ac_try="$ac_cpp conftest.$ac_ext"
15375 case "(($ac_try" in
15376   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15377   *) ac_try_echo=$ac_try;;
15378 esac
15379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15380   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15381   ac_status=$?
15382   grep -v '^ *+' conftest.er1 >conftest.err
15383   rm -f conftest.er1
15384   cat conftest.err >&5
15385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15386   (exit $ac_status); } >/dev/null; then
15387   if test -s conftest.err; then
15388     ac_cpp_err=$ac_c_preproc_warn_flag
15389     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15390   else
15391     ac_cpp_err=
15392   fi
15393 else
15394   ac_cpp_err=yes
15395 fi
15396 if test -z "$ac_cpp_err"; then
15397   ac_header_preproc=yes
15398 else
15399   echo "$as_me: failed program was:" >&5
15400 sed 's/^/| /' conftest.$ac_ext >&5
15401
15402   ac_header_preproc=no
15403 fi
15404
15405 rm -f conftest.err conftest.$ac_ext
15406 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15407 echo "${ECHO_T}$ac_header_preproc" >&6; }
15408
15409 # So?  What about this header?
15410 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15411   yes:no: )
15412     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15413 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15414     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15415 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15416     ac_header_preproc=yes
15417     ;;
15418   no:yes:* )
15419     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15420 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15421     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15422 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15423     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15424 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15425     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15426 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15427     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15428 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15429     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15430 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15431     ( cat <<\_ASBOX
15432 ## ----------------------------------- ##
15433 ## Report this to llvmbugs@cs.uiuc.edu ##
15434 ## ----------------------------------- ##
15435 _ASBOX
15436      ) | sed "s/^/$as_me: WARNING:     /" >&2
15437     ;;
15438 esac
15439 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15440 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15441 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15442   echo $ECHO_N "(cached) $ECHO_C" >&6
15443 else
15444   eval "$as_ac_Header=\$ac_header_preproc"
15445 fi
15446 ac_res=`eval echo '${'$as_ac_Header'}'`
15447                { echo "$as_me:$LINENO: result: $ac_res" >&5
15448 echo "${ECHO_T}$ac_res" >&6; }
15449
15450 fi
15451 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15452   cat >>confdefs.h <<_ACEOF
15453 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15454 _ACEOF
15455
15456 fi
15457
15458 done
15459
15460
15461 for ac_header in valgrind/valgrind.h
15462 do
15463 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15464 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15465   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15466 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15467 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15468   echo $ECHO_N "(cached) $ECHO_C" >&6
15469 fi
15470 ac_res=`eval echo '${'$as_ac_Header'}'`
15471                { echo "$as_me:$LINENO: result: $ac_res" >&5
15472 echo "${ECHO_T}$ac_res" >&6; }
15473 else
15474   # Is the header compilable?
15475 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15476 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15477 cat >conftest.$ac_ext <<_ACEOF
15478 /* confdefs.h.  */
15479 _ACEOF
15480 cat confdefs.h >>conftest.$ac_ext
15481 cat >>conftest.$ac_ext <<_ACEOF
15482 /* end confdefs.h.  */
15483 $ac_includes_default
15484 #include <$ac_header>
15485 _ACEOF
15486 rm -f conftest.$ac_objext
15487 if { (ac_try="$ac_compile"
15488 case "(($ac_try" in
15489   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15490   *) ac_try_echo=$ac_try;;
15491 esac
15492 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15493   (eval "$ac_compile") 2>conftest.er1
15494   ac_status=$?
15495   grep -v '^ *+' conftest.er1 >conftest.err
15496   rm -f conftest.er1
15497   cat conftest.err >&5
15498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15499   (exit $ac_status); } &&
15500          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15501   { (case "(($ac_try" in
15502   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15503   *) ac_try_echo=$ac_try;;
15504 esac
15505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15506   (eval "$ac_try") 2>&5
15507   ac_status=$?
15508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15509   (exit $ac_status); }; } &&
15510          { ac_try='test -s conftest.$ac_objext'
15511   { (case "(($ac_try" in
15512   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15513   *) ac_try_echo=$ac_try;;
15514 esac
15515 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15516   (eval "$ac_try") 2>&5
15517   ac_status=$?
15518   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15519   (exit $ac_status); }; }; then
15520   ac_header_compiler=yes
15521 else
15522   echo "$as_me: failed program was:" >&5
15523 sed 's/^/| /' conftest.$ac_ext >&5
15524
15525         ac_header_compiler=no
15526 fi
15527
15528 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15529 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15530 echo "${ECHO_T}$ac_header_compiler" >&6; }
15531
15532 # Is the header present?
15533 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15534 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15535 cat >conftest.$ac_ext <<_ACEOF
15536 /* confdefs.h.  */
15537 _ACEOF
15538 cat confdefs.h >>conftest.$ac_ext
15539 cat >>conftest.$ac_ext <<_ACEOF
15540 /* end confdefs.h.  */
15541 #include <$ac_header>
15542 _ACEOF
15543 if { (ac_try="$ac_cpp conftest.$ac_ext"
15544 case "(($ac_try" in
15545   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15546   *) ac_try_echo=$ac_try;;
15547 esac
15548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15549   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15550   ac_status=$?
15551   grep -v '^ *+' conftest.er1 >conftest.err
15552   rm -f conftest.er1
15553   cat conftest.err >&5
15554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15555   (exit $ac_status); } >/dev/null; then
15556   if test -s conftest.err; then
15557     ac_cpp_err=$ac_c_preproc_warn_flag
15558     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15559   else
15560     ac_cpp_err=
15561   fi
15562 else
15563   ac_cpp_err=yes
15564 fi
15565 if test -z "$ac_cpp_err"; then
15566   ac_header_preproc=yes
15567 else
15568   echo "$as_me: failed program was:" >&5
15569 sed 's/^/| /' conftest.$ac_ext >&5
15570
15571   ac_header_preproc=no
15572 fi
15573
15574 rm -f conftest.err conftest.$ac_ext
15575 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15576 echo "${ECHO_T}$ac_header_preproc" >&6; }
15577
15578 # So?  What about this header?
15579 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15580   yes:no: )
15581     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15582 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15583     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15584 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15585     ac_header_preproc=yes
15586     ;;
15587   no:yes:* )
15588     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15589 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15590     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15591 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15592     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15593 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15594     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15595 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15596     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15597 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15598     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15599 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15600     ( cat <<\_ASBOX
15601 ## ----------------------------------- ##
15602 ## Report this to llvmbugs@cs.uiuc.edu ##
15603 ## ----------------------------------- ##
15604 _ASBOX
15605      ) | sed "s/^/$as_me: WARNING:     /" >&2
15606     ;;
15607 esac
15608 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15609 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15610 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15611   echo $ECHO_N "(cached) $ECHO_C" >&6
15612 else
15613   eval "$as_ac_Header=\$ac_header_preproc"
15614 fi
15615 ac_res=`eval echo '${'$as_ac_Header'}'`
15616                { echo "$as_me:$LINENO: result: $ac_res" >&5
15617 echo "${ECHO_T}$ac_res" >&6; }
15618
15619 fi
15620 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15621   cat >>confdefs.h <<_ACEOF
15622 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15623 _ACEOF
15624
15625 fi
15626
15627 done
15628
15629
15630 for ac_header in fenv.h
15631 do
15632 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15633 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15634   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15635 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15636 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15637   echo $ECHO_N "(cached) $ECHO_C" >&6
15638 fi
15639 ac_res=`eval echo '${'$as_ac_Header'}'`
15640                { echo "$as_me:$LINENO: result: $ac_res" >&5
15641 echo "${ECHO_T}$ac_res" >&6; }
15642 else
15643   # Is the header compilable?
15644 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15645 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15646 cat >conftest.$ac_ext <<_ACEOF
15647 /* confdefs.h.  */
15648 _ACEOF
15649 cat confdefs.h >>conftest.$ac_ext
15650 cat >>conftest.$ac_ext <<_ACEOF
15651 /* end confdefs.h.  */
15652 $ac_includes_default
15653 #include <$ac_header>
15654 _ACEOF
15655 rm -f conftest.$ac_objext
15656 if { (ac_try="$ac_compile"
15657 case "(($ac_try" in
15658   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15659   *) ac_try_echo=$ac_try;;
15660 esac
15661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15662   (eval "$ac_compile") 2>conftest.er1
15663   ac_status=$?
15664   grep -v '^ *+' conftest.er1 >conftest.err
15665   rm -f conftest.er1
15666   cat conftest.err >&5
15667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15668   (exit $ac_status); } &&
15669          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15670   { (case "(($ac_try" in
15671   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15672   *) ac_try_echo=$ac_try;;
15673 esac
15674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15675   (eval "$ac_try") 2>&5
15676   ac_status=$?
15677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15678   (exit $ac_status); }; } &&
15679          { ac_try='test -s conftest.$ac_objext'
15680   { (case "(($ac_try" in
15681   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15682   *) ac_try_echo=$ac_try;;
15683 esac
15684 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15685   (eval "$ac_try") 2>&5
15686   ac_status=$?
15687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15688   (exit $ac_status); }; }; then
15689   ac_header_compiler=yes
15690 else
15691   echo "$as_me: failed program was:" >&5
15692 sed 's/^/| /' conftest.$ac_ext >&5
15693
15694         ac_header_compiler=no
15695 fi
15696
15697 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15698 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15699 echo "${ECHO_T}$ac_header_compiler" >&6; }
15700
15701 # Is the header present?
15702 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15703 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15704 cat >conftest.$ac_ext <<_ACEOF
15705 /* confdefs.h.  */
15706 _ACEOF
15707 cat confdefs.h >>conftest.$ac_ext
15708 cat >>conftest.$ac_ext <<_ACEOF
15709 /* end confdefs.h.  */
15710 #include <$ac_header>
15711 _ACEOF
15712 if { (ac_try="$ac_cpp conftest.$ac_ext"
15713 case "(($ac_try" in
15714   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15715   *) ac_try_echo=$ac_try;;
15716 esac
15717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15718   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15719   ac_status=$?
15720   grep -v '^ *+' conftest.er1 >conftest.err
15721   rm -f conftest.er1
15722   cat conftest.err >&5
15723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15724   (exit $ac_status); } >/dev/null; then
15725   if test -s conftest.err; then
15726     ac_cpp_err=$ac_c_preproc_warn_flag
15727     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15728   else
15729     ac_cpp_err=
15730   fi
15731 else
15732   ac_cpp_err=yes
15733 fi
15734 if test -z "$ac_cpp_err"; then
15735   ac_header_preproc=yes
15736 else
15737   echo "$as_me: failed program was:" >&5
15738 sed 's/^/| /' conftest.$ac_ext >&5
15739
15740   ac_header_preproc=no
15741 fi
15742
15743 rm -f conftest.err conftest.$ac_ext
15744 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15745 echo "${ECHO_T}$ac_header_preproc" >&6; }
15746
15747 # So?  What about this header?
15748 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15749   yes:no: )
15750     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15751 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15752     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15753 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15754     ac_header_preproc=yes
15755     ;;
15756   no:yes:* )
15757     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15758 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15759     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15760 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15761     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15762 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15763     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15764 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15765     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15766 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15767     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15768 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15769     ( cat <<\_ASBOX
15770 ## ----------------------------------- ##
15771 ## Report this to llvmbugs@cs.uiuc.edu ##
15772 ## ----------------------------------- ##
15773 _ASBOX
15774      ) | sed "s/^/$as_me: WARNING:     /" >&2
15775     ;;
15776 esac
15777 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15778 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15779 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15780   echo $ECHO_N "(cached) $ECHO_C" >&6
15781 else
15782   eval "$as_ac_Header=\$ac_header_preproc"
15783 fi
15784 ac_res=`eval echo '${'$as_ac_Header'}'`
15785                { echo "$as_me:$LINENO: result: $ac_res" >&5
15786 echo "${ECHO_T}$ac_res" >&6; }
15787
15788 fi
15789 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15790   cat >>confdefs.h <<_ACEOF
15791 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15792 _ACEOF
15793
15794 fi
15795
15796 done
15797
15798 if test "$ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
15799
15800 for ac_header in pthread.h
15801 do
15802 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15803 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15804   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15805 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15806 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15807   echo $ECHO_N "(cached) $ECHO_C" >&6
15808 fi
15809 ac_res=`eval echo '${'$as_ac_Header'}'`
15810                { echo "$as_me:$LINENO: result: $ac_res" >&5
15811 echo "${ECHO_T}$ac_res" >&6; }
15812 else
15813   # Is the header compilable?
15814 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15815 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15816 cat >conftest.$ac_ext <<_ACEOF
15817 /* confdefs.h.  */
15818 _ACEOF
15819 cat confdefs.h >>conftest.$ac_ext
15820 cat >>conftest.$ac_ext <<_ACEOF
15821 /* end confdefs.h.  */
15822 $ac_includes_default
15823 #include <$ac_header>
15824 _ACEOF
15825 rm -f conftest.$ac_objext
15826 if { (ac_try="$ac_compile"
15827 case "(($ac_try" in
15828   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15829   *) ac_try_echo=$ac_try;;
15830 esac
15831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15832   (eval "$ac_compile") 2>conftest.er1
15833   ac_status=$?
15834   grep -v '^ *+' conftest.er1 >conftest.err
15835   rm -f conftest.er1
15836   cat conftest.err >&5
15837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15838   (exit $ac_status); } &&
15839          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15840   { (case "(($ac_try" in
15841   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15842   *) ac_try_echo=$ac_try;;
15843 esac
15844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15845   (eval "$ac_try") 2>&5
15846   ac_status=$?
15847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15848   (exit $ac_status); }; } &&
15849          { ac_try='test -s conftest.$ac_objext'
15850   { (case "(($ac_try" in
15851   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15852   *) ac_try_echo=$ac_try;;
15853 esac
15854 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15855   (eval "$ac_try") 2>&5
15856   ac_status=$?
15857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15858   (exit $ac_status); }; }; then
15859   ac_header_compiler=yes
15860 else
15861   echo "$as_me: failed program was:" >&5
15862 sed 's/^/| /' conftest.$ac_ext >&5
15863
15864         ac_header_compiler=no
15865 fi
15866
15867 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15868 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15869 echo "${ECHO_T}$ac_header_compiler" >&6; }
15870
15871 # Is the header present?
15872 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15873 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15874 cat >conftest.$ac_ext <<_ACEOF
15875 /* confdefs.h.  */
15876 _ACEOF
15877 cat confdefs.h >>conftest.$ac_ext
15878 cat >>conftest.$ac_ext <<_ACEOF
15879 /* end confdefs.h.  */
15880 #include <$ac_header>
15881 _ACEOF
15882 if { (ac_try="$ac_cpp conftest.$ac_ext"
15883 case "(($ac_try" in
15884   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15885   *) ac_try_echo=$ac_try;;
15886 esac
15887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15888   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15889   ac_status=$?
15890   grep -v '^ *+' conftest.er1 >conftest.err
15891   rm -f conftest.er1
15892   cat conftest.err >&5
15893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15894   (exit $ac_status); } >/dev/null; then
15895   if test -s conftest.err; then
15896     ac_cpp_err=$ac_c_preproc_warn_flag
15897     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15898   else
15899     ac_cpp_err=
15900   fi
15901 else
15902   ac_cpp_err=yes
15903 fi
15904 if test -z "$ac_cpp_err"; then
15905   ac_header_preproc=yes
15906 else
15907   echo "$as_me: failed program was:" >&5
15908 sed 's/^/| /' conftest.$ac_ext >&5
15909
15910   ac_header_preproc=no
15911 fi
15912
15913 rm -f conftest.err conftest.$ac_ext
15914 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15915 echo "${ECHO_T}$ac_header_preproc" >&6; }
15916
15917 # So?  What about this header?
15918 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15919   yes:no: )
15920     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15921 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15922     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15923 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15924     ac_header_preproc=yes
15925     ;;
15926   no:yes:* )
15927     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15928 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15929     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15930 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15931     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15932 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15933     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15934 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15935     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15936 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15937     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15938 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15939     ( cat <<\_ASBOX
15940 ## ----------------------------------- ##
15941 ## Report this to llvmbugs@cs.uiuc.edu ##
15942 ## ----------------------------------- ##
15943 _ASBOX
15944      ) | sed "s/^/$as_me: WARNING:     /" >&2
15945     ;;
15946 esac
15947 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15948 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15949 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15950   echo $ECHO_N "(cached) $ECHO_C" >&6
15951 else
15952   eval "$as_ac_Header=\$ac_header_preproc"
15953 fi
15954 ac_res=`eval echo '${'$as_ac_Header'}'`
15955                { echo "$as_me:$LINENO: result: $ac_res" >&5
15956 echo "${ECHO_T}$ac_res" >&6; }
15957
15958 fi
15959 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15960   cat >>confdefs.h <<_ACEOF
15961 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15962 _ACEOF
15963  HAVE_PTHREAD=1
15964
15965 else
15966   HAVE_PTHREAD=0
15967
15968 fi
15969
15970 done
15971
15972 else
15973   HAVE_PTHREAD=0
15974
15975 fi
15976
15977 if test "$llvm_cv_enable_libffi" = "yes" ; then
15978
15979
15980 for ac_header in ffi.h ffi/ffi.h
15981 do
15982 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15983 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15984   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15985 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15986 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15987   echo $ECHO_N "(cached) $ECHO_C" >&6
15988 fi
15989 ac_res=`eval echo '${'$as_ac_Header'}'`
15990                { echo "$as_me:$LINENO: result: $ac_res" >&5
15991 echo "${ECHO_T}$ac_res" >&6; }
15992 else
15993   # Is the header compilable?
15994 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15995 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15996 cat >conftest.$ac_ext <<_ACEOF
15997 /* confdefs.h.  */
15998 _ACEOF
15999 cat confdefs.h >>conftest.$ac_ext
16000 cat >>conftest.$ac_ext <<_ACEOF
16001 /* end confdefs.h.  */
16002 $ac_includes_default
16003 #include <$ac_header>
16004 _ACEOF
16005 rm -f conftest.$ac_objext
16006 if { (ac_try="$ac_compile"
16007 case "(($ac_try" in
16008   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16009   *) ac_try_echo=$ac_try;;
16010 esac
16011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16012   (eval "$ac_compile") 2>conftest.er1
16013   ac_status=$?
16014   grep -v '^ *+' conftest.er1 >conftest.err
16015   rm -f conftest.er1
16016   cat conftest.err >&5
16017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16018   (exit $ac_status); } &&
16019          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16020   { (case "(($ac_try" in
16021   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16022   *) ac_try_echo=$ac_try;;
16023 esac
16024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16025   (eval "$ac_try") 2>&5
16026   ac_status=$?
16027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16028   (exit $ac_status); }; } &&
16029          { ac_try='test -s conftest.$ac_objext'
16030   { (case "(($ac_try" in
16031   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16032   *) ac_try_echo=$ac_try;;
16033 esac
16034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16035   (eval "$ac_try") 2>&5
16036   ac_status=$?
16037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16038   (exit $ac_status); }; }; then
16039   ac_header_compiler=yes
16040 else
16041   echo "$as_me: failed program was:" >&5
16042 sed 's/^/| /' conftest.$ac_ext >&5
16043
16044         ac_header_compiler=no
16045 fi
16046
16047 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16048 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16049 echo "${ECHO_T}$ac_header_compiler" >&6; }
16050
16051 # Is the header present?
16052 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16053 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16054 cat >conftest.$ac_ext <<_ACEOF
16055 /* confdefs.h.  */
16056 _ACEOF
16057 cat confdefs.h >>conftest.$ac_ext
16058 cat >>conftest.$ac_ext <<_ACEOF
16059 /* end confdefs.h.  */
16060 #include <$ac_header>
16061 _ACEOF
16062 if { (ac_try="$ac_cpp conftest.$ac_ext"
16063 case "(($ac_try" in
16064   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16065   *) ac_try_echo=$ac_try;;
16066 esac
16067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16068   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16069   ac_status=$?
16070   grep -v '^ *+' conftest.er1 >conftest.err
16071   rm -f conftest.er1
16072   cat conftest.err >&5
16073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16074   (exit $ac_status); } >/dev/null; then
16075   if test -s conftest.err; then
16076     ac_cpp_err=$ac_c_preproc_warn_flag
16077     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16078   else
16079     ac_cpp_err=
16080   fi
16081 else
16082   ac_cpp_err=yes
16083 fi
16084 if test -z "$ac_cpp_err"; then
16085   ac_header_preproc=yes
16086 else
16087   echo "$as_me: failed program was:" >&5
16088 sed 's/^/| /' conftest.$ac_ext >&5
16089
16090   ac_header_preproc=no
16091 fi
16092
16093 rm -f conftest.err conftest.$ac_ext
16094 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16095 echo "${ECHO_T}$ac_header_preproc" >&6; }
16096
16097 # So?  What about this header?
16098 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16099   yes:no: )
16100     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16101 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16102     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16103 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16104     ac_header_preproc=yes
16105     ;;
16106   no:yes:* )
16107     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16108 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16109     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16110 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16111     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16112 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16113     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16114 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16115     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16116 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16117     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16118 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16119     ( cat <<\_ASBOX
16120 ## ----------------------------------- ##
16121 ## Report this to llvmbugs@cs.uiuc.edu ##
16122 ## ----------------------------------- ##
16123 _ASBOX
16124      ) | sed "s/^/$as_me: WARNING:     /" >&2
16125     ;;
16126 esac
16127 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16128 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16129 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16130   echo $ECHO_N "(cached) $ECHO_C" >&6
16131 else
16132   eval "$as_ac_Header=\$ac_header_preproc"
16133 fi
16134 ac_res=`eval echo '${'$as_ac_Header'}'`
16135                { echo "$as_me:$LINENO: result: $ac_res" >&5
16136 echo "${ECHO_T}$ac_res" >&6; }
16137
16138 fi
16139 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16140   cat >>confdefs.h <<_ACEOF
16141 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16142 _ACEOF
16143
16144 fi
16145
16146 done
16147
16148 fi
16149
16150
16151 for ac_header in CrashReporterClient.h
16152 do
16153 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16154 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16155   { echo "$as_me:$LINENO: checking for $ac_header" >&5
16156 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16157 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16158   echo $ECHO_N "(cached) $ECHO_C" >&6
16159 fi
16160 ac_res=`eval echo '${'$as_ac_Header'}'`
16161                { echo "$as_me:$LINENO: result: $ac_res" >&5
16162 echo "${ECHO_T}$ac_res" >&6; }
16163 else
16164   # Is the header compilable?
16165 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16166 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16167 cat >conftest.$ac_ext <<_ACEOF
16168 /* confdefs.h.  */
16169 _ACEOF
16170 cat confdefs.h >>conftest.$ac_ext
16171 cat >>conftest.$ac_ext <<_ACEOF
16172 /* end confdefs.h.  */
16173 $ac_includes_default
16174 #include <$ac_header>
16175 _ACEOF
16176 rm -f conftest.$ac_objext
16177 if { (ac_try="$ac_compile"
16178 case "(($ac_try" in
16179   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16180   *) ac_try_echo=$ac_try;;
16181 esac
16182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16183   (eval "$ac_compile") 2>conftest.er1
16184   ac_status=$?
16185   grep -v '^ *+' conftest.er1 >conftest.err
16186   rm -f conftest.er1
16187   cat conftest.err >&5
16188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16189   (exit $ac_status); } &&
16190          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16191   { (case "(($ac_try" in
16192   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16193   *) ac_try_echo=$ac_try;;
16194 esac
16195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16196   (eval "$ac_try") 2>&5
16197   ac_status=$?
16198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16199   (exit $ac_status); }; } &&
16200          { ac_try='test -s conftest.$ac_objext'
16201   { (case "(($ac_try" in
16202   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16203   *) ac_try_echo=$ac_try;;
16204 esac
16205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16206   (eval "$ac_try") 2>&5
16207   ac_status=$?
16208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16209   (exit $ac_status); }; }; then
16210   ac_header_compiler=yes
16211 else
16212   echo "$as_me: failed program was:" >&5
16213 sed 's/^/| /' conftest.$ac_ext >&5
16214
16215         ac_header_compiler=no
16216 fi
16217
16218 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16219 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16220 echo "${ECHO_T}$ac_header_compiler" >&6; }
16221
16222 # Is the header present?
16223 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16224 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16225 cat >conftest.$ac_ext <<_ACEOF
16226 /* confdefs.h.  */
16227 _ACEOF
16228 cat confdefs.h >>conftest.$ac_ext
16229 cat >>conftest.$ac_ext <<_ACEOF
16230 /* end confdefs.h.  */
16231 #include <$ac_header>
16232 _ACEOF
16233 if { (ac_try="$ac_cpp conftest.$ac_ext"
16234 case "(($ac_try" in
16235   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16236   *) ac_try_echo=$ac_try;;
16237 esac
16238 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16239   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16240   ac_status=$?
16241   grep -v '^ *+' conftest.er1 >conftest.err
16242   rm -f conftest.er1
16243   cat conftest.err >&5
16244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16245   (exit $ac_status); } >/dev/null; then
16246   if test -s conftest.err; then
16247     ac_cpp_err=$ac_c_preproc_warn_flag
16248     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16249   else
16250     ac_cpp_err=
16251   fi
16252 else
16253   ac_cpp_err=yes
16254 fi
16255 if test -z "$ac_cpp_err"; then
16256   ac_header_preproc=yes
16257 else
16258   echo "$as_me: failed program was:" >&5
16259 sed 's/^/| /' conftest.$ac_ext >&5
16260
16261   ac_header_preproc=no
16262 fi
16263
16264 rm -f conftest.err conftest.$ac_ext
16265 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16266 echo "${ECHO_T}$ac_header_preproc" >&6; }
16267
16268 # So?  What about this header?
16269 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16270   yes:no: )
16271     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16272 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16273     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16274 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16275     ac_header_preproc=yes
16276     ;;
16277   no:yes:* )
16278     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16279 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16280     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16281 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16282     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16283 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16284     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16285 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16286     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16287 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16288     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16289 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16290     ( cat <<\_ASBOX
16291 ## ----------------------------------- ##
16292 ## Report this to llvmbugs@cs.uiuc.edu ##
16293 ## ----------------------------------- ##
16294 _ASBOX
16295      ) | sed "s/^/$as_me: WARNING:     /" >&2
16296     ;;
16297 esac
16298 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16299 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16300 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16301   echo $ECHO_N "(cached) $ECHO_C" >&6
16302 else
16303   eval "$as_ac_Header=\$ac_header_preproc"
16304 fi
16305 ac_res=`eval echo '${'$as_ac_Header'}'`
16306                { echo "$as_me:$LINENO: result: $ac_res" >&5
16307 echo "${ECHO_T}$ac_res" >&6; }
16308
16309 fi
16310 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16311   cat >>confdefs.h <<_ACEOF
16312 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16313 _ACEOF
16314
16315 fi
16316
16317 done
16318
16319
16320 { echo "$as_me:$LINENO: checking __crashreporter_info__" >&5
16321 echo $ECHO_N "checking __crashreporter_info__... $ECHO_C" >&6; }
16322 cat >conftest.$ac_ext <<_ACEOF
16323 /* confdefs.h.  */
16324 _ACEOF
16325 cat confdefs.h >>conftest.$ac_ext
16326 cat >>conftest.$ac_ext <<_ACEOF
16327 /* end confdefs.h.  */
16328 extern const char *__crashreporter_info__;
16329       int main() {
16330         __crashreporter_info__ = "test";
16331         return 0;
16332       }
16333
16334 _ACEOF
16335 rm -f conftest.$ac_objext conftest$ac_exeext
16336 if { (ac_try="$ac_link"
16337 case "(($ac_try" in
16338   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16339   *) ac_try_echo=$ac_try;;
16340 esac
16341 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16342   (eval "$ac_link") 2>conftest.er1
16343   ac_status=$?
16344   grep -v '^ *+' conftest.er1 >conftest.err
16345   rm -f conftest.er1
16346   cat conftest.err >&5
16347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16348   (exit $ac_status); } &&
16349          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16350   { (case "(($ac_try" in
16351   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16352   *) ac_try_echo=$ac_try;;
16353 esac
16354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16355   (eval "$ac_try") 2>&5
16356   ac_status=$?
16357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16358   (exit $ac_status); }; } &&
16359          { ac_try='test -s conftest$ac_exeext'
16360   { (case "(($ac_try" in
16361   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16362   *) ac_try_echo=$ac_try;;
16363 esac
16364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16365   (eval "$ac_try") 2>&5
16366   ac_status=$?
16367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16368   (exit $ac_status); }; }; then
16369   { echo "$as_me:$LINENO: result: yes" >&5
16370 echo "${ECHO_T}yes" >&6; }
16371
16372 cat >>confdefs.h <<\_ACEOF
16373 #define HAVE_CRASHREPORTER_INFO 1
16374 _ACEOF
16375
16376 else
16377   echo "$as_me: failed program was:" >&5
16378 sed 's/^/| /' conftest.$ac_ext >&5
16379
16380         { echo "$as_me:$LINENO: result: no" >&5
16381 echo "${ECHO_T}no" >&6; }
16382
16383 cat >>confdefs.h <<\_ACEOF
16384 #define HAVE_CRASHREPORTER_INFO 0
16385 _ACEOF
16386
16387 fi
16388
16389 rm -f core conftest.err conftest.$ac_objext \
16390       conftest$ac_exeext conftest.$ac_ext
16391
16392
16393
16394
16395   { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
16396 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
16397 if test "${ac_cv_huge_val_sanity+set}" = set; then
16398   echo $ECHO_N "(cached) $ECHO_C" >&6
16399 else
16400
16401     ac_ext=cpp
16402 ac_cpp='$CXXCPP $CPPFLAGS'
16403 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16404 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16405 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16406
16407     ac_save_CXXFLAGS=$CXXFLAGS
16408     CXXFLAGS=-pedantic
16409     if test "$cross_compiling" = yes; then
16410   ac_cv_huge_val_sanity=yes
16411 else
16412   cat >conftest.$ac_ext <<_ACEOF
16413 /* confdefs.h.  */
16414 _ACEOF
16415 cat confdefs.h >>conftest.$ac_ext
16416 cat >>conftest.$ac_ext <<_ACEOF
16417 /* end confdefs.h.  */
16418 #include <math.h>
16419 int
16420 main ()
16421 {
16422 double x = HUGE_VAL; return x != x;
16423   ;
16424   return 0;
16425 }
16426 _ACEOF
16427 rm -f conftest$ac_exeext
16428 if { (ac_try="$ac_link"
16429 case "(($ac_try" in
16430   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16431   *) ac_try_echo=$ac_try;;
16432 esac
16433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16434   (eval "$ac_link") 2>&5
16435   ac_status=$?
16436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16437   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16438   { (case "(($ac_try" in
16439   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16440   *) ac_try_echo=$ac_try;;
16441 esac
16442 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16443   (eval "$ac_try") 2>&5
16444   ac_status=$?
16445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16446   (exit $ac_status); }; }; then
16447   ac_cv_huge_val_sanity=yes
16448 else
16449   echo "$as_me: program exited with status $ac_status" >&5
16450 echo "$as_me: failed program was:" >&5
16451 sed 's/^/| /' conftest.$ac_ext >&5
16452
16453 ( exit $ac_status )
16454 ac_cv_huge_val_sanity=no
16455 fi
16456 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16457 fi
16458
16459
16460     CXXFLAGS=$ac_save_CXXFLAGS
16461     ac_ext=c
16462 ac_cpp='$CPP $CPPFLAGS'
16463 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16464 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16465 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16466
16467
16468 fi
16469 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
16470 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
16471   HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
16472
16473
16474 { echo "$as_me:$LINENO: checking for pid_t" >&5
16475 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
16476 if test "${ac_cv_type_pid_t+set}" = set; then
16477   echo $ECHO_N "(cached) $ECHO_C" >&6
16478 else
16479   cat >conftest.$ac_ext <<_ACEOF
16480 /* confdefs.h.  */
16481 _ACEOF
16482 cat confdefs.h >>conftest.$ac_ext
16483 cat >>conftest.$ac_ext <<_ACEOF
16484 /* end confdefs.h.  */
16485 $ac_includes_default
16486 typedef pid_t ac__type_new_;
16487 int
16488 main ()
16489 {
16490 if ((ac__type_new_ *) 0)
16491   return 0;
16492 if (sizeof (ac__type_new_))
16493   return 0;
16494   ;
16495   return 0;
16496 }
16497 _ACEOF
16498 rm -f conftest.$ac_objext
16499 if { (ac_try="$ac_compile"
16500 case "(($ac_try" in
16501   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16502   *) ac_try_echo=$ac_try;;
16503 esac
16504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16505   (eval "$ac_compile") 2>conftest.er1
16506   ac_status=$?
16507   grep -v '^ *+' conftest.er1 >conftest.err
16508   rm -f conftest.er1
16509   cat conftest.err >&5
16510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16511   (exit $ac_status); } &&
16512          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16513   { (case "(($ac_try" in
16514   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16515   *) ac_try_echo=$ac_try;;
16516 esac
16517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16518   (eval "$ac_try") 2>&5
16519   ac_status=$?
16520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16521   (exit $ac_status); }; } &&
16522          { ac_try='test -s conftest.$ac_objext'
16523   { (case "(($ac_try" in
16524   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16525   *) ac_try_echo=$ac_try;;
16526 esac
16527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16528   (eval "$ac_try") 2>&5
16529   ac_status=$?
16530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16531   (exit $ac_status); }; }; then
16532   ac_cv_type_pid_t=yes
16533 else
16534   echo "$as_me: failed program was:" >&5
16535 sed 's/^/| /' conftest.$ac_ext >&5
16536
16537         ac_cv_type_pid_t=no
16538 fi
16539
16540 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16541 fi
16542 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
16543 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
16544 if test $ac_cv_type_pid_t = yes; then
16545   :
16546 else
16547
16548 cat >>confdefs.h <<_ACEOF
16549 #define pid_t int
16550 _ACEOF
16551
16552 fi
16553
16554 { echo "$as_me:$LINENO: checking for size_t" >&5
16555 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
16556 if test "${ac_cv_type_size_t+set}" = set; then
16557   echo $ECHO_N "(cached) $ECHO_C" >&6
16558 else
16559   cat >conftest.$ac_ext <<_ACEOF
16560 /* confdefs.h.  */
16561 _ACEOF
16562 cat confdefs.h >>conftest.$ac_ext
16563 cat >>conftest.$ac_ext <<_ACEOF
16564 /* end confdefs.h.  */
16565 $ac_includes_default
16566 typedef size_t ac__type_new_;
16567 int
16568 main ()
16569 {
16570 if ((ac__type_new_ *) 0)
16571   return 0;
16572 if (sizeof (ac__type_new_))
16573   return 0;
16574   ;
16575   return 0;
16576 }
16577 _ACEOF
16578 rm -f conftest.$ac_objext
16579 if { (ac_try="$ac_compile"
16580 case "(($ac_try" in
16581   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16582   *) ac_try_echo=$ac_try;;
16583 esac
16584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16585   (eval "$ac_compile") 2>conftest.er1
16586   ac_status=$?
16587   grep -v '^ *+' conftest.er1 >conftest.err
16588   rm -f conftest.er1
16589   cat conftest.err >&5
16590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16591   (exit $ac_status); } &&
16592          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16593   { (case "(($ac_try" in
16594   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16595   *) ac_try_echo=$ac_try;;
16596 esac
16597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16598   (eval "$ac_try") 2>&5
16599   ac_status=$?
16600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16601   (exit $ac_status); }; } &&
16602          { ac_try='test -s conftest.$ac_objext'
16603   { (case "(($ac_try" in
16604   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16605   *) ac_try_echo=$ac_try;;
16606 esac
16607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16608   (eval "$ac_try") 2>&5
16609   ac_status=$?
16610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16611   (exit $ac_status); }; }; then
16612   ac_cv_type_size_t=yes
16613 else
16614   echo "$as_me: failed program was:" >&5
16615 sed 's/^/| /' conftest.$ac_ext >&5
16616
16617         ac_cv_type_size_t=no
16618 fi
16619
16620 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16621 fi
16622 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
16623 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
16624 if test $ac_cv_type_size_t = yes; then
16625   :
16626 else
16627
16628 cat >>confdefs.h <<_ACEOF
16629 #define size_t unsigned int
16630 _ACEOF
16631
16632 fi
16633
16634
16635 cat >>confdefs.h <<_ACEOF
16636 #define RETSIGTYPE void
16637 _ACEOF
16638
16639 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
16640 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
16641 if test "${ac_cv_struct_tm+set}" = set; then
16642   echo $ECHO_N "(cached) $ECHO_C" >&6
16643 else
16644   cat >conftest.$ac_ext <<_ACEOF
16645 /* confdefs.h.  */
16646 _ACEOF
16647 cat confdefs.h >>conftest.$ac_ext
16648 cat >>conftest.$ac_ext <<_ACEOF
16649 /* end confdefs.h.  */
16650 #include <sys/types.h>
16651 #include <time.h>
16652
16653 int
16654 main ()
16655 {
16656 struct tm *tp; tp->tm_sec;
16657   ;
16658   return 0;
16659 }
16660 _ACEOF
16661 rm -f conftest.$ac_objext
16662 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
16669   ac_status=$?
16670   grep -v '^ *+' conftest.er1 >conftest.err
16671   rm -f conftest.er1
16672   cat conftest.err >&5
16673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16674   (exit $ac_status); } &&
16675          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16676   { (case "(($ac_try" in
16677   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16678   *) ac_try_echo=$ac_try;;
16679 esac
16680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16681   (eval "$ac_try") 2>&5
16682   ac_status=$?
16683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16684   (exit $ac_status); }; } &&
16685          { ac_try='test -s conftest.$ac_objext'
16686   { (case "(($ac_try" in
16687   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16688   *) ac_try_echo=$ac_try;;
16689 esac
16690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16691   (eval "$ac_try") 2>&5
16692   ac_status=$?
16693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16694   (exit $ac_status); }; }; then
16695   ac_cv_struct_tm=time.h
16696 else
16697   echo "$as_me: failed program was:" >&5
16698 sed 's/^/| /' conftest.$ac_ext >&5
16699
16700         ac_cv_struct_tm=sys/time.h
16701 fi
16702
16703 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16704 fi
16705 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
16706 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
16707 if test $ac_cv_struct_tm = sys/time.h; then
16708
16709 cat >>confdefs.h <<\_ACEOF
16710 #define TM_IN_SYS_TIME 1
16711 _ACEOF
16712
16713 fi
16714
16715 { echo "$as_me:$LINENO: checking for int64_t" >&5
16716 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
16717 if test "${ac_cv_type_int64_t+set}" = set; then
16718   echo $ECHO_N "(cached) $ECHO_C" >&6
16719 else
16720   cat >conftest.$ac_ext <<_ACEOF
16721 /* confdefs.h.  */
16722 _ACEOF
16723 cat confdefs.h >>conftest.$ac_ext
16724 cat >>conftest.$ac_ext <<_ACEOF
16725 /* end confdefs.h.  */
16726 $ac_includes_default
16727 typedef int64_t ac__type_new_;
16728 int
16729 main ()
16730 {
16731 if ((ac__type_new_ *) 0)
16732   return 0;
16733 if (sizeof (ac__type_new_))
16734   return 0;
16735   ;
16736   return 0;
16737 }
16738 _ACEOF
16739 rm -f conftest.$ac_objext
16740 if { (ac_try="$ac_compile"
16741 case "(($ac_try" in
16742   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16743   *) ac_try_echo=$ac_try;;
16744 esac
16745 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16746   (eval "$ac_compile") 2>conftest.er1
16747   ac_status=$?
16748   grep -v '^ *+' conftest.er1 >conftest.err
16749   rm -f conftest.er1
16750   cat conftest.err >&5
16751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16752   (exit $ac_status); } &&
16753          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16754   { (case "(($ac_try" in
16755   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16756   *) ac_try_echo=$ac_try;;
16757 esac
16758 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16759   (eval "$ac_try") 2>&5
16760   ac_status=$?
16761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16762   (exit $ac_status); }; } &&
16763          { ac_try='test -s conftest.$ac_objext'
16764   { (case "(($ac_try" in
16765   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16766   *) ac_try_echo=$ac_try;;
16767 esac
16768 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16769   (eval "$ac_try") 2>&5
16770   ac_status=$?
16771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16772   (exit $ac_status); }; }; then
16773   ac_cv_type_int64_t=yes
16774 else
16775   echo "$as_me: failed program was:" >&5
16776 sed 's/^/| /' conftest.$ac_ext >&5
16777
16778         ac_cv_type_int64_t=no
16779 fi
16780
16781 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16782 fi
16783 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
16784 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
16785 if test $ac_cv_type_int64_t = yes; then
16786
16787 cat >>confdefs.h <<_ACEOF
16788 #define HAVE_INT64_T 1
16789 _ACEOF
16790
16791
16792 else
16793   { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
16794 echo "$as_me: error: Type int64_t required but not found" >&2;}
16795    { (exit 1); exit 1; }; }
16796 fi
16797
16798 { echo "$as_me:$LINENO: checking for uint64_t" >&5
16799 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
16800 if test "${ac_cv_type_uint64_t+set}" = set; then
16801   echo $ECHO_N "(cached) $ECHO_C" >&6
16802 else
16803   cat >conftest.$ac_ext <<_ACEOF
16804 /* confdefs.h.  */
16805 _ACEOF
16806 cat confdefs.h >>conftest.$ac_ext
16807 cat >>conftest.$ac_ext <<_ACEOF
16808 /* end confdefs.h.  */
16809 $ac_includes_default
16810 typedef uint64_t ac__type_new_;
16811 int
16812 main ()
16813 {
16814 if ((ac__type_new_ *) 0)
16815   return 0;
16816 if (sizeof (ac__type_new_))
16817   return 0;
16818   ;
16819   return 0;
16820 }
16821 _ACEOF
16822 rm -f conftest.$ac_objext
16823 if { (ac_try="$ac_compile"
16824 case "(($ac_try" in
16825   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16826   *) ac_try_echo=$ac_try;;
16827 esac
16828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16829   (eval "$ac_compile") 2>conftest.er1
16830   ac_status=$?
16831   grep -v '^ *+' conftest.er1 >conftest.err
16832   rm -f conftest.er1
16833   cat conftest.err >&5
16834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16835   (exit $ac_status); } &&
16836          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16837   { (case "(($ac_try" in
16838   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16839   *) ac_try_echo=$ac_try;;
16840 esac
16841 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16842   (eval "$ac_try") 2>&5
16843   ac_status=$?
16844   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16845   (exit $ac_status); }; } &&
16846          { ac_try='test -s conftest.$ac_objext'
16847   { (case "(($ac_try" in
16848   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16849   *) ac_try_echo=$ac_try;;
16850 esac
16851 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16852   (eval "$ac_try") 2>&5
16853   ac_status=$?
16854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16855   (exit $ac_status); }; }; then
16856   ac_cv_type_uint64_t=yes
16857 else
16858   echo "$as_me: failed program was:" >&5
16859 sed 's/^/| /' conftest.$ac_ext >&5
16860
16861         ac_cv_type_uint64_t=no
16862 fi
16863
16864 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16865 fi
16866 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
16867 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
16868 if test $ac_cv_type_uint64_t = yes; then
16869
16870 cat >>confdefs.h <<_ACEOF
16871 #define HAVE_UINT64_T 1
16872 _ACEOF
16873
16874
16875 else
16876   { echo "$as_me:$LINENO: checking for u_int64_t" >&5
16877 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
16878 if test "${ac_cv_type_u_int64_t+set}" = set; then
16879   echo $ECHO_N "(cached) $ECHO_C" >&6
16880 else
16881   cat >conftest.$ac_ext <<_ACEOF
16882 /* confdefs.h.  */
16883 _ACEOF
16884 cat confdefs.h >>conftest.$ac_ext
16885 cat >>conftest.$ac_ext <<_ACEOF
16886 /* end confdefs.h.  */
16887 $ac_includes_default
16888 typedef u_int64_t ac__type_new_;
16889 int
16890 main ()
16891 {
16892 if ((ac__type_new_ *) 0)
16893   return 0;
16894 if (sizeof (ac__type_new_))
16895   return 0;
16896   ;
16897   return 0;
16898 }
16899 _ACEOF
16900 rm -f conftest.$ac_objext
16901 if { (ac_try="$ac_compile"
16902 case "(($ac_try" in
16903   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16904   *) ac_try_echo=$ac_try;;
16905 esac
16906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16907   (eval "$ac_compile") 2>conftest.er1
16908   ac_status=$?
16909   grep -v '^ *+' conftest.er1 >conftest.err
16910   rm -f conftest.er1
16911   cat conftest.err >&5
16912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16913   (exit $ac_status); } &&
16914          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16915   { (case "(($ac_try" in
16916   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16917   *) ac_try_echo=$ac_try;;
16918 esac
16919 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16920   (eval "$ac_try") 2>&5
16921   ac_status=$?
16922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16923   (exit $ac_status); }; } &&
16924          { ac_try='test -s conftest.$ac_objext'
16925   { (case "(($ac_try" in
16926   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16927   *) ac_try_echo=$ac_try;;
16928 esac
16929 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16930   (eval "$ac_try") 2>&5
16931   ac_status=$?
16932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16933   (exit $ac_status); }; }; then
16934   ac_cv_type_u_int64_t=yes
16935 else
16936   echo "$as_me: failed program was:" >&5
16937 sed 's/^/| /' conftest.$ac_ext >&5
16938
16939         ac_cv_type_u_int64_t=no
16940 fi
16941
16942 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16943 fi
16944 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
16945 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
16946 if test $ac_cv_type_u_int64_t = yes; then
16947
16948 cat >>confdefs.h <<_ACEOF
16949 #define HAVE_U_INT64_T 1
16950 _ACEOF
16951
16952
16953 else
16954   { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
16955 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
16956    { (exit 1); exit 1; }; }
16957 fi
16958
16959 fi
16960
16961
16962
16963
16964
16965
16966
16967
16968
16969
16970 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
16971 do
16972 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16973 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16974 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16975 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16976   echo $ECHO_N "(cached) $ECHO_C" >&6
16977 else
16978   cat >conftest.$ac_ext <<_ACEOF
16979 /* confdefs.h.  */
16980 _ACEOF
16981 cat confdefs.h >>conftest.$ac_ext
16982 cat >>conftest.$ac_ext <<_ACEOF
16983 /* end confdefs.h.  */
16984 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16985    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16986 #define $ac_func innocuous_$ac_func
16987
16988 /* System header to define __stub macros and hopefully few prototypes,
16989     which can conflict with char $ac_func (); below.
16990     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16991     <limits.h> exists even on freestanding compilers.  */
16992
16993 #ifdef __STDC__
16994 # include <limits.h>
16995 #else
16996 # include <assert.h>
16997 #endif
16998
16999 #undef $ac_func
17000
17001 /* Override any GCC internal prototype to avoid an error.
17002    Use char because int might match the return type of a GCC
17003    builtin and then its argument prototype would still apply.  */
17004 #ifdef __cplusplus
17005 extern "C"
17006 #endif
17007 char $ac_func ();
17008 /* The GNU C library defines this for functions which it implements
17009     to always fail with ENOSYS.  Some functions are actually named
17010     something starting with __ and the normal name is an alias.  */
17011 #if defined __stub_$ac_func || defined __stub___$ac_func
17012 choke me
17013 #endif
17014
17015 int
17016 main ()
17017 {
17018 return $ac_func ();
17019   ;
17020   return 0;
17021 }
17022 _ACEOF
17023 rm -f conftest.$ac_objext conftest$ac_exeext
17024 if { (ac_try="$ac_link"
17025 case "(($ac_try" in
17026   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17027   *) ac_try_echo=$ac_try;;
17028 esac
17029 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17030   (eval "$ac_link") 2>conftest.er1
17031   ac_status=$?
17032   grep -v '^ *+' conftest.er1 >conftest.err
17033   rm -f conftest.er1
17034   cat conftest.err >&5
17035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17036   (exit $ac_status); } &&
17037          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17038   { (case "(($ac_try" in
17039   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17040   *) ac_try_echo=$ac_try;;
17041 esac
17042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17043   (eval "$ac_try") 2>&5
17044   ac_status=$?
17045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17046   (exit $ac_status); }; } &&
17047          { ac_try='test -s conftest$ac_exeext'
17048   { (case "(($ac_try" in
17049   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17050   *) ac_try_echo=$ac_try;;
17051 esac
17052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17053   (eval "$ac_try") 2>&5
17054   ac_status=$?
17055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17056   (exit $ac_status); }; }; then
17057   eval "$as_ac_var=yes"
17058 else
17059   echo "$as_me: failed program was:" >&5
17060 sed 's/^/| /' conftest.$ac_ext >&5
17061
17062         eval "$as_ac_var=no"
17063 fi
17064
17065 rm -f core conftest.err conftest.$ac_objext \
17066       conftest$ac_exeext conftest.$ac_ext
17067 fi
17068 ac_res=`eval echo '${'$as_ac_var'}'`
17069                { echo "$as_me:$LINENO: result: $ac_res" >&5
17070 echo "${ECHO_T}$ac_res" >&6; }
17071 if test `eval echo '${'$as_ac_var'}'` = yes; then
17072   cat >>confdefs.h <<_ACEOF
17073 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17074 _ACEOF
17075
17076 fi
17077 done
17078
17079
17080
17081
17082
17083 for ac_func in powf fmodf strtof round
17084 do
17085 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17086 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17087 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17088 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17089   echo $ECHO_N "(cached) $ECHO_C" >&6
17090 else
17091   cat >conftest.$ac_ext <<_ACEOF
17092 /* confdefs.h.  */
17093 _ACEOF
17094 cat confdefs.h >>conftest.$ac_ext
17095 cat >>conftest.$ac_ext <<_ACEOF
17096 /* end confdefs.h.  */
17097 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17098    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17099 #define $ac_func innocuous_$ac_func
17100
17101 /* System header to define __stub macros and hopefully few prototypes,
17102     which can conflict with char $ac_func (); below.
17103     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17104     <limits.h> exists even on freestanding compilers.  */
17105
17106 #ifdef __STDC__
17107 # include <limits.h>
17108 #else
17109 # include <assert.h>
17110 #endif
17111
17112 #undef $ac_func
17113
17114 /* Override any GCC internal prototype to avoid an error.
17115    Use char because int might match the return type of a GCC
17116    builtin and then its argument prototype would still apply.  */
17117 #ifdef __cplusplus
17118 extern "C"
17119 #endif
17120 char $ac_func ();
17121 /* The GNU C library defines this for functions which it implements
17122     to always fail with ENOSYS.  Some functions are actually named
17123     something starting with __ and the normal name is an alias.  */
17124 #if defined __stub_$ac_func || defined __stub___$ac_func
17125 choke me
17126 #endif
17127
17128 int
17129 main ()
17130 {
17131 return $ac_func ();
17132   ;
17133   return 0;
17134 }
17135 _ACEOF
17136 rm -f conftest.$ac_objext conftest$ac_exeext
17137 if { (ac_try="$ac_link"
17138 case "(($ac_try" in
17139   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17140   *) ac_try_echo=$ac_try;;
17141 esac
17142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17143   (eval "$ac_link") 2>conftest.er1
17144   ac_status=$?
17145   grep -v '^ *+' conftest.er1 >conftest.err
17146   rm -f conftest.er1
17147   cat conftest.err >&5
17148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17149   (exit $ac_status); } &&
17150          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17151   { (case "(($ac_try" in
17152   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17153   *) ac_try_echo=$ac_try;;
17154 esac
17155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17156   (eval "$ac_try") 2>&5
17157   ac_status=$?
17158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17159   (exit $ac_status); }; } &&
17160          { ac_try='test -s conftest$ac_exeext'
17161   { (case "(($ac_try" in
17162   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17163   *) ac_try_echo=$ac_try;;
17164 esac
17165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17166   (eval "$ac_try") 2>&5
17167   ac_status=$?
17168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17169   (exit $ac_status); }; }; then
17170   eval "$as_ac_var=yes"
17171 else
17172   echo "$as_me: failed program was:" >&5
17173 sed 's/^/| /' conftest.$ac_ext >&5
17174
17175         eval "$as_ac_var=no"
17176 fi
17177
17178 rm -f core conftest.err conftest.$ac_objext \
17179       conftest$ac_exeext conftest.$ac_ext
17180 fi
17181 ac_res=`eval echo '${'$as_ac_var'}'`
17182                { echo "$as_me:$LINENO: result: $ac_res" >&5
17183 echo "${ECHO_T}$ac_res" >&6; }
17184 if test `eval echo '${'$as_ac_var'}'` = yes; then
17185   cat >>confdefs.h <<_ACEOF
17186 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17187 _ACEOF
17188
17189 fi
17190 done
17191
17192
17193
17194
17195
17196
17197 for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
17198 do
17199 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17200 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17201 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17202 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17203   echo $ECHO_N "(cached) $ECHO_C" >&6
17204 else
17205   cat >conftest.$ac_ext <<_ACEOF
17206 /* confdefs.h.  */
17207 _ACEOF
17208 cat confdefs.h >>conftest.$ac_ext
17209 cat >>conftest.$ac_ext <<_ACEOF
17210 /* end confdefs.h.  */
17211 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17212    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17213 #define $ac_func innocuous_$ac_func
17214
17215 /* System header to define __stub macros and hopefully few prototypes,
17216     which can conflict with char $ac_func (); below.
17217     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17218     <limits.h> exists even on freestanding compilers.  */
17219
17220 #ifdef __STDC__
17221 # include <limits.h>
17222 #else
17223 # include <assert.h>
17224 #endif
17225
17226 #undef $ac_func
17227
17228 /* Override any GCC internal prototype to avoid an error.
17229    Use char because int might match the return type of a GCC
17230    builtin and then its argument prototype would still apply.  */
17231 #ifdef __cplusplus
17232 extern "C"
17233 #endif
17234 char $ac_func ();
17235 /* The GNU C library defines this for functions which it implements
17236     to always fail with ENOSYS.  Some functions are actually named
17237     something starting with __ and the normal name is an alias.  */
17238 #if defined __stub_$ac_func || defined __stub___$ac_func
17239 choke me
17240 #endif
17241
17242 int
17243 main ()
17244 {
17245 return $ac_func ();
17246   ;
17247   return 0;
17248 }
17249 _ACEOF
17250 rm -f conftest.$ac_objext conftest$ac_exeext
17251 if { (ac_try="$ac_link"
17252 case "(($ac_try" in
17253   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17254   *) ac_try_echo=$ac_try;;
17255 esac
17256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17257   (eval "$ac_link") 2>conftest.er1
17258   ac_status=$?
17259   grep -v '^ *+' conftest.er1 >conftest.err
17260   rm -f conftest.er1
17261   cat conftest.err >&5
17262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17263   (exit $ac_status); } &&
17264          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17265   { (case "(($ac_try" in
17266   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17267   *) ac_try_echo=$ac_try;;
17268 esac
17269 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17270   (eval "$ac_try") 2>&5
17271   ac_status=$?
17272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17273   (exit $ac_status); }; } &&
17274          { ac_try='test -s conftest$ac_exeext'
17275   { (case "(($ac_try" in
17276   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17277   *) ac_try_echo=$ac_try;;
17278 esac
17279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17280   (eval "$ac_try") 2>&5
17281   ac_status=$?
17282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17283   (exit $ac_status); }; }; then
17284   eval "$as_ac_var=yes"
17285 else
17286   echo "$as_me: failed program was:" >&5
17287 sed 's/^/| /' conftest.$ac_ext >&5
17288
17289         eval "$as_ac_var=no"
17290 fi
17291
17292 rm -f core conftest.err conftest.$ac_objext \
17293       conftest$ac_exeext conftest.$ac_ext
17294 fi
17295 ac_res=`eval echo '${'$as_ac_var'}'`
17296                { echo "$as_me:$LINENO: result: $ac_res" >&5
17297 echo "${ECHO_T}$ac_res" >&6; }
17298 if test `eval echo '${'$as_ac_var'}'` = yes; then
17299   cat >>confdefs.h <<_ACEOF
17300 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17301 _ACEOF
17302
17303 fi
17304 done
17305
17306
17307
17308
17309 for ac_func in isatty mkdtemp mkstemp
17310 do
17311 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17312 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17313 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17314 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17315   echo $ECHO_N "(cached) $ECHO_C" >&6
17316 else
17317   cat >conftest.$ac_ext <<_ACEOF
17318 /* confdefs.h.  */
17319 _ACEOF
17320 cat confdefs.h >>conftest.$ac_ext
17321 cat >>conftest.$ac_ext <<_ACEOF
17322 /* end confdefs.h.  */
17323 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17324    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17325 #define $ac_func innocuous_$ac_func
17326
17327 /* System header to define __stub macros and hopefully few prototypes,
17328     which can conflict with char $ac_func (); below.
17329     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17330     <limits.h> exists even on freestanding compilers.  */
17331
17332 #ifdef __STDC__
17333 # include <limits.h>
17334 #else
17335 # include <assert.h>
17336 #endif
17337
17338 #undef $ac_func
17339
17340 /* Override any GCC internal prototype to avoid an error.
17341    Use char because int might match the return type of a GCC
17342    builtin and then its argument prototype would still apply.  */
17343 #ifdef __cplusplus
17344 extern "C"
17345 #endif
17346 char $ac_func ();
17347 /* The GNU C library defines this for functions which it implements
17348     to always fail with ENOSYS.  Some functions are actually named
17349     something starting with __ and the normal name is an alias.  */
17350 #if defined __stub_$ac_func || defined __stub___$ac_func
17351 choke me
17352 #endif
17353
17354 int
17355 main ()
17356 {
17357 return $ac_func ();
17358   ;
17359   return 0;
17360 }
17361 _ACEOF
17362 rm -f conftest.$ac_objext conftest$ac_exeext
17363 if { (ac_try="$ac_link"
17364 case "(($ac_try" in
17365   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17366   *) ac_try_echo=$ac_try;;
17367 esac
17368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17369   (eval "$ac_link") 2>conftest.er1
17370   ac_status=$?
17371   grep -v '^ *+' conftest.er1 >conftest.err
17372   rm -f conftest.er1
17373   cat conftest.err >&5
17374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17375   (exit $ac_status); } &&
17376          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17377   { (case "(($ac_try" in
17378   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17379   *) ac_try_echo=$ac_try;;
17380 esac
17381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17382   (eval "$ac_try") 2>&5
17383   ac_status=$?
17384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17385   (exit $ac_status); }; } &&
17386          { ac_try='test -s conftest$ac_exeext'
17387   { (case "(($ac_try" in
17388   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17389   *) ac_try_echo=$ac_try;;
17390 esac
17391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17392   (eval "$ac_try") 2>&5
17393   ac_status=$?
17394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17395   (exit $ac_status); }; }; then
17396   eval "$as_ac_var=yes"
17397 else
17398   echo "$as_me: failed program was:" >&5
17399 sed 's/^/| /' conftest.$ac_ext >&5
17400
17401         eval "$as_ac_var=no"
17402 fi
17403
17404 rm -f core conftest.err conftest.$ac_objext \
17405       conftest$ac_exeext conftest.$ac_ext
17406 fi
17407 ac_res=`eval echo '${'$as_ac_var'}'`
17408                { echo "$as_me:$LINENO: result: $ac_res" >&5
17409 echo "${ECHO_T}$ac_res" >&6; }
17410 if test `eval echo '${'$as_ac_var'}'` = yes; then
17411   cat >>confdefs.h <<_ACEOF
17412 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17413 _ACEOF
17414
17415 fi
17416 done
17417
17418
17419
17420
17421
17422
17423
17424 for ac_func in mktemp posix_spawn realpath sbrk setrlimit strdup
17425 do
17426 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17427 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17428 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17429 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17430   echo $ECHO_N "(cached) $ECHO_C" >&6
17431 else
17432   cat >conftest.$ac_ext <<_ACEOF
17433 /* confdefs.h.  */
17434 _ACEOF
17435 cat confdefs.h >>conftest.$ac_ext
17436 cat >>conftest.$ac_ext <<_ACEOF
17437 /* end confdefs.h.  */
17438 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17439    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17440 #define $ac_func innocuous_$ac_func
17441
17442 /* System header to define __stub macros and hopefully few prototypes,
17443     which can conflict with char $ac_func (); below.
17444     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17445     <limits.h> exists even on freestanding compilers.  */
17446
17447 #ifdef __STDC__
17448 # include <limits.h>
17449 #else
17450 # include <assert.h>
17451 #endif
17452
17453 #undef $ac_func
17454
17455 /* Override any GCC internal prototype to avoid an error.
17456    Use char because int might match the return type of a GCC
17457    builtin and then its argument prototype would still apply.  */
17458 #ifdef __cplusplus
17459 extern "C"
17460 #endif
17461 char $ac_func ();
17462 /* The GNU C library defines this for functions which it implements
17463     to always fail with ENOSYS.  Some functions are actually named
17464     something starting with __ and the normal name is an alias.  */
17465 #if defined __stub_$ac_func || defined __stub___$ac_func
17466 choke me
17467 #endif
17468
17469 int
17470 main ()
17471 {
17472 return $ac_func ();
17473   ;
17474   return 0;
17475 }
17476 _ACEOF
17477 rm -f conftest.$ac_objext conftest$ac_exeext
17478 if { (ac_try="$ac_link"
17479 case "(($ac_try" in
17480   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17481   *) ac_try_echo=$ac_try;;
17482 esac
17483 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17484   (eval "$ac_link") 2>conftest.er1
17485   ac_status=$?
17486   grep -v '^ *+' conftest.er1 >conftest.err
17487   rm -f conftest.er1
17488   cat conftest.err >&5
17489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17490   (exit $ac_status); } &&
17491          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17492   { (case "(($ac_try" in
17493   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17494   *) ac_try_echo=$ac_try;;
17495 esac
17496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17497   (eval "$ac_try") 2>&5
17498   ac_status=$?
17499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17500   (exit $ac_status); }; } &&
17501          { ac_try='test -s conftest$ac_exeext'
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); }; }; then
17511   eval "$as_ac_var=yes"
17512 else
17513   echo "$as_me: failed program was:" >&5
17514 sed 's/^/| /' conftest.$ac_ext >&5
17515
17516         eval "$as_ac_var=no"
17517 fi
17518
17519 rm -f core conftest.err conftest.$ac_objext \
17520       conftest$ac_exeext conftest.$ac_ext
17521 fi
17522 ac_res=`eval echo '${'$as_ac_var'}'`
17523                { echo "$as_me:$LINENO: result: $ac_res" >&5
17524 echo "${ECHO_T}$ac_res" >&6; }
17525 if test `eval echo '${'$as_ac_var'}'` = yes; then
17526   cat >>confdefs.h <<_ACEOF
17527 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17528 _ACEOF
17529
17530 fi
17531 done
17532
17533
17534
17535
17536 for ac_func in strerror strerror_r setenv
17537 do
17538 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17539 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17540 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17541 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17542   echo $ECHO_N "(cached) $ECHO_C" >&6
17543 else
17544   cat >conftest.$ac_ext <<_ACEOF
17545 /* confdefs.h.  */
17546 _ACEOF
17547 cat confdefs.h >>conftest.$ac_ext
17548 cat >>conftest.$ac_ext <<_ACEOF
17549 /* end confdefs.h.  */
17550 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17551    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17552 #define $ac_func innocuous_$ac_func
17553
17554 /* System header to define __stub macros and hopefully few prototypes,
17555     which can conflict with char $ac_func (); below.
17556     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17557     <limits.h> exists even on freestanding compilers.  */
17558
17559 #ifdef __STDC__
17560 # include <limits.h>
17561 #else
17562 # include <assert.h>
17563 #endif
17564
17565 #undef $ac_func
17566
17567 /* Override any GCC internal prototype to avoid an error.
17568    Use char because int might match the return type of a GCC
17569    builtin and then its argument prototype would still apply.  */
17570 #ifdef __cplusplus
17571 extern "C"
17572 #endif
17573 char $ac_func ();
17574 /* The GNU C library defines this for functions which it implements
17575     to always fail with ENOSYS.  Some functions are actually named
17576     something starting with __ and the normal name is an alias.  */
17577 #if defined __stub_$ac_func || defined __stub___$ac_func
17578 choke me
17579 #endif
17580
17581 int
17582 main ()
17583 {
17584 return $ac_func ();
17585   ;
17586   return 0;
17587 }
17588 _ACEOF
17589 rm -f conftest.$ac_objext conftest$ac_exeext
17590 if { (ac_try="$ac_link"
17591 case "(($ac_try" in
17592   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17593   *) ac_try_echo=$ac_try;;
17594 esac
17595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17596   (eval "$ac_link") 2>conftest.er1
17597   ac_status=$?
17598   grep -v '^ *+' conftest.er1 >conftest.err
17599   rm -f conftest.er1
17600   cat conftest.err >&5
17601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17602   (exit $ac_status); } &&
17603          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17604   { (case "(($ac_try" in
17605   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17606   *) ac_try_echo=$ac_try;;
17607 esac
17608 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17609   (eval "$ac_try") 2>&5
17610   ac_status=$?
17611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17612   (exit $ac_status); }; } &&
17613          { ac_try='test -s conftest$ac_exeext'
17614   { (case "(($ac_try" in
17615   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17616   *) ac_try_echo=$ac_try;;
17617 esac
17618 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17619   (eval "$ac_try") 2>&5
17620   ac_status=$?
17621   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17622   (exit $ac_status); }; }; then
17623   eval "$as_ac_var=yes"
17624 else
17625   echo "$as_me: failed program was:" >&5
17626 sed 's/^/| /' conftest.$ac_ext >&5
17627
17628         eval "$as_ac_var=no"
17629 fi
17630
17631 rm -f core conftest.err conftest.$ac_objext \
17632       conftest$ac_exeext conftest.$ac_ext
17633 fi
17634 ac_res=`eval echo '${'$as_ac_var'}'`
17635                { echo "$as_me:$LINENO: result: $ac_res" >&5
17636 echo "${ECHO_T}$ac_res" >&6; }
17637 if test `eval echo '${'$as_ac_var'}'` = yes; then
17638   cat >>confdefs.h <<_ACEOF
17639 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17640 _ACEOF
17641
17642 fi
17643 done
17644
17645
17646
17647
17648
17649 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
17650 do
17651 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17652 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17653 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17654 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17655   echo $ECHO_N "(cached) $ECHO_C" >&6
17656 else
17657   cat >conftest.$ac_ext <<_ACEOF
17658 /* confdefs.h.  */
17659 _ACEOF
17660 cat confdefs.h >>conftest.$ac_ext
17661 cat >>conftest.$ac_ext <<_ACEOF
17662 /* end confdefs.h.  */
17663 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17664    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17665 #define $ac_func innocuous_$ac_func
17666
17667 /* System header to define __stub macros and hopefully few prototypes,
17668     which can conflict with char $ac_func (); below.
17669     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17670     <limits.h> exists even on freestanding compilers.  */
17671
17672 #ifdef __STDC__
17673 # include <limits.h>
17674 #else
17675 # include <assert.h>
17676 #endif
17677
17678 #undef $ac_func
17679
17680 /* Override any GCC internal prototype to avoid an error.
17681    Use char because int might match the return type of a GCC
17682    builtin and then its argument prototype would still apply.  */
17683 #ifdef __cplusplus
17684 extern "C"
17685 #endif
17686 char $ac_func ();
17687 /* The GNU C library defines this for functions which it implements
17688     to always fail with ENOSYS.  Some functions are actually named
17689     something starting with __ and the normal name is an alias.  */
17690 #if defined __stub_$ac_func || defined __stub___$ac_func
17691 choke me
17692 #endif
17693
17694 int
17695 main ()
17696 {
17697 return $ac_func ();
17698   ;
17699   return 0;
17700 }
17701 _ACEOF
17702 rm -f conftest.$ac_objext conftest$ac_exeext
17703 if { (ac_try="$ac_link"
17704 case "(($ac_try" in
17705   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17706   *) ac_try_echo=$ac_try;;
17707 esac
17708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17709   (eval "$ac_link") 2>conftest.er1
17710   ac_status=$?
17711   grep -v '^ *+' conftest.er1 >conftest.err
17712   rm -f conftest.er1
17713   cat conftest.err >&5
17714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17715   (exit $ac_status); } &&
17716          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17717   { (case "(($ac_try" in
17718   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17719   *) ac_try_echo=$ac_try;;
17720 esac
17721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17722   (eval "$ac_try") 2>&5
17723   ac_status=$?
17724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17725   (exit $ac_status); }; } &&
17726          { ac_try='test -s conftest$ac_exeext'
17727   { (case "(($ac_try" in
17728   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17729   *) ac_try_echo=$ac_try;;
17730 esac
17731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17732   (eval "$ac_try") 2>&5
17733   ac_status=$?
17734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17735   (exit $ac_status); }; }; then
17736   eval "$as_ac_var=yes"
17737 else
17738   echo "$as_me: failed program was:" >&5
17739 sed 's/^/| /' conftest.$ac_ext >&5
17740
17741         eval "$as_ac_var=no"
17742 fi
17743
17744 rm -f core conftest.err conftest.$ac_objext \
17745       conftest$ac_exeext conftest.$ac_ext
17746 fi
17747 ac_res=`eval echo '${'$as_ac_var'}'`
17748                { echo "$as_me:$LINENO: result: $ac_res" >&5
17749 echo "${ECHO_T}$ac_res" >&6; }
17750 if test `eval echo '${'$as_ac_var'}'` = yes; then
17751   cat >>confdefs.h <<_ACEOF
17752 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17753 _ACEOF
17754
17755 fi
17756 done
17757
17758
17759
17760
17761
17762
17763 for ac_func in setjmp longjmp sigsetjmp siglongjmp writev
17764 do
17765 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17766 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17767 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17768 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17769   echo $ECHO_N "(cached) $ECHO_C" >&6
17770 else
17771   cat >conftest.$ac_ext <<_ACEOF
17772 /* confdefs.h.  */
17773 _ACEOF
17774 cat confdefs.h >>conftest.$ac_ext
17775 cat >>conftest.$ac_ext <<_ACEOF
17776 /* end confdefs.h.  */
17777 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17778    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17779 #define $ac_func innocuous_$ac_func
17780
17781 /* System header to define __stub macros and hopefully few prototypes,
17782     which can conflict with char $ac_func (); below.
17783     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17784     <limits.h> exists even on freestanding compilers.  */
17785
17786 #ifdef __STDC__
17787 # include <limits.h>
17788 #else
17789 # include <assert.h>
17790 #endif
17791
17792 #undef $ac_func
17793
17794 /* Override any GCC internal prototype to avoid an error.
17795    Use char because int might match the return type of a GCC
17796    builtin and then its argument prototype would still apply.  */
17797 #ifdef __cplusplus
17798 extern "C"
17799 #endif
17800 char $ac_func ();
17801 /* The GNU C library defines this for functions which it implements
17802     to always fail with ENOSYS.  Some functions are actually named
17803     something starting with __ and the normal name is an alias.  */
17804 #if defined __stub_$ac_func || defined __stub___$ac_func
17805 choke me
17806 #endif
17807
17808 int
17809 main ()
17810 {
17811 return $ac_func ();
17812   ;
17813   return 0;
17814 }
17815 _ACEOF
17816 rm -f conftest.$ac_objext conftest$ac_exeext
17817 if { (ac_try="$ac_link"
17818 case "(($ac_try" in
17819   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17820   *) ac_try_echo=$ac_try;;
17821 esac
17822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17823   (eval "$ac_link") 2>conftest.er1
17824   ac_status=$?
17825   grep -v '^ *+' conftest.er1 >conftest.err
17826   rm -f conftest.er1
17827   cat conftest.err >&5
17828   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17829   (exit $ac_status); } &&
17830          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17831   { (case "(($ac_try" in
17832   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17833   *) ac_try_echo=$ac_try;;
17834 esac
17835 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17836   (eval "$ac_try") 2>&5
17837   ac_status=$?
17838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17839   (exit $ac_status); }; } &&
17840          { ac_try='test -s conftest$ac_exeext'
17841   { (case "(($ac_try" in
17842   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17843   *) ac_try_echo=$ac_try;;
17844 esac
17845 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17846   (eval "$ac_try") 2>&5
17847   ac_status=$?
17848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17849   (exit $ac_status); }; }; then
17850   eval "$as_ac_var=yes"
17851 else
17852   echo "$as_me: failed program was:" >&5
17853 sed 's/^/| /' conftest.$ac_ext >&5
17854
17855         eval "$as_ac_var=no"
17856 fi
17857
17858 rm -f core conftest.err conftest.$ac_objext \
17859       conftest$ac_exeext conftest.$ac_ext
17860 fi
17861 ac_res=`eval echo '${'$as_ac_var'}'`
17862                { echo "$as_me:$LINENO: result: $ac_res" >&5
17863 echo "${ECHO_T}$ac_res" >&6; }
17864 if test `eval echo '${'$as_ac_var'}'` = yes; then
17865   cat >>confdefs.h <<_ACEOF
17866 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17867 _ACEOF
17868
17869 fi
17870 done
17871
17872 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
17873 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
17874 if test "${llvm_cv_c_printf_a+set}" = set; then
17875   echo $ECHO_N "(cached) $ECHO_C" >&6
17876 else
17877   ac_ext=c
17878 ac_cpp='$CPP $CPPFLAGS'
17879 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17880 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17881 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17882
17883  if test "$cross_compiling" = yes; then
17884   llvmac_cv_c_printf_a=no
17885 else
17886   cat >conftest.$ac_ext <<_ACEOF
17887
17888   /* confdefs.h.  */
17889 _ACEOF
17890 cat confdefs.h >>conftest.$ac_ext
17891 cat >>conftest.$ac_ext <<_ACEOF
17892 /* end confdefs.h.  */
17893
17894 #include <stdio.h>
17895 #include <stdlib.h>
17896
17897 int
17898 main ()
17899 {
17900
17901 volatile double A, B;
17902 char Buffer[100];
17903 A = 1;
17904 A /= 10.0;
17905 sprintf(Buffer, "%a", A);
17906 B = atof(Buffer);
17907 if (A != B)
17908   return (1);
17909 if (A != 0x1.999999999999ap-4)
17910   return (1);
17911 return (0);
17912   ;
17913   return 0;
17914 }
17915 _ACEOF
17916 rm -f conftest$ac_exeext
17917 if { (ac_try="$ac_link"
17918 case "(($ac_try" in
17919   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17920   *) ac_try_echo=$ac_try;;
17921 esac
17922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17923   (eval "$ac_link") 2>&5
17924   ac_status=$?
17925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17926   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17927   { (case "(($ac_try" in
17928   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17929   *) ac_try_echo=$ac_try;;
17930 esac
17931 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17932   (eval "$ac_try") 2>&5
17933   ac_status=$?
17934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17935   (exit $ac_status); }; }; then
17936   llvm_cv_c_printf_a=yes
17937 else
17938   echo "$as_me: program exited with status $ac_status" >&5
17939 echo "$as_me: failed program was:" >&5
17940 sed 's/^/| /' conftest.$ac_ext >&5
17941
17942 ( exit $ac_status )
17943 llvmac_cv_c_printf_a=no
17944 fi
17945 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17946 fi
17947
17948
17949  ac_ext=c
17950 ac_cpp='$CPP $CPPFLAGS'
17951 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17952 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17953 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17954
17955 fi
17956 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
17957 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
17958  if test "$llvm_cv_c_printf_a" = "yes"; then
17959
17960 cat >>confdefs.h <<\_ACEOF
17961 #define HAVE_PRINTF_A 1
17962 _ACEOF
17963
17964  fi
17965
17966
17967 { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
17968 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
17969 if test "${ac_cv_func_rand48+set}" = set; then
17970   echo $ECHO_N "(cached) $ECHO_C" >&6
17971 else
17972   ac_ext=cpp
17973 ac_cpp='$CXXCPP $CPPFLAGS'
17974 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17975 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17976 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17977
17978    cat >conftest.$ac_ext <<_ACEOF
17979 /* confdefs.h.  */
17980 _ACEOF
17981 cat confdefs.h >>conftest.$ac_ext
17982 cat >>conftest.$ac_ext <<_ACEOF
17983 /* end confdefs.h.  */
17984 #include <stdlib.h>
17985 int
17986 main ()
17987 {
17988 srand48(0);lrand48();drand48();
17989   ;
17990   return 0;
17991 }
17992 _ACEOF
17993 rm -f conftest.$ac_objext
17994 if { (ac_try="$ac_compile"
17995 case "(($ac_try" in
17996   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17997   *) ac_try_echo=$ac_try;;
17998 esac
17999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18000   (eval "$ac_compile") 2>conftest.er1
18001   ac_status=$?
18002   grep -v '^ *+' conftest.er1 >conftest.err
18003   rm -f conftest.er1
18004   cat conftest.err >&5
18005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18006   (exit $ac_status); } &&
18007          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18008   { (case "(($ac_try" in
18009   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18010   *) ac_try_echo=$ac_try;;
18011 esac
18012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18013   (eval "$ac_try") 2>&5
18014   ac_status=$?
18015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18016   (exit $ac_status); }; } &&
18017          { ac_try='test -s conftest.$ac_objext'
18018   { (case "(($ac_try" in
18019   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18020   *) ac_try_echo=$ac_try;;
18021 esac
18022 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18023   (eval "$ac_try") 2>&5
18024   ac_status=$?
18025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18026   (exit $ac_status); }; }; then
18027   ac_cv_func_rand48=yes
18028 else
18029   echo "$as_me: failed program was:" >&5
18030 sed 's/^/| /' conftest.$ac_ext >&5
18031
18032         ac_cv_func_rand48=no
18033 fi
18034
18035 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18036   ac_ext=c
18037 ac_cpp='$CPP $CPPFLAGS'
18038 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18039 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18040 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18041
18042 fi
18043 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
18044 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
18045
18046 if test "$ac_cv_func_rand48" = "yes" ; then
18047
18048 cat >>confdefs.h <<\_ACEOF
18049 #define HAVE_RAND48 1
18050 _ACEOF
18051
18052 fi
18053
18054
18055 { echo "$as_me:$LINENO: checking whether strerror_s is declared" >&5
18056 echo $ECHO_N "checking whether strerror_s is declared... $ECHO_C" >&6; }
18057 if test "${ac_cv_have_decl_strerror_s+set}" = set; then
18058   echo $ECHO_N "(cached) $ECHO_C" >&6
18059 else
18060   cat >conftest.$ac_ext <<_ACEOF
18061 /* confdefs.h.  */
18062 _ACEOF
18063 cat confdefs.h >>conftest.$ac_ext
18064 cat >>conftest.$ac_ext <<_ACEOF
18065 /* end confdefs.h.  */
18066 $ac_includes_default
18067 int
18068 main ()
18069 {
18070 #ifndef strerror_s
18071   char *p = (char *) strerror_s;
18072   return !p;
18073 #endif
18074
18075   ;
18076   return 0;
18077 }
18078 _ACEOF
18079 rm -f conftest.$ac_objext
18080 if { (ac_try="$ac_compile"
18081 case "(($ac_try" in
18082   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18083   *) ac_try_echo=$ac_try;;
18084 esac
18085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18086   (eval "$ac_compile") 2>conftest.er1
18087   ac_status=$?
18088   grep -v '^ *+' conftest.er1 >conftest.err
18089   rm -f conftest.er1
18090   cat conftest.err >&5
18091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18092   (exit $ac_status); } &&
18093          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18094   { (case "(($ac_try" in
18095   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18096   *) ac_try_echo=$ac_try;;
18097 esac
18098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18099   (eval "$ac_try") 2>&5
18100   ac_status=$?
18101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18102   (exit $ac_status); }; } &&
18103          { ac_try='test -s conftest.$ac_objext'
18104   { (case "(($ac_try" in
18105   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18106   *) ac_try_echo=$ac_try;;
18107 esac
18108 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18109   (eval "$ac_try") 2>&5
18110   ac_status=$?
18111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18112   (exit $ac_status); }; }; then
18113   ac_cv_have_decl_strerror_s=yes
18114 else
18115   echo "$as_me: failed program was:" >&5
18116 sed 's/^/| /' conftest.$ac_ext >&5
18117
18118         ac_cv_have_decl_strerror_s=no
18119 fi
18120
18121 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18122 fi
18123 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_s" >&5
18124 echo "${ECHO_T}$ac_cv_have_decl_strerror_s" >&6; }
18125 if test $ac_cv_have_decl_strerror_s = yes; then
18126
18127 cat >>confdefs.h <<_ACEOF
18128 #define HAVE_DECL_STRERROR_S 1
18129 _ACEOF
18130
18131
18132 else
18133   cat >>confdefs.h <<_ACEOF
18134 #define HAVE_DECL_STRERROR_S 0
18135 _ACEOF
18136
18137
18138 fi
18139
18140
18141
18142 if test "$llvm_cv_os_type" = "MingW" ; then
18143   { echo "$as_me:$LINENO: checking for _alloca in -lgcc" >&5
18144 echo $ECHO_N "checking for _alloca in -lgcc... $ECHO_C" >&6; }
18145 if test "${ac_cv_lib_gcc__alloca+set}" = set; then
18146   echo $ECHO_N "(cached) $ECHO_C" >&6
18147 else
18148   ac_check_lib_save_LIBS=$LIBS
18149 LIBS="-lgcc  $LIBS"
18150 cat >conftest.$ac_ext <<_ACEOF
18151 /* confdefs.h.  */
18152 _ACEOF
18153 cat confdefs.h >>conftest.$ac_ext
18154 cat >>conftest.$ac_ext <<_ACEOF
18155 /* end confdefs.h.  */
18156
18157 /* Override any GCC internal prototype to avoid an error.
18158    Use char because int might match the return type of a GCC
18159    builtin and then its argument prototype would still apply.  */
18160 #ifdef __cplusplus
18161 extern "C"
18162 #endif
18163 char _alloca ();
18164 int
18165 main ()
18166 {
18167 return _alloca ();
18168   ;
18169   return 0;
18170 }
18171 _ACEOF
18172 rm -f conftest.$ac_objext conftest$ac_exeext
18173 if { (ac_try="$ac_link"
18174 case "(($ac_try" in
18175   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18176   *) ac_try_echo=$ac_try;;
18177 esac
18178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18179   (eval "$ac_link") 2>conftest.er1
18180   ac_status=$?
18181   grep -v '^ *+' conftest.er1 >conftest.err
18182   rm -f conftest.er1
18183   cat conftest.err >&5
18184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18185   (exit $ac_status); } &&
18186          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18187   { (case "(($ac_try" in
18188   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18189   *) ac_try_echo=$ac_try;;
18190 esac
18191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18192   (eval "$ac_try") 2>&5
18193   ac_status=$?
18194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18195   (exit $ac_status); }; } &&
18196          { ac_try='test -s conftest$ac_exeext'
18197   { (case "(($ac_try" in
18198   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18199   *) ac_try_echo=$ac_try;;
18200 esac
18201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18202   (eval "$ac_try") 2>&5
18203   ac_status=$?
18204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18205   (exit $ac_status); }; }; then
18206   ac_cv_lib_gcc__alloca=yes
18207 else
18208   echo "$as_me: failed program was:" >&5
18209 sed 's/^/| /' conftest.$ac_ext >&5
18210
18211         ac_cv_lib_gcc__alloca=no
18212 fi
18213
18214 rm -f core conftest.err conftest.$ac_objext \
18215       conftest$ac_exeext conftest.$ac_ext
18216 LIBS=$ac_check_lib_save_LIBS
18217 fi
18218 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc__alloca" >&5
18219 echo "${ECHO_T}$ac_cv_lib_gcc__alloca" >&6; }
18220 if test $ac_cv_lib_gcc__alloca = yes; then
18221
18222 cat >>confdefs.h <<\_ACEOF
18223 #define HAVE__ALLOCA 1
18224 _ACEOF
18225
18226 fi
18227
18228   { echo "$as_me:$LINENO: checking for __alloca in -lgcc" >&5
18229 echo $ECHO_N "checking for __alloca in -lgcc... $ECHO_C" >&6; }
18230 if test "${ac_cv_lib_gcc___alloca+set}" = set; then
18231   echo $ECHO_N "(cached) $ECHO_C" >&6
18232 else
18233   ac_check_lib_save_LIBS=$LIBS
18234 LIBS="-lgcc  $LIBS"
18235 cat >conftest.$ac_ext <<_ACEOF
18236 /* confdefs.h.  */
18237 _ACEOF
18238 cat confdefs.h >>conftest.$ac_ext
18239 cat >>conftest.$ac_ext <<_ACEOF
18240 /* end confdefs.h.  */
18241
18242 /* Override any GCC internal prototype to avoid an error.
18243    Use char because int might match the return type of a GCC
18244    builtin and then its argument prototype would still apply.  */
18245 #ifdef __cplusplus
18246 extern "C"
18247 #endif
18248 char __alloca ();
18249 int
18250 main ()
18251 {
18252 return __alloca ();
18253   ;
18254   return 0;
18255 }
18256 _ACEOF
18257 rm -f conftest.$ac_objext conftest$ac_exeext
18258 if { (ac_try="$ac_link"
18259 case "(($ac_try" in
18260   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18261   *) ac_try_echo=$ac_try;;
18262 esac
18263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18264   (eval "$ac_link") 2>conftest.er1
18265   ac_status=$?
18266   grep -v '^ *+' conftest.er1 >conftest.err
18267   rm -f conftest.er1
18268   cat conftest.err >&5
18269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18270   (exit $ac_status); } &&
18271          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18272   { (case "(($ac_try" in
18273   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18274   *) ac_try_echo=$ac_try;;
18275 esac
18276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18277   (eval "$ac_try") 2>&5
18278   ac_status=$?
18279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18280   (exit $ac_status); }; } &&
18281          { ac_try='test -s conftest$ac_exeext'
18282   { (case "(($ac_try" in
18283   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18284   *) ac_try_echo=$ac_try;;
18285 esac
18286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18287   (eval "$ac_try") 2>&5
18288   ac_status=$?
18289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18290   (exit $ac_status); }; }; then
18291   ac_cv_lib_gcc___alloca=yes
18292 else
18293   echo "$as_me: failed program was:" >&5
18294 sed 's/^/| /' conftest.$ac_ext >&5
18295
18296         ac_cv_lib_gcc___alloca=no
18297 fi
18298
18299 rm -f core conftest.err conftest.$ac_objext \
18300       conftest$ac_exeext conftest.$ac_ext
18301 LIBS=$ac_check_lib_save_LIBS
18302 fi
18303 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___alloca" >&5
18304 echo "${ECHO_T}$ac_cv_lib_gcc___alloca" >&6; }
18305 if test $ac_cv_lib_gcc___alloca = yes; then
18306
18307 cat >>confdefs.h <<\_ACEOF
18308 #define HAVE___ALLOCA 1
18309 _ACEOF
18310
18311 fi
18312
18313   { echo "$as_me:$LINENO: checking for __chkstk in -lgcc" >&5
18314 echo $ECHO_N "checking for __chkstk in -lgcc... $ECHO_C" >&6; }
18315 if test "${ac_cv_lib_gcc___chkstk+set}" = set; then
18316   echo $ECHO_N "(cached) $ECHO_C" >&6
18317 else
18318   ac_check_lib_save_LIBS=$LIBS
18319 LIBS="-lgcc  $LIBS"
18320 cat >conftest.$ac_ext <<_ACEOF
18321 /* confdefs.h.  */
18322 _ACEOF
18323 cat confdefs.h >>conftest.$ac_ext
18324 cat >>conftest.$ac_ext <<_ACEOF
18325 /* end confdefs.h.  */
18326
18327 /* Override any GCC internal prototype to avoid an error.
18328    Use char because int might match the return type of a GCC
18329    builtin and then its argument prototype would still apply.  */
18330 #ifdef __cplusplus
18331 extern "C"
18332 #endif
18333 char __chkstk ();
18334 int
18335 main ()
18336 {
18337 return __chkstk ();
18338   ;
18339   return 0;
18340 }
18341 _ACEOF
18342 rm -f conftest.$ac_objext conftest$ac_exeext
18343 if { (ac_try="$ac_link"
18344 case "(($ac_try" in
18345   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18346   *) ac_try_echo=$ac_try;;
18347 esac
18348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18349   (eval "$ac_link") 2>conftest.er1
18350   ac_status=$?
18351   grep -v '^ *+' conftest.er1 >conftest.err
18352   rm -f conftest.er1
18353   cat conftest.err >&5
18354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18355   (exit $ac_status); } &&
18356          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18357   { (case "(($ac_try" in
18358   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18359   *) ac_try_echo=$ac_try;;
18360 esac
18361 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18362   (eval "$ac_try") 2>&5
18363   ac_status=$?
18364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18365   (exit $ac_status); }; } &&
18366          { ac_try='test -s conftest$ac_exeext'
18367   { (case "(($ac_try" in
18368   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18369   *) ac_try_echo=$ac_try;;
18370 esac
18371 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18372   (eval "$ac_try") 2>&5
18373   ac_status=$?
18374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18375   (exit $ac_status); }; }; then
18376   ac_cv_lib_gcc___chkstk=yes
18377 else
18378   echo "$as_me: failed program was:" >&5
18379 sed 's/^/| /' conftest.$ac_ext >&5
18380
18381         ac_cv_lib_gcc___chkstk=no
18382 fi
18383
18384 rm -f core conftest.err conftest.$ac_objext \
18385       conftest$ac_exeext conftest.$ac_ext
18386 LIBS=$ac_check_lib_save_LIBS
18387 fi
18388 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___chkstk" >&5
18389 echo "${ECHO_T}$ac_cv_lib_gcc___chkstk" >&6; }
18390 if test $ac_cv_lib_gcc___chkstk = yes; then
18391
18392 cat >>confdefs.h <<\_ACEOF
18393 #define HAVE___CHKSTK 1
18394 _ACEOF
18395
18396 fi
18397
18398   { echo "$as_me:$LINENO: checking for ___chkstk in -lgcc" >&5
18399 echo $ECHO_N "checking for ___chkstk in -lgcc... $ECHO_C" >&6; }
18400 if test "${ac_cv_lib_gcc____chkstk+set}" = set; then
18401   echo $ECHO_N "(cached) $ECHO_C" >&6
18402 else
18403   ac_check_lib_save_LIBS=$LIBS
18404 LIBS="-lgcc  $LIBS"
18405 cat >conftest.$ac_ext <<_ACEOF
18406 /* confdefs.h.  */
18407 _ACEOF
18408 cat confdefs.h >>conftest.$ac_ext
18409 cat >>conftest.$ac_ext <<_ACEOF
18410 /* end confdefs.h.  */
18411
18412 /* Override any GCC internal prototype to avoid an error.
18413    Use char because int might match the return type of a GCC
18414    builtin and then its argument prototype would still apply.  */
18415 #ifdef __cplusplus
18416 extern "C"
18417 #endif
18418 char ___chkstk ();
18419 int
18420 main ()
18421 {
18422 return ___chkstk ();
18423   ;
18424   return 0;
18425 }
18426 _ACEOF
18427 rm -f conftest.$ac_objext conftest$ac_exeext
18428 if { (ac_try="$ac_link"
18429 case "(($ac_try" in
18430   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18431   *) ac_try_echo=$ac_try;;
18432 esac
18433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18434   (eval "$ac_link") 2>conftest.er1
18435   ac_status=$?
18436   grep -v '^ *+' conftest.er1 >conftest.err
18437   rm -f conftest.er1
18438   cat conftest.err >&5
18439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18440   (exit $ac_status); } &&
18441          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18442   { (case "(($ac_try" in
18443   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18444   *) ac_try_echo=$ac_try;;
18445 esac
18446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18447   (eval "$ac_try") 2>&5
18448   ac_status=$?
18449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18450   (exit $ac_status); }; } &&
18451          { ac_try='test -s conftest$ac_exeext'
18452   { (case "(($ac_try" in
18453   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18454   *) ac_try_echo=$ac_try;;
18455 esac
18456 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18457   (eval "$ac_try") 2>&5
18458   ac_status=$?
18459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18460   (exit $ac_status); }; }; then
18461   ac_cv_lib_gcc____chkstk=yes
18462 else
18463   echo "$as_me: failed program was:" >&5
18464 sed 's/^/| /' conftest.$ac_ext >&5
18465
18466         ac_cv_lib_gcc____chkstk=no
18467 fi
18468
18469 rm -f core conftest.err conftest.$ac_objext \
18470       conftest$ac_exeext conftest.$ac_ext
18471 LIBS=$ac_check_lib_save_LIBS
18472 fi
18473 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc____chkstk" >&5
18474 echo "${ECHO_T}$ac_cv_lib_gcc____chkstk" >&6; }
18475 if test $ac_cv_lib_gcc____chkstk = yes; then
18476
18477 cat >>confdefs.h <<\_ACEOF
18478 #define HAVE____CHKSTK 1
18479 _ACEOF
18480
18481 fi
18482
18483
18484   { echo "$as_me:$LINENO: checking for __ashldi3 in -lgcc" >&5
18485 echo $ECHO_N "checking for __ashldi3 in -lgcc... $ECHO_C" >&6; }
18486 if test "${ac_cv_lib_gcc___ashldi3+set}" = set; then
18487   echo $ECHO_N "(cached) $ECHO_C" >&6
18488 else
18489   ac_check_lib_save_LIBS=$LIBS
18490 LIBS="-lgcc  $LIBS"
18491 cat >conftest.$ac_ext <<_ACEOF
18492 /* confdefs.h.  */
18493 _ACEOF
18494 cat confdefs.h >>conftest.$ac_ext
18495 cat >>conftest.$ac_ext <<_ACEOF
18496 /* end confdefs.h.  */
18497
18498 /* Override any GCC internal prototype to avoid an error.
18499    Use char because int might match the return type of a GCC
18500    builtin and then its argument prototype would still apply.  */
18501 #ifdef __cplusplus
18502 extern "C"
18503 #endif
18504 char __ashldi3 ();
18505 int
18506 main ()
18507 {
18508 return __ashldi3 ();
18509   ;
18510   return 0;
18511 }
18512 _ACEOF
18513 rm -f conftest.$ac_objext conftest$ac_exeext
18514 if { (ac_try="$ac_link"
18515 case "(($ac_try" in
18516   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18517   *) ac_try_echo=$ac_try;;
18518 esac
18519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18520   (eval "$ac_link") 2>conftest.er1
18521   ac_status=$?
18522   grep -v '^ *+' conftest.er1 >conftest.err
18523   rm -f conftest.er1
18524   cat conftest.err >&5
18525   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18526   (exit $ac_status); } &&
18527          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18528   { (case "(($ac_try" in
18529   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18530   *) ac_try_echo=$ac_try;;
18531 esac
18532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18533   (eval "$ac_try") 2>&5
18534   ac_status=$?
18535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18536   (exit $ac_status); }; } &&
18537          { ac_try='test -s conftest$ac_exeext'
18538   { (case "(($ac_try" in
18539   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18540   *) ac_try_echo=$ac_try;;
18541 esac
18542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18543   (eval "$ac_try") 2>&5
18544   ac_status=$?
18545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18546   (exit $ac_status); }; }; then
18547   ac_cv_lib_gcc___ashldi3=yes
18548 else
18549   echo "$as_me: failed program was:" >&5
18550 sed 's/^/| /' conftest.$ac_ext >&5
18551
18552         ac_cv_lib_gcc___ashldi3=no
18553 fi
18554
18555 rm -f core conftest.err conftest.$ac_objext \
18556       conftest$ac_exeext conftest.$ac_ext
18557 LIBS=$ac_check_lib_save_LIBS
18558 fi
18559 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashldi3" >&5
18560 echo "${ECHO_T}$ac_cv_lib_gcc___ashldi3" >&6; }
18561 if test $ac_cv_lib_gcc___ashldi3 = yes; then
18562
18563 cat >>confdefs.h <<\_ACEOF
18564 #define HAVE___ASHLDI3 1
18565 _ACEOF
18566
18567 fi
18568
18569   { echo "$as_me:$LINENO: checking for __ashrdi3 in -lgcc" >&5
18570 echo $ECHO_N "checking for __ashrdi3 in -lgcc... $ECHO_C" >&6; }
18571 if test "${ac_cv_lib_gcc___ashrdi3+set}" = set; then
18572   echo $ECHO_N "(cached) $ECHO_C" >&6
18573 else
18574   ac_check_lib_save_LIBS=$LIBS
18575 LIBS="-lgcc  $LIBS"
18576 cat >conftest.$ac_ext <<_ACEOF
18577 /* confdefs.h.  */
18578 _ACEOF
18579 cat confdefs.h >>conftest.$ac_ext
18580 cat >>conftest.$ac_ext <<_ACEOF
18581 /* end confdefs.h.  */
18582
18583 /* Override any GCC internal prototype to avoid an error.
18584    Use char because int might match the return type of a GCC
18585    builtin and then its argument prototype would still apply.  */
18586 #ifdef __cplusplus
18587 extern "C"
18588 #endif
18589 char __ashrdi3 ();
18590 int
18591 main ()
18592 {
18593 return __ashrdi3 ();
18594   ;
18595   return 0;
18596 }
18597 _ACEOF
18598 rm -f conftest.$ac_objext conftest$ac_exeext
18599 if { (ac_try="$ac_link"
18600 case "(($ac_try" in
18601   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18602   *) ac_try_echo=$ac_try;;
18603 esac
18604 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18605   (eval "$ac_link") 2>conftest.er1
18606   ac_status=$?
18607   grep -v '^ *+' conftest.er1 >conftest.err
18608   rm -f conftest.er1
18609   cat conftest.err >&5
18610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18611   (exit $ac_status); } &&
18612          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18613   { (case "(($ac_try" in
18614   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18615   *) ac_try_echo=$ac_try;;
18616 esac
18617 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18618   (eval "$ac_try") 2>&5
18619   ac_status=$?
18620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18621   (exit $ac_status); }; } &&
18622          { ac_try='test -s conftest$ac_exeext'
18623   { (case "(($ac_try" in
18624   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18625   *) ac_try_echo=$ac_try;;
18626 esac
18627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18628   (eval "$ac_try") 2>&5
18629   ac_status=$?
18630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18631   (exit $ac_status); }; }; then
18632   ac_cv_lib_gcc___ashrdi3=yes
18633 else
18634   echo "$as_me: failed program was:" >&5
18635 sed 's/^/| /' conftest.$ac_ext >&5
18636
18637         ac_cv_lib_gcc___ashrdi3=no
18638 fi
18639
18640 rm -f core conftest.err conftest.$ac_objext \
18641       conftest$ac_exeext conftest.$ac_ext
18642 LIBS=$ac_check_lib_save_LIBS
18643 fi
18644 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashrdi3" >&5
18645 echo "${ECHO_T}$ac_cv_lib_gcc___ashrdi3" >&6; }
18646 if test $ac_cv_lib_gcc___ashrdi3 = yes; then
18647
18648 cat >>confdefs.h <<\_ACEOF
18649 #define HAVE___ASHRDI3 1
18650 _ACEOF
18651
18652 fi
18653
18654   { echo "$as_me:$LINENO: checking for __divdi3 in -lgcc" >&5
18655 echo $ECHO_N "checking for __divdi3 in -lgcc... $ECHO_C" >&6; }
18656 if test "${ac_cv_lib_gcc___divdi3+set}" = set; then
18657   echo $ECHO_N "(cached) $ECHO_C" >&6
18658 else
18659   ac_check_lib_save_LIBS=$LIBS
18660 LIBS="-lgcc  $LIBS"
18661 cat >conftest.$ac_ext <<_ACEOF
18662 /* confdefs.h.  */
18663 _ACEOF
18664 cat confdefs.h >>conftest.$ac_ext
18665 cat >>conftest.$ac_ext <<_ACEOF
18666 /* end confdefs.h.  */
18667
18668 /* Override any GCC internal prototype to avoid an error.
18669    Use char because int might match the return type of a GCC
18670    builtin and then its argument prototype would still apply.  */
18671 #ifdef __cplusplus
18672 extern "C"
18673 #endif
18674 char __divdi3 ();
18675 int
18676 main ()
18677 {
18678 return __divdi3 ();
18679   ;
18680   return 0;
18681 }
18682 _ACEOF
18683 rm -f conftest.$ac_objext conftest$ac_exeext
18684 if { (ac_try="$ac_link"
18685 case "(($ac_try" in
18686   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18687   *) ac_try_echo=$ac_try;;
18688 esac
18689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18690   (eval "$ac_link") 2>conftest.er1
18691   ac_status=$?
18692   grep -v '^ *+' conftest.er1 >conftest.err
18693   rm -f conftest.er1
18694   cat conftest.err >&5
18695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18696   (exit $ac_status); } &&
18697          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18698   { (case "(($ac_try" in
18699   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18700   *) ac_try_echo=$ac_try;;
18701 esac
18702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18703   (eval "$ac_try") 2>&5
18704   ac_status=$?
18705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18706   (exit $ac_status); }; } &&
18707          { ac_try='test -s conftest$ac_exeext'
18708   { (case "(($ac_try" in
18709   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18710   *) ac_try_echo=$ac_try;;
18711 esac
18712 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18713   (eval "$ac_try") 2>&5
18714   ac_status=$?
18715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18716   (exit $ac_status); }; }; then
18717   ac_cv_lib_gcc___divdi3=yes
18718 else
18719   echo "$as_me: failed program was:" >&5
18720 sed 's/^/| /' conftest.$ac_ext >&5
18721
18722         ac_cv_lib_gcc___divdi3=no
18723 fi
18724
18725 rm -f core conftest.err conftest.$ac_objext \
18726       conftest$ac_exeext conftest.$ac_ext
18727 LIBS=$ac_check_lib_save_LIBS
18728 fi
18729 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___divdi3" >&5
18730 echo "${ECHO_T}$ac_cv_lib_gcc___divdi3" >&6; }
18731 if test $ac_cv_lib_gcc___divdi3 = yes; then
18732
18733 cat >>confdefs.h <<\_ACEOF
18734 #define HAVE___DIVDI3 1
18735 _ACEOF
18736
18737 fi
18738
18739   { echo "$as_me:$LINENO: checking for __fixdfdi in -lgcc" >&5
18740 echo $ECHO_N "checking for __fixdfdi in -lgcc... $ECHO_C" >&6; }
18741 if test "${ac_cv_lib_gcc___fixdfdi+set}" = set; then
18742   echo $ECHO_N "(cached) $ECHO_C" >&6
18743 else
18744   ac_check_lib_save_LIBS=$LIBS
18745 LIBS="-lgcc  $LIBS"
18746 cat >conftest.$ac_ext <<_ACEOF
18747 /* confdefs.h.  */
18748 _ACEOF
18749 cat confdefs.h >>conftest.$ac_ext
18750 cat >>conftest.$ac_ext <<_ACEOF
18751 /* end confdefs.h.  */
18752
18753 /* Override any GCC internal prototype to avoid an error.
18754    Use char because int might match the return type of a GCC
18755    builtin and then its argument prototype would still apply.  */
18756 #ifdef __cplusplus
18757 extern "C"
18758 #endif
18759 char __fixdfdi ();
18760 int
18761 main ()
18762 {
18763 return __fixdfdi ();
18764   ;
18765   return 0;
18766 }
18767 _ACEOF
18768 rm -f conftest.$ac_objext conftest$ac_exeext
18769 if { (ac_try="$ac_link"
18770 case "(($ac_try" in
18771   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18772   *) ac_try_echo=$ac_try;;
18773 esac
18774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18775   (eval "$ac_link") 2>conftest.er1
18776   ac_status=$?
18777   grep -v '^ *+' conftest.er1 >conftest.err
18778   rm -f conftest.er1
18779   cat conftest.err >&5
18780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18781   (exit $ac_status); } &&
18782          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18783   { (case "(($ac_try" in
18784   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18785   *) ac_try_echo=$ac_try;;
18786 esac
18787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18788   (eval "$ac_try") 2>&5
18789   ac_status=$?
18790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18791   (exit $ac_status); }; } &&
18792          { ac_try='test -s conftest$ac_exeext'
18793   { (case "(($ac_try" in
18794   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18795   *) ac_try_echo=$ac_try;;
18796 esac
18797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18798   (eval "$ac_try") 2>&5
18799   ac_status=$?
18800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18801   (exit $ac_status); }; }; then
18802   ac_cv_lib_gcc___fixdfdi=yes
18803 else
18804   echo "$as_me: failed program was:" >&5
18805 sed 's/^/| /' conftest.$ac_ext >&5
18806
18807         ac_cv_lib_gcc___fixdfdi=no
18808 fi
18809
18810 rm -f core conftest.err conftest.$ac_objext \
18811       conftest$ac_exeext conftest.$ac_ext
18812 LIBS=$ac_check_lib_save_LIBS
18813 fi
18814 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixdfdi" >&5
18815 echo "${ECHO_T}$ac_cv_lib_gcc___fixdfdi" >&6; }
18816 if test $ac_cv_lib_gcc___fixdfdi = yes; then
18817
18818 cat >>confdefs.h <<\_ACEOF
18819 #define HAVE___FIXDFDI 1
18820 _ACEOF
18821
18822 fi
18823
18824   { echo "$as_me:$LINENO: checking for __fixsfdi in -lgcc" >&5
18825 echo $ECHO_N "checking for __fixsfdi in -lgcc... $ECHO_C" >&6; }
18826 if test "${ac_cv_lib_gcc___fixsfdi+set}" = set; then
18827   echo $ECHO_N "(cached) $ECHO_C" >&6
18828 else
18829   ac_check_lib_save_LIBS=$LIBS
18830 LIBS="-lgcc  $LIBS"
18831 cat >conftest.$ac_ext <<_ACEOF
18832 /* confdefs.h.  */
18833 _ACEOF
18834 cat confdefs.h >>conftest.$ac_ext
18835 cat >>conftest.$ac_ext <<_ACEOF
18836 /* end confdefs.h.  */
18837
18838 /* Override any GCC internal prototype to avoid an error.
18839    Use char because int might match the return type of a GCC
18840    builtin and then its argument prototype would still apply.  */
18841 #ifdef __cplusplus
18842 extern "C"
18843 #endif
18844 char __fixsfdi ();
18845 int
18846 main ()
18847 {
18848 return __fixsfdi ();
18849   ;
18850   return 0;
18851 }
18852 _ACEOF
18853 rm -f conftest.$ac_objext conftest$ac_exeext
18854 if { (ac_try="$ac_link"
18855 case "(($ac_try" in
18856   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18857   *) ac_try_echo=$ac_try;;
18858 esac
18859 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18860   (eval "$ac_link") 2>conftest.er1
18861   ac_status=$?
18862   grep -v '^ *+' conftest.er1 >conftest.err
18863   rm -f conftest.er1
18864   cat conftest.err >&5
18865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18866   (exit $ac_status); } &&
18867          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18868   { (case "(($ac_try" in
18869   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18870   *) ac_try_echo=$ac_try;;
18871 esac
18872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18873   (eval "$ac_try") 2>&5
18874   ac_status=$?
18875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18876   (exit $ac_status); }; } &&
18877          { ac_try='test -s conftest$ac_exeext'
18878   { (case "(($ac_try" in
18879   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18880   *) ac_try_echo=$ac_try;;
18881 esac
18882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18883   (eval "$ac_try") 2>&5
18884   ac_status=$?
18885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18886   (exit $ac_status); }; }; then
18887   ac_cv_lib_gcc___fixsfdi=yes
18888 else
18889   echo "$as_me: failed program was:" >&5
18890 sed 's/^/| /' conftest.$ac_ext >&5
18891
18892         ac_cv_lib_gcc___fixsfdi=no
18893 fi
18894
18895 rm -f core conftest.err conftest.$ac_objext \
18896       conftest$ac_exeext conftest.$ac_ext
18897 LIBS=$ac_check_lib_save_LIBS
18898 fi
18899 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixsfdi" >&5
18900 echo "${ECHO_T}$ac_cv_lib_gcc___fixsfdi" >&6; }
18901 if test $ac_cv_lib_gcc___fixsfdi = yes; then
18902
18903 cat >>confdefs.h <<\_ACEOF
18904 #define HAVE___FIXSFDI 1
18905 _ACEOF
18906
18907 fi
18908
18909   { echo "$as_me:$LINENO: checking for __floatdidf in -lgcc" >&5
18910 echo $ECHO_N "checking for __floatdidf in -lgcc... $ECHO_C" >&6; }
18911 if test "${ac_cv_lib_gcc___floatdidf+set}" = set; then
18912   echo $ECHO_N "(cached) $ECHO_C" >&6
18913 else
18914   ac_check_lib_save_LIBS=$LIBS
18915 LIBS="-lgcc  $LIBS"
18916 cat >conftest.$ac_ext <<_ACEOF
18917 /* confdefs.h.  */
18918 _ACEOF
18919 cat confdefs.h >>conftest.$ac_ext
18920 cat >>conftest.$ac_ext <<_ACEOF
18921 /* end confdefs.h.  */
18922
18923 /* Override any GCC internal prototype to avoid an error.
18924    Use char because int might match the return type of a GCC
18925    builtin and then its argument prototype would still apply.  */
18926 #ifdef __cplusplus
18927 extern "C"
18928 #endif
18929 char __floatdidf ();
18930 int
18931 main ()
18932 {
18933 return __floatdidf ();
18934   ;
18935   return 0;
18936 }
18937 _ACEOF
18938 rm -f conftest.$ac_objext conftest$ac_exeext
18939 if { (ac_try="$ac_link"
18940 case "(($ac_try" in
18941   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18942   *) ac_try_echo=$ac_try;;
18943 esac
18944 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18945   (eval "$ac_link") 2>conftest.er1
18946   ac_status=$?
18947   grep -v '^ *+' conftest.er1 >conftest.err
18948   rm -f conftest.er1
18949   cat conftest.err >&5
18950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18951   (exit $ac_status); } &&
18952          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18953   { (case "(($ac_try" in
18954   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18955   *) ac_try_echo=$ac_try;;
18956 esac
18957 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18958   (eval "$ac_try") 2>&5
18959   ac_status=$?
18960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18961   (exit $ac_status); }; } &&
18962          { ac_try='test -s conftest$ac_exeext'
18963   { (case "(($ac_try" in
18964   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18965   *) ac_try_echo=$ac_try;;
18966 esac
18967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18968   (eval "$ac_try") 2>&5
18969   ac_status=$?
18970   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18971   (exit $ac_status); }; }; then
18972   ac_cv_lib_gcc___floatdidf=yes
18973 else
18974   echo "$as_me: failed program was:" >&5
18975 sed 's/^/| /' conftest.$ac_ext >&5
18976
18977         ac_cv_lib_gcc___floatdidf=no
18978 fi
18979
18980 rm -f core conftest.err conftest.$ac_objext \
18981       conftest$ac_exeext conftest.$ac_ext
18982 LIBS=$ac_check_lib_save_LIBS
18983 fi
18984 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___floatdidf" >&5
18985 echo "${ECHO_T}$ac_cv_lib_gcc___floatdidf" >&6; }
18986 if test $ac_cv_lib_gcc___floatdidf = yes; then
18987
18988 cat >>confdefs.h <<\_ACEOF
18989 #define HAVE___FLOATDIDF 1
18990 _ACEOF
18991
18992 fi
18993
18994   { echo "$as_me:$LINENO: checking for __lshrdi3 in -lgcc" >&5
18995 echo $ECHO_N "checking for __lshrdi3 in -lgcc... $ECHO_C" >&6; }
18996 if test "${ac_cv_lib_gcc___lshrdi3+set}" = set; then
18997   echo $ECHO_N "(cached) $ECHO_C" >&6
18998 else
18999   ac_check_lib_save_LIBS=$LIBS
19000 LIBS="-lgcc  $LIBS"
19001 cat >conftest.$ac_ext <<_ACEOF
19002 /* confdefs.h.  */
19003 _ACEOF
19004 cat confdefs.h >>conftest.$ac_ext
19005 cat >>conftest.$ac_ext <<_ACEOF
19006 /* end confdefs.h.  */
19007
19008 /* Override any GCC internal prototype to avoid an error.
19009    Use char because int might match the return type of a GCC
19010    builtin and then its argument prototype would still apply.  */
19011 #ifdef __cplusplus
19012 extern "C"
19013 #endif
19014 char __lshrdi3 ();
19015 int
19016 main ()
19017 {
19018 return __lshrdi3 ();
19019   ;
19020   return 0;
19021 }
19022 _ACEOF
19023 rm -f conftest.$ac_objext conftest$ac_exeext
19024 if { (ac_try="$ac_link"
19025 case "(($ac_try" in
19026   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19027   *) ac_try_echo=$ac_try;;
19028 esac
19029 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19030   (eval "$ac_link") 2>conftest.er1
19031   ac_status=$?
19032   grep -v '^ *+' conftest.er1 >conftest.err
19033   rm -f conftest.er1
19034   cat conftest.err >&5
19035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19036   (exit $ac_status); } &&
19037          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19038   { (case "(($ac_try" in
19039   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19040   *) ac_try_echo=$ac_try;;
19041 esac
19042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19043   (eval "$ac_try") 2>&5
19044   ac_status=$?
19045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19046   (exit $ac_status); }; } &&
19047          { ac_try='test -s conftest$ac_exeext'
19048   { (case "(($ac_try" in
19049   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19050   *) ac_try_echo=$ac_try;;
19051 esac
19052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19053   (eval "$ac_try") 2>&5
19054   ac_status=$?
19055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19056   (exit $ac_status); }; }; then
19057   ac_cv_lib_gcc___lshrdi3=yes
19058 else
19059   echo "$as_me: failed program was:" >&5
19060 sed 's/^/| /' conftest.$ac_ext >&5
19061
19062         ac_cv_lib_gcc___lshrdi3=no
19063 fi
19064
19065 rm -f core conftest.err conftest.$ac_objext \
19066       conftest$ac_exeext conftest.$ac_ext
19067 LIBS=$ac_check_lib_save_LIBS
19068 fi
19069 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___lshrdi3" >&5
19070 echo "${ECHO_T}$ac_cv_lib_gcc___lshrdi3" >&6; }
19071 if test $ac_cv_lib_gcc___lshrdi3 = yes; then
19072
19073 cat >>confdefs.h <<\_ACEOF
19074 #define HAVE___LSHRDI3 1
19075 _ACEOF
19076
19077 fi
19078
19079   { echo "$as_me:$LINENO: checking for __moddi3 in -lgcc" >&5
19080 echo $ECHO_N "checking for __moddi3 in -lgcc... $ECHO_C" >&6; }
19081 if test "${ac_cv_lib_gcc___moddi3+set}" = set; then
19082   echo $ECHO_N "(cached) $ECHO_C" >&6
19083 else
19084   ac_check_lib_save_LIBS=$LIBS
19085 LIBS="-lgcc  $LIBS"
19086 cat >conftest.$ac_ext <<_ACEOF
19087 /* confdefs.h.  */
19088 _ACEOF
19089 cat confdefs.h >>conftest.$ac_ext
19090 cat >>conftest.$ac_ext <<_ACEOF
19091 /* end confdefs.h.  */
19092
19093 /* Override any GCC internal prototype to avoid an error.
19094    Use char because int might match the return type of a GCC
19095    builtin and then its argument prototype would still apply.  */
19096 #ifdef __cplusplus
19097 extern "C"
19098 #endif
19099 char __moddi3 ();
19100 int
19101 main ()
19102 {
19103 return __moddi3 ();
19104   ;
19105   return 0;
19106 }
19107 _ACEOF
19108 rm -f conftest.$ac_objext conftest$ac_exeext
19109 if { (ac_try="$ac_link"
19110 case "(($ac_try" in
19111   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19112   *) ac_try_echo=$ac_try;;
19113 esac
19114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19115   (eval "$ac_link") 2>conftest.er1
19116   ac_status=$?
19117   grep -v '^ *+' conftest.er1 >conftest.err
19118   rm -f conftest.er1
19119   cat conftest.err >&5
19120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19121   (exit $ac_status); } &&
19122          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19123   { (case "(($ac_try" in
19124   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19125   *) ac_try_echo=$ac_try;;
19126 esac
19127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19128   (eval "$ac_try") 2>&5
19129   ac_status=$?
19130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19131   (exit $ac_status); }; } &&
19132          { ac_try='test -s conftest$ac_exeext'
19133   { (case "(($ac_try" in
19134   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19135   *) ac_try_echo=$ac_try;;
19136 esac
19137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19138   (eval "$ac_try") 2>&5
19139   ac_status=$?
19140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19141   (exit $ac_status); }; }; then
19142   ac_cv_lib_gcc___moddi3=yes
19143 else
19144   echo "$as_me: failed program was:" >&5
19145 sed 's/^/| /' conftest.$ac_ext >&5
19146
19147         ac_cv_lib_gcc___moddi3=no
19148 fi
19149
19150 rm -f core conftest.err conftest.$ac_objext \
19151       conftest$ac_exeext conftest.$ac_ext
19152 LIBS=$ac_check_lib_save_LIBS
19153 fi
19154 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___moddi3" >&5
19155 echo "${ECHO_T}$ac_cv_lib_gcc___moddi3" >&6; }
19156 if test $ac_cv_lib_gcc___moddi3 = yes; then
19157
19158 cat >>confdefs.h <<\_ACEOF
19159 #define HAVE___MODDI3 1
19160 _ACEOF
19161
19162 fi
19163
19164   { echo "$as_me:$LINENO: checking for __udivdi3 in -lgcc" >&5
19165 echo $ECHO_N "checking for __udivdi3 in -lgcc... $ECHO_C" >&6; }
19166 if test "${ac_cv_lib_gcc___udivdi3+set}" = set; then
19167   echo $ECHO_N "(cached) $ECHO_C" >&6
19168 else
19169   ac_check_lib_save_LIBS=$LIBS
19170 LIBS="-lgcc  $LIBS"
19171 cat >conftest.$ac_ext <<_ACEOF
19172 /* confdefs.h.  */
19173 _ACEOF
19174 cat confdefs.h >>conftest.$ac_ext
19175 cat >>conftest.$ac_ext <<_ACEOF
19176 /* end confdefs.h.  */
19177
19178 /* Override any GCC internal prototype to avoid an error.
19179    Use char because int might match the return type of a GCC
19180    builtin and then its argument prototype would still apply.  */
19181 #ifdef __cplusplus
19182 extern "C"
19183 #endif
19184 char __udivdi3 ();
19185 int
19186 main ()
19187 {
19188 return __udivdi3 ();
19189   ;
19190   return 0;
19191 }
19192 _ACEOF
19193 rm -f conftest.$ac_objext conftest$ac_exeext
19194 if { (ac_try="$ac_link"
19195 case "(($ac_try" in
19196   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19197   *) ac_try_echo=$ac_try;;
19198 esac
19199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19200   (eval "$ac_link") 2>conftest.er1
19201   ac_status=$?
19202   grep -v '^ *+' conftest.er1 >conftest.err
19203   rm -f conftest.er1
19204   cat conftest.err >&5
19205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19206   (exit $ac_status); } &&
19207          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19208   { (case "(($ac_try" in
19209   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19210   *) ac_try_echo=$ac_try;;
19211 esac
19212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19213   (eval "$ac_try") 2>&5
19214   ac_status=$?
19215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19216   (exit $ac_status); }; } &&
19217          { ac_try='test -s conftest$ac_exeext'
19218   { (case "(($ac_try" in
19219   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19220   *) ac_try_echo=$ac_try;;
19221 esac
19222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19223   (eval "$ac_try") 2>&5
19224   ac_status=$?
19225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19226   (exit $ac_status); }; }; then
19227   ac_cv_lib_gcc___udivdi3=yes
19228 else
19229   echo "$as_me: failed program was:" >&5
19230 sed 's/^/| /' conftest.$ac_ext >&5
19231
19232         ac_cv_lib_gcc___udivdi3=no
19233 fi
19234
19235 rm -f core conftest.err conftest.$ac_objext \
19236       conftest$ac_exeext conftest.$ac_ext
19237 LIBS=$ac_check_lib_save_LIBS
19238 fi
19239 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___udivdi3" >&5
19240 echo "${ECHO_T}$ac_cv_lib_gcc___udivdi3" >&6; }
19241 if test $ac_cv_lib_gcc___udivdi3 = yes; then
19242
19243 cat >>confdefs.h <<\_ACEOF
19244 #define HAVE___UDIVDI3 1
19245 _ACEOF
19246
19247 fi
19248
19249   { echo "$as_me:$LINENO: checking for __umoddi3 in -lgcc" >&5
19250 echo $ECHO_N "checking for __umoddi3 in -lgcc... $ECHO_C" >&6; }
19251 if test "${ac_cv_lib_gcc___umoddi3+set}" = set; then
19252   echo $ECHO_N "(cached) $ECHO_C" >&6
19253 else
19254   ac_check_lib_save_LIBS=$LIBS
19255 LIBS="-lgcc  $LIBS"
19256 cat >conftest.$ac_ext <<_ACEOF
19257 /* confdefs.h.  */
19258 _ACEOF
19259 cat confdefs.h >>conftest.$ac_ext
19260 cat >>conftest.$ac_ext <<_ACEOF
19261 /* end confdefs.h.  */
19262
19263 /* Override any GCC internal prototype to avoid an error.
19264    Use char because int might match the return type of a GCC
19265    builtin and then its argument prototype would still apply.  */
19266 #ifdef __cplusplus
19267 extern "C"
19268 #endif
19269 char __umoddi3 ();
19270 int
19271 main ()
19272 {
19273 return __umoddi3 ();
19274   ;
19275   return 0;
19276 }
19277 _ACEOF
19278 rm -f conftest.$ac_objext conftest$ac_exeext
19279 if { (ac_try="$ac_link"
19280 case "(($ac_try" in
19281   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19282   *) ac_try_echo=$ac_try;;
19283 esac
19284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19285   (eval "$ac_link") 2>conftest.er1
19286   ac_status=$?
19287   grep -v '^ *+' conftest.er1 >conftest.err
19288   rm -f conftest.er1
19289   cat conftest.err >&5
19290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19291   (exit $ac_status); } &&
19292          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19293   { (case "(($ac_try" in
19294   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19295   *) ac_try_echo=$ac_try;;
19296 esac
19297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19298   (eval "$ac_try") 2>&5
19299   ac_status=$?
19300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19301   (exit $ac_status); }; } &&
19302          { ac_try='test -s conftest$ac_exeext'
19303   { (case "(($ac_try" in
19304   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19305   *) ac_try_echo=$ac_try;;
19306 esac
19307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19308   (eval "$ac_try") 2>&5
19309   ac_status=$?
19310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19311   (exit $ac_status); }; }; then
19312   ac_cv_lib_gcc___umoddi3=yes
19313 else
19314   echo "$as_me: failed program was:" >&5
19315 sed 's/^/| /' conftest.$ac_ext >&5
19316
19317         ac_cv_lib_gcc___umoddi3=no
19318 fi
19319
19320 rm -f core conftest.err conftest.$ac_objext \
19321       conftest$ac_exeext conftest.$ac_ext
19322 LIBS=$ac_check_lib_save_LIBS
19323 fi
19324 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___umoddi3" >&5
19325 echo "${ECHO_T}$ac_cv_lib_gcc___umoddi3" >&6; }
19326 if test $ac_cv_lib_gcc___umoddi3 = yes; then
19327
19328 cat >>confdefs.h <<\_ACEOF
19329 #define HAVE___UMODDI3 1
19330 _ACEOF
19331
19332 fi
19333
19334
19335   { echo "$as_me:$LINENO: checking for __main in -lgcc" >&5
19336 echo $ECHO_N "checking for __main in -lgcc... $ECHO_C" >&6; }
19337 if test "${ac_cv_lib_gcc___main+set}" = set; then
19338   echo $ECHO_N "(cached) $ECHO_C" >&6
19339 else
19340   ac_check_lib_save_LIBS=$LIBS
19341 LIBS="-lgcc  $LIBS"
19342 cat >conftest.$ac_ext <<_ACEOF
19343 /* confdefs.h.  */
19344 _ACEOF
19345 cat confdefs.h >>conftest.$ac_ext
19346 cat >>conftest.$ac_ext <<_ACEOF
19347 /* end confdefs.h.  */
19348
19349 /* Override any GCC internal prototype to avoid an error.
19350    Use char because int might match the return type of a GCC
19351    builtin and then its argument prototype would still apply.  */
19352 #ifdef __cplusplus
19353 extern "C"
19354 #endif
19355 char __main ();
19356 int
19357 main ()
19358 {
19359 return __main ();
19360   ;
19361   return 0;
19362 }
19363 _ACEOF
19364 rm -f conftest.$ac_objext conftest$ac_exeext
19365 if { (ac_try="$ac_link"
19366 case "(($ac_try" in
19367   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19368   *) ac_try_echo=$ac_try;;
19369 esac
19370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19371   (eval "$ac_link") 2>conftest.er1
19372   ac_status=$?
19373   grep -v '^ *+' conftest.er1 >conftest.err
19374   rm -f conftest.er1
19375   cat conftest.err >&5
19376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19377   (exit $ac_status); } &&
19378          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19379   { (case "(($ac_try" in
19380   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19381   *) ac_try_echo=$ac_try;;
19382 esac
19383 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19384   (eval "$ac_try") 2>&5
19385   ac_status=$?
19386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19387   (exit $ac_status); }; } &&
19388          { ac_try='test -s conftest$ac_exeext'
19389   { (case "(($ac_try" in
19390   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19391   *) ac_try_echo=$ac_try;;
19392 esac
19393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19394   (eval "$ac_try") 2>&5
19395   ac_status=$?
19396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19397   (exit $ac_status); }; }; then
19398   ac_cv_lib_gcc___main=yes
19399 else
19400   echo "$as_me: failed program was:" >&5
19401 sed 's/^/| /' conftest.$ac_ext >&5
19402
19403         ac_cv_lib_gcc___main=no
19404 fi
19405
19406 rm -f core conftest.err conftest.$ac_objext \
19407       conftest$ac_exeext conftest.$ac_ext
19408 LIBS=$ac_check_lib_save_LIBS
19409 fi
19410 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___main" >&5
19411 echo "${ECHO_T}$ac_cv_lib_gcc___main" >&6; }
19412 if test $ac_cv_lib_gcc___main = yes; then
19413
19414 cat >>confdefs.h <<\_ACEOF
19415 #define HAVE___MAIN 1
19416 _ACEOF
19417
19418 fi
19419
19420   { echo "$as_me:$LINENO: checking for __cmpdi2 in -lgcc" >&5
19421 echo $ECHO_N "checking for __cmpdi2 in -lgcc... $ECHO_C" >&6; }
19422 if test "${ac_cv_lib_gcc___cmpdi2+set}" = set; then
19423   echo $ECHO_N "(cached) $ECHO_C" >&6
19424 else
19425   ac_check_lib_save_LIBS=$LIBS
19426 LIBS="-lgcc  $LIBS"
19427 cat >conftest.$ac_ext <<_ACEOF
19428 /* confdefs.h.  */
19429 _ACEOF
19430 cat confdefs.h >>conftest.$ac_ext
19431 cat >>conftest.$ac_ext <<_ACEOF
19432 /* end confdefs.h.  */
19433
19434 /* Override any GCC internal prototype to avoid an error.
19435    Use char because int might match the return type of a GCC
19436    builtin and then its argument prototype would still apply.  */
19437 #ifdef __cplusplus
19438 extern "C"
19439 #endif
19440 char __cmpdi2 ();
19441 int
19442 main ()
19443 {
19444 return __cmpdi2 ();
19445   ;
19446   return 0;
19447 }
19448 _ACEOF
19449 rm -f conftest.$ac_objext conftest$ac_exeext
19450 if { (ac_try="$ac_link"
19451 case "(($ac_try" in
19452   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19453   *) ac_try_echo=$ac_try;;
19454 esac
19455 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19456   (eval "$ac_link") 2>conftest.er1
19457   ac_status=$?
19458   grep -v '^ *+' conftest.er1 >conftest.err
19459   rm -f conftest.er1
19460   cat conftest.err >&5
19461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19462   (exit $ac_status); } &&
19463          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19464   { (case "(($ac_try" in
19465   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19466   *) ac_try_echo=$ac_try;;
19467 esac
19468 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19469   (eval "$ac_try") 2>&5
19470   ac_status=$?
19471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19472   (exit $ac_status); }; } &&
19473          { ac_try='test -s conftest$ac_exeext'
19474   { (case "(($ac_try" in
19475   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19476   *) ac_try_echo=$ac_try;;
19477 esac
19478 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19479   (eval "$ac_try") 2>&5
19480   ac_status=$?
19481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19482   (exit $ac_status); }; }; then
19483   ac_cv_lib_gcc___cmpdi2=yes
19484 else
19485   echo "$as_me: failed program was:" >&5
19486 sed 's/^/| /' conftest.$ac_ext >&5
19487
19488         ac_cv_lib_gcc___cmpdi2=no
19489 fi
19490
19491 rm -f core conftest.err conftest.$ac_objext \
19492       conftest$ac_exeext conftest.$ac_ext
19493 LIBS=$ac_check_lib_save_LIBS
19494 fi
19495 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___cmpdi2" >&5
19496 echo "${ECHO_T}$ac_cv_lib_gcc___cmpdi2" >&6; }
19497 if test $ac_cv_lib_gcc___cmpdi2 = yes; then
19498
19499 cat >>confdefs.h <<\_ACEOF
19500 #define HAVE___CMPDI2 1
19501 _ACEOF
19502
19503 fi
19504
19505 fi
19506
19507 if test "$llvm_cv_os_type" = "MingW" ; then
19508   { echo "$as_me:$LINENO: checking whether EnumerateLoadedModules() accepts new decl" >&5
19509 echo $ECHO_N "checking whether EnumerateLoadedModules() accepts new decl... $ECHO_C" >&6; }
19510   cat >conftest.$ac_ext <<_ACEOF
19511 #include <windows.h>
19512 #include <imagehlp.h>
19513 extern void foo(PENUMLOADED_MODULES_CALLBACK);
19514 extern void foo(BOOL(CALLBACK*)(PCSTR,ULONG_PTR,ULONG,PVOID));
19515 _ACEOF
19516 rm -f conftest.$ac_objext
19517 if { (ac_try="$ac_compile"
19518 case "(($ac_try" in
19519   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19520   *) ac_try_echo=$ac_try;;
19521 esac
19522 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19523   (eval "$ac_compile") 2>conftest.er1
19524   ac_status=$?
19525   grep -v '^ *+' conftest.er1 >conftest.err
19526   rm -f conftest.er1
19527   cat conftest.err >&5
19528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19529   (exit $ac_status); } &&
19530          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19531   { (case "(($ac_try" in
19532   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19533   *) ac_try_echo=$ac_try;;
19534 esac
19535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19536   (eval "$ac_try") 2>&5
19537   ac_status=$?
19538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19539   (exit $ac_status); }; } &&
19540          { ac_try='test -s conftest.$ac_objext'
19541   { (case "(($ac_try" in
19542   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19543   *) ac_try_echo=$ac_try;;
19544 esac
19545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19546   (eval "$ac_try") 2>&5
19547   ac_status=$?
19548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19549   (exit $ac_status); }; }; then
19550
19551   { echo "$as_me:$LINENO: result: yes" >&5
19552 echo "${ECHO_T}yes" >&6; }
19553   llvm_cv_win32_elmcb_pcstr="PCSTR"
19554
19555 else
19556   echo "$as_me: failed program was:" >&5
19557 sed 's/^/| /' conftest.$ac_ext >&5
19558
19559
19560   { echo "$as_me:$LINENO: result: no" >&5
19561 echo "${ECHO_T}no" >&6; }
19562   llvm_cv_win32_elmcb_pcstr="PSTR"
19563
19564 fi
19565
19566 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19567
19568 cat >>confdefs.h <<_ACEOF
19569 #define WIN32_ELMCB_PCSTR $llvm_cv_win32_elmcb_pcstr
19570 _ACEOF
19571
19572 fi
19573
19574
19575 { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
19576 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
19577 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
19578   echo $ECHO_N "(cached) $ECHO_C" >&6
19579 else
19580   ac_ext=cpp
19581 ac_cpp='$CXXCPP $CPPFLAGS'
19582 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19583 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19584 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19585
19586    cat >conftest.$ac_ext <<_ACEOF
19587 /* confdefs.h.  */
19588 _ACEOF
19589 cat confdefs.h >>conftest.$ac_ext
19590 cat >>conftest.$ac_ext <<_ACEOF
19591 /* end confdefs.h.  */
19592 #include <math.h>
19593 int
19594 main ()
19595 {
19596 float f; isnan(f);
19597   ;
19598   return 0;
19599 }
19600 _ACEOF
19601 rm -f conftest.$ac_objext
19602 if { (ac_try="$ac_compile"
19603 case "(($ac_try" in
19604   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19605   *) ac_try_echo=$ac_try;;
19606 esac
19607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19608   (eval "$ac_compile") 2>conftest.er1
19609   ac_status=$?
19610   grep -v '^ *+' conftest.er1 >conftest.err
19611   rm -f conftest.er1
19612   cat conftest.err >&5
19613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19614   (exit $ac_status); } &&
19615          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19616   { (case "(($ac_try" in
19617   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19618   *) ac_try_echo=$ac_try;;
19619 esac
19620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19621   (eval "$ac_try") 2>&5
19622   ac_status=$?
19623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19624   (exit $ac_status); }; } &&
19625          { ac_try='test -s conftest.$ac_objext'
19626   { (case "(($ac_try" in
19627   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19628   *) ac_try_echo=$ac_try;;
19629 esac
19630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19631   (eval "$ac_try") 2>&5
19632   ac_status=$?
19633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19634   (exit $ac_status); }; }; then
19635   ac_cv_func_isnan_in_math_h=yes
19636 else
19637   echo "$as_me: failed program was:" >&5
19638 sed 's/^/| /' conftest.$ac_ext >&5
19639
19640         ac_cv_func_isnan_in_math_h=no
19641 fi
19642
19643 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19644   ac_ext=c
19645 ac_cpp='$CPP $CPPFLAGS'
19646 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19647 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19648 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19649
19650 fi
19651 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
19652 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
19653
19654
19655 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
19656
19657 cat >>confdefs.h <<\_ACEOF
19658 #define HAVE_ISNAN_IN_MATH_H 1
19659 _ACEOF
19660
19661 fi
19662
19663 { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
19664 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
19665 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
19666   echo $ECHO_N "(cached) $ECHO_C" >&6
19667 else
19668   ac_ext=cpp
19669 ac_cpp='$CXXCPP $CPPFLAGS'
19670 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19671 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19672 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19673
19674    cat >conftest.$ac_ext <<_ACEOF
19675 /* confdefs.h.  */
19676 _ACEOF
19677 cat confdefs.h >>conftest.$ac_ext
19678 cat >>conftest.$ac_ext <<_ACEOF
19679 /* end confdefs.h.  */
19680 #include <cmath>
19681 int
19682 main ()
19683 {
19684 float f; isnan(f);
19685   ;
19686   return 0;
19687 }
19688 _ACEOF
19689 rm -f conftest.$ac_objext
19690 if { (ac_try="$ac_compile"
19691 case "(($ac_try" in
19692   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19693   *) ac_try_echo=$ac_try;;
19694 esac
19695 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19696   (eval "$ac_compile") 2>conftest.er1
19697   ac_status=$?
19698   grep -v '^ *+' conftest.er1 >conftest.err
19699   rm -f conftest.er1
19700   cat conftest.err >&5
19701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19702   (exit $ac_status); } &&
19703          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19704   { (case "(($ac_try" in
19705   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19706   *) ac_try_echo=$ac_try;;
19707 esac
19708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19709   (eval "$ac_try") 2>&5
19710   ac_status=$?
19711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19712   (exit $ac_status); }; } &&
19713          { ac_try='test -s conftest.$ac_objext'
19714   { (case "(($ac_try" in
19715   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19716   *) ac_try_echo=$ac_try;;
19717 esac
19718 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19719   (eval "$ac_try") 2>&5
19720   ac_status=$?
19721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19722   (exit $ac_status); }; }; then
19723   ac_cv_func_isnan_in_cmath=yes
19724 else
19725   echo "$as_me: failed program was:" >&5
19726 sed 's/^/| /' conftest.$ac_ext >&5
19727
19728         ac_cv_func_isnan_in_cmath=no
19729 fi
19730
19731 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19732   ac_ext=c
19733 ac_cpp='$CPP $CPPFLAGS'
19734 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19735 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19736 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19737
19738 fi
19739 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
19740 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
19741
19742 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
19743
19744 cat >>confdefs.h <<\_ACEOF
19745 #define HAVE_ISNAN_IN_CMATH 1
19746 _ACEOF
19747
19748 fi
19749
19750 { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
19751 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
19752 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
19753   echo $ECHO_N "(cached) $ECHO_C" >&6
19754 else
19755   ac_ext=cpp
19756 ac_cpp='$CXXCPP $CPPFLAGS'
19757 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19758 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19759 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19760
19761    cat >conftest.$ac_ext <<_ACEOF
19762 /* confdefs.h.  */
19763 _ACEOF
19764 cat confdefs.h >>conftest.$ac_ext
19765 cat >>conftest.$ac_ext <<_ACEOF
19766 /* end confdefs.h.  */
19767 #include <cmath>
19768 int
19769 main ()
19770 {
19771 float f; std::isnan(f);
19772   ;
19773   return 0;
19774 }
19775 _ACEOF
19776 rm -f conftest.$ac_objext
19777 if { (ac_try="$ac_compile"
19778 case "(($ac_try" in
19779   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19780   *) ac_try_echo=$ac_try;;
19781 esac
19782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19783   (eval "$ac_compile") 2>conftest.er1
19784   ac_status=$?
19785   grep -v '^ *+' conftest.er1 >conftest.err
19786   rm -f conftest.er1
19787   cat conftest.err >&5
19788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19789   (exit $ac_status); } &&
19790          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19791   { (case "(($ac_try" in
19792   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19793   *) ac_try_echo=$ac_try;;
19794 esac
19795 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19796   (eval "$ac_try") 2>&5
19797   ac_status=$?
19798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19799   (exit $ac_status); }; } &&
19800          { ac_try='test -s conftest.$ac_objext'
19801   { (case "(($ac_try" in
19802   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19803   *) ac_try_echo=$ac_try;;
19804 esac
19805 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19806   (eval "$ac_try") 2>&5
19807   ac_status=$?
19808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19809   (exit $ac_status); }; }; then
19810   ac_cv_func_std_isnan_in_cmath=yes
19811 else
19812   echo "$as_me: failed program was:" >&5
19813 sed 's/^/| /' conftest.$ac_ext >&5
19814
19815         ac_cv_func_std_isnan_in_cmath=no
19816 fi
19817
19818 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19819   ac_ext=c
19820 ac_cpp='$CPP $CPPFLAGS'
19821 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19822 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19823 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19824
19825 fi
19826 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
19827 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
19828
19829 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
19830
19831 cat >>confdefs.h <<\_ACEOF
19832 #define HAVE_STD_ISNAN_IN_CMATH 1
19833 _ACEOF
19834
19835 fi
19836
19837
19838 { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
19839 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
19840 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
19841   echo $ECHO_N "(cached) $ECHO_C" >&6
19842 else
19843   ac_ext=cpp
19844 ac_cpp='$CXXCPP $CPPFLAGS'
19845 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19846 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19847 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19848
19849    cat >conftest.$ac_ext <<_ACEOF
19850 /* confdefs.h.  */
19851 _ACEOF
19852 cat confdefs.h >>conftest.$ac_ext
19853 cat >>conftest.$ac_ext <<_ACEOF
19854 /* end confdefs.h.  */
19855 #include <math.h>
19856 int
19857 main ()
19858 {
19859 float f; isinf(f);
19860   ;
19861   return 0;
19862 }
19863 _ACEOF
19864 rm -f conftest.$ac_objext
19865 if { (ac_try="$ac_compile"
19866 case "(($ac_try" in
19867   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19868   *) ac_try_echo=$ac_try;;
19869 esac
19870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19871   (eval "$ac_compile") 2>conftest.er1
19872   ac_status=$?
19873   grep -v '^ *+' conftest.er1 >conftest.err
19874   rm -f conftest.er1
19875   cat conftest.err >&5
19876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19877   (exit $ac_status); } &&
19878          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19879   { (case "(($ac_try" in
19880   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19881   *) ac_try_echo=$ac_try;;
19882 esac
19883 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19884   (eval "$ac_try") 2>&5
19885   ac_status=$?
19886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19887   (exit $ac_status); }; } &&
19888          { ac_try='test -s conftest.$ac_objext'
19889   { (case "(($ac_try" in
19890   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19891   *) ac_try_echo=$ac_try;;
19892 esac
19893 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19894   (eval "$ac_try") 2>&5
19895   ac_status=$?
19896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19897   (exit $ac_status); }; }; then
19898   ac_cv_func_isinf_in_math_h=yes
19899 else
19900   echo "$as_me: failed program was:" >&5
19901 sed 's/^/| /' conftest.$ac_ext >&5
19902
19903         ac_cv_func_isinf_in_math_h=no
19904 fi
19905
19906 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19907   ac_ext=c
19908 ac_cpp='$CPP $CPPFLAGS'
19909 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19910 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19911 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19912
19913 fi
19914 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
19915 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
19916
19917 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
19918
19919 cat >>confdefs.h <<\_ACEOF
19920 #define HAVE_ISINF_IN_MATH_H 1
19921 _ACEOF
19922
19923 fi
19924
19925 { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
19926 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
19927 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
19928   echo $ECHO_N "(cached) $ECHO_C" >&6
19929 else
19930   ac_ext=cpp
19931 ac_cpp='$CXXCPP $CPPFLAGS'
19932 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19933 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19934 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19935
19936    cat >conftest.$ac_ext <<_ACEOF
19937 /* confdefs.h.  */
19938 _ACEOF
19939 cat confdefs.h >>conftest.$ac_ext
19940 cat >>conftest.$ac_ext <<_ACEOF
19941 /* end confdefs.h.  */
19942 #include <cmath>
19943 int
19944 main ()
19945 {
19946 float f; isinf(f);
19947   ;
19948   return 0;
19949 }
19950 _ACEOF
19951 rm -f conftest.$ac_objext
19952 if { (ac_try="$ac_compile"
19953 case "(($ac_try" in
19954   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19955   *) ac_try_echo=$ac_try;;
19956 esac
19957 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19958   (eval "$ac_compile") 2>conftest.er1
19959   ac_status=$?
19960   grep -v '^ *+' conftest.er1 >conftest.err
19961   rm -f conftest.er1
19962   cat conftest.err >&5
19963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19964   (exit $ac_status); } &&
19965          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19966   { (case "(($ac_try" in
19967   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19968   *) ac_try_echo=$ac_try;;
19969 esac
19970 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19971   (eval "$ac_try") 2>&5
19972   ac_status=$?
19973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19974   (exit $ac_status); }; } &&
19975          { ac_try='test -s conftest.$ac_objext'
19976   { (case "(($ac_try" in
19977   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19978   *) ac_try_echo=$ac_try;;
19979 esac
19980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19981   (eval "$ac_try") 2>&5
19982   ac_status=$?
19983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19984   (exit $ac_status); }; }; then
19985   ac_cv_func_isinf_in_cmath=yes
19986 else
19987   echo "$as_me: failed program was:" >&5
19988 sed 's/^/| /' conftest.$ac_ext >&5
19989
19990         ac_cv_func_isinf_in_cmath=no
19991 fi
19992
19993 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19994   ac_ext=c
19995 ac_cpp='$CPP $CPPFLAGS'
19996 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19997 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19998 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19999
20000 fi
20001 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
20002 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
20003
20004 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
20005
20006 cat >>confdefs.h <<\_ACEOF
20007 #define HAVE_ISINF_IN_CMATH 1
20008 _ACEOF
20009
20010 fi
20011
20012 { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
20013 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
20014 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
20015   echo $ECHO_N "(cached) $ECHO_C" >&6
20016 else
20017   ac_ext=cpp
20018 ac_cpp='$CXXCPP $CPPFLAGS'
20019 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20020 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20021 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20022
20023    cat >conftest.$ac_ext <<_ACEOF
20024 /* confdefs.h.  */
20025 _ACEOF
20026 cat confdefs.h >>conftest.$ac_ext
20027 cat >>conftest.$ac_ext <<_ACEOF
20028 /* end confdefs.h.  */
20029 #include <cmath>
20030 int
20031 main ()
20032 {
20033 float f; std::isinf(f)}
20034   ;
20035   return 0;
20036 }
20037 _ACEOF
20038 rm -f conftest.$ac_objext
20039 if { (ac_try="$ac_compile"
20040 case "(($ac_try" in
20041   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20042   *) ac_try_echo=$ac_try;;
20043 esac
20044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20045   (eval "$ac_compile") 2>conftest.er1
20046   ac_status=$?
20047   grep -v '^ *+' conftest.er1 >conftest.err
20048   rm -f conftest.er1
20049   cat conftest.err >&5
20050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20051   (exit $ac_status); } &&
20052          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20053   { (case "(($ac_try" in
20054   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20055   *) ac_try_echo=$ac_try;;
20056 esac
20057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20058   (eval "$ac_try") 2>&5
20059   ac_status=$?
20060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20061   (exit $ac_status); }; } &&
20062          { ac_try='test -s conftest.$ac_objext'
20063   { (case "(($ac_try" in
20064   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20065   *) ac_try_echo=$ac_try;;
20066 esac
20067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20068   (eval "$ac_try") 2>&5
20069   ac_status=$?
20070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20071   (exit $ac_status); }; }; then
20072   ac_cv_func_std_isinf_in_cmath=yes
20073 else
20074   echo "$as_me: failed program was:" >&5
20075 sed 's/^/| /' conftest.$ac_ext >&5
20076
20077         ac_cv_func_std_isinf_in_cmath=no
20078 fi
20079
20080 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20081   ac_ext=c
20082 ac_cpp='$CPP $CPPFLAGS'
20083 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20084 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20085 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20086
20087 fi
20088 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
20089 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
20090
20091 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
20092
20093 cat >>confdefs.h <<\_ACEOF
20094 #define HAVE_STD_ISINF_IN_CMATH 1
20095 _ACEOF
20096
20097 fi
20098
20099 { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
20100 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
20101 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
20102   echo $ECHO_N "(cached) $ECHO_C" >&6
20103 else
20104   ac_ext=cpp
20105 ac_cpp='$CXXCPP $CPPFLAGS'
20106 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20107 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20108 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20109
20110    cat >conftest.$ac_ext <<_ACEOF
20111 /* confdefs.h.  */
20112 _ACEOF
20113 cat confdefs.h >>conftest.$ac_ext
20114 cat >>conftest.$ac_ext <<_ACEOF
20115 /* end confdefs.h.  */
20116 #include <ieeefp.h>
20117 int
20118 main ()
20119 {
20120 float f; finite(f);
20121   ;
20122   return 0;
20123 }
20124 _ACEOF
20125 rm -f conftest.$ac_objext
20126 if { (ac_try="$ac_compile"
20127 case "(($ac_try" in
20128   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20129   *) ac_try_echo=$ac_try;;
20130 esac
20131 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20132   (eval "$ac_compile") 2>conftest.er1
20133   ac_status=$?
20134   grep -v '^ *+' conftest.er1 >conftest.err
20135   rm -f conftest.er1
20136   cat conftest.err >&5
20137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20138   (exit $ac_status); } &&
20139          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20140   { (case "(($ac_try" in
20141   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20142   *) ac_try_echo=$ac_try;;
20143 esac
20144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20145   (eval "$ac_try") 2>&5
20146   ac_status=$?
20147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20148   (exit $ac_status); }; } &&
20149          { ac_try='test -s conftest.$ac_objext'
20150   { (case "(($ac_try" in
20151   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20152   *) ac_try_echo=$ac_try;;
20153 esac
20154 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20155   (eval "$ac_try") 2>&5
20156   ac_status=$?
20157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20158   (exit $ac_status); }; }; then
20159   ac_cv_func_finite_in_ieeefp_h=yes
20160 else
20161   echo "$as_me: failed program was:" >&5
20162 sed 's/^/| /' conftest.$ac_ext >&5
20163
20164         ac_cv_func_finite_in_ieeefp_h=no
20165 fi
20166
20167 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20168   ac_ext=c
20169 ac_cpp='$CPP $CPPFLAGS'
20170 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20171 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20172 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20173
20174 fi
20175 { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
20176 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
20177
20178 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
20179
20180 cat >>confdefs.h <<\_ACEOF
20181 #define HAVE_FINITE_IN_IEEEFP_H 1
20182 _ACEOF
20183
20184 fi
20185
20186
20187
20188 if test "$llvm_cv_platform_type" = "Unix" ; then
20189
20190
20191 for ac_header in stdlib.h unistd.h
20192 do
20193 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20194 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20195   { echo "$as_me:$LINENO: checking for $ac_header" >&5
20196 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20197 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20198   echo $ECHO_N "(cached) $ECHO_C" >&6
20199 fi
20200 ac_res=`eval echo '${'$as_ac_Header'}'`
20201                { echo "$as_me:$LINENO: result: $ac_res" >&5
20202 echo "${ECHO_T}$ac_res" >&6; }
20203 else
20204   # Is the header compilable?
20205 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20206 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20207 cat >conftest.$ac_ext <<_ACEOF
20208 /* confdefs.h.  */
20209 _ACEOF
20210 cat confdefs.h >>conftest.$ac_ext
20211 cat >>conftest.$ac_ext <<_ACEOF
20212 /* end confdefs.h.  */
20213 $ac_includes_default
20214 #include <$ac_header>
20215 _ACEOF
20216 rm -f conftest.$ac_objext
20217 if { (ac_try="$ac_compile"
20218 case "(($ac_try" in
20219   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20220   *) ac_try_echo=$ac_try;;
20221 esac
20222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20223   (eval "$ac_compile") 2>conftest.er1
20224   ac_status=$?
20225   grep -v '^ *+' conftest.er1 >conftest.err
20226   rm -f conftest.er1
20227   cat conftest.err >&5
20228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20229   (exit $ac_status); } &&
20230          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20231   { (case "(($ac_try" in
20232   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20233   *) ac_try_echo=$ac_try;;
20234 esac
20235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20236   (eval "$ac_try") 2>&5
20237   ac_status=$?
20238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20239   (exit $ac_status); }; } &&
20240          { ac_try='test -s conftest.$ac_objext'
20241   { (case "(($ac_try" in
20242   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20243   *) ac_try_echo=$ac_try;;
20244 esac
20245 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20246   (eval "$ac_try") 2>&5
20247   ac_status=$?
20248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20249   (exit $ac_status); }; }; then
20250   ac_header_compiler=yes
20251 else
20252   echo "$as_me: failed program was:" >&5
20253 sed 's/^/| /' conftest.$ac_ext >&5
20254
20255         ac_header_compiler=no
20256 fi
20257
20258 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20259 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20260 echo "${ECHO_T}$ac_header_compiler" >&6; }
20261
20262 # Is the header present?
20263 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20264 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20265 cat >conftest.$ac_ext <<_ACEOF
20266 /* confdefs.h.  */
20267 _ACEOF
20268 cat confdefs.h >>conftest.$ac_ext
20269 cat >>conftest.$ac_ext <<_ACEOF
20270 /* end confdefs.h.  */
20271 #include <$ac_header>
20272 _ACEOF
20273 if { (ac_try="$ac_cpp conftest.$ac_ext"
20274 case "(($ac_try" in
20275   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20276   *) ac_try_echo=$ac_try;;
20277 esac
20278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20279   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20280   ac_status=$?
20281   grep -v '^ *+' conftest.er1 >conftest.err
20282   rm -f conftest.er1
20283   cat conftest.err >&5
20284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20285   (exit $ac_status); } >/dev/null; then
20286   if test -s conftest.err; then
20287     ac_cpp_err=$ac_c_preproc_warn_flag
20288     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20289   else
20290     ac_cpp_err=
20291   fi
20292 else
20293   ac_cpp_err=yes
20294 fi
20295 if test -z "$ac_cpp_err"; then
20296   ac_header_preproc=yes
20297 else
20298   echo "$as_me: failed program was:" >&5
20299 sed 's/^/| /' conftest.$ac_ext >&5
20300
20301   ac_header_preproc=no
20302 fi
20303
20304 rm -f conftest.err conftest.$ac_ext
20305 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20306 echo "${ECHO_T}$ac_header_preproc" >&6; }
20307
20308 # So?  What about this header?
20309 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20310   yes:no: )
20311     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20312 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20313     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20314 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20315     ac_header_preproc=yes
20316     ;;
20317   no:yes:* )
20318     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20319 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20320     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20321 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20322     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20323 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20324     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20325 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20326     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20327 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20328     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20329 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20330     ( cat <<\_ASBOX
20331 ## ----------------------------------- ##
20332 ## Report this to llvmbugs@cs.uiuc.edu ##
20333 ## ----------------------------------- ##
20334 _ASBOX
20335      ) | sed "s/^/$as_me: WARNING:     /" >&2
20336     ;;
20337 esac
20338 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20339 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20340 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20341   echo $ECHO_N "(cached) $ECHO_C" >&6
20342 else
20343   eval "$as_ac_Header=\$ac_header_preproc"
20344 fi
20345 ac_res=`eval echo '${'$as_ac_Header'}'`
20346                { echo "$as_me:$LINENO: result: $ac_res" >&5
20347 echo "${ECHO_T}$ac_res" >&6; }
20348
20349 fi
20350 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20351   cat >>confdefs.h <<_ACEOF
20352 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20353 _ACEOF
20354
20355 fi
20356
20357 done
20358
20359
20360 for ac_func in getpagesize
20361 do
20362 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20363 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20364 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20365 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20366   echo $ECHO_N "(cached) $ECHO_C" >&6
20367 else
20368   cat >conftest.$ac_ext <<_ACEOF
20369 /* confdefs.h.  */
20370 _ACEOF
20371 cat confdefs.h >>conftest.$ac_ext
20372 cat >>conftest.$ac_ext <<_ACEOF
20373 /* end confdefs.h.  */
20374 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20375    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20376 #define $ac_func innocuous_$ac_func
20377
20378 /* System header to define __stub macros and hopefully few prototypes,
20379     which can conflict with char $ac_func (); below.
20380     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20381     <limits.h> exists even on freestanding compilers.  */
20382
20383 #ifdef __STDC__
20384 # include <limits.h>
20385 #else
20386 # include <assert.h>
20387 #endif
20388
20389 #undef $ac_func
20390
20391 /* Override any GCC internal prototype to avoid an error.
20392    Use char because int might match the return type of a GCC
20393    builtin and then its argument prototype would still apply.  */
20394 #ifdef __cplusplus
20395 extern "C"
20396 #endif
20397 char $ac_func ();
20398 /* The GNU C library defines this for functions which it implements
20399     to always fail with ENOSYS.  Some functions are actually named
20400     something starting with __ and the normal name is an alias.  */
20401 #if defined __stub_$ac_func || defined __stub___$ac_func
20402 choke me
20403 #endif
20404
20405 int
20406 main ()
20407 {
20408 return $ac_func ();
20409   ;
20410   return 0;
20411 }
20412 _ACEOF
20413 rm -f conftest.$ac_objext conftest$ac_exeext
20414 if { (ac_try="$ac_link"
20415 case "(($ac_try" in
20416   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20417   *) ac_try_echo=$ac_try;;
20418 esac
20419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20420   (eval "$ac_link") 2>conftest.er1
20421   ac_status=$?
20422   grep -v '^ *+' conftest.er1 >conftest.err
20423   rm -f conftest.er1
20424   cat conftest.err >&5
20425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20426   (exit $ac_status); } &&
20427          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20428   { (case "(($ac_try" in
20429   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20430   *) ac_try_echo=$ac_try;;
20431 esac
20432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20433   (eval "$ac_try") 2>&5
20434   ac_status=$?
20435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20436   (exit $ac_status); }; } &&
20437          { ac_try='test -s conftest$ac_exeext'
20438   { (case "(($ac_try" in
20439   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20440   *) ac_try_echo=$ac_try;;
20441 esac
20442 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20443   (eval "$ac_try") 2>&5
20444   ac_status=$?
20445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20446   (exit $ac_status); }; }; then
20447   eval "$as_ac_var=yes"
20448 else
20449   echo "$as_me: failed program was:" >&5
20450 sed 's/^/| /' conftest.$ac_ext >&5
20451
20452         eval "$as_ac_var=no"
20453 fi
20454
20455 rm -f core conftest.err conftest.$ac_objext \
20456       conftest$ac_exeext conftest.$ac_ext
20457 fi
20458 ac_res=`eval echo '${'$as_ac_var'}'`
20459                { echo "$as_me:$LINENO: result: $ac_res" >&5
20460 echo "${ECHO_T}$ac_res" >&6; }
20461 if test `eval echo '${'$as_ac_var'}'` = yes; then
20462   cat >>confdefs.h <<_ACEOF
20463 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20464 _ACEOF
20465
20466 fi
20467 done
20468
20469 { echo "$as_me:$LINENO: checking for working mmap" >&5
20470 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
20471 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
20472   echo $ECHO_N "(cached) $ECHO_C" >&6
20473 else
20474   if test "$cross_compiling" = yes; then
20475   ac_cv_func_mmap_fixed_mapped=no
20476 else
20477   cat >conftest.$ac_ext <<_ACEOF
20478 /* confdefs.h.  */
20479 _ACEOF
20480 cat confdefs.h >>conftest.$ac_ext
20481 cat >>conftest.$ac_ext <<_ACEOF
20482 /* end confdefs.h.  */
20483 $ac_includes_default
20484 /* malloc might have been renamed as rpl_malloc. */
20485 #undef malloc
20486
20487 /* Thanks to Mike Haertel and Jim Avera for this test.
20488    Here is a matrix of mmap possibilities:
20489         mmap private not fixed
20490         mmap private fixed at somewhere currently unmapped
20491         mmap private fixed at somewhere already mapped
20492         mmap shared not fixed
20493         mmap shared fixed at somewhere currently unmapped
20494         mmap shared fixed at somewhere already mapped
20495    For private mappings, we should verify that changes cannot be read()
20496    back from the file, nor mmap's back from the file at a different
20497    address.  (There have been systems where private was not correctly
20498    implemented like the infamous i386 svr4.0, and systems where the
20499    VM page cache was not coherent with the file system buffer cache
20500    like early versions of FreeBSD and possibly contemporary NetBSD.)
20501    For shared mappings, we should conversely verify that changes get
20502    propagated back to all the places they're supposed to be.
20503
20504    Grep wants private fixed already mapped.
20505    The main things grep needs to know about mmap are:
20506    * does it exist and is it safe to write into the mmap'd area
20507    * how to use it (BSD variants)  */
20508
20509 #include <fcntl.h>
20510 #include <sys/mman.h>
20511
20512 #if !STDC_HEADERS && !HAVE_STDLIB_H
20513 char *malloc ();
20514 #endif
20515
20516 /* This mess was copied from the GNU getpagesize.h.  */
20517 #if !HAVE_GETPAGESIZE
20518 /* Assume that all systems that can run configure have sys/param.h.  */
20519 # if !HAVE_SYS_PARAM_H
20520 #  define HAVE_SYS_PARAM_H 1
20521 # endif
20522
20523 # ifdef _SC_PAGESIZE
20524 #  define getpagesize() sysconf(_SC_PAGESIZE)
20525 # else /* no _SC_PAGESIZE */
20526 #  if HAVE_SYS_PARAM_H
20527 #   include <sys/param.h>
20528 #   ifdef EXEC_PAGESIZE
20529 #    define getpagesize() EXEC_PAGESIZE
20530 #   else /* no EXEC_PAGESIZE */
20531 #    ifdef NBPG
20532 #     define getpagesize() NBPG * CLSIZE
20533 #     ifndef CLSIZE
20534 #      define CLSIZE 1
20535 #     endif /* no CLSIZE */
20536 #    else /* no NBPG */
20537 #     ifdef NBPC
20538 #      define getpagesize() NBPC
20539 #     else /* no NBPC */
20540 #      ifdef PAGESIZE
20541 #       define getpagesize() PAGESIZE
20542 #      endif /* PAGESIZE */
20543 #     endif /* no NBPC */
20544 #    endif /* no NBPG */
20545 #   endif /* no EXEC_PAGESIZE */
20546 #  else /* no HAVE_SYS_PARAM_H */
20547 #   define getpagesize() 8192   /* punt totally */
20548 #  endif /* no HAVE_SYS_PARAM_H */
20549 # endif /* no _SC_PAGESIZE */
20550
20551 #endif /* no HAVE_GETPAGESIZE */
20552
20553 int
20554 main ()
20555 {
20556   char *data, *data2, *data3;
20557   int i, pagesize;
20558   int fd;
20559
20560   pagesize = getpagesize ();
20561
20562   /* First, make a file with some known garbage in it. */
20563   data = (char *) malloc (pagesize);
20564   if (!data)
20565     return 1;
20566   for (i = 0; i < pagesize; ++i)
20567     *(data + i) = rand ();
20568   umask (0);
20569   fd = creat ("conftest.mmap", 0600);
20570   if (fd < 0)
20571     return 1;
20572   if (write (fd, data, pagesize) != pagesize)
20573     return 1;
20574   close (fd);
20575
20576   /* Next, try to mmap the file at a fixed address which already has
20577      something else allocated at it.  If we can, also make sure that
20578      we see the same garbage.  */
20579   fd = open ("conftest.mmap", O_RDWR);
20580   if (fd < 0)
20581     return 1;
20582   data2 = (char *) malloc (2 * pagesize);
20583   if (!data2)
20584     return 1;
20585   data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
20586   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
20587                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
20588     return 1;
20589   for (i = 0; i < pagesize; ++i)
20590     if (*(data + i) != *(data2 + i))
20591       return 1;
20592
20593   /* Finally, make sure that changes to the mapped area do not
20594      percolate back to the file as seen by read().  (This is a bug on
20595      some variants of i386 svr4.0.)  */
20596   for (i = 0; i < pagesize; ++i)
20597     *(data2 + i) = *(data2 + i) + 1;
20598   data3 = (char *) malloc (pagesize);
20599   if (!data3)
20600     return 1;
20601   if (read (fd, data3, pagesize) != pagesize)
20602     return 1;
20603   for (i = 0; i < pagesize; ++i)
20604     if (*(data + i) != *(data3 + i))
20605       return 1;
20606   close (fd);
20607   return 0;
20608 }
20609 _ACEOF
20610 rm -f conftest$ac_exeext
20611 if { (ac_try="$ac_link"
20612 case "(($ac_try" in
20613   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20614   *) ac_try_echo=$ac_try;;
20615 esac
20616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20617   (eval "$ac_link") 2>&5
20618   ac_status=$?
20619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20620   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20621   { (case "(($ac_try" in
20622   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20623   *) ac_try_echo=$ac_try;;
20624 esac
20625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20626   (eval "$ac_try") 2>&5
20627   ac_status=$?
20628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20629   (exit $ac_status); }; }; then
20630   ac_cv_func_mmap_fixed_mapped=yes
20631 else
20632   echo "$as_me: program exited with status $ac_status" >&5
20633 echo "$as_me: failed program was:" >&5
20634 sed 's/^/| /' conftest.$ac_ext >&5
20635
20636 ( exit $ac_status )
20637 ac_cv_func_mmap_fixed_mapped=no
20638 fi
20639 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20640 fi
20641
20642
20643 fi
20644 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
20645 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
20646 if test $ac_cv_func_mmap_fixed_mapped = yes; then
20647
20648 cat >>confdefs.h <<\_ACEOF
20649 #define HAVE_MMAP 1
20650 _ACEOF
20651
20652 fi
20653 rm -f conftest.mmap
20654
20655   { echo "$as_me:$LINENO: checking for mmap of files" >&5
20656 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
20657 if test "${ac_cv_func_mmap_file+set}" = set; then
20658   echo $ECHO_N "(cached) $ECHO_C" >&6
20659 else
20660    ac_ext=c
20661 ac_cpp='$CPP $CPPFLAGS'
20662 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20663 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20664 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20665
20666   if test "$cross_compiling" = yes; then
20667   ac_cv_func_mmap_file=no
20668 else
20669   cat >conftest.$ac_ext <<_ACEOF
20670
20671     /* confdefs.h.  */
20672 _ACEOF
20673 cat confdefs.h >>conftest.$ac_ext
20674 cat >>conftest.$ac_ext <<_ACEOF
20675 /* end confdefs.h.  */
20676
20677 #include <sys/types.h>
20678 #include <sys/mman.h>
20679 #include <fcntl.h>
20680
20681 int
20682 main ()
20683 {
20684
20685   int fd;
20686   fd = creat ("foo",0777);
20687   fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
20688   unlink ("foo");
20689   return (fd != (int) MAP_FAILED);
20690   ;
20691   return 0;
20692 }
20693 _ACEOF
20694 rm -f conftest$ac_exeext
20695 if { (ac_try="$ac_link"
20696 case "(($ac_try" in
20697   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20698   *) ac_try_echo=$ac_try;;
20699 esac
20700 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20701   (eval "$ac_link") 2>&5
20702   ac_status=$?
20703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20704   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20705   { (case "(($ac_try" in
20706   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20707   *) ac_try_echo=$ac_try;;
20708 esac
20709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20710   (eval "$ac_try") 2>&5
20711   ac_status=$?
20712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20713   (exit $ac_status); }; }; then
20714   ac_cv_func_mmap_file=yes
20715 else
20716   echo "$as_me: program exited with status $ac_status" >&5
20717 echo "$as_me: failed program was:" >&5
20718 sed 's/^/| /' conftest.$ac_ext >&5
20719
20720 ( exit $ac_status )
20721 ac_cv_func_mmap_file=no
20722 fi
20723 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20724 fi
20725
20726
20727   ac_ext=c
20728 ac_cpp='$CPP $CPPFLAGS'
20729 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20730 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20731 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20732
20733
20734 fi
20735 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
20736 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
20737 if test "$ac_cv_func_mmap_file" = yes; then
20738
20739 cat >>confdefs.h <<\_ACEOF
20740 #define HAVE_MMAP_FILE
20741 _ACEOF
20742
20743    MMAP_FILE=yes
20744
20745 fi
20746
20747   { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
20748 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
20749 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
20750   echo $ECHO_N "(cached) $ECHO_C" >&6
20751 else
20752   if test "$llvm_cv_os_type" = "Interix" ; then
20753    ac_cv_need_dev_zero_for_mmap=yes
20754  else
20755    ac_cv_need_dev_zero_for_mmap=no
20756  fi
20757
20758 fi
20759 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
20760 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
20761 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
20762
20763 cat >>confdefs.h <<\_ACEOF
20764 #define NEED_DEV_ZERO_FOR_MMAP 1
20765 _ACEOF
20766
20767 fi
20768
20769   if test "$ac_cv_func_mmap_fixed_mapped" = "no"
20770   then
20771     { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
20772 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
20773   fi
20774   if test "$ac_cv_func_mmap_file" = "no"
20775   then
20776     { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
20777 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
20778   fi
20779 fi
20780
20781 { echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
20782 echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
20783 ac_ext=cpp
20784 ac_cpp='$CXXCPP $CPPFLAGS'
20785 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20786 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20787 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20788
20789 cat >conftest.$ac_ext <<_ACEOF
20790 /* confdefs.h.  */
20791 _ACEOF
20792 cat confdefs.h >>conftest.$ac_ext
20793 cat >>conftest.$ac_ext <<_ACEOF
20794 /* end confdefs.h.  */
20795 int main() {
20796         volatile unsigned long val = 1;
20797         __sync_synchronize();
20798         __sync_val_compare_and_swap(&val, 1, 0);
20799         __sync_add_and_fetch(&val, 1);
20800         __sync_sub_and_fetch(&val, 1);
20801         return 0;
20802       }
20803
20804 _ACEOF
20805 rm -f conftest.$ac_objext conftest$ac_exeext
20806 if { (ac_try="$ac_link"
20807 case "(($ac_try" in
20808   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20809   *) ac_try_echo=$ac_try;;
20810 esac
20811 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20812   (eval "$ac_link") 2>conftest.er1
20813   ac_status=$?
20814   grep -v '^ *+' conftest.er1 >conftest.err
20815   rm -f conftest.er1
20816   cat conftest.err >&5
20817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20818   (exit $ac_status); } &&
20819          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20820   { (case "(($ac_try" in
20821   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20822   *) ac_try_echo=$ac_try;;
20823 esac
20824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20825   (eval "$ac_try") 2>&5
20826   ac_status=$?
20827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20828   (exit $ac_status); }; } &&
20829          { ac_try='test -s conftest$ac_exeext'
20830   { (case "(($ac_try" in
20831   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20832   *) ac_try_echo=$ac_try;;
20833 esac
20834 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20835   (eval "$ac_try") 2>&5
20836   ac_status=$?
20837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20838   (exit $ac_status); }; }; then
20839   ac_ext=c
20840 ac_cpp='$CPP $CPPFLAGS'
20841 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20842 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20843 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20844
20845   { echo "$as_me:$LINENO: result: yes" >&5
20846 echo "${ECHO_T}yes" >&6; }
20847
20848 cat >>confdefs.h <<\_ACEOF
20849 #define LLVM_HAS_ATOMICS 1
20850 _ACEOF
20851
20852 else
20853   echo "$as_me: failed program was:" >&5
20854 sed 's/^/| /' conftest.$ac_ext >&5
20855
20856         { echo "$as_me:$LINENO: result: no" >&5
20857 echo "${ECHO_T}no" >&6; }
20858
20859 cat >>confdefs.h <<\_ACEOF
20860 #define LLVM_HAS_ATOMICS 0
20861 _ACEOF
20862
20863   { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
20864 echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
20865 fi
20866
20867 rm -f core conftest.err conftest.$ac_objext \
20868       conftest$ac_exeext conftest.$ac_ext
20869
20870
20871 if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
20872   { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
20873 echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
20874 if test "${llvm_cv_linux_mixed+set}" = set; then
20875   echo $ECHO_N "(cached) $ECHO_C" >&6
20876 else
20877    ac_ext=c
20878 ac_cpp='$CPP $CPPFLAGS'
20879 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20880 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20881 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20882
20883   cat >conftest.$ac_ext <<_ACEOF
20884 /* confdefs.h.  */
20885 _ACEOF
20886 cat confdefs.h >>conftest.$ac_ext
20887 cat >>conftest.$ac_ext <<_ACEOF
20888 /* end confdefs.h.  */
20889 #ifndef __x86_64__
20890        error: Not x86-64 even if uname says so!
20891       #endif
20892
20893 int
20894 main ()
20895 {
20896
20897   ;
20898   return 0;
20899 }
20900 _ACEOF
20901 rm -f conftest.$ac_objext
20902 if { (ac_try="$ac_compile"
20903 case "(($ac_try" in
20904   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20905   *) ac_try_echo=$ac_try;;
20906 esac
20907 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20908   (eval "$ac_compile") 2>conftest.er1
20909   ac_status=$?
20910   grep -v '^ *+' conftest.er1 >conftest.err
20911   rm -f conftest.er1
20912   cat conftest.err >&5
20913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20914   (exit $ac_status); } &&
20915          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20916   { (case "(($ac_try" in
20917   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20918   *) ac_try_echo=$ac_try;;
20919 esac
20920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20921   (eval "$ac_try") 2>&5
20922   ac_status=$?
20923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20924   (exit $ac_status); }; } &&
20925          { ac_try='test -s conftest.$ac_objext'
20926   { (case "(($ac_try" in
20927   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20928   *) ac_try_echo=$ac_try;;
20929 esac
20930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20931   (eval "$ac_try") 2>&5
20932   ac_status=$?
20933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20934   (exit $ac_status); }; }; then
20935   llvm_cv_linux_mixed=no
20936 else
20937   echo "$as_me: failed program was:" >&5
20938 sed 's/^/| /' conftest.$ac_ext >&5
20939
20940         llvm_cv_linux_mixed=yes
20941 fi
20942
20943 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20944   ac_ext=c
20945 ac_cpp='$CPP $CPPFLAGS'
20946 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20947 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20948 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20949
20950
20951 fi
20952 { echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
20953 echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
20954
20955   if test "$llvm_cv_linux_mixed" = "yes"; then
20956     llvm_cv_target_arch="x86"
20957     ARCH="x86"
20958   fi
20959 fi
20960
20961
20962 for ac_func in __dso_handle
20963 do
20964 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20965 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20966 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20967 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20968   echo $ECHO_N "(cached) $ECHO_C" >&6
20969 else
20970   cat >conftest.$ac_ext <<_ACEOF
20971 /* confdefs.h.  */
20972 _ACEOF
20973 cat confdefs.h >>conftest.$ac_ext
20974 cat >>conftest.$ac_ext <<_ACEOF
20975 /* end confdefs.h.  */
20976 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20977    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20978 #define $ac_func innocuous_$ac_func
20979
20980 /* System header to define __stub macros and hopefully few prototypes,
20981     which can conflict with char $ac_func (); below.
20982     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20983     <limits.h> exists even on freestanding compilers.  */
20984
20985 #ifdef __STDC__
20986 # include <limits.h>
20987 #else
20988 # include <assert.h>
20989 #endif
20990
20991 #undef $ac_func
20992
20993 /* Override any GCC internal prototype to avoid an error.
20994    Use char because int might match the return type of a GCC
20995    builtin and then its argument prototype would still apply.  */
20996 #ifdef __cplusplus
20997 extern "C"
20998 #endif
20999 char $ac_func ();
21000 /* The GNU C library defines this for functions which it implements
21001     to always fail with ENOSYS.  Some functions are actually named
21002     something starting with __ and the normal name is an alias.  */
21003 #if defined __stub_$ac_func || defined __stub___$ac_func
21004 choke me
21005 #endif
21006
21007 int
21008 main ()
21009 {
21010 return $ac_func ();
21011   ;
21012   return 0;
21013 }
21014 _ACEOF
21015 rm -f conftest.$ac_objext conftest$ac_exeext
21016 if { (ac_try="$ac_link"
21017 case "(($ac_try" in
21018   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21019   *) ac_try_echo=$ac_try;;
21020 esac
21021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21022   (eval "$ac_link") 2>conftest.er1
21023   ac_status=$?
21024   grep -v '^ *+' conftest.er1 >conftest.err
21025   rm -f conftest.er1
21026   cat conftest.err >&5
21027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21028   (exit $ac_status); } &&
21029          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21030   { (case "(($ac_try" in
21031   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21032   *) ac_try_echo=$ac_try;;
21033 esac
21034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21035   (eval "$ac_try") 2>&5
21036   ac_status=$?
21037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21038   (exit $ac_status); }; } &&
21039          { ac_try='test -s conftest$ac_exeext'
21040   { (case "(($ac_try" in
21041   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21042   *) ac_try_echo=$ac_try;;
21043 esac
21044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21045   (eval "$ac_try") 2>&5
21046   ac_status=$?
21047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21048   (exit $ac_status); }; }; then
21049   eval "$as_ac_var=yes"
21050 else
21051   echo "$as_me: failed program was:" >&5
21052 sed 's/^/| /' conftest.$ac_ext >&5
21053
21054         eval "$as_ac_var=no"
21055 fi
21056
21057 rm -f core conftest.err conftest.$ac_objext \
21058       conftest$ac_exeext conftest.$ac_ext
21059 fi
21060 ac_res=`eval echo '${'$as_ac_var'}'`
21061                { echo "$as_me:$LINENO: result: $ac_res" >&5
21062 echo "${ECHO_T}$ac_res" >&6; }
21063 if test `eval echo '${'$as_ac_var'}'` = yes; then
21064   cat >>confdefs.h <<_ACEOF
21065 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21066 _ACEOF
21067
21068 fi
21069 done
21070
21071
21072 SHLIBEXT=$libltdl_cv_shlibext
21073
21074
21075 SHLIBPATH_VAR=$libltdl_cv_shlibpath_var
21076
21077
21078 # Translate the various configuration directories and other basic
21079 # information into substitutions that will end up in Makefile.config.in
21080 # that these configured values can be used by the makefiles
21081 if test "${prefix}" = "NONE" ; then
21082   prefix="/usr/local"
21083 fi
21084 eval LLVM_PREFIX="${prefix}";
21085 eval LLVM_BINDIR="${prefix}/bin";
21086 eval LLVM_LIBDIR="${prefix}/lib";
21087 eval LLVM_DATADIR="${prefix}/share/llvm";
21088 eval LLVM_DOCSDIR="${prefix}/share/doc/llvm";
21089 eval LLVM_ETCDIR="${prefix}/etc/llvm";
21090 eval LLVM_INCLUDEDIR="${prefix}/include";
21091 eval LLVM_INFODIR="${prefix}/info";
21092 eval LLVM_MANDIR="${prefix}/man";
21093 LLVM_CONFIGTIME=`date`
21094
21095
21096
21097
21098
21099
21100
21101
21102
21103
21104
21105 # Place the various directores into the config.h file as #defines so that we
21106 # can know about the installation paths within LLVM.
21107
21108 cat >>confdefs.h <<_ACEOF
21109 #define LLVM_PREFIX "$LLVM_PREFIX"
21110 _ACEOF
21111
21112
21113 cat >>confdefs.h <<_ACEOF
21114 #define LLVM_BINDIR "$LLVM_BINDIR"
21115 _ACEOF
21116
21117
21118 cat >>confdefs.h <<_ACEOF
21119 #define LLVM_LIBDIR "$LLVM_LIBDIR"
21120 _ACEOF
21121
21122
21123 cat >>confdefs.h <<_ACEOF
21124 #define LLVM_DATADIR "$LLVM_DATADIR"
21125 _ACEOF
21126
21127
21128 cat >>confdefs.h <<_ACEOF
21129 #define LLVM_DOCSDIR "$LLVM_DOCSDIR"
21130 _ACEOF
21131
21132
21133 cat >>confdefs.h <<_ACEOF
21134 #define LLVM_ETCDIR "$LLVM_ETCDIR"
21135 _ACEOF
21136
21137
21138 cat >>confdefs.h <<_ACEOF
21139 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
21140 _ACEOF
21141
21142
21143 cat >>confdefs.h <<_ACEOF
21144 #define LLVM_INFODIR "$LLVM_INFODIR"
21145 _ACEOF
21146
21147
21148 cat >>confdefs.h <<_ACEOF
21149 #define LLVM_MANDIR "$LLVM_MANDIR"
21150 _ACEOF
21151
21152
21153 cat >>confdefs.h <<_ACEOF
21154 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
21155 _ACEOF
21156
21157
21158 cat >>confdefs.h <<_ACEOF
21159 #define LLVM_HOSTTRIPLE "$host"
21160 _ACEOF
21161
21162
21163 # Determine which bindings to build.
21164 if test "$BINDINGS_TO_BUILD" = auto ; then
21165   BINDINGS_TO_BUILD=""
21166   if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
21167     BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
21168   fi
21169 fi
21170 BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
21171
21172
21173 # This isn't really configurey, but it avoids having to repeat the list in
21174 # other files.
21175 ALL_BINDINGS=ocaml
21176
21177
21178 # Do any work necessary to ensure that bindings have what they need.
21179 binding_prereqs_failed=0
21180 for a_binding in $BINDINGS_TO_BUILD ; do
21181   case "$a_binding" in
21182   ocaml)
21183     if test "x$OCAMLC" = x ; then
21184       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
21185 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
21186       binding_prereqs_failed=1
21187     fi
21188     if test "x$OCAMLDEP" = x ; then
21189       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
21190 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
21191       binding_prereqs_failed=1
21192     fi
21193     if test "x$OCAMLOPT" = x ; then
21194       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
21195 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
21196           fi
21197     if test "x$with_ocaml_libdir" != xauto ; then
21198       OCAML_LIBDIR=$with_ocaml_libdir
21199
21200     else
21201       ocaml_stdlib="`"$OCAMLC" -where`"
21202       if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
21203       then
21204         # ocaml stdlib is beneath our prefix; use stdlib
21205         OCAML_LIBDIR=$ocaml_stdlib
21206
21207       else
21208         # ocaml stdlib is outside our prefix; use libdir/ocaml
21209         OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
21210
21211       fi
21212     fi
21213     ;;
21214   esac
21215 done
21216 if test "$binding_prereqs_failed" = 1 ; then
21217   { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
21218 echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
21219    { (exit 1); exit 1; }; }
21220 fi
21221
21222 { echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
21223 echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
21224 if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
21225   echo $ECHO_N "(cached) $ECHO_C" >&6
21226 else
21227    ac_ext=cpp
21228 ac_cpp='$CXXCPP $CPPFLAGS'
21229 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21230 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21231 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21232
21233   oldcxxflags="$CXXFLAGS"
21234   CXXFLAGS="$CXXFLAGS -fvisibility-inlines-hidden"
21235   cat >conftest.$ac_ext <<_ACEOF
21236 /* confdefs.h.  */
21237 _ACEOF
21238 cat confdefs.h >>conftest.$ac_ext
21239 cat >>conftest.$ac_ext <<_ACEOF
21240 /* end confdefs.h.  */
21241
21242 int
21243 main ()
21244 {
21245
21246   ;
21247   return 0;
21248 }
21249 _ACEOF
21250 rm -f conftest.$ac_objext
21251 if { (ac_try="$ac_compile"
21252 case "(($ac_try" in
21253   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21254   *) ac_try_echo=$ac_try;;
21255 esac
21256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21257   (eval "$ac_compile") 2>conftest.er1
21258   ac_status=$?
21259   grep -v '^ *+' conftest.er1 >conftest.err
21260   rm -f conftest.er1
21261   cat conftest.err >&5
21262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21263   (exit $ac_status); } &&
21264          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21265   { (case "(($ac_try" in
21266   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21267   *) ac_try_echo=$ac_try;;
21268 esac
21269 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21270   (eval "$ac_try") 2>&5
21271   ac_status=$?
21272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21273   (exit $ac_status); }; } &&
21274          { ac_try='test -s conftest.$ac_objext'
21275   { (case "(($ac_try" in
21276   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21277   *) ac_try_echo=$ac_try;;
21278 esac
21279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21280   (eval "$ac_try") 2>&5
21281   ac_status=$?
21282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21283   (exit $ac_status); }; }; then
21284   llvm_cv_cxx_visibility_inlines_hidden=yes
21285 else
21286   echo "$as_me: failed program was:" >&5
21287 sed 's/^/| /' conftest.$ac_ext >&5
21288
21289         llvm_cv_cxx_visibility_inlines_hidden=no
21290 fi
21291
21292 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21293   CXXFLAGS="$oldcxxflags"
21294   ac_ext=c
21295 ac_cpp='$CPP $CPPFLAGS'
21296 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21297 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21298 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21299
21300
21301 fi
21302 { echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
21303 echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
21304 if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
21305   ENABLE_VISIBILITY_INLINES_HIDDEN=1
21306
21307 else
21308   ENABLE_VISIBILITY_INLINES_HIDDEN=0
21309
21310 fi
21311
21312
21313 if test "$llvm_cv_link_use_r" = "yes" ; then
21314   RPATH="-Wl,-R"
21315 else
21316   RPATH="-Wl,-rpath"
21317 fi
21318
21319
21320 if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
21321   RDYNAMIC="-Wl,-export-dynamic"
21322 else
21323   RDYNAMIC=""
21324 fi
21325
21326
21327
21328 ac_config_headers="$ac_config_headers include/llvm/Config/config.h include/llvm/Config/llvm-config.h"
21329
21330
21331
21332
21333
21334
21335 ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
21336
21337 ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
21338
21339 ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
21340
21341 ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def"
21342
21343 ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
21344
21345
21346 ac_config_files="$ac_config_files Makefile.config"
21347
21348
21349 ac_config_files="$ac_config_files llvm.spec"
21350
21351
21352 ac_config_files="$ac_config_files docs/doxygen.cfg"
21353
21354 if test -f ${srcdir}/tools/clang/README.txt; then
21355   ac_config_files="$ac_config_files tools/clang/docs/doxygen.cfg"
21356
21357 fi
21358
21359 ac_config_files="$ac_config_files tools/llvm-config/llvm-config.in"
21360
21361
21362 ac_config_commands="$ac_config_commands setup"
21363
21364 ac_config_commands="$ac_config_commands Makefile"
21365
21366
21367 ac_config_commands="$ac_config_commands Makefile.common"
21368
21369
21370 ac_config_commands="$ac_config_commands examples/Makefile"
21371
21372
21373 ac_config_commands="$ac_config_commands lib/Makefile"
21374
21375
21376 ac_config_commands="$ac_config_commands runtime/Makefile"
21377
21378
21379 ac_config_commands="$ac_config_commands test/Makefile"
21380
21381
21382 ac_config_commands="$ac_config_commands test/Makefile.tests"
21383
21384
21385 ac_config_commands="$ac_config_commands unittests/Makefile"
21386
21387
21388 ac_config_commands="$ac_config_commands tools/Makefile"
21389
21390
21391 ac_config_commands="$ac_config_commands utils/Makefile"
21392
21393
21394 ac_config_commands="$ac_config_commands projects/Makefile"
21395
21396
21397 ac_config_commands="$ac_config_commands bindings/Makefile"
21398
21399
21400 ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
21401
21402
21403
21404 cat >confcache <<\_ACEOF
21405 # This file is a shell script that caches the results of configure
21406 # tests run on this system so they can be shared between configure
21407 # scripts and configure runs, see configure's option --config-cache.
21408 # It is not useful on other systems.  If it contains results you don't
21409 # want to keep, you may remove or edit it.
21410 #
21411 # config.status only pays attention to the cache file if you give it
21412 # the --recheck option to rerun configure.
21413 #
21414 # `ac_cv_env_foo' variables (set or unset) will be overridden when
21415 # loading this file, other *unset* `ac_cv_foo' will be assigned the
21416 # following values.
21417
21418 _ACEOF
21419
21420 # The following way of writing the cache mishandles newlines in values,
21421 # but we know of no workaround that is simple, portable, and efficient.
21422 # So, we kill variables containing newlines.
21423 # Ultrix sh set writes to stderr and can't be redirected directly,
21424 # and sets the high bit in the cache file unless we assign to the vars.
21425 (
21426   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
21427     eval ac_val=\$$ac_var
21428     case $ac_val in #(
21429     *${as_nl}*)
21430       case $ac_var in #(
21431       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
21432 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
21433       esac
21434       case $ac_var in #(
21435       _ | IFS | as_nl) ;; #(
21436       *) $as_unset $ac_var ;;
21437       esac ;;
21438     esac
21439   done
21440
21441   (set) 2>&1 |
21442     case $as_nl`(ac_space=' '; set) 2>&1` in #(
21443     *${as_nl}ac_space=\ *)
21444       # `set' does not quote correctly, so add quotes (double-quote
21445       # substitution turns \\\\ into \\, and sed turns \\ into \).
21446       sed -n \
21447         "s/'/'\\\\''/g;
21448           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21449       ;; #(
21450     *)
21451       # `set' quotes correctly as required by POSIX, so do not add quotes.
21452       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
21453       ;;
21454     esac |
21455     sort
21456 ) |
21457   sed '
21458      /^ac_cv_env_/b end
21459      t clear
21460      :clear
21461      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21462      t end
21463      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21464      :end' >>confcache
21465 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
21466   if test -w "$cache_file"; then
21467     test "x$cache_file" != "x/dev/null" &&
21468       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
21469 echo "$as_me: updating cache $cache_file" >&6;}
21470     cat confcache >$cache_file
21471   else
21472     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
21473 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
21474   fi
21475 fi
21476 rm -f confcache
21477
21478 test "x$prefix" = xNONE && prefix=$ac_default_prefix
21479 # Let make expand exec_prefix.
21480 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21481
21482 DEFS=-DHAVE_CONFIG_H
21483
21484 ac_libobjs=
21485 ac_ltlibobjs=
21486 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21487   # 1. Remove the extension, and $U if already installed.
21488   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
21489   ac_i=`echo "$ac_i" | sed "$ac_script"`
21490   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
21491   #    will be set to the directory where LIBOBJS objects are built.
21492   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21493   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
21494 done
21495 LIBOBJS=$ac_libobjs
21496
21497 LTLIBOBJS=$ac_ltlibobjs
21498
21499
21500 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
21501   { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
21502 Usually this means the macro was only invoked conditionally." >&5
21503 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
21504 Usually this means the macro was only invoked conditionally." >&2;}
21505    { (exit 1); exit 1; }; }
21506 fi
21507 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
21508   { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21509 Usually this means the macro was only invoked conditionally." >&5
21510 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21511 Usually this means the macro was only invoked conditionally." >&2;}
21512    { (exit 1); exit 1; }; }
21513 fi
21514
21515 : ${CONFIG_STATUS=./config.status}
21516 ac_clean_files_save=$ac_clean_files
21517 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21518 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21519 echo "$as_me: creating $CONFIG_STATUS" >&6;}
21520 cat >$CONFIG_STATUS <<_ACEOF
21521 #! $SHELL
21522 # Generated by $as_me.
21523 # Run this file to recreate the current configuration.
21524 # Compiler output produced by configure, useful for debugging
21525 # configure, is in config.log if it exists.
21526
21527 debug=false
21528 ac_cs_recheck=false
21529 ac_cs_silent=false
21530 SHELL=\${CONFIG_SHELL-$SHELL}
21531 _ACEOF
21532
21533 cat >>$CONFIG_STATUS <<\_ACEOF
21534 ## --------------------- ##
21535 ## M4sh Initialization.  ##
21536 ## --------------------- ##
21537
21538 # Be Bourne compatible
21539 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21540   emulate sh
21541   NULLCMD=:
21542   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21543   # is contrary to our usage.  Disable this feature.
21544   alias -g '${1+"$@"}'='"$@"'
21545   setopt NO_GLOB_SUBST
21546 else
21547   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
21548 fi
21549 BIN_SH=xpg4; export BIN_SH # for Tru64
21550 DUALCASE=1; export DUALCASE # for MKS sh
21551
21552
21553 # PATH needs CR
21554 # Avoid depending upon Character Ranges.
21555 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21556 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21557 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21558 as_cr_digits='0123456789'
21559 as_cr_alnum=$as_cr_Letters$as_cr_digits
21560
21561 # The user is always right.
21562 if test "${PATH_SEPARATOR+set}" != set; then
21563   echo "#! /bin/sh" >conf$$.sh
21564   echo  "exit 0"   >>conf$$.sh
21565   chmod +x conf$$.sh
21566   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21567     PATH_SEPARATOR=';'
21568   else
21569     PATH_SEPARATOR=:
21570   fi
21571   rm -f conf$$.sh
21572 fi
21573
21574 # Support unset when possible.
21575 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21576   as_unset=unset
21577 else
21578   as_unset=false
21579 fi
21580
21581
21582 # IFS
21583 # We need space, tab and new line, in precisely that order.  Quoting is
21584 # there to prevent editors from complaining about space-tab.
21585 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
21586 # splitting by setting IFS to empty value.)
21587 as_nl='
21588 '
21589 IFS=" ""        $as_nl"
21590
21591 # Find who we are.  Look in the path if we contain no directory separator.
21592 case $0 in
21593   *[\\/]* ) as_myself=$0 ;;
21594   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21595 for as_dir in $PATH
21596 do
21597   IFS=$as_save_IFS
21598   test -z "$as_dir" && as_dir=.
21599   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21600 done
21601 IFS=$as_save_IFS
21602
21603      ;;
21604 esac
21605 # We did not find ourselves, most probably we were run as `sh COMMAND'
21606 # in which case we are not to be found in the path.
21607 if test "x$as_myself" = x; then
21608   as_myself=$0
21609 fi
21610 if test ! -f "$as_myself"; then
21611   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21612   { (exit 1); exit 1; }
21613 fi
21614
21615 # Work around bugs in pre-3.0 UWIN ksh.
21616 for as_var in ENV MAIL MAILPATH
21617 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21618 done
21619 PS1='$ '
21620 PS2='> '
21621 PS4='+ '
21622
21623 # NLS nuisances.
21624 for as_var in \
21625   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21626   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21627   LC_TELEPHONE LC_TIME
21628 do
21629   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21630     eval $as_var=C; export $as_var
21631   else
21632     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21633   fi
21634 done
21635
21636 # Required to use basename.
21637 if expr a : '\(a\)' >/dev/null 2>&1 &&
21638    test "X`expr 00001 : '.*\(...\)'`" = X001; then
21639   as_expr=expr
21640 else
21641   as_expr=false
21642 fi
21643
21644 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21645   as_basename=basename
21646 else
21647   as_basename=false
21648 fi
21649
21650
21651 # Name of the executable.
21652 as_me=`$as_basename -- "$0" ||
21653 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21654          X"$0" : 'X\(//\)$' \| \
21655          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
21656 echo X/"$0" |
21657     sed '/^.*\/\([^/][^/]*\)\/*$/{
21658             s//\1/
21659             q
21660           }
21661           /^X\/\(\/\/\)$/{
21662             s//\1/
21663             q
21664           }
21665           /^X\/\(\/\).*/{
21666             s//\1/
21667             q
21668           }
21669           s/.*/./; q'`
21670
21671 # CDPATH.
21672 $as_unset CDPATH
21673
21674
21675
21676   as_lineno_1=$LINENO
21677   as_lineno_2=$LINENO
21678   test "x$as_lineno_1" != "x$as_lineno_2" &&
21679   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
21680
21681   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21682   # uniformly replaced by the line number.  The first 'sed' inserts a
21683   # line-number line after each line using $LINENO; the second 'sed'
21684   # does the real work.  The second script uses 'N' to pair each
21685   # line-number line with the line containing $LINENO, and appends
21686   # trailing '-' during substitution so that $LINENO is not a special
21687   # case at line end.
21688   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21689   # scripts with optimization help from Paolo Bonzini.  Blame Lee
21690   # E. McMahon (1931-1989) for sed's syntax.  :-)
21691   sed -n '
21692     p
21693     /[$]LINENO/=
21694   ' <$as_myself |
21695     sed '
21696       s/[$]LINENO.*/&-/
21697       t lineno
21698       b
21699       :lineno
21700       N
21701       :loop
21702       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
21703       t loop
21704       s/-\n.*//
21705     ' >$as_me.lineno &&
21706   chmod +x "$as_me.lineno" ||
21707     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
21708    { (exit 1); exit 1; }; }
21709
21710   # Don't try to exec as it changes $[0], causing all sort of problems
21711   # (the dirname of $[0] is not the place where we might find the
21712   # original and so on.  Autoconf is especially sensitive to this).
21713   . "./$as_me.lineno"
21714   # Exit status is that of the last command.
21715   exit
21716 }
21717
21718
21719 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21720   as_dirname=dirname
21721 else
21722   as_dirname=false
21723 fi
21724
21725 ECHO_C= ECHO_N= ECHO_T=
21726 case `echo -n x` in
21727 -n*)
21728   case `echo 'x\c'` in
21729   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
21730   *)   ECHO_C='\c';;
21731   esac;;
21732 *)
21733   ECHO_N='-n';;
21734 esac
21735
21736 if expr a : '\(a\)' >/dev/null 2>&1 &&
21737    test "X`expr 00001 : '.*\(...\)'`" = X001; then
21738   as_expr=expr
21739 else
21740   as_expr=false
21741 fi
21742
21743 rm -f conf$$ conf$$.exe conf$$.file
21744 if test -d conf$$.dir; then
21745   rm -f conf$$.dir/conf$$.file
21746 else
21747   rm -f conf$$.dir
21748   mkdir conf$$.dir
21749 fi
21750 echo >conf$$.file
21751 if ln -s conf$$.file conf$$ 2>/dev/null; then
21752   as_ln_s='ln -s'
21753   # ... but there are two gotchas:
21754   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21755   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21756   # In both cases, we have to default to `cp -p'.
21757   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
21758     as_ln_s='cp -p'
21759 elif ln conf$$.file conf$$ 2>/dev/null; then
21760   as_ln_s=ln
21761 else
21762   as_ln_s='cp -p'
21763 fi
21764 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21765 rmdir conf$$.dir 2>/dev/null
21766
21767 if mkdir -p . 2>/dev/null; then
21768   as_mkdir_p=:
21769 else
21770   test -d ./-p && rmdir ./-p
21771   as_mkdir_p=false
21772 fi
21773
21774 # Find out whether ``test -x'' works.  Don't use a zero-byte file, as
21775 # systems may use methods other than mode bits to determine executability.
21776 cat >conf$$.file <<_ASEOF
21777 #! /bin/sh
21778 exit 0
21779 _ASEOF
21780 chmod +x conf$$.file
21781 if test -x conf$$.file >/dev/null 2>&1; then
21782   as_executable_p="test -x"
21783 else
21784   as_executable_p=:
21785 fi
21786 rm -f conf$$.file
21787
21788 # Sed expression to map a string onto a valid CPP name.
21789 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21790
21791 # Sed expression to map a string onto a valid variable name.
21792 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21793
21794
21795 exec 6>&1
21796
21797 # Save the log message, to keep $[0] and so on meaningful, and to
21798 # report actual input values of CONFIG_FILES etc. instead of their
21799 # values after options handling.
21800 ac_log="
21801 This file was extended by llvm $as_me 3.0svn, which was
21802 generated by GNU Autoconf 2.60.  Invocation command line was
21803
21804   CONFIG_FILES    = $CONFIG_FILES
21805   CONFIG_HEADERS  = $CONFIG_HEADERS
21806   CONFIG_LINKS    = $CONFIG_LINKS
21807   CONFIG_COMMANDS = $CONFIG_COMMANDS
21808   $ $0 $@
21809
21810 on `(hostname || uname -n) 2>/dev/null | sed 1q`
21811 "
21812
21813 _ACEOF
21814
21815 cat >>$CONFIG_STATUS <<_ACEOF
21816 # Files that config.status was made for.
21817 config_files="$ac_config_files"
21818 config_headers="$ac_config_headers"
21819 config_commands="$ac_config_commands"
21820
21821 _ACEOF
21822
21823 cat >>$CONFIG_STATUS <<\_ACEOF
21824 ac_cs_usage="\
21825 \`$as_me' instantiates files from templates according to the
21826 current configuration.
21827
21828 Usage: $0 [OPTIONS] [FILE]...
21829
21830   -h, --help       print this help, then exit
21831   -V, --version    print version number, then exit
21832   -q, --quiet      do not print progress messages
21833   -d, --debug      don't remove temporary files
21834       --recheck    update $as_me by reconfiguring in the same conditions
21835   --file=FILE[:TEMPLATE]
21836                    instantiate the configuration file FILE
21837   --header=FILE[:TEMPLATE]
21838                    instantiate the configuration header FILE
21839
21840 Configuration files:
21841 $config_files
21842
21843 Configuration headers:
21844 $config_headers
21845
21846 Configuration commands:
21847 $config_commands
21848
21849 Report bugs to <bug-autoconf@gnu.org>."
21850
21851 _ACEOF
21852 cat >>$CONFIG_STATUS <<_ACEOF
21853 ac_cs_version="\\
21854 llvm config.status 3.0svn
21855 configured by $0, generated by GNU Autoconf 2.60,
21856   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
21857
21858 Copyright (C) 2006 Free Software Foundation, Inc.
21859 This config.status script is free software; the Free Software Foundation
21860 gives unlimited permission to copy, distribute and modify it."
21861
21862 ac_pwd='$ac_pwd'
21863 srcdir='$srcdir'
21864 INSTALL='$INSTALL'
21865 _ACEOF
21866
21867 cat >>$CONFIG_STATUS <<\_ACEOF
21868 # If no file are specified by the user, then we need to provide default
21869 # value.  By we need to know if files were specified by the user.
21870 ac_need_defaults=:
21871 while test $# != 0
21872 do
21873   case $1 in
21874   --*=*)
21875     ac_option=`expr "X$1" : 'X\([^=]*\)='`
21876     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
21877     ac_shift=:
21878     ;;
21879   *)
21880     ac_option=$1
21881     ac_optarg=$2
21882     ac_shift=shift
21883     ;;
21884   esac
21885
21886   case $ac_option in
21887   # Handling of the options.
21888   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21889     ac_cs_recheck=: ;;
21890   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
21891     echo "$ac_cs_version"; exit ;;
21892   --debug | --debu | --deb | --de | --d | -d )
21893     debug=: ;;
21894   --file | --fil | --fi | --f )
21895     $ac_shift
21896     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
21897     ac_need_defaults=false;;
21898   --header | --heade | --head | --hea )
21899     $ac_shift
21900     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
21901     ac_need_defaults=false;;
21902   --he | --h)
21903     # Conflict between --help and --header
21904     { echo "$as_me: error: ambiguous option: $1
21905 Try \`$0 --help' for more information." >&2
21906    { (exit 1); exit 1; }; };;
21907   --help | --hel | -h )
21908     echo "$ac_cs_usage"; exit ;;
21909   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21910   | -silent | --silent | --silen | --sile | --sil | --si | --s)
21911     ac_cs_silent=: ;;
21912
21913   # This is an error.
21914   -*) { echo "$as_me: error: unrecognized option: $1
21915 Try \`$0 --help' for more information." >&2
21916    { (exit 1); exit 1; }; } ;;
21917
21918   *) ac_config_targets="$ac_config_targets $1"
21919      ac_need_defaults=false ;;
21920
21921   esac
21922   shift
21923 done
21924
21925 ac_configure_extra_args=
21926
21927 if $ac_cs_silent; then
21928   exec 6>/dev/null
21929   ac_configure_extra_args="$ac_configure_extra_args --silent"
21930 fi
21931
21932 _ACEOF
21933 cat >>$CONFIG_STATUS <<_ACEOF
21934 if \$ac_cs_recheck; then
21935   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21936   CONFIG_SHELL=$SHELL
21937   export CONFIG_SHELL
21938   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21939 fi
21940
21941 _ACEOF
21942 cat >>$CONFIG_STATUS <<\_ACEOF
21943 exec 5>>config.log
21944 {
21945   echo
21946   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21947 ## Running $as_me. ##
21948 _ASBOX
21949   echo "$ac_log"
21950 } >&5
21951
21952 _ACEOF
21953 cat >>$CONFIG_STATUS <<_ACEOF
21954 #
21955 # INIT-COMMANDS
21956 #
21957 llvm_src="${srcdir}"
21958
21959 _ACEOF
21960
21961 cat >>$CONFIG_STATUS <<\_ACEOF
21962
21963 # Handling of arguments.
21964 for ac_config_target in $ac_config_targets
21965 do
21966   case $ac_config_target in
21967     "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
21968     "include/llvm/Config/llvm-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/llvm-config.h" ;;
21969     "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
21970     "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
21971     "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
21972     "include/llvm/Config/Disassemblers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Disassemblers.def" ;;
21973     "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
21974     "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
21975     "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
21976     "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
21977     "tools/clang/docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES tools/clang/docs/doxygen.cfg" ;;
21978     "tools/llvm-config/llvm-config.in") CONFIG_FILES="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;;
21979     "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
21980     "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
21981     "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
21982     "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
21983     "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
21984     "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
21985     "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
21986     "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
21987     "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
21988     "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
21989     "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
21990     "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
21991     "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
21992     "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
21993
21994   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21995 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21996    { (exit 1); exit 1; }; };;
21997   esac
21998 done
21999
22000
22001 # If the user did not use the arguments to specify the items to instantiate,
22002 # then the envvar interface is used.  Set only those that are not.
22003 # We use the long form for the default assignment because of an extremely
22004 # bizarre bug on SunOS 4.1.3.
22005 if $ac_need_defaults; then
22006   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
22007   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
22008   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
22009 fi
22010
22011 # Have a temporary directory for convenience.  Make it in the build tree
22012 # simply because there is no reason against having it here, and in addition,
22013 # creating and moving files from /tmp can sometimes cause problems.
22014 # Hook for its removal unless debugging.
22015 # Note that there is a small window in which the directory will not be cleaned:
22016 # after its creation but before its name has been assigned to `$tmp'.
22017 $debug ||
22018 {
22019   tmp=
22020   trap 'exit_status=$?
22021   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
22022 ' 0
22023   trap '{ (exit 1); exit 1; }' 1 2 13 15
22024 }
22025 # Create a (secure) tmp directory for tmp files.
22026
22027 {
22028   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
22029   test -n "$tmp" && test -d "$tmp"
22030 }  ||
22031 {
22032   tmp=./conf$$-$RANDOM
22033   (umask 077 && mkdir "$tmp")
22034 } ||
22035 {
22036    echo "$me: cannot create a temporary directory in ." >&2
22037    { (exit 1); exit 1; }
22038 }
22039
22040 #
22041 # Set up the sed scripts for CONFIG_FILES section.
22042 #
22043
22044 # No need to generate the scripts if there are no CONFIG_FILES.
22045 # This happens for instance when ./config.status config.h
22046 if test -n "$CONFIG_FILES"; then
22047
22048 _ACEOF
22049
22050
22051
22052 ac_delim='%!_!# '
22053 for ac_last_try in false false false false false :; do
22054   cat >conf$$subs.sed <<_ACEOF
22055 SHELL!$SHELL$ac_delim
22056 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
22057 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
22058 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
22059 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
22060 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
22061 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
22062 exec_prefix!$exec_prefix$ac_delim
22063 prefix!$prefix$ac_delim
22064 program_transform_name!$program_transform_name$ac_delim
22065 bindir!$bindir$ac_delim
22066 sbindir!$sbindir$ac_delim
22067 libexecdir!$libexecdir$ac_delim
22068 datarootdir!$datarootdir$ac_delim
22069 datadir!$datadir$ac_delim
22070 sysconfdir!$sysconfdir$ac_delim
22071 sharedstatedir!$sharedstatedir$ac_delim
22072 localstatedir!$localstatedir$ac_delim
22073 includedir!$includedir$ac_delim
22074 oldincludedir!$oldincludedir$ac_delim
22075 docdir!$docdir$ac_delim
22076 infodir!$infodir$ac_delim
22077 htmldir!$htmldir$ac_delim
22078 dvidir!$dvidir$ac_delim
22079 pdfdir!$pdfdir$ac_delim
22080 psdir!$psdir$ac_delim
22081 libdir!$libdir$ac_delim
22082 localedir!$localedir$ac_delim
22083 mandir!$mandir$ac_delim
22084 DEFS!$DEFS$ac_delim
22085 ECHO_C!$ECHO_C$ac_delim
22086 ECHO_N!$ECHO_N$ac_delim
22087 ECHO_T!$ECHO_T$ac_delim
22088 LIBS!$LIBS$ac_delim
22089 build_alias!$build_alias$ac_delim
22090 host_alias!$host_alias$ac_delim
22091 target_alias!$target_alias$ac_delim
22092 LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
22093 CC!$CC$ac_delim
22094 CFLAGS!$CFLAGS$ac_delim
22095 LDFLAGS!$LDFLAGS$ac_delim
22096 CPPFLAGS!$CPPFLAGS$ac_delim
22097 ac_ct_CC!$ac_ct_CC$ac_delim
22098 EXEEXT!$EXEEXT$ac_delim
22099 OBJEXT!$OBJEXT$ac_delim
22100 CXX!$CXX$ac_delim
22101 CXXFLAGS!$CXXFLAGS$ac_delim
22102 ac_ct_CXX!$ac_ct_CXX$ac_delim
22103 CPP!$CPP$ac_delim
22104 subdirs!$subdirs$ac_delim
22105 ENABLE_POLLY!$ENABLE_POLLY$ac_delim
22106 LLVM_HAS_POLLY!$LLVM_HAS_POLLY$ac_delim
22107 build!$build$ac_delim
22108 build_cpu!$build_cpu$ac_delim
22109 build_vendor!$build_vendor$ac_delim
22110 build_os!$build_os$ac_delim
22111 host!$host$ac_delim
22112 host_cpu!$host_cpu$ac_delim
22113 host_vendor!$host_vendor$ac_delim
22114 host_os!$host_os$ac_delim
22115 target!$target$ac_delim
22116 target_cpu!$target_cpu$ac_delim
22117 target_vendor!$target_vendor$ac_delim
22118 target_os!$target_os$ac_delim
22119 OS!$OS$ac_delim
22120 HOST_OS!$HOST_OS$ac_delim
22121 TARGET_OS!$TARGET_OS$ac_delim
22122 LINKALL!$LINKALL$ac_delim
22123 NOLINKALL!$NOLINKALL$ac_delim
22124 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
22125 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
22126 ARCH!$ARCH$ac_delim
22127 ENDIAN!$ENDIAN$ac_delim
22128 GREP!$GREP$ac_delim
22129 EGREP!$EGREP$ac_delim
22130 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
22131 BUILD_CC!$BUILD_CC$ac_delim
22132 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
22133 BUILD_CXX!$BUILD_CXX$ac_delim
22134 CVSBUILD!$CVSBUILD$ac_delim
22135 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
22136 ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
22137 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
22138 ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
22139 EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
22140 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
22141 DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
22142 JIT!$JIT$ac_delim
22143 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
22144 ENABLE_DOCS!$ENABLE_DOCS$ac_delim
22145 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
22146 ENABLE_THREADS!$ENABLE_THREADS$ac_delim
22147 ENABLE_PTHREADS!$ENABLE_PTHREADS$ac_delim
22148 ENABLE_PIC!$ENABLE_PIC$ac_delim
22149 ENABLE_SHARED!$ENABLE_SHARED$ac_delim
22150 ENABLE_EMBED_STDCXX!$ENABLE_EMBED_STDCXX$ac_delim
22151 ENABLE_TIMESTAMPS!$ENABLE_TIMESTAMPS$ac_delim
22152 _ACEOF
22153
22154   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
22155     break
22156   elif $ac_last_try; then
22157     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22158 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22159    { (exit 1); exit 1; }; }
22160   else
22161     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22162   fi
22163 done
22164
22165 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
22166 if test -n "$ac_eof"; then
22167   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
22168   ac_eof=`expr $ac_eof + 1`
22169 fi
22170
22171 cat >>$CONFIG_STATUS <<_ACEOF
22172 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
22173 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22174 _ACEOF
22175 sed '
22176 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22177 s/^/s,@/; s/!/@,|#_!!_#|/
22178 :n
22179 t n
22180 s/'"$ac_delim"'$/,g/; t
22181 s/$/\\/; p
22182 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22183 ' >>$CONFIG_STATUS <conf$$subs.sed
22184 rm -f conf$$subs.sed
22185 cat >>$CONFIG_STATUS <<_ACEOF
22186 CEOF$ac_eof
22187 _ACEOF
22188
22189
22190 ac_delim='%!_!# '
22191 for ac_last_try in false false false false false :; do
22192   cat >conf$$subs.sed <<_ACEOF
22193 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
22194 LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
22195 LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
22196 LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
22197 LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
22198 ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim
22199 CLANGPATH!$CLANGPATH$ac_delim
22200 CLANGXXPATH!$CLANGXXPATH$ac_delim
22201 ENABLE_BUILT_CLANG!$ENABLE_BUILT_CLANG$ac_delim
22202 OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
22203 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
22204 EXTRA_LD_OPTIONS!$EXTRA_LD_OPTIONS$ac_delim
22205 BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
22206 NM!$NM$ac_delim
22207 ifGNUmake!$ifGNUmake$ac_delim
22208 LN_S!$LN_S$ac_delim
22209 CMP!$CMP$ac_delim
22210 CP!$CP$ac_delim
22211 DATE!$DATE$ac_delim
22212 FIND!$FIND$ac_delim
22213 MKDIR!$MKDIR$ac_delim
22214 MV!$MV$ac_delim
22215 RANLIB!$RANLIB$ac_delim
22216 AR!$AR$ac_delim
22217 RM!$RM$ac_delim
22218 SED!$SED$ac_delim
22219 TAR!$TAR$ac_delim
22220 BINPWD!$BINPWD$ac_delim
22221 GRAPHVIZ!$GRAPHVIZ$ac_delim
22222 DOT!$DOT$ac_delim
22223 FDP!$FDP$ac_delim
22224 NEATO!$NEATO$ac_delim
22225 TWOPI!$TWOPI$ac_delim
22226 CIRCO!$CIRCO$ac_delim
22227 GV!$GV$ac_delim
22228 DOTTY!$DOTTY$ac_delim
22229 XDOT_PY!$XDOT_PY$ac_delim
22230 PERL!$PERL$ac_delim
22231 HAVE_PERL!$HAVE_PERL$ac_delim
22232 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
22233 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
22234 INSTALL_DATA!$INSTALL_DATA$ac_delim
22235 BZIP2!$BZIP2$ac_delim
22236 CAT!$CAT$ac_delim
22237 DOXYGEN!$DOXYGEN$ac_delim
22238 GROFF!$GROFF$ac_delim
22239 GZIPBIN!$GZIPBIN$ac_delim
22240 POD2HTML!$POD2HTML$ac_delim
22241 POD2MAN!$POD2MAN$ac_delim
22242 PDFROFF!$PDFROFF$ac_delim
22243 RUNTEST!$RUNTEST$ac_delim
22244 TCLSH!$TCLSH$ac_delim
22245 ZIP!$ZIP$ac_delim
22246 OCAMLC!$OCAMLC$ac_delim
22247 OCAMLOPT!$OCAMLOPT$ac_delim
22248 OCAMLDEP!$OCAMLDEP$ac_delim
22249 OCAMLDOC!$OCAMLDOC$ac_delim
22250 GAS!$GAS$ac_delim
22251 HAVE_LINK_VERSION_SCRIPT!$HAVE_LINK_VERSION_SCRIPT$ac_delim
22252 INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
22253 INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
22254 CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
22255 CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
22256 LIBADD_DL!$LIBADD_DL$ac_delim
22257 LLVMCC_OPTION!$LLVMCC_OPTION$ac_delim
22258 NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
22259 NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
22260 USE_UDIS86!$USE_UDIS86$ac_delim
22261 USE_OPROFILE!$USE_OPROFILE$ac_delim
22262 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
22263 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
22264 MMAP_FILE!$MMAP_FILE$ac_delim
22265 SHLIBEXT!$SHLIBEXT$ac_delim
22266 SHLIBPATH_VAR!$SHLIBPATH_VAR$ac_delim
22267 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
22268 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
22269 LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
22270 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
22271 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
22272 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
22273 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
22274 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
22275 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
22276 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
22277 BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
22278 ALL_BINDINGS!$ALL_BINDINGS$ac_delim
22279 OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
22280 ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
22281 RPATH!$RPATH$ac_delim
22282 RDYNAMIC!$RDYNAMIC$ac_delim
22283 LIBOBJS!$LIBOBJS$ac_delim
22284 LTLIBOBJS!$LTLIBOBJS$ac_delim
22285 _ACEOF
22286
22287   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 92; then
22288     break
22289   elif $ac_last_try; then
22290     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22291 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22292    { (exit 1); exit 1; }; }
22293   else
22294     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22295   fi
22296 done
22297
22298 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
22299 if test -n "$ac_eof"; then
22300   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
22301   ac_eof=`expr $ac_eof + 1`
22302 fi
22303
22304 cat >>$CONFIG_STATUS <<_ACEOF
22305 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
22306 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
22307 _ACEOF
22308 sed '
22309 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22310 s/^/s,@/; s/!/@,|#_!!_#|/
22311 :n
22312 t n
22313 s/'"$ac_delim"'$/,g/; t
22314 s/$/\\/; p
22315 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22316 ' >>$CONFIG_STATUS <conf$$subs.sed
22317 rm -f conf$$subs.sed
22318 cat >>$CONFIG_STATUS <<_ACEOF
22319 :end
22320 s/|#_!!_#|//g
22321 CEOF$ac_eof
22322 _ACEOF
22323
22324
22325 # VPATH may cause trouble with some makes, so we remove $(srcdir),
22326 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22327 # trailing colons and then remove the whole line if VPATH becomes empty
22328 # (actually we leave an empty line to preserve line numbers).
22329 if test "x$srcdir" = x.; then
22330   ac_vpsub='/^[  ]*VPATH[        ]*=/{
22331 s/:*\$(srcdir):*/:/
22332 s/:*\${srcdir}:*/:/
22333 s/:*@srcdir@:*/:/
22334 s/^\([^=]*=[     ]*\):*/\1/
22335 s/:*$//
22336 s/^[^=]*=[       ]*$//
22337 }'
22338 fi
22339
22340 cat >>$CONFIG_STATUS <<\_ACEOF
22341 fi # test -n "$CONFIG_FILES"
22342
22343
22344 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
22345 do
22346   case $ac_tag in
22347   :[FHLC]) ac_mode=$ac_tag; continue;;
22348   esac
22349   case $ac_mode$ac_tag in
22350   :[FHL]*:*);;
22351   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
22352 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
22353    { (exit 1); exit 1; }; };;
22354   :[FH]-) ac_tag=-:-;;
22355   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
22356   esac
22357   ac_save_IFS=$IFS
22358   IFS=:
22359   set x $ac_tag
22360   IFS=$ac_save_IFS
22361   shift
22362   ac_file=$1
22363   shift
22364
22365   case $ac_mode in
22366   :L) ac_source=$1;;
22367   :[FH])
22368     ac_file_inputs=
22369     for ac_f
22370     do
22371       case $ac_f in
22372       -) ac_f="$tmp/stdin";;
22373       *) # Look for the file first in the build tree, then in the source tree
22374          # (if the path is not absolute).  The absolute path cannot be DOS-style,
22375          # because $ac_f cannot contain `:'.
22376          test -f "$ac_f" ||
22377            case $ac_f in
22378            [\\/$]*) false;;
22379            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
22380            esac ||
22381            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
22382 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
22383    { (exit 1); exit 1; }; };;
22384       esac
22385       ac_file_inputs="$ac_file_inputs $ac_f"
22386     done
22387
22388     # Let's still pretend it is `configure' which instantiates (i.e., don't
22389     # use $as_me), people would be surprised to read:
22390     #    /* config.h.  Generated by config.status.  */
22391     configure_input="Generated from "`IFS=:
22392           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
22393     if test x"$ac_file" != x-; then
22394       configure_input="$ac_file.  $configure_input"
22395       { echo "$as_me:$LINENO: creating $ac_file" >&5
22396 echo "$as_me: creating $ac_file" >&6;}
22397     fi
22398
22399     case $ac_tag in
22400     *:-:* | *:-) cat >"$tmp/stdin";;
22401     esac
22402     ;;
22403   esac
22404
22405   ac_dir=`$as_dirname -- "$ac_file" ||
22406 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22407          X"$ac_file" : 'X\(//\)[^/]' \| \
22408          X"$ac_file" : 'X\(//\)$' \| \
22409          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
22410 echo X"$ac_file" |
22411     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22412             s//\1/
22413             q
22414           }
22415           /^X\(\/\/\)[^/].*/{
22416             s//\1/
22417             q
22418           }
22419           /^X\(\/\/\)$/{
22420             s//\1/
22421             q
22422           }
22423           /^X\(\/\).*/{
22424             s//\1/
22425             q
22426           }
22427           s/.*/./; q'`
22428   { as_dir="$ac_dir"
22429   case $as_dir in #(
22430   -*) as_dir=./$as_dir;;
22431   esac
22432   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22433     as_dirs=
22434     while :; do
22435       case $as_dir in #(
22436       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22437       *) as_qdir=$as_dir;;
22438       esac
22439       as_dirs="'$as_qdir' $as_dirs"
22440       as_dir=`$as_dirname -- "$as_dir" ||
22441 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22442          X"$as_dir" : 'X\(//\)[^/]' \| \
22443          X"$as_dir" : 'X\(//\)$' \| \
22444          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22445 echo X"$as_dir" |
22446     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22447             s//\1/
22448             q
22449           }
22450           /^X\(\/\/\)[^/].*/{
22451             s//\1/
22452             q
22453           }
22454           /^X\(\/\/\)$/{
22455             s//\1/
22456             q
22457           }
22458           /^X\(\/\).*/{
22459             s//\1/
22460             q
22461           }
22462           s/.*/./; q'`
22463       test -d "$as_dir" && break
22464     done
22465     test -z "$as_dirs" || eval "mkdir $as_dirs"
22466   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22467 echo "$as_me: error: cannot create directory $as_dir" >&2;}
22468    { (exit 1); exit 1; }; }; }
22469   ac_builddir=.
22470
22471 case "$ac_dir" in
22472 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22473 *)
22474   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22475   # A ".." for each directory in $ac_dir_suffix.
22476   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
22477   case $ac_top_builddir_sub in
22478   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22479   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22480   esac ;;
22481 esac
22482 ac_abs_top_builddir=$ac_pwd
22483 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22484 # for backward compatibility:
22485 ac_top_builddir=$ac_top_build_prefix
22486
22487 case $srcdir in
22488   .)  # We are building in place.
22489     ac_srcdir=.
22490     ac_top_srcdir=$ac_top_builddir_sub
22491     ac_abs_top_srcdir=$ac_pwd ;;
22492   [\\/]* | ?:[\\/]* )  # Absolute name.
22493     ac_srcdir=$srcdir$ac_dir_suffix;
22494     ac_top_srcdir=$srcdir
22495     ac_abs_top_srcdir=$srcdir ;;
22496   *) # Relative name.
22497     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22498     ac_top_srcdir=$ac_top_build_prefix$srcdir
22499     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22500 esac
22501 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22502
22503
22504   case $ac_mode in
22505   :F)
22506   #
22507   # CONFIG_FILE
22508   #
22509
22510   case $INSTALL in
22511   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22512   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
22513   esac
22514 _ACEOF
22515
22516 cat >>$CONFIG_STATUS <<\_ACEOF
22517 # If the template does not know about datarootdir, expand it.
22518 # FIXME: This hack should be removed a few years after 2.60.
22519 ac_datarootdir_hack=; ac_datarootdir_seen=
22520
22521 case `sed -n '/datarootdir/ {
22522   p
22523   q
22524 }
22525 /@datadir@/p
22526 /@docdir@/p
22527 /@infodir@/p
22528 /@localedir@/p
22529 /@mandir@/p
22530 ' $ac_file_inputs` in
22531 *datarootdir*) ac_datarootdir_seen=yes;;
22532 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
22533   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22534 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
22535 _ACEOF
22536 cat >>$CONFIG_STATUS <<_ACEOF
22537   ac_datarootdir_hack='
22538   s&@datadir@&$datadir&g
22539   s&@docdir@&$docdir&g
22540   s&@infodir@&$infodir&g
22541   s&@localedir@&$localedir&g
22542   s&@mandir@&$mandir&g
22543     s&\\\${datarootdir}&$datarootdir&g' ;;
22544 esac
22545 _ACEOF
22546
22547 # Neutralize VPATH when `$srcdir' = `.'.
22548 # Shell code in configure.ac might set extrasub.
22549 # FIXME: do we really want to maintain this feature?
22550 cat >>$CONFIG_STATUS <<_ACEOF
22551   sed "$ac_vpsub
22552 $extrasub
22553 _ACEOF
22554 cat >>$CONFIG_STATUS <<\_ACEOF
22555 :t
22556 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22557 s&@configure_input@&$configure_input&;t t
22558 s&@top_builddir@&$ac_top_builddir_sub&;t t
22559 s&@srcdir@&$ac_srcdir&;t t
22560 s&@abs_srcdir@&$ac_abs_srcdir&;t t
22561 s&@top_srcdir@&$ac_top_srcdir&;t t
22562 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22563 s&@builddir@&$ac_builddir&;t t
22564 s&@abs_builddir@&$ac_abs_builddir&;t t
22565 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22566 s&@INSTALL@&$ac_INSTALL&;t t
22567 $ac_datarootdir_hack
22568 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
22569
22570 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22571   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
22572   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
22573   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22574 which seems to be undefined.  Please make sure it is defined." >&5
22575 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22576 which seems to be undefined.  Please make sure it is defined." >&2;}
22577
22578   rm -f "$tmp/stdin"
22579   case $ac_file in
22580   -) cat "$tmp/out"; rm -f "$tmp/out";;
22581   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
22582   esac
22583  ;;
22584   :H)
22585   #
22586   # CONFIG_HEADER
22587   #
22588 _ACEOF
22589
22590 # Transform confdefs.h into a sed script `conftest.defines', that
22591 # substitutes the proper values into config.h.in to produce config.h.
22592 rm -f conftest.defines conftest.tail
22593 # First, append a space to every undef/define line, to ease matching.
22594 echo 's/$/ /' >conftest.defines
22595 # Then, protect against being on the right side of a sed subst, or in
22596 # an unquoted here document, in config.status.  If some macros were
22597 # called several times there might be several #defines for the same
22598 # symbol, which is useless.  But do not sort them, since the last
22599 # AC_DEFINE must be honored.
22600 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
22601 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
22602 # NAME is the cpp macro being defined, VALUE is the value it is being given.
22603 # PARAMS is the parameter list in the macro definition--in most cases, it's
22604 # just an empty string.
22605 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
22606 ac_dB='\\)[      (].*,\\1define\\2'
22607 ac_dC=' '
22608 ac_dD=' ,'
22609
22610 uniq confdefs.h |
22611   sed -n '
22612         t rset
22613         :rset
22614         s/^[     ]*#[    ]*define[       ][      ]*//
22615         t ok
22616         d
22617         :ok
22618         s/[\\&,]/\\&/g
22619         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
22620         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
22621   ' >>conftest.defines
22622
22623 # Remove the space that was appended to ease matching.
22624 # Then replace #undef with comments.  This is necessary, for
22625 # example, in the case of _POSIX_SOURCE, which is predefined and required
22626 # on some systems where configure will not decide to define it.
22627 # (The regexp can be short, since the line contains either #define or #undef.)
22628 echo 's/ $//
22629 s,^[     #]*u.*,/* & */,' >>conftest.defines
22630
22631 # Break up conftest.defines:
22632 ac_max_sed_lines=50
22633
22634 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
22635 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
22636 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
22637 # et cetera.
22638 ac_in='$ac_file_inputs'
22639 ac_out='"$tmp/out1"'
22640 ac_nxt='"$tmp/out2"'
22641
22642 while :
22643 do
22644   # Write a here document:
22645     cat >>$CONFIG_STATUS <<_ACEOF
22646     # First, check the format of the line:
22647     cat >"\$tmp/defines.sed" <<\\CEOF
22648 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
22649 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
22650 b
22651 :def
22652 _ACEOF
22653   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
22654   echo 'CEOF
22655     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
22656   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
22657   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
22658   grep . conftest.tail >/dev/null || break
22659   rm -f conftest.defines
22660   mv conftest.tail conftest.defines
22661 done
22662 rm -f conftest.defines conftest.tail
22663
22664 echo "ac_result=$ac_in" >>$CONFIG_STATUS
22665 cat >>$CONFIG_STATUS <<\_ACEOF
22666   if test x"$ac_file" != x-; then
22667     echo "/* $configure_input  */" >"$tmp/config.h"
22668     cat "$ac_result" >>"$tmp/config.h"
22669     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
22670       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22671 echo "$as_me: $ac_file is unchanged" >&6;}
22672     else
22673       rm -f $ac_file
22674       mv "$tmp/config.h" $ac_file
22675     fi
22676   else
22677     echo "/* $configure_input  */"
22678     cat "$ac_result"
22679   fi
22680   rm -f "$tmp/out12"
22681  ;;
22682
22683   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
22684 echo "$as_me: executing $ac_file commands" >&6;}
22685  ;;
22686   esac
22687
22688
22689   case $ac_file$ac_mode in
22690     "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
22691    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
22692     "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
22693    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;;
22694     "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
22695    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;;
22696     "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
22697    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
22698     "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
22699    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
22700     "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
22701    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;;
22702     "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
22703    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
22704     "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
22705    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
22706     "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
22707    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
22708     "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
22709    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;;
22710     "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
22711    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;;
22712     "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
22713    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
22714     "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
22715    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
22716
22717   esac
22718 done # for ac_tag
22719
22720
22721 { (exit 0); exit 0; }
22722 _ACEOF
22723 chmod +x $CONFIG_STATUS
22724 ac_clean_files=$ac_clean_files_save
22725
22726
22727 # configure is writing to config.log, and then calls config.status.
22728 # config.status does its own redirection, appending to config.log.
22729 # Unfortunately, on DOS this fails, as config.log is still kept open
22730 # by configure, so config.status won't be able to write to it; its
22731 # output is simply discarded.  So we exec the FD to /dev/null,
22732 # effectively closing config.log, so it can be properly (re)opened and
22733 # appended to by config.status.  When coming back to configure, we
22734 # need to make the FD available again.
22735 if test "$no_create" != yes; then
22736   ac_cs_success=:
22737   ac_config_status_args=
22738   test "$silent" = yes &&
22739     ac_config_status_args="$ac_config_status_args --quiet"
22740   exec 5>/dev/null
22741   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22742   exec 5>>config.log
22743   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22744   # would make configure fail if this is the last instruction.
22745   $ac_cs_success || { (exit 1); exit 1; }
22746 fi
22747
22748 #
22749 # CONFIG_SUBDIRS section.
22750 #
22751 if test "$no_recursion" != yes; then
22752
22753   # Remove --cache-file and --srcdir arguments so they do not pile up.
22754   ac_sub_configure_args=
22755   ac_prev=
22756   eval "set x $ac_configure_args"
22757   shift
22758   for ac_arg
22759   do
22760     if test -n "$ac_prev"; then
22761       ac_prev=
22762       continue
22763     fi
22764     case $ac_arg in
22765     -cache-file | --cache-file | --cache-fil | --cache-fi \
22766     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
22767       ac_prev=cache_file ;;
22768     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
22769     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
22770     | --c=*)
22771       ;;
22772     --config-cache | -C)
22773       ;;
22774     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
22775       ac_prev=srcdir ;;
22776     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
22777       ;;
22778     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
22779       ac_prev=prefix ;;
22780     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
22781       ;;
22782     *)
22783       case $ac_arg in
22784       *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
22785       esac
22786       ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
22787     esac
22788   done
22789
22790   # Always prepend --prefix to ensure using the same prefix
22791   # in subdir configurations.
22792   ac_arg="--prefix=$prefix"
22793   case $ac_arg in
22794   *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
22795   esac
22796   ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
22797
22798   ac_popdir=`pwd`
22799   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
22800
22801     # Do not complain, so a configure script can configure whichever
22802     # parts of a large source tree are present.
22803     test -d "$srcdir/$ac_dir" || continue
22804
22805     ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
22806     echo "$as_me:$LINENO: $ac_msg" >&5
22807     echo "$ac_msg" >&6
22808     { as_dir="$ac_dir"
22809   case $as_dir in #(
22810   -*) as_dir=./$as_dir;;
22811   esac
22812   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22813     as_dirs=
22814     while :; do
22815       case $as_dir in #(
22816       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22817       *) as_qdir=$as_dir;;
22818       esac
22819       as_dirs="'$as_qdir' $as_dirs"
22820       as_dir=`$as_dirname -- "$as_dir" ||
22821 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22822          X"$as_dir" : 'X\(//\)[^/]' \| \
22823          X"$as_dir" : 'X\(//\)$' \| \
22824          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22825 echo X"$as_dir" |
22826     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22827             s//\1/
22828             q
22829           }
22830           /^X\(\/\/\)[^/].*/{
22831             s//\1/
22832             q
22833           }
22834           /^X\(\/\/\)$/{
22835             s//\1/
22836             q
22837           }
22838           /^X\(\/\).*/{
22839             s//\1/
22840             q
22841           }
22842           s/.*/./; q'`
22843       test -d "$as_dir" && break
22844     done
22845     test -z "$as_dirs" || eval "mkdir $as_dirs"
22846   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22847 echo "$as_me: error: cannot create directory $as_dir" >&2;}
22848    { (exit 1); exit 1; }; }; }
22849     ac_builddir=.
22850
22851 case "$ac_dir" in
22852 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22853 *)
22854   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22855   # A ".." for each directory in $ac_dir_suffix.
22856   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
22857   case $ac_top_builddir_sub in
22858   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22859   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22860   esac ;;
22861 esac
22862 ac_abs_top_builddir=$ac_pwd
22863 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22864 # for backward compatibility:
22865 ac_top_builddir=$ac_top_build_prefix
22866
22867 case $srcdir in
22868   .)  # We are building in place.
22869     ac_srcdir=.
22870     ac_top_srcdir=$ac_top_builddir_sub
22871     ac_abs_top_srcdir=$ac_pwd ;;
22872   [\\/]* | ?:[\\/]* )  # Absolute name.
22873     ac_srcdir=$srcdir$ac_dir_suffix;
22874     ac_top_srcdir=$srcdir
22875     ac_abs_top_srcdir=$srcdir ;;
22876   *) # Relative name.
22877     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22878     ac_top_srcdir=$ac_top_build_prefix$srcdir
22879     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22880 esac
22881 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22882
22883
22884     cd "$ac_dir"
22885
22886     # Check for guested configure; otherwise get Cygnus style configure.
22887     if test -f "$ac_srcdir/configure.gnu"; then
22888       ac_sub_configure=$ac_srcdir/configure.gnu
22889     elif test -f "$ac_srcdir/configure"; then
22890       ac_sub_configure=$ac_srcdir/configure
22891     elif test -f "$ac_srcdir/configure.in"; then
22892       # This should be Cygnus configure.
22893       ac_sub_configure=$ac_aux_dir/configure
22894     else
22895       { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
22896 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
22897       ac_sub_configure=
22898     fi
22899
22900     # The recursion is here.
22901     if test -n "$ac_sub_configure"; then
22902       # Make the cache file name correct relative to the subdirectory.
22903       case $cache_file in
22904       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
22905       *) # Relative name.
22906         ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
22907       esac
22908
22909       { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
22910 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
22911       # The eval makes quoting arguments work.
22912       eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
22913            --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
22914         { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
22915 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
22916    { (exit 1); exit 1; }; }
22917     fi
22918
22919     cd "$ac_popdir"
22920   done
22921 fi
22922