Remove a remaining reference to the obsolete C backend in configure
[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.1svn.
4 #
5 # Report bugs to <http://llvm.org/bugs/>.
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-2012 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.1svn'
565 PACKAGE_STRING='LLVM 3.1svn'
566 PACKAGE_BUGREPORT='http://llvm.org/bugs/'
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_LIBCPP
686 ENABLE_OPTIMIZED
687 ENABLE_PROFILING
688 DISABLE_ASSERTIONS
689 ENABLE_EXPENSIVE_CHECKS
690 EXPENSIVE_CHECKS
691 DEBUG_RUNTIME
692 DEBUG_SYMBOLS
693 JIT
694 TARGET_HAS_JIT
695 ENABLE_DOCS
696 ENABLE_DOXYGEN
697 LLVM_ENABLE_THREADS
698 ENABLE_PTHREADS
699 ENABLE_PIC
700 ENABLE_SHARED
701 ENABLE_EMBED_STDCXX
702 ENABLE_TIMESTAMPS
703 TARGETS_TO_BUILD
704 LLVM_ENUM_TARGETS
705 LLVM_ENUM_ASM_PRINTERS
706 LLVM_ENUM_ASM_PARSERS
707 LLVM_ENUM_DISASSEMBLERS
708 OPTIMIZE_OPTION
709 EXTRA_OPTIONS
710 EXTRA_LD_OPTIONS
711 CLANG_SRC_ROOT
712 BINUTILS_INCDIR
713 INTERNAL_PREFIX
714 NM
715 ifGNUmake
716 LN_S
717 CMP
718 CP
719 DATE
720 FIND
721 MKDIR
722 MV
723 RANLIB
724 AR
725 RM
726 SED
727 TAR
728 BINPWD
729 GRAPHVIZ
730 DOT
731 FDP
732 NEATO
733 TWOPI
734 CIRCO
735 GV
736 DOTTY
737 XDOT_PY
738 INSTALL_PROGRAM
739 INSTALL_SCRIPT
740 INSTALL_DATA
741 BZIP2
742 CAT
743 DOXYGEN
744 GROFF
745 GZIPBIN
746 POD2HTML
747 POD2MAN
748 PDFROFF
749 RUNTEST
750 TCLSH
751 ZIP
752 OCAMLC
753 OCAMLOPT
754 OCAMLDEP
755 OCAMLDOC
756 GAS
757 HAVE_LINK_VERSION_SCRIPT
758 INSTALL_LTDL_TRUE
759 INSTALL_LTDL_FALSE
760 CONVENIENCE_LTDL_TRUE
761 CONVENIENCE_LTDL_FALSE
762 LIBADD_DL
763 NO_VARIADIC_MACROS
764 NO_MISSING_FIELD_INITIALIZERS
765 COVERED_SWITCH_DEFAULT
766 USE_UDIS86
767 USE_OPROFILE
768 USE_INTEL_JITEVENTS
769 INTEL_JITEVENTS_INCDIR
770 INTEL_JITEVENTS_LIBDIR
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.1svn 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.1svn:";;
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-libcpp         Use libc++ if available (default is NO)
1396   --enable-optimized      Compile with optimizations enabled (default is NO)
1397   --enable-profiling      Compile with profiling enabled (default is NO)
1398   --enable-assertions     Compile with assertion checks enabled (default is
1399                           YES)
1400   --enable-expensive-checks
1401                           Compile with expensive debug checks enabled (default
1402                           is NO)
1403   --enable-debug-runtime  Build runtime libs with debug symbols (default is
1404                           NO)
1405   --enable-debug-symbols  Build compiler with debug symbols (default is NO if
1406                           optimization is on and YES if it's off)
1407   --enable-jit            Enable Just In Time Compiling (default is YES)
1408   --enable-docs           Build documents (default is YES)
1409   --enable-doxygen        Build doxygen documentation (default is NO)
1410   --enable-threads        Use threads if available (default is YES)
1411   --enable-pthreads       Use pthreads if available (default is YES)
1412   --enable-pic            Build LLVM with Position Independent Code (default
1413                           is YES)
1414   --enable-shared         Build a shared library and link tools against it
1415                           (default is NO)
1416   --enable-embed-stdcxx   Build a shared library with embedded libstdc++ for
1417                           Win32 DLL (default is NO)
1418   --enable-timestamps     Enable embedding timestamp information in build
1419                           (default is YES)
1420   --enable-targets        Build specific host targets: all or
1421                           target1,target2,... Valid targets are: host, x86,
1422                           x86_64, sparc, powerpc, arm, mips, spu, hexagon,
1423                           xcore, msp430, ptx, and cpp (default=all)
1424   --enable-bindings       Build specific language bindings:
1425                           all,auto,none,{binding-name} (default=auto)
1426   --enable-libffi         Check for the presence of libffi (default is NO)
1427   --enable-ltdl-install   install libltdl
1428
1429 Optional Packages:
1430   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1431   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1432   --with-optimize-option  Select the compiler options to use for optimized
1433                           builds
1434   --with-extra-options    Specify additional options to compile LLVM with
1435   --with-extra-ld-options Specify additional options to link LLVM with
1436   --with-ocaml-libdir     Specify install location for ocaml bindings (default
1437                           is stdlib)
1438   --with-clang-srcdir     Directory to the out-of-tree Clang source
1439   --with-clang-resource-dir
1440                           Relative directory from the Clang binary for
1441                           resource files
1442   --with-c-include-dirs   Colon separated list of directories clang will
1443                           search for headers
1444   --with-gcc-toolchain    Directory where gcc is installed.
1445   --with-binutils-include Specify path to binutils/include/ containing
1446                           plugin-api.h file for gold plugin.
1447   --with-bug-report-url   Specify the URL where bug reports should be
1448                           submitted (default=http://llvm.org/bugs/)
1449   --with-internal-prefix  Installation directory for internal files
1450   --with-tclinclude       directory where tcl headers are
1451   --with-udis86=<path>    Use udis86 external x86 disassembler library
1452   --with-oprofile=<prefix>
1453                           Tell OProfile >= 0.9.4 how to symbolize JIT output
1454   --with-intel-jitevents=<vtune-amplifier-dir>
1455                           Specify location of run-time support library for
1456                           Intel JIT API
1457                           (default=/opt/intel/vtune_amplifier_xe_2011)
1458
1459 Some influential environment variables:
1460   CC          C compiler command
1461   CFLAGS      C compiler flags
1462   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1463               nonstandard directory <lib dir>
1464   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1465               you have headers in a nonstandard directory <include dir>
1466   CXX         C++ compiler command
1467   CXXFLAGS    C++ compiler flags
1468   CPP         C preprocessor
1469
1470 Use these variables to override the choices made by `configure' or to help
1471 it to find libraries and programs with nonstandard names/locations.
1472
1473 Report bugs to <http://llvm.org/bugs/>.
1474 _ACEOF
1475 ac_status=$?
1476 fi
1477
1478 if test "$ac_init_help" = "recursive"; then
1479   # If there are subdirs, report their specific --help.
1480   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1481     test -d "$ac_dir" || continue
1482     ac_builddir=.
1483
1484 case "$ac_dir" in
1485 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1486 *)
1487   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1488   # A ".." for each directory in $ac_dir_suffix.
1489   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1490   case $ac_top_builddir_sub in
1491   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1492   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1493   esac ;;
1494 esac
1495 ac_abs_top_builddir=$ac_pwd
1496 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1497 # for backward compatibility:
1498 ac_top_builddir=$ac_top_build_prefix
1499
1500 case $srcdir in
1501   .)  # We are building in place.
1502     ac_srcdir=.
1503     ac_top_srcdir=$ac_top_builddir_sub
1504     ac_abs_top_srcdir=$ac_pwd ;;
1505   [\\/]* | ?:[\\/]* )  # Absolute name.
1506     ac_srcdir=$srcdir$ac_dir_suffix;
1507     ac_top_srcdir=$srcdir
1508     ac_abs_top_srcdir=$srcdir ;;
1509   *) # Relative name.
1510     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1511     ac_top_srcdir=$ac_top_build_prefix$srcdir
1512     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1513 esac
1514 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1515
1516     cd "$ac_dir" || { ac_status=$?; continue; }
1517     # Check for guested configure.
1518     if test -f "$ac_srcdir/configure.gnu"; then
1519       echo &&
1520       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1521     elif test -f "$ac_srcdir/configure"; then
1522       echo &&
1523       $SHELL "$ac_srcdir/configure" --help=recursive
1524     else
1525       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1526     fi || ac_status=$?
1527     cd "$ac_pwd" || { ac_status=$?; break; }
1528   done
1529 fi
1530
1531 test -n "$ac_init_help" && exit $ac_status
1532 if $ac_init_version; then
1533   cat <<\_ACEOF
1534 LLVM configure 3.1svn
1535 generated by GNU Autoconf 2.60
1536
1537 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1538 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1539 This configure script is free software; the Free Software Foundation
1540 gives unlimited permission to copy, distribute and modify it.
1541
1542 Copyright (c) 2003-2012 University of Illinois at Urbana-Champaign.
1543 _ACEOF
1544   exit
1545 fi
1546 cat >config.log <<_ACEOF
1547 This file contains any messages produced by compilers while
1548 running configure, to aid debugging if configure makes a mistake.
1549
1550 It was created by LLVM $as_me 3.1svn, which was
1551 generated by GNU Autoconf 2.60.  Invocation command line was
1552
1553   $ $0 $@
1554
1555 _ACEOF
1556 exec 5>>config.log
1557 {
1558 cat <<_ASUNAME
1559 ## --------- ##
1560 ## Platform. ##
1561 ## --------- ##
1562
1563 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1564 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1565 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1566 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1567 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1568
1569 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1570 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1571
1572 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1573 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1574 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1575 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1576 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1577 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1578 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1579
1580 _ASUNAME
1581
1582 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1583 for as_dir in $PATH
1584 do
1585   IFS=$as_save_IFS
1586   test -z "$as_dir" && as_dir=.
1587   echo "PATH: $as_dir"
1588 done
1589 IFS=$as_save_IFS
1590
1591 } >&5
1592
1593 cat >&5 <<_ACEOF
1594
1595
1596 ## ----------- ##
1597 ## Core tests. ##
1598 ## ----------- ##
1599
1600 _ACEOF
1601
1602
1603 # Keep a trace of the command line.
1604 # Strip out --no-create and --no-recursion so they do not pile up.
1605 # Strip out --silent because we don't want to record it for future runs.
1606 # Also quote any args containing shell meta-characters.
1607 # Make two passes to allow for proper duplicate-argument suppression.
1608 ac_configure_args=
1609 ac_configure_args0=
1610 ac_configure_args1=
1611 ac_must_keep_next=false
1612 for ac_pass in 1 2
1613 do
1614   for ac_arg
1615   do
1616     case $ac_arg in
1617     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1618     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1619     | -silent | --silent | --silen | --sile | --sil)
1620       continue ;;
1621     *\'*)
1622       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1623     esac
1624     case $ac_pass in
1625     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1626     2)
1627       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1628       if test $ac_must_keep_next = true; then
1629         ac_must_keep_next=false # Got value, back to normal.
1630       else
1631         case $ac_arg in
1632           *=* | --config-cache | -C | -disable-* | --disable-* \
1633           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1634           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1635           | -with-* | --with-* | -without-* | --without-* | --x)
1636             case "$ac_configure_args0 " in
1637               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1638             esac
1639             ;;
1640           -* ) ac_must_keep_next=true ;;
1641         esac
1642       fi
1643       ac_configure_args="$ac_configure_args '$ac_arg'"
1644       ;;
1645     esac
1646   done
1647 done
1648 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1649 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1650
1651 # When interrupted or exit'd, cleanup temporary files, and complete
1652 # config.log.  We remove comments because anyway the quotes in there
1653 # would cause problems or look ugly.
1654 # WARNING: Use '\'' to represent an apostrophe within the trap.
1655 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1656 trap 'exit_status=$?
1657   # Save into config.log some information that might help in debugging.
1658   {
1659     echo
1660
1661     cat <<\_ASBOX
1662 ## ---------------- ##
1663 ## Cache variables. ##
1664 ## ---------------- ##
1665 _ASBOX
1666     echo
1667     # The following way of writing the cache mishandles newlines in values,
1668 (
1669   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1670     eval ac_val=\$$ac_var
1671     case $ac_val in #(
1672     *${as_nl}*)
1673       case $ac_var in #(
1674       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1675 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1676       esac
1677       case $ac_var in #(
1678       _ | IFS | as_nl) ;; #(
1679       *) $as_unset $ac_var ;;
1680       esac ;;
1681     esac
1682   done
1683   (set) 2>&1 |
1684     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1685     *${as_nl}ac_space=\ *)
1686       sed -n \
1687         "s/'\''/'\''\\\\'\'''\''/g;
1688           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1689       ;; #(
1690     *)
1691       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1692       ;;
1693     esac |
1694     sort
1695 )
1696     echo
1697
1698     cat <<\_ASBOX
1699 ## ----------------- ##
1700 ## Output variables. ##
1701 ## ----------------- ##
1702 _ASBOX
1703     echo
1704     for ac_var in $ac_subst_vars
1705     do
1706       eval ac_val=\$$ac_var
1707       case $ac_val in
1708       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1709       esac
1710       echo "$ac_var='\''$ac_val'\''"
1711     done | sort
1712     echo
1713
1714     if test -n "$ac_subst_files"; then
1715       cat <<\_ASBOX
1716 ## ------------------- ##
1717 ## File substitutions. ##
1718 ## ------------------- ##
1719 _ASBOX
1720       echo
1721       for ac_var in $ac_subst_files
1722       do
1723         eval ac_val=\$$ac_var
1724         case $ac_val in
1725         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1726         esac
1727         echo "$ac_var='\''$ac_val'\''"
1728       done | sort
1729       echo
1730     fi
1731
1732     if test -s confdefs.h; then
1733       cat <<\_ASBOX
1734 ## ----------- ##
1735 ## confdefs.h. ##
1736 ## ----------- ##
1737 _ASBOX
1738       echo
1739       cat confdefs.h
1740       echo
1741     fi
1742     test "$ac_signal" != 0 &&
1743       echo "$as_me: caught signal $ac_signal"
1744     echo "$as_me: exit $exit_status"
1745   } >&5
1746   rm -f core *.core core.conftest.* &&
1747     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1748     exit $exit_status
1749 ' 0
1750 for ac_signal in 1 2 13 15; do
1751   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1752 done
1753 ac_signal=0
1754
1755 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1756 rm -f -r conftest* confdefs.h
1757
1758 # Predefined preprocessor variables.
1759
1760 cat >>confdefs.h <<_ACEOF
1761 #define PACKAGE_NAME "$PACKAGE_NAME"
1762 _ACEOF
1763
1764
1765 cat >>confdefs.h <<_ACEOF
1766 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1767 _ACEOF
1768
1769
1770 cat >>confdefs.h <<_ACEOF
1771 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1772 _ACEOF
1773
1774
1775 cat >>confdefs.h <<_ACEOF
1776 #define PACKAGE_STRING "$PACKAGE_STRING"
1777 _ACEOF
1778
1779
1780 cat >>confdefs.h <<_ACEOF
1781 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1782 _ACEOF
1783
1784
1785 # Let the site file select an alternate cache file if it wants to.
1786 # Prefer explicitly selected file to automatically selected ones.
1787 if test -n "$CONFIG_SITE"; then
1788   set x "$CONFIG_SITE"
1789 elif test "x$prefix" != xNONE; then
1790   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1791 else
1792   set x "$ac_default_prefix/share/config.site" \
1793         "$ac_default_prefix/etc/config.site"
1794 fi
1795 shift
1796 for ac_site_file
1797 do
1798   if test -r "$ac_site_file"; then
1799     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1800 echo "$as_me: loading site script $ac_site_file" >&6;}
1801     sed 's/^/| /' "$ac_site_file" >&5
1802     . "$ac_site_file"
1803   fi
1804 done
1805
1806 if test -r "$cache_file"; then
1807   # Some versions of bash will fail to source /dev/null (special
1808   # files actually), so we avoid doing that.
1809   if test -f "$cache_file"; then
1810     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1811 echo "$as_me: loading cache $cache_file" >&6;}
1812     case $cache_file in
1813       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1814       *)                      . "./$cache_file";;
1815     esac
1816   fi
1817 else
1818   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1819 echo "$as_me: creating cache $cache_file" >&6;}
1820   >$cache_file
1821 fi
1822
1823 # Check that the precious variables saved in the cache have kept the same
1824 # value.
1825 ac_cache_corrupted=false
1826 for ac_var in $ac_precious_vars; do
1827   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1828   eval ac_new_set=\$ac_env_${ac_var}_set
1829   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1830   eval ac_new_val=\$ac_env_${ac_var}_value
1831   case $ac_old_set,$ac_new_set in
1832     set,)
1833       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1834 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1835       ac_cache_corrupted=: ;;
1836     ,set)
1837       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1838 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1839       ac_cache_corrupted=: ;;
1840     ,);;
1841     *)
1842       if test "x$ac_old_val" != "x$ac_new_val"; then
1843         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1844 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1845         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1846 echo "$as_me:   former value:  $ac_old_val" >&2;}
1847         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1848 echo "$as_me:   current value: $ac_new_val" >&2;}
1849         ac_cache_corrupted=:
1850       fi;;
1851   esac
1852   # Pass precious variables to config.status.
1853   if test "$ac_new_set" = set; then
1854     case $ac_new_val in
1855     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1856     *) ac_arg=$ac_var=$ac_new_val ;;
1857     esac
1858     case " $ac_configure_args " in
1859       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1860       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1861     esac
1862   fi
1863 done
1864 if $ac_cache_corrupted; then
1865   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1866 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1867   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1868 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1869    { (exit 1); exit 1; }; }
1870 fi
1871
1872
1873
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896 ac_ext=c
1897 ac_cpp='$CPP $CPPFLAGS'
1898 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1899 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1900 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1901
1902
1903
1904 cat >>confdefs.h <<\_ACEOF
1905 #define LLVM_VERSION_MAJOR 3
1906 _ACEOF
1907
1908
1909 cat >>confdefs.h <<\_ACEOF
1910 #define LLVM_VERSION_MINOR 1
1911 _ACEOF
1912
1913
1914 LLVM_COPYRIGHT="Copyright (c) 2003-2012 University of Illinois at Urbana-Champaign."
1915
1916
1917
1918
1919
1920
1921
1922 ac_aux_dir=
1923 for ac_dir in autoconf "$srcdir"/autoconf; do
1924   if test -f "$ac_dir/install-sh"; then
1925     ac_aux_dir=$ac_dir
1926     ac_install_sh="$ac_aux_dir/install-sh -c"
1927     break
1928   elif test -f "$ac_dir/install.sh"; then
1929     ac_aux_dir=$ac_dir
1930     ac_install_sh="$ac_aux_dir/install.sh -c"
1931     break
1932   elif test -f "$ac_dir/shtool"; then
1933     ac_aux_dir=$ac_dir
1934     ac_install_sh="$ac_aux_dir/shtool install -c"
1935     break
1936   fi
1937 done
1938 if test -z "$ac_aux_dir"; then
1939   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
1940 echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
1941    { (exit 1); exit 1; }; }
1942 fi
1943
1944 # These three variables are undocumented and unsupported,
1945 # and are intended to be withdrawn in a future Autoconf release.
1946 # They can cause serious problems if a builder's source tree is in a directory
1947 # whose full name contains unusual characters.
1948 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
1949 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
1950 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
1951
1952
1953
1954 if test ${srcdir} != "." ; then
1955   if test -f ${srcdir}/include/llvm/Config/config.h ; then
1956     { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
1957 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1958    { (exit 1); exit 1; }; }
1959   fi
1960 fi
1961
1962 ac_ext=c
1963 ac_cpp='$CPP $CPPFLAGS'
1964 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1965 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1966 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1967 if test -n "$ac_tool_prefix"; then
1968   for ac_prog in clang llvm-gcc gcc
1969   do
1970     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1971 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1972 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1973 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1974 if test "${ac_cv_prog_CC+set}" = set; then
1975   echo $ECHO_N "(cached) $ECHO_C" >&6
1976 else
1977   if test -n "$CC"; then
1978   ac_cv_prog_CC="$CC" # Let the user override the test.
1979 else
1980 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1981 for as_dir in $PATH
1982 do
1983   IFS=$as_save_IFS
1984   test -z "$as_dir" && as_dir=.
1985   for ac_exec_ext in '' $ac_executable_extensions; do
1986   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
1987     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1988     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1989     break 2
1990   fi
1991 done
1992 done
1993 IFS=$as_save_IFS
1994
1995 fi
1996 fi
1997 CC=$ac_cv_prog_CC
1998 if test -n "$CC"; then
1999   { echo "$as_me:$LINENO: result: $CC" >&5
2000 echo "${ECHO_T}$CC" >&6; }
2001 else
2002   { echo "$as_me:$LINENO: result: no" >&5
2003 echo "${ECHO_T}no" >&6; }
2004 fi
2005
2006
2007     test -n "$CC" && break
2008   done
2009 fi
2010 if test -z "$CC"; then
2011   ac_ct_CC=$CC
2012   for ac_prog in clang llvm-gcc gcc
2013 do
2014   # Extract the first word of "$ac_prog", so it can be a program name with args.
2015 set dummy $ac_prog; ac_word=$2
2016 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2017 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2018 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2019   echo $ECHO_N "(cached) $ECHO_C" >&6
2020 else
2021   if test -n "$ac_ct_CC"; then
2022   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2023 else
2024 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2025 for as_dir in $PATH
2026 do
2027   IFS=$as_save_IFS
2028   test -z "$as_dir" && as_dir=.
2029   for ac_exec_ext in '' $ac_executable_extensions; do
2030   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2031     ac_cv_prog_ac_ct_CC="$ac_prog"
2032     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2033     break 2
2034   fi
2035 done
2036 done
2037 IFS=$as_save_IFS
2038
2039 fi
2040 fi
2041 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2042 if test -n "$ac_ct_CC"; then
2043   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2044 echo "${ECHO_T}$ac_ct_CC" >&6; }
2045 else
2046   { echo "$as_me:$LINENO: result: no" >&5
2047 echo "${ECHO_T}no" >&6; }
2048 fi
2049
2050
2051   test -n "$ac_ct_CC" && break
2052 done
2053
2054   if test "x$ac_ct_CC" = x; then
2055     CC=""
2056   else
2057     case $cross_compiling:$ac_tool_warned in
2058 yes:)
2059 { echo "$as_me:$LINENO: 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." >&5
2062 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2063 whose name does not start with the host triplet.  If you think this
2064 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2065 ac_tool_warned=yes ;;
2066 esac
2067     CC=$ac_ct_CC
2068   fi
2069 fi
2070
2071
2072 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2073 See \`config.log' for more details." >&5
2074 echo "$as_me: error: no acceptable C compiler found in \$PATH
2075 See \`config.log' for more details." >&2;}
2076    { (exit 1); exit 1; }; }
2077
2078 # Provide some information about the compiler.
2079 echo "$as_me:$LINENO: checking for C compiler version" >&5
2080 ac_compiler=`set X $ac_compile; echo $2`
2081 { (ac_try="$ac_compiler --version >&5"
2082 case "(($ac_try" in
2083   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2084   *) ac_try_echo=$ac_try;;
2085 esac
2086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2087   (eval "$ac_compiler --version >&5") 2>&5
2088   ac_status=$?
2089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2090   (exit $ac_status); }
2091 { (ac_try="$ac_compiler -v >&5"
2092 case "(($ac_try" in
2093   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2094   *) ac_try_echo=$ac_try;;
2095 esac
2096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2097   (eval "$ac_compiler -v >&5") 2>&5
2098   ac_status=$?
2099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2100   (exit $ac_status); }
2101 { (ac_try="$ac_compiler -V >&5"
2102 case "(($ac_try" in
2103   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2104   *) ac_try_echo=$ac_try;;
2105 esac
2106 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2107   (eval "$ac_compiler -V >&5") 2>&5
2108   ac_status=$?
2109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2110   (exit $ac_status); }
2111
2112 cat >conftest.$ac_ext <<_ACEOF
2113 /* confdefs.h.  */
2114 _ACEOF
2115 cat confdefs.h >>conftest.$ac_ext
2116 cat >>conftest.$ac_ext <<_ACEOF
2117 /* end confdefs.h.  */
2118
2119 int
2120 main ()
2121 {
2122
2123   ;
2124   return 0;
2125 }
2126 _ACEOF
2127 ac_clean_files_save=$ac_clean_files
2128 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2129 # Try to create an executable without -o first, disregard a.out.
2130 # It will help us diagnose broken compilers, and finding out an intuition
2131 # of exeext.
2132 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2133 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2134 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2135 #
2136 # List of possible output files, starting from the most likely.
2137 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2138 # only as a last resort.  b.out is created by i960 compilers.
2139 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2140 #
2141 # The IRIX 6 linker writes into existing files which may not be
2142 # executable, retaining their permissions.  Remove them first so a
2143 # subsequent execution test works.
2144 ac_rmfiles=
2145 for ac_file in $ac_files
2146 do
2147   case $ac_file in
2148     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2149     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2150   esac
2151 done
2152 rm -f $ac_rmfiles
2153
2154 if { (ac_try="$ac_link_default"
2155 case "(($ac_try" in
2156   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2157   *) ac_try_echo=$ac_try;;
2158 esac
2159 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2160   (eval "$ac_link_default") 2>&5
2161   ac_status=$?
2162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2163   (exit $ac_status); }; then
2164   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2165 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2166 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2167 # so that the user can short-circuit this test for compilers unknown to
2168 # Autoconf.
2169 for ac_file in $ac_files
2170 do
2171   test -f "$ac_file" || continue
2172   case $ac_file in
2173     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2174         ;;
2175     [ab].out )
2176         # We found the default executable, but exeext='' is most
2177         # certainly right.
2178         break;;
2179     *.* )
2180         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2181         then :; else
2182            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2183         fi
2184         # We set ac_cv_exeext here because the later test for it is not
2185         # safe: cross compilers may not add the suffix if given an `-o'
2186         # argument, so we may need to know it at that point already.
2187         # Even if this section looks crufty: it has the advantage of
2188         # actually working.
2189         break;;
2190     * )
2191         break;;
2192   esac
2193 done
2194 test "$ac_cv_exeext" = no && ac_cv_exeext=
2195
2196 else
2197   echo "$as_me: failed program was:" >&5
2198 sed 's/^/| /' conftest.$ac_ext >&5
2199
2200 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2201 See \`config.log' for more details." >&5
2202 echo "$as_me: error: C compiler cannot create executables
2203 See \`config.log' for more details." >&2;}
2204    { (exit 77); exit 77; }; }
2205 fi
2206
2207 ac_exeext=$ac_cv_exeext
2208 { echo "$as_me:$LINENO: result: $ac_file" >&5
2209 echo "${ECHO_T}$ac_file" >&6; }
2210
2211 # Check that the compiler produces executables we can run.  If not, either
2212 # the compiler is broken, or we cross compile.
2213 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2214 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2215 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2216 # If not cross compiling, check that we can run a simple program.
2217 if test "$cross_compiling" != yes; then
2218   if { ac_try='./$ac_file'
2219   { (case "(($ac_try" in
2220   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2221   *) ac_try_echo=$ac_try;;
2222 esac
2223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2224   (eval "$ac_try") 2>&5
2225   ac_status=$?
2226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2227   (exit $ac_status); }; }; then
2228     cross_compiling=no
2229   else
2230     if test "$cross_compiling" = maybe; then
2231         cross_compiling=yes
2232     else
2233         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2234 If you meant to cross compile, use \`--host'.
2235 See \`config.log' for more details." >&5
2236 echo "$as_me: error: cannot run C compiled programs.
2237 If you meant to cross compile, use \`--host'.
2238 See \`config.log' for more details." >&2;}
2239    { (exit 1); exit 1; }; }
2240     fi
2241   fi
2242 fi
2243 { echo "$as_me:$LINENO: result: yes" >&5
2244 echo "${ECHO_T}yes" >&6; }
2245
2246 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2247 ac_clean_files=$ac_clean_files_save
2248 # Check that the compiler produces executables we can run.  If not, either
2249 # the compiler is broken, or we cross compile.
2250 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2251 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2252 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2253 echo "${ECHO_T}$cross_compiling" >&6; }
2254
2255 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2256 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2257 if { (ac_try="$ac_link"
2258 case "(($ac_try" in
2259   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2260   *) ac_try_echo=$ac_try;;
2261 esac
2262 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2263   (eval "$ac_link") 2>&5
2264   ac_status=$?
2265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2266   (exit $ac_status); }; then
2267   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2268 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2269 # work properly (i.e., refer to `conftest.exe'), while it won't with
2270 # `rm'.
2271 for ac_file in conftest.exe conftest conftest.*; do
2272   test -f "$ac_file" || continue
2273   case $ac_file in
2274     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2275     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2276           break;;
2277     * ) break;;
2278   esac
2279 done
2280 else
2281   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2282 See \`config.log' for more details." >&5
2283 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2284 See \`config.log' for more details." >&2;}
2285    { (exit 1); exit 1; }; }
2286 fi
2287
2288 rm -f conftest$ac_cv_exeext
2289 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2290 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2291
2292 rm -f conftest.$ac_ext
2293 EXEEXT=$ac_cv_exeext
2294 ac_exeext=$EXEEXT
2295 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2296 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2297 if test "${ac_cv_objext+set}" = set; then
2298   echo $ECHO_N "(cached) $ECHO_C" >&6
2299 else
2300   cat >conftest.$ac_ext <<_ACEOF
2301 /* confdefs.h.  */
2302 _ACEOF
2303 cat confdefs.h >>conftest.$ac_ext
2304 cat >>conftest.$ac_ext <<_ACEOF
2305 /* end confdefs.h.  */
2306
2307 int
2308 main ()
2309 {
2310
2311   ;
2312   return 0;
2313 }
2314 _ACEOF
2315 rm -f conftest.o conftest.obj
2316 if { (ac_try="$ac_compile"
2317 case "(($ac_try" in
2318   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2319   *) ac_try_echo=$ac_try;;
2320 esac
2321 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2322   (eval "$ac_compile") 2>&5
2323   ac_status=$?
2324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2325   (exit $ac_status); }; then
2326   for ac_file in conftest.o conftest.obj conftest.*; do
2327   test -f "$ac_file" || continue;
2328   case $ac_file in
2329     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2330     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2331        break;;
2332   esac
2333 done
2334 else
2335   echo "$as_me: failed program was:" >&5
2336 sed 's/^/| /' conftest.$ac_ext >&5
2337
2338 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2339 See \`config.log' for more details." >&5
2340 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2341 See \`config.log' for more details." >&2;}
2342    { (exit 1); exit 1; }; }
2343 fi
2344
2345 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2346 fi
2347 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2348 echo "${ECHO_T}$ac_cv_objext" >&6; }
2349 OBJEXT=$ac_cv_objext
2350 ac_objext=$OBJEXT
2351 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2352 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2353 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2354   echo $ECHO_N "(cached) $ECHO_C" >&6
2355 else
2356   cat >conftest.$ac_ext <<_ACEOF
2357 /* confdefs.h.  */
2358 _ACEOF
2359 cat confdefs.h >>conftest.$ac_ext
2360 cat >>conftest.$ac_ext <<_ACEOF
2361 /* end confdefs.h.  */
2362
2363 int
2364 main ()
2365 {
2366 #ifndef __GNUC__
2367        choke me
2368 #endif
2369
2370   ;
2371   return 0;
2372 }
2373 _ACEOF
2374 rm -f conftest.$ac_objext
2375 if { (ac_try="$ac_compile"
2376 case "(($ac_try" in
2377   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2378   *) ac_try_echo=$ac_try;;
2379 esac
2380 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2381   (eval "$ac_compile") 2>conftest.er1
2382   ac_status=$?
2383   grep -v '^ *+' conftest.er1 >conftest.err
2384   rm -f conftest.er1
2385   cat conftest.err >&5
2386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2387   (exit $ac_status); } &&
2388          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2389   { (case "(($ac_try" in
2390   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2391   *) ac_try_echo=$ac_try;;
2392 esac
2393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2394   (eval "$ac_try") 2>&5
2395   ac_status=$?
2396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2397   (exit $ac_status); }; } &&
2398          { ac_try='test -s conftest.$ac_objext'
2399   { (case "(($ac_try" in
2400   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2401   *) ac_try_echo=$ac_try;;
2402 esac
2403 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2404   (eval "$ac_try") 2>&5
2405   ac_status=$?
2406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2407   (exit $ac_status); }; }; then
2408   ac_compiler_gnu=yes
2409 else
2410   echo "$as_me: failed program was:" >&5
2411 sed 's/^/| /' conftest.$ac_ext >&5
2412
2413         ac_compiler_gnu=no
2414 fi
2415
2416 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2417 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2418
2419 fi
2420 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2421 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2422 GCC=`test $ac_compiler_gnu = yes && echo yes`
2423 ac_test_CFLAGS=${CFLAGS+set}
2424 ac_save_CFLAGS=$CFLAGS
2425 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2426 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2427 if test "${ac_cv_prog_cc_g+set}" = set; then
2428   echo $ECHO_N "(cached) $ECHO_C" >&6
2429 else
2430   ac_save_c_werror_flag=$ac_c_werror_flag
2431    ac_c_werror_flag=yes
2432    ac_cv_prog_cc_g=no
2433    CFLAGS="-g"
2434    cat >conftest.$ac_ext <<_ACEOF
2435 /* confdefs.h.  */
2436 _ACEOF
2437 cat confdefs.h >>conftest.$ac_ext
2438 cat >>conftest.$ac_ext <<_ACEOF
2439 /* end confdefs.h.  */
2440
2441 int
2442 main ()
2443 {
2444
2445   ;
2446   return 0;
2447 }
2448 _ACEOF
2449 rm -f conftest.$ac_objext
2450 if { (ac_try="$ac_compile"
2451 case "(($ac_try" in
2452   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2453   *) ac_try_echo=$ac_try;;
2454 esac
2455 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2456   (eval "$ac_compile") 2>conftest.er1
2457   ac_status=$?
2458   grep -v '^ *+' conftest.er1 >conftest.err
2459   rm -f conftest.er1
2460   cat conftest.err >&5
2461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2462   (exit $ac_status); } &&
2463          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2464   { (case "(($ac_try" in
2465   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2466   *) ac_try_echo=$ac_try;;
2467 esac
2468 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2469   (eval "$ac_try") 2>&5
2470   ac_status=$?
2471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2472   (exit $ac_status); }; } &&
2473          { ac_try='test -s conftest.$ac_objext'
2474   { (case "(($ac_try" in
2475   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2476   *) ac_try_echo=$ac_try;;
2477 esac
2478 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2479   (eval "$ac_try") 2>&5
2480   ac_status=$?
2481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2482   (exit $ac_status); }; }; then
2483   ac_cv_prog_cc_g=yes
2484 else
2485   echo "$as_me: failed program was:" >&5
2486 sed 's/^/| /' conftest.$ac_ext >&5
2487
2488         CFLAGS=""
2489       cat >conftest.$ac_ext <<_ACEOF
2490 /* confdefs.h.  */
2491 _ACEOF
2492 cat confdefs.h >>conftest.$ac_ext
2493 cat >>conftest.$ac_ext <<_ACEOF
2494 /* end confdefs.h.  */
2495
2496 int
2497 main ()
2498 {
2499
2500   ;
2501   return 0;
2502 }
2503 _ACEOF
2504 rm -f conftest.$ac_objext
2505 if { (ac_try="$ac_compile"
2506 case "(($ac_try" in
2507   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2508   *) ac_try_echo=$ac_try;;
2509 esac
2510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2511   (eval "$ac_compile") 2>conftest.er1
2512   ac_status=$?
2513   grep -v '^ *+' conftest.er1 >conftest.err
2514   rm -f conftest.er1
2515   cat conftest.err >&5
2516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2517   (exit $ac_status); } &&
2518          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2519   { (case "(($ac_try" in
2520   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2521   *) ac_try_echo=$ac_try;;
2522 esac
2523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2524   (eval "$ac_try") 2>&5
2525   ac_status=$?
2526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2527   (exit $ac_status); }; } &&
2528          { ac_try='test -s conftest.$ac_objext'
2529   { (case "(($ac_try" in
2530   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2531   *) ac_try_echo=$ac_try;;
2532 esac
2533 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2534   (eval "$ac_try") 2>&5
2535   ac_status=$?
2536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2537   (exit $ac_status); }; }; then
2538   :
2539 else
2540   echo "$as_me: failed program was:" >&5
2541 sed 's/^/| /' conftest.$ac_ext >&5
2542
2543         ac_c_werror_flag=$ac_save_c_werror_flag
2544          CFLAGS="-g"
2545          cat >conftest.$ac_ext <<_ACEOF
2546 /* confdefs.h.  */
2547 _ACEOF
2548 cat confdefs.h >>conftest.$ac_ext
2549 cat >>conftest.$ac_ext <<_ACEOF
2550 /* end confdefs.h.  */
2551
2552 int
2553 main ()
2554 {
2555
2556   ;
2557   return 0;
2558 }
2559 _ACEOF
2560 rm -f conftest.$ac_objext
2561 if { (ac_try="$ac_compile"
2562 case "(($ac_try" in
2563   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2564   *) ac_try_echo=$ac_try;;
2565 esac
2566 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2567   (eval "$ac_compile") 2>conftest.er1
2568   ac_status=$?
2569   grep -v '^ *+' conftest.er1 >conftest.err
2570   rm -f conftest.er1
2571   cat conftest.err >&5
2572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2573   (exit $ac_status); } &&
2574          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2575   { (case "(($ac_try" in
2576   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2577   *) ac_try_echo=$ac_try;;
2578 esac
2579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2580   (eval "$ac_try") 2>&5
2581   ac_status=$?
2582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2583   (exit $ac_status); }; } &&
2584          { ac_try='test -s conftest.$ac_objext'
2585   { (case "(($ac_try" in
2586   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2587   *) ac_try_echo=$ac_try;;
2588 esac
2589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2590   (eval "$ac_try") 2>&5
2591   ac_status=$?
2592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2593   (exit $ac_status); }; }; then
2594   ac_cv_prog_cc_g=yes
2595 else
2596   echo "$as_me: failed program was:" >&5
2597 sed 's/^/| /' conftest.$ac_ext >&5
2598
2599
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 fi
2607
2608 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2609    ac_c_werror_flag=$ac_save_c_werror_flag
2610 fi
2611 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2612 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2613 if test "$ac_test_CFLAGS" = set; then
2614   CFLAGS=$ac_save_CFLAGS
2615 elif test $ac_cv_prog_cc_g = yes; then
2616   if test "$GCC" = yes; then
2617     CFLAGS="-g -O2"
2618   else
2619     CFLAGS="-g"
2620   fi
2621 else
2622   if test "$GCC" = yes; then
2623     CFLAGS="-O2"
2624   else
2625     CFLAGS=
2626   fi
2627 fi
2628 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2629 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2630 if test "${ac_cv_prog_cc_c89+set}" = set; then
2631   echo $ECHO_N "(cached) $ECHO_C" >&6
2632 else
2633   ac_cv_prog_cc_c89=no
2634 ac_save_CC=$CC
2635 cat >conftest.$ac_ext <<_ACEOF
2636 /* confdefs.h.  */
2637 _ACEOF
2638 cat confdefs.h >>conftest.$ac_ext
2639 cat >>conftest.$ac_ext <<_ACEOF
2640 /* end confdefs.h.  */
2641 #include <stdarg.h>
2642 #include <stdio.h>
2643 #include <sys/types.h>
2644 #include <sys/stat.h>
2645 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2646 struct buf { int x; };
2647 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2648 static char *e (p, i)
2649      char **p;
2650      int i;
2651 {
2652   return p[i];
2653 }
2654 static char *f (char * (*g) (char **, int), char **p, ...)
2655 {
2656   char *s;
2657   va_list v;
2658   va_start (v,p);
2659   s = g (p, va_arg (v,int));
2660   va_end (v);
2661   return s;
2662 }
2663
2664 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2665    function prototypes and stuff, but not '\xHH' hex character constants.
2666    These don't provoke an error unfortunately, instead are silently treated
2667    as 'x'.  The following induces an error, until -std is added to get
2668    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2669    array size at least.  It's necessary to write '\x00'==0 to get something
2670    that's true only with -std.  */
2671 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2672
2673 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2674    inside strings and character constants.  */
2675 #define FOO(x) 'x'
2676 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2677
2678 int test (int i, double x);
2679 struct s1 {int (*f) (int a);};
2680 struct s2 {int (*f) (double a);};
2681 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2682 int argc;
2683 char **argv;
2684 int
2685 main ()
2686 {
2687 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2688   ;
2689   return 0;
2690 }
2691 _ACEOF
2692 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2693         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2694 do
2695   CC="$ac_save_CC $ac_arg"
2696   rm -f conftest.$ac_objext
2697 if { (ac_try="$ac_compile"
2698 case "(($ac_try" in
2699   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2700   *) ac_try_echo=$ac_try;;
2701 esac
2702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2703   (eval "$ac_compile") 2>conftest.er1
2704   ac_status=$?
2705   grep -v '^ *+' conftest.er1 >conftest.err
2706   rm -f conftest.er1
2707   cat conftest.err >&5
2708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2709   (exit $ac_status); } &&
2710          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2711   { (case "(($ac_try" in
2712   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2713   *) ac_try_echo=$ac_try;;
2714 esac
2715 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2716   (eval "$ac_try") 2>&5
2717   ac_status=$?
2718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2719   (exit $ac_status); }; } &&
2720          { ac_try='test -s conftest.$ac_objext'
2721   { (case "(($ac_try" in
2722   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2723   *) ac_try_echo=$ac_try;;
2724 esac
2725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2726   (eval "$ac_try") 2>&5
2727   ac_status=$?
2728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2729   (exit $ac_status); }; }; then
2730   ac_cv_prog_cc_c89=$ac_arg
2731 else
2732   echo "$as_me: failed program was:" >&5
2733 sed 's/^/| /' conftest.$ac_ext >&5
2734
2735
2736 fi
2737
2738 rm -f core conftest.err conftest.$ac_objext
2739   test "x$ac_cv_prog_cc_c89" != "xno" && break
2740 done
2741 rm -f conftest.$ac_ext
2742 CC=$ac_save_CC
2743
2744 fi
2745 # AC_CACHE_VAL
2746 case "x$ac_cv_prog_cc_c89" in
2747   x)
2748     { echo "$as_me:$LINENO: result: none needed" >&5
2749 echo "${ECHO_T}none needed" >&6; } ;;
2750   xno)
2751     { echo "$as_me:$LINENO: result: unsupported" >&5
2752 echo "${ECHO_T}unsupported" >&6; } ;;
2753   *)
2754     CC="$CC $ac_cv_prog_cc_c89"
2755     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2756 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2757 esac
2758
2759
2760 ac_ext=c
2761 ac_cpp='$CPP $CPPFLAGS'
2762 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2763 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2764 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2765
2766 ac_ext=cpp
2767 ac_cpp='$CXXCPP $CPPFLAGS'
2768 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2769 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2770 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2771 if test -z "$CXX"; then
2772   if test -n "$CCC"; then
2773     CXX=$CCC
2774   else
2775     if test -n "$ac_tool_prefix"; then
2776   for ac_prog in clang++ llvm-g++ g++
2777   do
2778     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2779 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2780 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2781 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2782 if test "${ac_cv_prog_CXX+set}" = set; then
2783   echo $ECHO_N "(cached) $ECHO_C" >&6
2784 else
2785   if test -n "$CXX"; then
2786   ac_cv_prog_CXX="$CXX" # Let the user override the test.
2787 else
2788 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2789 for as_dir in $PATH
2790 do
2791   IFS=$as_save_IFS
2792   test -z "$as_dir" && as_dir=.
2793   for ac_exec_ext in '' $ac_executable_extensions; do
2794   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2795     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2796     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2797     break 2
2798   fi
2799 done
2800 done
2801 IFS=$as_save_IFS
2802
2803 fi
2804 fi
2805 CXX=$ac_cv_prog_CXX
2806 if test -n "$CXX"; then
2807   { echo "$as_me:$LINENO: result: $CXX" >&5
2808 echo "${ECHO_T}$CXX" >&6; }
2809 else
2810   { echo "$as_me:$LINENO: result: no" >&5
2811 echo "${ECHO_T}no" >&6; }
2812 fi
2813
2814
2815     test -n "$CXX" && break
2816   done
2817 fi
2818 if test -z "$CXX"; then
2819   ac_ct_CXX=$CXX
2820   for ac_prog in clang++ llvm-g++ g++
2821 do
2822   # Extract the first word of "$ac_prog", so it can be a program name with args.
2823 set dummy $ac_prog; ac_word=$2
2824 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2825 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2826 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2827   echo $ECHO_N "(cached) $ECHO_C" >&6
2828 else
2829   if test -n "$ac_ct_CXX"; then
2830   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2831 else
2832 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2833 for as_dir in $PATH
2834 do
2835   IFS=$as_save_IFS
2836   test -z "$as_dir" && as_dir=.
2837   for ac_exec_ext in '' $ac_executable_extensions; do
2838   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2839     ac_cv_prog_ac_ct_CXX="$ac_prog"
2840     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2841     break 2
2842   fi
2843 done
2844 done
2845 IFS=$as_save_IFS
2846
2847 fi
2848 fi
2849 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2850 if test -n "$ac_ct_CXX"; then
2851   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2852 echo "${ECHO_T}$ac_ct_CXX" >&6; }
2853 else
2854   { echo "$as_me:$LINENO: result: no" >&5
2855 echo "${ECHO_T}no" >&6; }
2856 fi
2857
2858
2859   test -n "$ac_ct_CXX" && break
2860 done
2861
2862   if test "x$ac_ct_CXX" = x; then
2863     CXX="g++"
2864   else
2865     case $cross_compiling:$ac_tool_warned in
2866 yes:)
2867 { echo "$as_me:$LINENO: 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." >&5
2870 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2871 whose name does not start with the host triplet.  If you think this
2872 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2873 ac_tool_warned=yes ;;
2874 esac
2875     CXX=$ac_ct_CXX
2876   fi
2877 fi
2878
2879   fi
2880 fi
2881 # Provide some information about the compiler.
2882 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
2883 ac_compiler=`set X $ac_compile; echo $2`
2884 { (ac_try="$ac_compiler --version >&5"
2885 case "(($ac_try" in
2886   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2887   *) ac_try_echo=$ac_try;;
2888 esac
2889 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2890   (eval "$ac_compiler --version >&5") 2>&5
2891   ac_status=$?
2892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2893   (exit $ac_status); }
2894 { (ac_try="$ac_compiler -v >&5"
2895 case "(($ac_try" in
2896   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2897   *) ac_try_echo=$ac_try;;
2898 esac
2899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2900   (eval "$ac_compiler -v >&5") 2>&5
2901   ac_status=$?
2902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2903   (exit $ac_status); }
2904 { (ac_try="$ac_compiler -V >&5"
2905 case "(($ac_try" in
2906   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2907   *) ac_try_echo=$ac_try;;
2908 esac
2909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2910   (eval "$ac_compiler -V >&5") 2>&5
2911   ac_status=$?
2912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2913   (exit $ac_status); }
2914
2915 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2916 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
2917 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2918   echo $ECHO_N "(cached) $ECHO_C" >&6
2919 else
2920   cat >conftest.$ac_ext <<_ACEOF
2921 /* confdefs.h.  */
2922 _ACEOF
2923 cat confdefs.h >>conftest.$ac_ext
2924 cat >>conftest.$ac_ext <<_ACEOF
2925 /* end confdefs.h.  */
2926
2927 int
2928 main ()
2929 {
2930 #ifndef __GNUC__
2931        choke me
2932 #endif
2933
2934   ;
2935   return 0;
2936 }
2937 _ACEOF
2938 rm -f conftest.$ac_objext
2939 if { (ac_try="$ac_compile"
2940 case "(($ac_try" in
2941   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2942   *) ac_try_echo=$ac_try;;
2943 esac
2944 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2945   (eval "$ac_compile") 2>conftest.er1
2946   ac_status=$?
2947   grep -v '^ *+' conftest.er1 >conftest.err
2948   rm -f conftest.er1
2949   cat conftest.err >&5
2950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2951   (exit $ac_status); } &&
2952          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2953   { (case "(($ac_try" in
2954   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2955   *) ac_try_echo=$ac_try;;
2956 esac
2957 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2958   (eval "$ac_try") 2>&5
2959   ac_status=$?
2960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2961   (exit $ac_status); }; } &&
2962          { ac_try='test -s conftest.$ac_objext'
2963   { (case "(($ac_try" in
2964   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2965   *) ac_try_echo=$ac_try;;
2966 esac
2967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2968   (eval "$ac_try") 2>&5
2969   ac_status=$?
2970   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2971   (exit $ac_status); }; }; then
2972   ac_compiler_gnu=yes
2973 else
2974   echo "$as_me: failed program was:" >&5
2975 sed 's/^/| /' conftest.$ac_ext >&5
2976
2977         ac_compiler_gnu=no
2978 fi
2979
2980 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2981 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2982
2983 fi
2984 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2985 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
2986 GXX=`test $ac_compiler_gnu = yes && echo yes`
2987 ac_test_CXXFLAGS=${CXXFLAGS+set}
2988 ac_save_CXXFLAGS=$CXXFLAGS
2989 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2990 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
2991 if test "${ac_cv_prog_cxx_g+set}" = set; then
2992   echo $ECHO_N "(cached) $ECHO_C" >&6
2993 else
2994   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
2995    ac_cxx_werror_flag=yes
2996    ac_cv_prog_cxx_g=no
2997    CXXFLAGS="-g"
2998    cat >conftest.$ac_ext <<_ACEOF
2999 /* confdefs.h.  */
3000 _ACEOF
3001 cat confdefs.h >>conftest.$ac_ext
3002 cat >>conftest.$ac_ext <<_ACEOF
3003 /* end confdefs.h.  */
3004
3005 int
3006 main ()
3007 {
3008
3009   ;
3010   return 0;
3011 }
3012 _ACEOF
3013 rm -f conftest.$ac_objext
3014 if { (ac_try="$ac_compile"
3015 case "(($ac_try" in
3016   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3017   *) ac_try_echo=$ac_try;;
3018 esac
3019 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3020   (eval "$ac_compile") 2>conftest.er1
3021   ac_status=$?
3022   grep -v '^ *+' conftest.er1 >conftest.err
3023   rm -f conftest.er1
3024   cat conftest.err >&5
3025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3026   (exit $ac_status); } &&
3027          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3028   { (case "(($ac_try" in
3029   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3030   *) ac_try_echo=$ac_try;;
3031 esac
3032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3033   (eval "$ac_try") 2>&5
3034   ac_status=$?
3035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3036   (exit $ac_status); }; } &&
3037          { ac_try='test -s conftest.$ac_objext'
3038   { (case "(($ac_try" in
3039   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3040   *) ac_try_echo=$ac_try;;
3041 esac
3042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3043   (eval "$ac_try") 2>&5
3044   ac_status=$?
3045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3046   (exit $ac_status); }; }; then
3047   ac_cv_prog_cxx_g=yes
3048 else
3049   echo "$as_me: failed program was:" >&5
3050 sed 's/^/| /' conftest.$ac_ext >&5
3051
3052         CXXFLAGS=""
3053       cat >conftest.$ac_ext <<_ACEOF
3054 /* confdefs.h.  */
3055 _ACEOF
3056 cat confdefs.h >>conftest.$ac_ext
3057 cat >>conftest.$ac_ext <<_ACEOF
3058 /* end confdefs.h.  */
3059
3060 int
3061 main ()
3062 {
3063
3064   ;
3065   return 0;
3066 }
3067 _ACEOF
3068 rm -f conftest.$ac_objext
3069 if { (ac_try="$ac_compile"
3070 case "(($ac_try" in
3071   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3072   *) ac_try_echo=$ac_try;;
3073 esac
3074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3075   (eval "$ac_compile") 2>conftest.er1
3076   ac_status=$?
3077   grep -v '^ *+' conftest.er1 >conftest.err
3078   rm -f conftest.er1
3079   cat conftest.err >&5
3080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3081   (exit $ac_status); } &&
3082          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3083   { (case "(($ac_try" in
3084   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3085   *) ac_try_echo=$ac_try;;
3086 esac
3087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3088   (eval "$ac_try") 2>&5
3089   ac_status=$?
3090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3091   (exit $ac_status); }; } &&
3092          { ac_try='test -s conftest.$ac_objext'
3093   { (case "(($ac_try" in
3094   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3095   *) ac_try_echo=$ac_try;;
3096 esac
3097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3098   (eval "$ac_try") 2>&5
3099   ac_status=$?
3100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3101   (exit $ac_status); }; }; then
3102   :
3103 else
3104   echo "$as_me: failed program was:" >&5
3105 sed 's/^/| /' conftest.$ac_ext >&5
3106
3107         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3108          CXXFLAGS="-g"
3109          cat >conftest.$ac_ext <<_ACEOF
3110 /* confdefs.h.  */
3111 _ACEOF
3112 cat confdefs.h >>conftest.$ac_ext
3113 cat >>conftest.$ac_ext <<_ACEOF
3114 /* end confdefs.h.  */
3115
3116 int
3117 main ()
3118 {
3119
3120   ;
3121   return 0;
3122 }
3123 _ACEOF
3124 rm -f conftest.$ac_objext
3125 if { (ac_try="$ac_compile"
3126 case "(($ac_try" in
3127   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3128   *) ac_try_echo=$ac_try;;
3129 esac
3130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3131   (eval "$ac_compile") 2>conftest.er1
3132   ac_status=$?
3133   grep -v '^ *+' conftest.er1 >conftest.err
3134   rm -f conftest.er1
3135   cat conftest.err >&5
3136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3137   (exit $ac_status); } &&
3138          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3139   { (case "(($ac_try" in
3140   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3141   *) ac_try_echo=$ac_try;;
3142 esac
3143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3144   (eval "$ac_try") 2>&5
3145   ac_status=$?
3146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3147   (exit $ac_status); }; } &&
3148          { ac_try='test -s conftest.$ac_objext'
3149   { (case "(($ac_try" in
3150   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3151   *) ac_try_echo=$ac_try;;
3152 esac
3153 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3154   (eval "$ac_try") 2>&5
3155   ac_status=$?
3156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3157   (exit $ac_status); }; }; then
3158   ac_cv_prog_cxx_g=yes
3159 else
3160   echo "$as_me: failed program was:" >&5
3161 sed 's/^/| /' conftest.$ac_ext >&5
3162
3163
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 fi
3171
3172 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3173    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3174 fi
3175 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3176 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3177 if test "$ac_test_CXXFLAGS" = set; then
3178   CXXFLAGS=$ac_save_CXXFLAGS
3179 elif test $ac_cv_prog_cxx_g = yes; then
3180   if test "$GXX" = yes; then
3181     CXXFLAGS="-g -O2"
3182   else
3183     CXXFLAGS="-g"
3184   fi
3185 else
3186   if test "$GXX" = yes; then
3187     CXXFLAGS="-O2"
3188   else
3189     CXXFLAGS=
3190   fi
3191 fi
3192 ac_ext=c
3193 ac_cpp='$CPP $CPPFLAGS'
3194 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3195 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3196 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3197
3198 ac_ext=c
3199 ac_cpp='$CPP $CPPFLAGS'
3200 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3201 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3202 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3203 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3204 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3205 # On Suns, sometimes $CPP names a directory.
3206 if test -n "$CPP" && test -d "$CPP"; then
3207   CPP=
3208 fi
3209 if test -z "$CPP"; then
3210   if test "${ac_cv_prog_CPP+set}" = set; then
3211   echo $ECHO_N "(cached) $ECHO_C" >&6
3212 else
3213       # Double quotes because CPP needs to be expanded
3214     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3215     do
3216       ac_preproc_ok=false
3217 for ac_c_preproc_warn_flag in '' yes
3218 do
3219   # Use a header file that comes with gcc, so configuring glibc
3220   # with a fresh cross-compiler works.
3221   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3222   # <limits.h> exists even on freestanding compilers.
3223   # On the NeXT, cc -E runs the code through the compiler's parser,
3224   # not just through cpp. "Syntax error" is here to catch this case.
3225   cat >conftest.$ac_ext <<_ACEOF
3226 /* confdefs.h.  */
3227 _ACEOF
3228 cat confdefs.h >>conftest.$ac_ext
3229 cat >>conftest.$ac_ext <<_ACEOF
3230 /* end confdefs.h.  */
3231 #ifdef __STDC__
3232 # include <limits.h>
3233 #else
3234 # include <assert.h>
3235 #endif
3236                      Syntax error
3237 _ACEOF
3238 if { (ac_try="$ac_cpp conftest.$ac_ext"
3239 case "(($ac_try" in
3240   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3241   *) ac_try_echo=$ac_try;;
3242 esac
3243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3244   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3245   ac_status=$?
3246   grep -v '^ *+' conftest.er1 >conftest.err
3247   rm -f conftest.er1
3248   cat conftest.err >&5
3249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3250   (exit $ac_status); } >/dev/null; then
3251   if test -s conftest.err; then
3252     ac_cpp_err=$ac_c_preproc_warn_flag
3253     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3254   else
3255     ac_cpp_err=
3256   fi
3257 else
3258   ac_cpp_err=yes
3259 fi
3260 if test -z "$ac_cpp_err"; then
3261   :
3262 else
3263   echo "$as_me: failed program was:" >&5
3264 sed 's/^/| /' conftest.$ac_ext >&5
3265
3266   # Broken: fails on valid input.
3267 continue
3268 fi
3269
3270 rm -f conftest.err conftest.$ac_ext
3271
3272   # OK, works on sane cases.  Now check whether nonexistent headers
3273   # can be detected and how.
3274   cat >conftest.$ac_ext <<_ACEOF
3275 /* confdefs.h.  */
3276 _ACEOF
3277 cat confdefs.h >>conftest.$ac_ext
3278 cat >>conftest.$ac_ext <<_ACEOF
3279 /* end confdefs.h.  */
3280 #include <ac_nonexistent.h>
3281 _ACEOF
3282 if { (ac_try="$ac_cpp conftest.$ac_ext"
3283 case "(($ac_try" in
3284   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3285   *) ac_try_echo=$ac_try;;
3286 esac
3287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3288   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3289   ac_status=$?
3290   grep -v '^ *+' conftest.er1 >conftest.err
3291   rm -f conftest.er1
3292   cat conftest.err >&5
3293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3294   (exit $ac_status); } >/dev/null; then
3295   if test -s conftest.err; then
3296     ac_cpp_err=$ac_c_preproc_warn_flag
3297     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3298   else
3299     ac_cpp_err=
3300   fi
3301 else
3302   ac_cpp_err=yes
3303 fi
3304 if test -z "$ac_cpp_err"; then
3305   # Broken: success on invalid input.
3306 continue
3307 else
3308   echo "$as_me: failed program was:" >&5
3309 sed 's/^/| /' conftest.$ac_ext >&5
3310
3311   # Passes both tests.
3312 ac_preproc_ok=:
3313 break
3314 fi
3315
3316 rm -f conftest.err conftest.$ac_ext
3317
3318 done
3319 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3320 rm -f conftest.err conftest.$ac_ext
3321 if $ac_preproc_ok; then
3322   break
3323 fi
3324
3325     done
3326     ac_cv_prog_CPP=$CPP
3327
3328 fi
3329   CPP=$ac_cv_prog_CPP
3330 else
3331   ac_cv_prog_CPP=$CPP
3332 fi
3333 { echo "$as_me:$LINENO: result: $CPP" >&5
3334 echo "${ECHO_T}$CPP" >&6; }
3335 ac_preproc_ok=false
3336 for ac_c_preproc_warn_flag in '' yes
3337 do
3338   # Use a header file that comes with gcc, so configuring glibc
3339   # with a fresh cross-compiler works.
3340   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3341   # <limits.h> exists even on freestanding compilers.
3342   # On the NeXT, cc -E runs the code through the compiler's parser,
3343   # not just through cpp. "Syntax error" is here to catch this case.
3344   cat >conftest.$ac_ext <<_ACEOF
3345 /* confdefs.h.  */
3346 _ACEOF
3347 cat confdefs.h >>conftest.$ac_ext
3348 cat >>conftest.$ac_ext <<_ACEOF
3349 /* end confdefs.h.  */
3350 #ifdef __STDC__
3351 # include <limits.h>
3352 #else
3353 # include <assert.h>
3354 #endif
3355                      Syntax error
3356 _ACEOF
3357 if { (ac_try="$ac_cpp conftest.$ac_ext"
3358 case "(($ac_try" in
3359   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3360   *) ac_try_echo=$ac_try;;
3361 esac
3362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3363   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3364   ac_status=$?
3365   grep -v '^ *+' conftest.er1 >conftest.err
3366   rm -f conftest.er1
3367   cat conftest.err >&5
3368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3369   (exit $ac_status); } >/dev/null; then
3370   if test -s conftest.err; then
3371     ac_cpp_err=$ac_c_preproc_warn_flag
3372     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3373   else
3374     ac_cpp_err=
3375   fi
3376 else
3377   ac_cpp_err=yes
3378 fi
3379 if test -z "$ac_cpp_err"; then
3380   :
3381 else
3382   echo "$as_me: failed program was:" >&5
3383 sed 's/^/| /' conftest.$ac_ext >&5
3384
3385   # Broken: fails on valid input.
3386 continue
3387 fi
3388
3389 rm -f conftest.err conftest.$ac_ext
3390
3391   # OK, works on sane cases.  Now check whether nonexistent headers
3392   # can be detected and how.
3393   cat >conftest.$ac_ext <<_ACEOF
3394 /* confdefs.h.  */
3395 _ACEOF
3396 cat confdefs.h >>conftest.$ac_ext
3397 cat >>conftest.$ac_ext <<_ACEOF
3398 /* end confdefs.h.  */
3399 #include <ac_nonexistent.h>
3400 _ACEOF
3401 if { (ac_try="$ac_cpp conftest.$ac_ext"
3402 case "(($ac_try" in
3403   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3404   *) ac_try_echo=$ac_try;;
3405 esac
3406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3407   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3408   ac_status=$?
3409   grep -v '^ *+' conftest.er1 >conftest.err
3410   rm -f conftest.er1
3411   cat conftest.err >&5
3412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3413   (exit $ac_status); } >/dev/null; then
3414   if test -s conftest.err; then
3415     ac_cpp_err=$ac_c_preproc_warn_flag
3416     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3417   else
3418     ac_cpp_err=
3419   fi
3420 else
3421   ac_cpp_err=yes
3422 fi
3423 if test -z "$ac_cpp_err"; then
3424   # Broken: success on invalid input.
3425 continue
3426 else
3427   echo "$as_me: failed program was:" >&5
3428 sed 's/^/| /' conftest.$ac_ext >&5
3429
3430   # Passes both tests.
3431 ac_preproc_ok=:
3432 break
3433 fi
3434
3435 rm -f conftest.err conftest.$ac_ext
3436
3437 done
3438 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3439 rm -f conftest.err conftest.$ac_ext
3440 if $ac_preproc_ok; then
3441   :
3442 else
3443   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3444 See \`config.log' for more details." >&5
3445 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3446 See \`config.log' for more details." >&2;}
3447    { (exit 1); exit 1; }; }
3448 fi
3449
3450 ac_ext=c
3451 ac_cpp='$CPP $CPPFLAGS'
3452 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3453 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3454 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3455
3456
3457
3458
3459 if test -d ${srcdir}/projects/llvm-gcc ; then
3460   subdirs="$subdirs projects/llvm-gcc"
3461
3462 fi
3463
3464 if test -d ${srcdir}/projects/test-suite ; then
3465   subdirs="$subdirs projects/test-suite"
3466
3467 fi
3468
3469 if test -d ${srcdir}/projects/llvm-test ; then
3470   subdirs="$subdirs projects/llvm-test"
3471
3472 fi
3473
3474 if test -d ${srcdir}/projects/poolalloc ; then
3475   subdirs="$subdirs projects/poolalloc"
3476
3477 fi
3478
3479 if test -d ${srcdir}/projects/llvm-poolalloc ; then
3480   subdirs="$subdirs projects/llvm-poolalloc"
3481
3482 fi
3483
3484 for i in `ls ${srcdir}/projects`
3485 do
3486   if test -d ${srcdir}/projects/${i} ; then
3487     case ${i} in
3488       sample)       subdirs="$subdirs projects/sample"
3489     ;;
3490       privbracket)  subdirs="$subdirs projects/privbracket"
3491  ;;
3492       llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
3493  ;;
3494       llvm-reopt)   subdirs="$subdirs projects/llvm-reopt"
3495 ;;
3496       llvm-java)    subdirs="$subdirs projects/llvm-java"
3497  ;;
3498       llvm-tv)      subdirs="$subdirs projects/llvm-tv"
3499    ;;
3500       safecode)     subdirs="$subdirs projects/safecode"
3501  ;;
3502       llvm-kernel)  subdirs="$subdirs projects/llvm-kernel"
3503  ;;
3504       compiler-rt)       ;;
3505       llvm-gcc)       ;;
3506       test-suite)     ;;
3507       llvm-test)      ;;
3508       poolalloc)      ;;
3509       llvm-poolalloc) ;;
3510       *)
3511         { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
3512 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
3513         ;;
3514     esac
3515   fi
3516 done
3517
3518 # Check whether --enable-polly was given.
3519 if test "${enable_polly+set}" = set; then
3520   enableval=$enable_polly;
3521 else
3522   enableval=default
3523 fi
3524
3525 case "$enableval" in
3526   yes) ENABLE_POLLY=1
3527  ;;
3528   no)  ENABLE_POLLY=0
3529  ;;
3530   default) ENABLE_POLLY=1
3531  ;;
3532   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&5
3533 echo "$as_me: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&2;}
3534    { (exit 1); exit 1; }; } ;;
3535 esac
3536
3537
3538 if (test -d ${srcdir}/tools/polly) && (test $ENABLE_POLLY -eq 1) ; then
3539   LLVM_HAS_POLLY=1
3540
3541   subdirs="$subdirs tools/polly"
3542
3543 fi
3544
3545
3546 # Make sure we can run config.sub.
3547 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3548   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3549 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3550    { (exit 1); exit 1; }; }
3551
3552 { echo "$as_me:$LINENO: checking build system type" >&5
3553 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3554 if test "${ac_cv_build+set}" = set; then
3555   echo $ECHO_N "(cached) $ECHO_C" >&6
3556 else
3557   ac_build_alias=$build_alias
3558 test "x$ac_build_alias" = x &&
3559   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3560 test "x$ac_build_alias" = x &&
3561   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3562 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3563    { (exit 1); exit 1; }; }
3564 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3565   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3566 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3567    { (exit 1); exit 1; }; }
3568
3569 fi
3570 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3571 echo "${ECHO_T}$ac_cv_build" >&6; }
3572 case $ac_cv_build in
3573 *-*-*) ;;
3574 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3575 echo "$as_me: error: invalid value of canonical build" >&2;}
3576    { (exit 1); exit 1; }; };;
3577 esac
3578 build=$ac_cv_build
3579 ac_save_IFS=$IFS; IFS='-'
3580 set x $ac_cv_build
3581 shift
3582 build_cpu=$1
3583 build_vendor=$2
3584 shift; shift
3585 # Remember, the first character of IFS is used to create $*,
3586 # except with old shells:
3587 build_os=$*
3588 IFS=$ac_save_IFS
3589 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3590
3591
3592 { echo "$as_me:$LINENO: checking host system type" >&5
3593 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3594 if test "${ac_cv_host+set}" = set; then
3595   echo $ECHO_N "(cached) $ECHO_C" >&6
3596 else
3597   if test "x$host_alias" = x; then
3598   ac_cv_host=$ac_cv_build
3599 else
3600   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3601     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3602 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3603    { (exit 1); exit 1; }; }
3604 fi
3605
3606 fi
3607 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3608 echo "${ECHO_T}$ac_cv_host" >&6; }
3609 case $ac_cv_host in
3610 *-*-*) ;;
3611 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3612 echo "$as_me: error: invalid value of canonical host" >&2;}
3613    { (exit 1); exit 1; }; };;
3614 esac
3615 host=$ac_cv_host
3616 ac_save_IFS=$IFS; IFS='-'
3617 set x $ac_cv_host
3618 shift
3619 host_cpu=$1
3620 host_vendor=$2
3621 shift; shift
3622 # Remember, the first character of IFS is used to create $*,
3623 # except with old shells:
3624 host_os=$*
3625 IFS=$ac_save_IFS
3626 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3627
3628
3629 { echo "$as_me:$LINENO: checking target system type" >&5
3630 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
3631 if test "${ac_cv_target+set}" = set; then
3632   echo $ECHO_N "(cached) $ECHO_C" >&6
3633 else
3634   if test "x$target_alias" = x; then
3635   ac_cv_target=$ac_cv_host
3636 else
3637   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3638     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
3639 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
3640    { (exit 1); exit 1; }; }
3641 fi
3642
3643 fi
3644 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
3645 echo "${ECHO_T}$ac_cv_target" >&6; }
3646 case $ac_cv_target in
3647 *-*-*) ;;
3648 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
3649 echo "$as_me: error: invalid value of canonical target" >&2;}
3650    { (exit 1); exit 1; }; };;
3651 esac
3652 target=$ac_cv_target
3653 ac_save_IFS=$IFS; IFS='-'
3654 set x $ac_cv_target
3655 shift
3656 target_cpu=$1
3657 target_vendor=$2
3658 shift; shift
3659 # Remember, the first character of IFS is used to create $*,
3660 # except with old shells:
3661 target_os=$*
3662 IFS=$ac_save_IFS
3663 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3664
3665
3666 # The aliases save the names the user supplied, while $host etc.
3667 # will get canonicalized.
3668 test -n "$target_alias" &&
3669   test "$program_prefix$program_suffix$program_transform_name" = \
3670     NONENONEs,x,x, &&
3671   program_prefix=${target_alias}-
3672
3673 { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
3674 echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
3675 if test "${llvm_cv_os_type+set}" = set; then
3676   echo $ECHO_N "(cached) $ECHO_C" >&6
3677 else
3678   case $host in
3679   *-*-aix*)
3680     llvm_cv_link_all_option="-Wl,--whole-archive"
3681     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3682     llvm_cv_os_type="AIX"
3683     llvm_cv_platform_type="Unix" ;;
3684   *-*-irix*)
3685     llvm_cv_link_all_option="-Wl,--whole-archive"
3686     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3687     llvm_cv_os_type="IRIX"
3688     llvm_cv_platform_type="Unix" ;;
3689   *-*-cygwin*)
3690     llvm_cv_link_all_option="-Wl,--whole-archive"
3691     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3692     llvm_cv_os_type="Cygwin"
3693     llvm_cv_platform_type="Unix" ;;
3694   *-*-darwin*)
3695     llvm_cv_link_all_option="-Wl,-all_load"
3696     llvm_cv_no_link_all_option="-Wl,-noall_load"
3697     llvm_cv_os_type="Darwin"
3698     llvm_cv_platform_type="Unix" ;;
3699   *-*-minix*)
3700     llvm_cv_link_all_option="-Wl,-all_load"
3701     llvm_cv_no_link_all_option="-Wl,-noall_load"
3702     llvm_cv_os_type="Minix"
3703     llvm_cv_platform_type="Unix" ;;
3704   *-*-freebsd* | *-*-kfreebsd-gnu)
3705     llvm_cv_link_all_option="-Wl,--whole-archive"
3706     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3707     llvm_cv_os_type="FreeBSD"
3708     llvm_cv_platform_type="Unix" ;;
3709   *-*-openbsd*)
3710     llvm_cv_link_all_option="-Wl,--whole-archive"
3711     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3712     llvm_cv_os_type="OpenBSD"
3713     llvm_cv_platform_type="Unix" ;;
3714   *-*-netbsd*)
3715     llvm_cv_link_all_option="-Wl,--whole-archive"
3716     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3717     llvm_cv_os_type="NetBSD"
3718     llvm_cv_platform_type="Unix" ;;
3719   *-*-dragonfly*)
3720     llvm_cv_link_all_option="-Wl,--whole-archive"
3721     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3722     llvm_cv_os_type="DragonFly"
3723     llvm_cv_platform_type="Unix" ;;
3724   *-*-hpux*)
3725     llvm_cv_link_all_option="-Wl,--whole-archive"
3726     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3727     llvm_cv_os_type="HP-UX"
3728     llvm_cv_platform_type="Unix" ;;
3729   *-*-interix*)
3730     llvm_cv_link_all_option="-Wl,--whole-archive"
3731     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3732     llvm_cv_os_type="Interix"
3733     llvm_cv_platform_type="Unix" ;;
3734   *-*-linux*)
3735     llvm_cv_link_all_option="-Wl,--whole-archive"
3736     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3737     llvm_cv_os_type="Linux"
3738     llvm_cv_platform_type="Unix" ;;
3739   *-*-gnu*)
3740     llvm_cv_link_all_option="-Wl,--whole-archive"
3741     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3742     llvm_cv_os_type="GNU"
3743     llvm_cv_platform_type="Unix" ;;
3744   *-*-solaris*)
3745     llvm_cv_link_all_option="-Wl,-z,allextract"
3746     llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
3747     llvm_cv_os_type="SunOS"
3748     llvm_cv_platform_type="Unix" ;;
3749   *-*-auroraux*)
3750     llvm_cv_link_all_option="-Wl,-z,allextract"
3751     llvm_cv_link_all_option="-Wl,-z,defaultextract"
3752     llvm_cv_os_type="AuroraUX"
3753     llvm_cv_platform_type="Unix" ;;
3754   *-*-win32*)
3755     llvm_cv_link_all_option="-Wl,--whole-archive"
3756     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3757     llvm_cv_os_type="Win32"
3758     llvm_cv_platform_type="Win32" ;;
3759   *-*-mingw*)
3760     llvm_cv_link_all_option="-Wl,--whole-archive"
3761     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3762     llvm_cv_os_type="MingW"
3763     llvm_cv_platform_type="Win32" ;;
3764   *-*-haiku*)
3765     llvm_cv_link_all_option="-Wl,--whole-archive"
3766     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3767     llvm_cv_os_type="Haiku"
3768     llvm_cv_platform_type="Unix" ;;
3769   *-unknown-eabi*)
3770     llvm_cv_link_all_option="-Wl,--whole-archive"
3771     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3772     llvm_cv_os_type="Freestanding"
3773     llvm_cv_platform_type="Unix" ;;
3774   *-unknown-elf*)
3775     llvm_cv_link_all_option="-Wl,--whole-archive"
3776     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3777     llvm_cv_os_type="Freestanding"
3778     llvm_cv_platform_type="Unix" ;;
3779   *)
3780     llvm_cv_link_all_option=""
3781     llvm_cv_no_link_all_option=""
3782     llvm_cv_os_type="Unknown"
3783     llvm_cv_platform_type="Unknown" ;;
3784 esac
3785 fi
3786 { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
3787 echo "${ECHO_T}$llvm_cv_os_type" >&6; }
3788
3789 { echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
3790 echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
3791 if test "${llvm_cv_target_os_type+set}" = set; then
3792   echo $ECHO_N "(cached) $ECHO_C" >&6
3793 else
3794   case $target in
3795   *-*-aix*)
3796     llvm_cv_target_os_type="AIX" ;;
3797   *-*-irix*)
3798     llvm_cv_target_os_type="IRIX" ;;
3799   *-*-cygwin*)
3800     llvm_cv_target_os_type="Cygwin" ;;
3801   *-*-darwin*)
3802     llvm_cv_target_os_type="Darwin" ;;
3803   *-*-minix*)
3804     llvm_cv_target_os_type="Minix" ;;
3805   *-*-freebsd*| *-*-kfreebsd-gnu)
3806     llvm_cv_target_os_type="FreeBSD" ;;
3807   *-*-openbsd*)
3808     llvm_cv_target_os_type="OpenBSD" ;;
3809   *-*-netbsd*)
3810     llvm_cv_target_os_type="NetBSD" ;;
3811   *-*-dragonfly*)
3812     llvm_cv_target_os_type="DragonFly" ;;
3813   *-*-hpux*)
3814     llvm_cv_target_os_type="HP-UX" ;;
3815   *-*-interix*)
3816     llvm_cv_target_os_type="Interix" ;;
3817   *-*-linux*)
3818     llvm_cv_target_os_type="Linux" ;;
3819   *-*-gnu*)
3820     llvm_cv_target_os_type="GNU" ;;
3821   *-*-solaris*)
3822     llvm_cv_target_os_type="SunOS" ;;
3823   *-*-auroraux*)
3824     llvm_cv_target_os_type="AuroraUX" ;;
3825   *-*-win32*)
3826     llvm_cv_target_os_type="Win32" ;;
3827   *-*-mingw*)
3828     llvm_cv_target_os_type="MingW" ;;
3829   *-*-haiku*)
3830     llvm_cv_target_os_type="Haiku" ;;
3831   *-*-rtems*)
3832     llvm_cv_target_os_type="RTEMS" ;;
3833   *-*-nacl*)
3834     llvm_cv_target_os_type="NativeClient" ;;
3835   *-unknown-eabi*)
3836     llvm_cv_target_os_type="Freestanding" ;;
3837   *)
3838     llvm_cv_target_os_type="Unknown" ;;
3839 esac
3840 fi
3841 { echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
3842 echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
3843
3844 if test "$llvm_cv_os_type" = "Unknown" ; then
3845   { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
3846 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
3847    { (exit 1); exit 1; }; }
3848 fi
3849
3850 OS=$llvm_cv_os_type
3851
3852 HOST_OS=$llvm_cv_os_type
3853
3854 TARGET_OS=$llvm_cv_target_os_type
3855
3856
3857 LINKALL=$llvm_cv_link_all_option
3858
3859 NOLINKALL=$llvm_cv_no_link_all_option
3860
3861
3862 case $llvm_cv_platform_type in
3863   Unix)
3864
3865 cat >>confdefs.h <<\_ACEOF
3866 #define LLVM_ON_UNIX 1
3867 _ACEOF
3868
3869     LLVM_ON_UNIX=1
3870
3871     LLVM_ON_WIN32=0
3872
3873     ;;
3874   Win32)
3875
3876 cat >>confdefs.h <<\_ACEOF
3877 #define LLVM_ON_WIN32 1
3878 _ACEOF
3879
3880     LLVM_ON_UNIX=0
3881
3882     LLVM_ON_WIN32=1
3883
3884     ;;
3885 esac
3886
3887 { echo "$as_me:$LINENO: checking target architecture" >&5
3888 echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
3889 if test "${llvm_cv_target_arch+set}" = set; then
3890   echo $ECHO_N "(cached) $ECHO_C" >&6
3891 else
3892   case $target in
3893   i?86-*)                 llvm_cv_target_arch="x86" ;;
3894   amd64-* | x86_64-*)     llvm_cv_target_arch="x86_64" ;;
3895   sparc*-*)               llvm_cv_target_arch="Sparc" ;;
3896   powerpc*-*)             llvm_cv_target_arch="PowerPC" ;;
3897   arm*-*)                 llvm_cv_target_arch="ARM" ;;
3898   mips-*)                 llvm_cv_target_arch="Mips" ;;
3899   mipsel-*)               llvm_cv_target_arch="Mips" ;;
3900   xcore-*)                llvm_cv_target_arch="XCore" ;;
3901   msp430-*)               llvm_cv_target_arch="MSP430" ;;
3902   hexagon-*)              llvm_cv_target_arch="Hexagon" ;;
3903   mblaze-*)               llvm_cv_target_arch="MBlaze" ;;
3904   ptx-*)                  llvm_cv_target_arch="PTX" ;;
3905   *)                      llvm_cv_target_arch="Unknown" ;;
3906 esac
3907 fi
3908 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
3909 echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
3910
3911 if test "$llvm_cv_target_arch" = "Unknown" ; then
3912   { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
3913 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
3914 fi
3915
3916 case "$llvm_cv_target_arch" in
3917     x86)     LLVM_NATIVE_ARCH="X86" ;;
3918     x86_64)  LLVM_NATIVE_ARCH="X86" ;;
3919     *)       LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
3920 esac
3921
3922 ARCH=$llvm_cv_target_arch
3923
3924
3925
3926
3927 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3928 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3929 if test "${ac_cv_path_GREP+set}" = set; then
3930   echo $ECHO_N "(cached) $ECHO_C" >&6
3931 else
3932   # Extract the first word of "grep ggrep" to use in msg output
3933 if test -z "$GREP"; then
3934 set dummy grep ggrep; ac_prog_name=$2
3935 if test "${ac_cv_path_GREP+set}" = set; then
3936   echo $ECHO_N "(cached) $ECHO_C" >&6
3937 else
3938   ac_path_GREP_found=false
3939 # Loop through the user's path and test for each of PROGNAME-LIST
3940 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3941 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3942 do
3943   IFS=$as_save_IFS
3944   test -z "$as_dir" && as_dir=.
3945   for ac_prog in grep ggrep; do
3946   for ac_exec_ext in '' $ac_executable_extensions; do
3947     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3948     { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3949     # Check for GNU ac_path_GREP and select it if it is found.
3950   # Check for GNU $ac_path_GREP
3951 case `"$ac_path_GREP" --version 2>&1` in
3952 *GNU*)
3953   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3954 *)
3955   ac_count=0
3956   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3957   while :
3958   do
3959     cat "conftest.in" "conftest.in" >"conftest.tmp"
3960     mv "conftest.tmp" "conftest.in"
3961     cp "conftest.in" "conftest.nl"
3962     echo 'GREP' >> "conftest.nl"
3963     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3964     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3965     ac_count=`expr $ac_count + 1`
3966     if test $ac_count -gt ${ac_path_GREP_max-0}; then
3967       # Best one so far, save it but keep looking for a better one
3968       ac_cv_path_GREP="$ac_path_GREP"
3969       ac_path_GREP_max=$ac_count
3970     fi
3971     # 10*(2^10) chars as input seems more than enough
3972     test $ac_count -gt 10 && break
3973   done
3974   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3975 esac
3976
3977
3978     $ac_path_GREP_found && break 3
3979   done
3980 done
3981
3982 done
3983 IFS=$as_save_IFS
3984
3985
3986 fi
3987
3988 GREP="$ac_cv_path_GREP"
3989 if test -z "$GREP"; then
3990   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3991 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3992    { (exit 1); exit 1; }; }
3993 fi
3994
3995 else
3996   ac_cv_path_GREP=$GREP
3997 fi
3998
3999
4000 fi
4001 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4002 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4003  GREP="$ac_cv_path_GREP"
4004
4005
4006 { echo "$as_me:$LINENO: checking for egrep" >&5
4007 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4008 if test "${ac_cv_path_EGREP+set}" = set; then
4009   echo $ECHO_N "(cached) $ECHO_C" >&6
4010 else
4011   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4012    then ac_cv_path_EGREP="$GREP -E"
4013    else
4014      # Extract the first word of "egrep" to use in msg output
4015 if test -z "$EGREP"; then
4016 set dummy egrep; ac_prog_name=$2
4017 if test "${ac_cv_path_EGREP+set}" = set; then
4018   echo $ECHO_N "(cached) $ECHO_C" >&6
4019 else
4020   ac_path_EGREP_found=false
4021 # Loop through the user's path and test for each of PROGNAME-LIST
4022 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4023 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4024 do
4025   IFS=$as_save_IFS
4026   test -z "$as_dir" && as_dir=.
4027   for ac_prog in egrep; do
4028   for ac_exec_ext in '' $ac_executable_extensions; do
4029     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4030     { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
4031     # Check for GNU ac_path_EGREP and select it if it is found.
4032   # Check for GNU $ac_path_EGREP
4033 case `"$ac_path_EGREP" --version 2>&1` in
4034 *GNU*)
4035   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4036 *)
4037   ac_count=0
4038   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4039   while :
4040   do
4041     cat "conftest.in" "conftest.in" >"conftest.tmp"
4042     mv "conftest.tmp" "conftest.in"
4043     cp "conftest.in" "conftest.nl"
4044     echo 'EGREP' >> "conftest.nl"
4045     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4046     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4047     ac_count=`expr $ac_count + 1`
4048     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4049       # Best one so far, save it but keep looking for a better one
4050       ac_cv_path_EGREP="$ac_path_EGREP"
4051       ac_path_EGREP_max=$ac_count
4052     fi
4053     # 10*(2^10) chars as input seems more than enough
4054     test $ac_count -gt 10 && break
4055   done
4056   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4057 esac
4058
4059
4060     $ac_path_EGREP_found && break 3
4061   done
4062 done
4063
4064 done
4065 IFS=$as_save_IFS
4066
4067
4068 fi
4069
4070 EGREP="$ac_cv_path_EGREP"
4071 if test -z "$EGREP"; then
4072   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4073 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4074    { (exit 1); exit 1; }; }
4075 fi
4076
4077 else
4078   ac_cv_path_EGREP=$EGREP
4079 fi
4080
4081
4082    fi
4083 fi
4084 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4085 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4086  EGREP="$ac_cv_path_EGREP"
4087
4088
4089 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4090 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4091 if test "${ac_cv_header_stdc+set}" = set; then
4092   echo $ECHO_N "(cached) $ECHO_C" >&6
4093 else
4094   cat >conftest.$ac_ext <<_ACEOF
4095 /* confdefs.h.  */
4096 _ACEOF
4097 cat confdefs.h >>conftest.$ac_ext
4098 cat >>conftest.$ac_ext <<_ACEOF
4099 /* end confdefs.h.  */
4100 #include <stdlib.h>
4101 #include <stdarg.h>
4102 #include <string.h>
4103 #include <float.h>
4104
4105 int
4106 main ()
4107 {
4108
4109   ;
4110   return 0;
4111 }
4112 _ACEOF
4113 rm -f conftest.$ac_objext
4114 if { (ac_try="$ac_compile"
4115 case "(($ac_try" in
4116   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4117   *) ac_try_echo=$ac_try;;
4118 esac
4119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4120   (eval "$ac_compile") 2>conftest.er1
4121   ac_status=$?
4122   grep -v '^ *+' conftest.er1 >conftest.err
4123   rm -f conftest.er1
4124   cat conftest.err >&5
4125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4126   (exit $ac_status); } &&
4127          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4128   { (case "(($ac_try" in
4129   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4130   *) ac_try_echo=$ac_try;;
4131 esac
4132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4133   (eval "$ac_try") 2>&5
4134   ac_status=$?
4135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4136   (exit $ac_status); }; } &&
4137          { ac_try='test -s conftest.$ac_objext'
4138   { (case "(($ac_try" in
4139   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4140   *) ac_try_echo=$ac_try;;
4141 esac
4142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4143   (eval "$ac_try") 2>&5
4144   ac_status=$?
4145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4146   (exit $ac_status); }; }; then
4147   ac_cv_header_stdc=yes
4148 else
4149   echo "$as_me: failed program was:" >&5
4150 sed 's/^/| /' conftest.$ac_ext >&5
4151
4152         ac_cv_header_stdc=no
4153 fi
4154
4155 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4156
4157 if test $ac_cv_header_stdc = yes; then
4158   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4159   cat >conftest.$ac_ext <<_ACEOF
4160 /* confdefs.h.  */
4161 _ACEOF
4162 cat confdefs.h >>conftest.$ac_ext
4163 cat >>conftest.$ac_ext <<_ACEOF
4164 /* end confdefs.h.  */
4165 #include <string.h>
4166
4167 _ACEOF
4168 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4169   $EGREP "memchr" >/dev/null 2>&1; then
4170   :
4171 else
4172   ac_cv_header_stdc=no
4173 fi
4174 rm -f conftest*
4175
4176 fi
4177
4178 if test $ac_cv_header_stdc = yes; then
4179   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4180   cat >conftest.$ac_ext <<_ACEOF
4181 /* confdefs.h.  */
4182 _ACEOF
4183 cat confdefs.h >>conftest.$ac_ext
4184 cat >>conftest.$ac_ext <<_ACEOF
4185 /* end confdefs.h.  */
4186 #include <stdlib.h>
4187
4188 _ACEOF
4189 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4190   $EGREP "free" >/dev/null 2>&1; then
4191   :
4192 else
4193   ac_cv_header_stdc=no
4194 fi
4195 rm -f conftest*
4196
4197 fi
4198
4199 if test $ac_cv_header_stdc = yes; then
4200   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4201   if test "$cross_compiling" = yes; then
4202   :
4203 else
4204   cat >conftest.$ac_ext <<_ACEOF
4205 /* confdefs.h.  */
4206 _ACEOF
4207 cat confdefs.h >>conftest.$ac_ext
4208 cat >>conftest.$ac_ext <<_ACEOF
4209 /* end confdefs.h.  */
4210 #include <ctype.h>
4211 #include <stdlib.h>
4212 #if ((' ' & 0x0FF) == 0x020)
4213 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4214 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4215 #else
4216 # define ISLOWER(c) \
4217                    (('a' <= (c) && (c) <= 'i') \
4218                      || ('j' <= (c) && (c) <= 'r') \
4219                      || ('s' <= (c) && (c) <= 'z'))
4220 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4221 #endif
4222
4223 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4224 int
4225 main ()
4226 {
4227   int i;
4228   for (i = 0; i < 256; i++)
4229     if (XOR (islower (i), ISLOWER (i))
4230         || toupper (i) != TOUPPER (i))
4231       return 2;
4232   return 0;
4233 }
4234 _ACEOF
4235 rm -f conftest$ac_exeext
4236 if { (ac_try="$ac_link"
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_link") 2>&5
4243   ac_status=$?
4244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4245   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4246   { (case "(($ac_try" in
4247   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4248   *) ac_try_echo=$ac_try;;
4249 esac
4250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4251   (eval "$ac_try") 2>&5
4252   ac_status=$?
4253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4254   (exit $ac_status); }; }; then
4255   :
4256 else
4257   echo "$as_me: program exited with status $ac_status" >&5
4258 echo "$as_me: failed program was:" >&5
4259 sed 's/^/| /' conftest.$ac_ext >&5
4260
4261 ( exit $ac_status )
4262 ac_cv_header_stdc=no
4263 fi
4264 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4265 fi
4266
4267
4268 fi
4269 fi
4270 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4271 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4272 if test $ac_cv_header_stdc = yes; then
4273
4274 cat >>confdefs.h <<\_ACEOF
4275 #define STDC_HEADERS 1
4276 _ACEOF
4277
4278 fi
4279
4280 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4281
4282
4283
4284
4285
4286
4287
4288
4289
4290 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4291                   inttypes.h stdint.h unistd.h
4292 do
4293 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4294 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4295 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4296 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4297   echo $ECHO_N "(cached) $ECHO_C" >&6
4298 else
4299   cat >conftest.$ac_ext <<_ACEOF
4300 /* confdefs.h.  */
4301 _ACEOF
4302 cat confdefs.h >>conftest.$ac_ext
4303 cat >>conftest.$ac_ext <<_ACEOF
4304 /* end confdefs.h.  */
4305 $ac_includes_default
4306
4307 #include <$ac_header>
4308 _ACEOF
4309 rm -f conftest.$ac_objext
4310 if { (ac_try="$ac_compile"
4311 case "(($ac_try" in
4312   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4313   *) ac_try_echo=$ac_try;;
4314 esac
4315 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4316   (eval "$ac_compile") 2>conftest.er1
4317   ac_status=$?
4318   grep -v '^ *+' conftest.er1 >conftest.err
4319   rm -f conftest.er1
4320   cat conftest.err >&5
4321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4322   (exit $ac_status); } &&
4323          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4324   { (case "(($ac_try" in
4325   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4326   *) ac_try_echo=$ac_try;;
4327 esac
4328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4329   (eval "$ac_try") 2>&5
4330   ac_status=$?
4331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4332   (exit $ac_status); }; } &&
4333          { ac_try='test -s conftest.$ac_objext'
4334   { (case "(($ac_try" in
4335   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4336   *) ac_try_echo=$ac_try;;
4337 esac
4338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4339   (eval "$ac_try") 2>&5
4340   ac_status=$?
4341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4342   (exit $ac_status); }; }; then
4343   eval "$as_ac_Header=yes"
4344 else
4345   echo "$as_me: failed program was:" >&5
4346 sed 's/^/| /' conftest.$ac_ext >&5
4347
4348         eval "$as_ac_Header=no"
4349 fi
4350
4351 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4352 fi
4353 ac_res=`eval echo '${'$as_ac_Header'}'`
4354                { echo "$as_me:$LINENO: result: $ac_res" >&5
4355 echo "${ECHO_T}$ac_res" >&6; }
4356 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4357   cat >>confdefs.h <<_ACEOF
4358 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4359 _ACEOF
4360
4361 fi
4362
4363 done
4364
4365
4366 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4367 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4368 if test "${ac_cv_c_bigendian+set}" = set; then
4369   echo $ECHO_N "(cached) $ECHO_C" >&6
4370 else
4371   # See if sys/param.h defines the BYTE_ORDER macro.
4372 cat >conftest.$ac_ext <<_ACEOF
4373 /* confdefs.h.  */
4374 _ACEOF
4375 cat confdefs.h >>conftest.$ac_ext
4376 cat >>conftest.$ac_ext <<_ACEOF
4377 /* end confdefs.h.  */
4378 #include <sys/types.h>
4379 #include <sys/param.h>
4380
4381 int
4382 main ()
4383 {
4384 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4385  bogus endian macros
4386 #endif
4387
4388   ;
4389   return 0;
4390 }
4391 _ACEOF
4392 rm -f conftest.$ac_objext
4393 if { (ac_try="$ac_compile"
4394 case "(($ac_try" in
4395   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4396   *) ac_try_echo=$ac_try;;
4397 esac
4398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4399   (eval "$ac_compile") 2>conftest.er1
4400   ac_status=$?
4401   grep -v '^ *+' conftest.er1 >conftest.err
4402   rm -f conftest.er1
4403   cat conftest.err >&5
4404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4405   (exit $ac_status); } &&
4406          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4407   { (case "(($ac_try" in
4408   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4409   *) ac_try_echo=$ac_try;;
4410 esac
4411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4412   (eval "$ac_try") 2>&5
4413   ac_status=$?
4414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4415   (exit $ac_status); }; } &&
4416          { ac_try='test -s conftest.$ac_objext'
4417   { (case "(($ac_try" in
4418   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4419   *) ac_try_echo=$ac_try;;
4420 esac
4421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4422   (eval "$ac_try") 2>&5
4423   ac_status=$?
4424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4425   (exit $ac_status); }; }; then
4426   # It does; now see whether it defined to BIG_ENDIAN or not.
4427 cat >conftest.$ac_ext <<_ACEOF
4428 /* confdefs.h.  */
4429 _ACEOF
4430 cat confdefs.h >>conftest.$ac_ext
4431 cat >>conftest.$ac_ext <<_ACEOF
4432 /* end confdefs.h.  */
4433 #include <sys/types.h>
4434 #include <sys/param.h>
4435
4436 int
4437 main ()
4438 {
4439 #if BYTE_ORDER != BIG_ENDIAN
4440  not big endian
4441 #endif
4442
4443   ;
4444   return 0;
4445 }
4446 _ACEOF
4447 rm -f conftest.$ac_objext
4448 if { (ac_try="$ac_compile"
4449 case "(($ac_try" in
4450   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4451   *) ac_try_echo=$ac_try;;
4452 esac
4453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4454   (eval "$ac_compile") 2>conftest.er1
4455   ac_status=$?
4456   grep -v '^ *+' conftest.er1 >conftest.err
4457   rm -f conftest.er1
4458   cat conftest.err >&5
4459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4460   (exit $ac_status); } &&
4461          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4462   { (case "(($ac_try" in
4463   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4464   *) ac_try_echo=$ac_try;;
4465 esac
4466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4467   (eval "$ac_try") 2>&5
4468   ac_status=$?
4469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4470   (exit $ac_status); }; } &&
4471          { ac_try='test -s conftest.$ac_objext'
4472   { (case "(($ac_try" in
4473   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4474   *) ac_try_echo=$ac_try;;
4475 esac
4476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4477   (eval "$ac_try") 2>&5
4478   ac_status=$?
4479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4480   (exit $ac_status); }; }; then
4481   ac_cv_c_bigendian=yes
4482 else
4483   echo "$as_me: failed program was:" >&5
4484 sed 's/^/| /' conftest.$ac_ext >&5
4485
4486         ac_cv_c_bigendian=no
4487 fi
4488
4489 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4490 else
4491   echo "$as_me: failed program was:" >&5
4492 sed 's/^/| /' conftest.$ac_ext >&5
4493
4494         # It does not; compile a test program.
4495 if test "$cross_compiling" = yes; then
4496   # try to guess the endianness by grepping values into an object file
4497   ac_cv_c_bigendian=unknown
4498   cat >conftest.$ac_ext <<_ACEOF
4499 /* confdefs.h.  */
4500 _ACEOF
4501 cat confdefs.h >>conftest.$ac_ext
4502 cat >>conftest.$ac_ext <<_ACEOF
4503 /* end confdefs.h.  */
4504 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4505 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4506 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4507 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4508 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4509 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4510 int
4511 main ()
4512 {
4513  _ascii (); _ebcdic ();
4514   ;
4515   return 0;
4516 }
4517 _ACEOF
4518 rm -f conftest.$ac_objext
4519 if { (ac_try="$ac_compile"
4520 case "(($ac_try" in
4521   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4522   *) ac_try_echo=$ac_try;;
4523 esac
4524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4525   (eval "$ac_compile") 2>conftest.er1
4526   ac_status=$?
4527   grep -v '^ *+' conftest.er1 >conftest.err
4528   rm -f conftest.er1
4529   cat conftest.err >&5
4530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4531   (exit $ac_status); } &&
4532          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4533   { (case "(($ac_try" in
4534   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4535   *) ac_try_echo=$ac_try;;
4536 esac
4537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4538   (eval "$ac_try") 2>&5
4539   ac_status=$?
4540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4541   (exit $ac_status); }; } &&
4542          { ac_try='test -s conftest.$ac_objext'
4543   { (case "(($ac_try" in
4544   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4545   *) ac_try_echo=$ac_try;;
4546 esac
4547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4548   (eval "$ac_try") 2>&5
4549   ac_status=$?
4550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4551   (exit $ac_status); }; }; then
4552   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4553   ac_cv_c_bigendian=yes
4554 fi
4555 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4556   if test "$ac_cv_c_bigendian" = unknown; then
4557     ac_cv_c_bigendian=no
4558   else
4559     # finding both strings is unlikely to happen, but who knows?
4560     ac_cv_c_bigendian=unknown
4561   fi
4562 fi
4563 else
4564   echo "$as_me: failed program was:" >&5
4565 sed 's/^/| /' conftest.$ac_ext >&5
4566
4567
4568 fi
4569
4570 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4571 else
4572   cat >conftest.$ac_ext <<_ACEOF
4573 /* confdefs.h.  */
4574 _ACEOF
4575 cat confdefs.h >>conftest.$ac_ext
4576 cat >>conftest.$ac_ext <<_ACEOF
4577 /* end confdefs.h.  */
4578 $ac_includes_default
4579 int
4580 main ()
4581 {
4582
4583   /* Are we little or big endian?  From Harbison&Steele.  */
4584   union
4585   {
4586     long int l;
4587     char c[sizeof (long int)];
4588   } u;
4589   u.l = 1;
4590   return u.c[sizeof (long int) - 1] == 1;
4591
4592   ;
4593   return 0;
4594 }
4595 _ACEOF
4596 rm -f conftest$ac_exeext
4597 if { (ac_try="$ac_link"
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_link") 2>&5
4604   ac_status=$?
4605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4606   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4607   { (case "(($ac_try" in
4608   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4609   *) ac_try_echo=$ac_try;;
4610 esac
4611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4612   (eval "$ac_try") 2>&5
4613   ac_status=$?
4614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4615   (exit $ac_status); }; }; then
4616   ac_cv_c_bigendian=no
4617 else
4618   echo "$as_me: program exited with status $ac_status" >&5
4619 echo "$as_me: failed program was:" >&5
4620 sed 's/^/| /' conftest.$ac_ext >&5
4621
4622 ( exit $ac_status )
4623 ac_cv_c_bigendian=yes
4624 fi
4625 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4626 fi
4627
4628
4629 fi
4630
4631 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4632 fi
4633 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4634 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4635 case $ac_cv_c_bigendian in
4636   yes)
4637     ENDIAN=big
4638  ;;
4639   no)
4640     ENDIAN=little
4641  ;;
4642   *)
4643     { { echo "$as_me:$LINENO: error: unknown endianness
4644 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4645 echo "$as_me: error: unknown endianness
4646 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4647    { (exit 1); exit 1; }; } ;;
4648 esac
4649
4650
4651 if test "$cross_compiling" = yes; then
4652   LLVM_CROSS_COMPILING=1
4653
4654
4655 { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4656 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4657 if test "${ac_cv_build_exeext+set}" = set; then
4658   echo $ECHO_N "(cached) $ECHO_C" >&6
4659 else
4660   if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4661   ac_cv_build_exeext=.exe
4662 else
4663   ac_build_prefix=${build_alias}-
4664
4665   # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4666 set dummy ${ac_build_prefix}gcc; ac_word=$2
4667 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4668 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4669 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4670   echo $ECHO_N "(cached) $ECHO_C" >&6
4671 else
4672   if test -n "$BUILD_CC"; then
4673   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4674 else
4675 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4676 for as_dir in $PATH
4677 do
4678   IFS=$as_save_IFS
4679   test -z "$as_dir" && as_dir=.
4680   for ac_exec_ext in '' $ac_executable_extensions; do
4681   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4682     ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4683     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4684     break 2
4685   fi
4686 done
4687 done
4688 IFS=$as_save_IFS
4689
4690 fi
4691 fi
4692 BUILD_CC=$ac_cv_prog_BUILD_CC
4693 if test -n "$BUILD_CC"; then
4694   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4695 echo "${ECHO_T}$BUILD_CC" >&6; }
4696 else
4697   { echo "$as_me:$LINENO: result: no" >&5
4698 echo "${ECHO_T}no" >&6; }
4699 fi
4700
4701
4702   if test -z "$BUILD_CC"; then
4703      # Extract the first word of "gcc", so it can be a program name with args.
4704 set dummy gcc; ac_word=$2
4705 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4706 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4707 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4708   echo $ECHO_N "(cached) $ECHO_C" >&6
4709 else
4710   if test -n "$BUILD_CC"; then
4711   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4712 else
4713 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4714 for as_dir in $PATH
4715 do
4716   IFS=$as_save_IFS
4717   test -z "$as_dir" && as_dir=.
4718   for ac_exec_ext in '' $ac_executable_extensions; do
4719   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4720     ac_cv_prog_BUILD_CC="gcc"
4721     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4722     break 2
4723   fi
4724 done
4725 done
4726 IFS=$as_save_IFS
4727
4728 fi
4729 fi
4730 BUILD_CC=$ac_cv_prog_BUILD_CC
4731 if test -n "$BUILD_CC"; then
4732   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4733 echo "${ECHO_T}$BUILD_CC" >&6; }
4734 else
4735   { echo "$as_me:$LINENO: result: no" >&5
4736 echo "${ECHO_T}no" >&6; }
4737 fi
4738
4739
4740      if test -z "$BUILD_CC"; then
4741        # Extract the first word of "cc", so it can be a program name with args.
4742 set dummy cc; ac_word=$2
4743 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4744 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4745 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4746   echo $ECHO_N "(cached) $ECHO_C" >&6
4747 else
4748   if test -n "$BUILD_CC"; then
4749   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4750 else
4751   ac_prog_rejected=no
4752 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4753 for as_dir in $PATH
4754 do
4755   IFS=$as_save_IFS
4756   test -z "$as_dir" && as_dir=.
4757   for ac_exec_ext in '' $ac_executable_extensions; do
4758   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4759     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4760        ac_prog_rejected=yes
4761        continue
4762      fi
4763     ac_cv_prog_BUILD_CC="cc"
4764     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4765     break 2
4766   fi
4767 done
4768 done
4769 IFS=$as_save_IFS
4770
4771 if test $ac_prog_rejected = yes; then
4772   # We found a bogon in the path, so make sure we never use it.
4773   set dummy $ac_cv_prog_BUILD_CC
4774   shift
4775   if test $# != 0; then
4776     # We chose a different compiler from the bogus one.
4777     # However, it has the same basename, so the bogon will be chosen
4778     # first if we set BUILD_CC to just the basename; use the full file name.
4779     shift
4780     ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4781   fi
4782 fi
4783 fi
4784 fi
4785 BUILD_CC=$ac_cv_prog_BUILD_CC
4786 if test -n "$BUILD_CC"; then
4787   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4788 echo "${ECHO_T}$BUILD_CC" >&6; }
4789 else
4790   { echo "$as_me:$LINENO: result: no" >&5
4791 echo "${ECHO_T}no" >&6; }
4792 fi
4793
4794
4795      fi
4796   fi
4797   test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4798 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4799    { (exit 1); exit 1; }; }
4800   ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4801   rm -f conftest*
4802   echo 'int main () { return 0; }' > conftest.$ac_ext
4803   ac_cv_build_exeext=
4804   if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4805   (eval $ac_build_link) 2>&5
4806   ac_status=$?
4807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4808   (exit $ac_status); }; then
4809     for file in conftest.*; do
4810       case $file in
4811       *.c | *.o | *.obj | *.dSYM) ;;
4812       *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4813       esac
4814     done
4815   else
4816     { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4817 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4818    { (exit 1); exit 1; }; }
4819   fi
4820   rm -f conftest*
4821   test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4822 fi
4823 fi
4824
4825 BUILD_EXEEXT=""
4826 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4827 { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4828 echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4829 ac_build_exeext=$BUILD_EXEEXT
4830
4831   ac_build_prefix=${build_alias}-
4832   # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4833 set dummy ${ac_build_prefix}g++; ac_word=$2
4834 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4835 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4836 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4837   echo $ECHO_N "(cached) $ECHO_C" >&6
4838 else
4839   if test -n "$BUILD_CXX"; then
4840   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4841 else
4842 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4843 for as_dir in $PATH
4844 do
4845   IFS=$as_save_IFS
4846   test -z "$as_dir" && as_dir=.
4847   for ac_exec_ext in '' $ac_executable_extensions; do
4848   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4849     ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
4850     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4851     break 2
4852   fi
4853 done
4854 done
4855 IFS=$as_save_IFS
4856
4857 fi
4858 fi
4859 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4860 if test -n "$BUILD_CXX"; then
4861   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4862 echo "${ECHO_T}$BUILD_CXX" >&6; }
4863 else
4864   { echo "$as_me:$LINENO: result: no" >&5
4865 echo "${ECHO_T}no" >&6; }
4866 fi
4867
4868
4869   if test -z "$BUILD_CXX"; then
4870      # Extract the first word of "g++", so it can be a program name with args.
4871 set dummy g++; ac_word=$2
4872 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4873 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4874 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4875   echo $ECHO_N "(cached) $ECHO_C" >&6
4876 else
4877   if test -n "$BUILD_CXX"; then
4878   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4879 else
4880 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4881 for as_dir in $PATH
4882 do
4883   IFS=$as_save_IFS
4884   test -z "$as_dir" && as_dir=.
4885   for ac_exec_ext in '' $ac_executable_extensions; do
4886   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4887     ac_cv_prog_BUILD_CXX="g++"
4888     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4889     break 2
4890   fi
4891 done
4892 done
4893 IFS=$as_save_IFS
4894
4895 fi
4896 fi
4897 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4898 if test -n "$BUILD_CXX"; then
4899   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4900 echo "${ECHO_T}$BUILD_CXX" >&6; }
4901 else
4902   { echo "$as_me:$LINENO: result: no" >&5
4903 echo "${ECHO_T}no" >&6; }
4904 fi
4905
4906
4907      if test -z "$BUILD_CXX"; then
4908        # Extract the first word of "c++", so it can be a program name with args.
4909 set dummy c++; ac_word=$2
4910 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4911 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4912 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4913   echo $ECHO_N "(cached) $ECHO_C" >&6
4914 else
4915   if test -n "$BUILD_CXX"; then
4916   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4917 else
4918   ac_prog_rejected=no
4919 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4920 for as_dir in $PATH
4921 do
4922   IFS=$as_save_IFS
4923   test -z "$as_dir" && as_dir=.
4924   for ac_exec_ext in '' $ac_executable_extensions; do
4925   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4926     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4927        ac_prog_rejected=yes
4928        continue
4929      fi
4930     ac_cv_prog_BUILD_CXX="c++"
4931     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4932     break 2
4933   fi
4934 done
4935 done
4936 IFS=$as_save_IFS
4937
4938 if test $ac_prog_rejected = yes; then
4939   # We found a bogon in the path, so make sure we never use it.
4940   set dummy $ac_cv_prog_BUILD_CXX
4941   shift
4942   if test $# != 0; then
4943     # We chose a different compiler from the bogus one.
4944     # However, it has the same basename, so the bogon will be chosen
4945     # first if we set BUILD_CXX to just the basename; use the full file name.
4946     shift
4947     ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4948   fi
4949 fi
4950 fi
4951 fi
4952 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4953 if test -n "$BUILD_CXX"; then
4954   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4955 echo "${ECHO_T}$BUILD_CXX" >&6; }
4956 else
4957   { echo "$as_me:$LINENO: result: no" >&5
4958 echo "${ECHO_T}no" >&6; }
4959 fi
4960
4961
4962      fi
4963   fi
4964 else
4965   LLVM_CROSS_COMPILING=0
4966
4967 fi
4968
4969 if test -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
4970   cvsbuild="yes"
4971   optimize="no"
4972   CVSBUILD=CVSBUILD=1
4973
4974 else
4975   cvsbuild="no"
4976   optimize="yes"
4977 fi
4978
4979
4980 # Check whether --enable-libcpp was given.
4981 if test "${enable_libcpp+set}" = set; then
4982   enableval=$enable_libcpp;
4983 else
4984   enableval=default
4985 fi
4986
4987 case "$enableval" in
4988   yes) ENABLE_LIBCPP=1
4989  ;;
4990   no)  ENABLE_LIBCPP=0
4991  ;;
4992   default) ENABLE_LIBCPP=0
4993 ;;
4994   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&5
4995 echo "$as_me: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&2;}
4996    { (exit 1); exit 1; }; } ;;
4997 esac
4998
4999 # Check whether --enable-optimized was given.
5000 if test "${enable_optimized+set}" = set; then
5001   enableval=$enable_optimized;
5002 else
5003   enableval=$optimize
5004 fi
5005
5006 if test ${enableval} = "no" ; then
5007   ENABLE_OPTIMIZED=
5008
5009 else
5010   ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
5011
5012 fi
5013
5014 # Check whether --enable-profiling was given.
5015 if test "${enable_profiling+set}" = set; then
5016   enableval=$enable_profiling;
5017 else
5018   enableval="no"
5019 fi
5020
5021 if test ${enableval} = "no" ; then
5022   ENABLE_PROFILING=
5023
5024 else
5025   ENABLE_PROFILING=ENABLE_PROFILING=1
5026
5027 fi
5028
5029 # Check whether --enable-assertions was given.
5030 if test "${enable_assertions+set}" = set; then
5031   enableval=$enable_assertions;
5032 else
5033   enableval="yes"
5034 fi
5035
5036 if test ${enableval} = "yes" ; then
5037   DISABLE_ASSERTIONS=
5038
5039 else
5040   DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
5041
5042 fi
5043
5044 # Check whether --enable-expensive-checks was given.
5045 if test "${enable_expensive_checks+set}" = set; then
5046   enableval=$enable_expensive_checks;
5047 else
5048   enableval="no"
5049 fi
5050
5051 if test ${enableval} = "yes" ; then
5052   ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
5053
5054   EXPENSIVE_CHECKS=yes
5055
5056 else
5057   ENABLE_EXPENSIVE_CHECKS=
5058
5059   EXPENSIVE_CHECKS=no
5060
5061 fi
5062
5063 # Check whether --enable-debug-runtime was given.
5064 if test "${enable_debug_runtime+set}" = set; then
5065   enableval=$enable_debug_runtime;
5066 else
5067   enableval=no
5068 fi
5069
5070 if test ${enableval} = "no" ; then
5071   DEBUG_RUNTIME=
5072
5073 else
5074   DEBUG_RUNTIME=DEBUG_RUNTIME=1
5075
5076 fi
5077
5078 # Check whether --enable-debug-symbols was given.
5079 if test "${enable_debug_symbols+set}" = set; then
5080   enableval=$enable_debug_symbols;
5081 else
5082   enableval=no
5083 fi
5084
5085 if test ${enableval} = "no" ; then
5086   DEBUG_SYMBOLS=
5087
5088 else
5089   DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
5090
5091 fi
5092
5093 # Check whether --enable-jit was given.
5094 if test "${enable_jit+set}" = set; then
5095   enableval=$enable_jit;
5096 else
5097   enableval=default
5098 fi
5099
5100 if test ${enableval} = "no"
5101 then
5102   JIT=
5103
5104 else
5105   case "$llvm_cv_target_arch" in
5106     x86)         TARGET_HAS_JIT=1
5107  ;;
5108     Sparc)       TARGET_HAS_JIT=0
5109  ;;
5110     PowerPC)     TARGET_HAS_JIT=1
5111  ;;
5112     x86_64)      TARGET_HAS_JIT=1
5113  ;;
5114     ARM)         TARGET_HAS_JIT=1
5115  ;;
5116     Mips)        TARGET_HAS_JIT=1
5117  ;;
5118     XCore)       TARGET_HAS_JIT=0
5119  ;;
5120     MSP430)      TARGET_HAS_JIT=0
5121  ;;
5122     Hexagon)     TARGET_HAS_JIT=0
5123  ;;
5124     MBlaze)      TARGET_HAS_JIT=0
5125  ;;
5126     PTX)         TARGET_HAS_JIT=0
5127  ;;
5128     *)           TARGET_HAS_JIT=0
5129  ;;
5130   esac
5131 fi
5132
5133 # Check whether --enable-docs was given.
5134 if test "${enable_docs+set}" = set; then
5135   enableval=$enable_docs;
5136 else
5137   enableval=default
5138 fi
5139
5140 case "$enableval" in
5141   yes) ENABLE_DOCS=1
5142  ;;
5143   no)  ENABLE_DOCS=0
5144  ;;
5145   default) ENABLE_DOCS=1
5146  ;;
5147   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&5
5148 echo "$as_me: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&2;}
5149    { (exit 1); exit 1; }; } ;;
5150 esac
5151
5152 # Check whether --enable-doxygen was given.
5153 if test "${enable_doxygen+set}" = set; then
5154   enableval=$enable_doxygen;
5155 else
5156   enableval=default
5157 fi
5158
5159 case "$enableval" in
5160   yes) ENABLE_DOXYGEN=1
5161  ;;
5162   no)  ENABLE_DOXYGEN=0
5163  ;;
5164   default) ENABLE_DOXYGEN=0
5165  ;;
5166   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
5167 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
5168    { (exit 1); exit 1; }; } ;;
5169 esac
5170
5171 # Check whether --enable-threads was given.
5172 if test "${enable_threads+set}" = set; then
5173   enableval=$enable_threads;
5174 else
5175   enableval=default
5176 fi
5177
5178 case "$enableval" in
5179   yes) LLVM_ENABLE_THREADS=1
5180  ;;
5181   no)  LLVM_ENABLE_THREADS=0
5182  ;;
5183   default) LLVM_ENABLE_THREADS=1
5184  ;;
5185   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
5186 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
5187    { (exit 1); exit 1; }; } ;;
5188 esac
5189
5190 cat >>confdefs.h <<_ACEOF
5191 #define LLVM_ENABLE_THREADS $LLVM_ENABLE_THREADS
5192 _ACEOF
5193
5194
5195 # Check whether --enable-pthreads was given.
5196 if test "${enable_pthreads+set}" = set; then
5197   enableval=$enable_pthreads;
5198 else
5199   enableval=default
5200 fi
5201
5202 case "$enableval" in
5203   yes) ENABLE_PTHREADS=1
5204  ;;
5205   no)  ENABLE_PTHREADS=0
5206  ;;
5207   default) ENABLE_PTHREADS=1
5208  ;;
5209   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&5
5210 echo "$as_me: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&2;}
5211    { (exit 1); exit 1; }; } ;;
5212 esac
5213
5214 # Check whether --enable-pic was given.
5215 if test "${enable_pic+set}" = set; then
5216   enableval=$enable_pic;
5217 else
5218   enableval=default
5219 fi
5220
5221 case "$enableval" in
5222   yes) ENABLE_PIC=1
5223  ;;
5224   no)  ENABLE_PIC=0
5225  ;;
5226   default) ENABLE_PIC=1
5227  ;;
5228   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
5229 echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
5230    { (exit 1); exit 1; }; } ;;
5231 esac
5232
5233 cat >>confdefs.h <<_ACEOF
5234 #define ENABLE_PIC $ENABLE_PIC
5235 _ACEOF
5236
5237
5238 # Check whether --enable-shared was given.
5239 if test "${enable_shared+set}" = set; then
5240   enableval=$enable_shared;
5241 else
5242   enableval=default
5243 fi
5244
5245 case "$enableval" in
5246   yes) ENABLE_SHARED=1
5247  ;;
5248   no)  ENABLE_SHARED=0
5249  ;;
5250   default) ENABLE_SHARED=0
5251  ;;
5252   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5
5253 echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;}
5254    { (exit 1); exit 1; }; } ;;
5255 esac
5256
5257 # Check whether --enable-embed-stdcxx was given.
5258 if test "${enable_embed_stdcxx+set}" = set; then
5259   enableval=$enable_embed_stdcxx;
5260 else
5261   enableval=default
5262 fi
5263
5264 case "$enableval" in
5265   yes) ENABLE_EMBED_STDCXX=1
5266  ;;
5267   no)  ENABLE_EMBED_STDCXX=0
5268  ;;
5269   default) ENABLE_EMBED_STDCXX=0
5270  ;;
5271   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&5
5272 echo "$as_me: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&2;}
5273    { (exit 1); exit 1; }; } ;;
5274 esac
5275
5276 # Check whether --enable-timestamps was given.
5277 if test "${enable_timestamps+set}" = set; then
5278   enableval=$enable_timestamps;
5279 else
5280   enableval=default
5281 fi
5282
5283 case "$enableval" in
5284   yes) ENABLE_TIMESTAMPS=1
5285  ;;
5286   no)  ENABLE_TIMESTAMPS=0
5287  ;;
5288   default) ENABLE_TIMESTAMPS=1
5289  ;;
5290   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&5
5291 echo "$as_me: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&2;}
5292    { (exit 1); exit 1; }; } ;;
5293 esac
5294
5295 cat >>confdefs.h <<_ACEOF
5296 #define ENABLE_TIMESTAMPS $ENABLE_TIMESTAMPS
5297 _ACEOF
5298
5299
5300 TARGETS_TO_BUILD=""
5301 # Check whether --enable-targets was given.
5302 if test "${enable_targets+set}" = set; then
5303   enableval=$enable_targets;
5304 else
5305   enableval=all
5306 fi
5307
5308 if test "$enableval" = host-only ; then
5309   enableval=host
5310 fi
5311 case "$enableval" in
5312   all) TARGETS_TO_BUILD="X86 Sparc PowerPC ARM Mips CellSPU XCore MSP430 CppBackend MBlaze PTX Hexagon" ;;
5313   *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
5314       case "$a_target" in
5315         x86)      TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5316         x86_64)   TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5317         sparc)    TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5318         powerpc)  TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5319         arm)      TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5320         mips)     TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5321         mipsel)   TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5322         spu)      TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
5323         xcore)    TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5324         msp430)   TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5325         cpp)      TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
5326         hexagon)  TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
5327         mblaze)   TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
5328         ptx)      TARGETS_TO_BUILD="PTX $TARGETS_TO_BUILD" ;;
5329         host) case "$llvm_cv_target_arch" in
5330             x86)         TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5331             x86_64)      TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5332             Sparc)       TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5333             PowerPC)     TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5334             ARM)         TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5335             Mips)        TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5336             MBlaze)      TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
5337             CellSPU|SPU) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
5338             XCore)       TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5339             MSP430)      TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5340             Hexagon)     TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
5341             PTX)         TARGETS_TO_BUILD="PTX $TARGETS_TO_BUILD" ;;
5342             *)       { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
5343 echo "$as_me: error: Can not set target to build" >&2;}
5344    { (exit 1); exit 1; }; } ;;
5345           esac ;;
5346         *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
5347 echo "$as_me: error: Unrecognized target $a_target" >&2;}
5348    { (exit 1); exit 1; }; } ;;
5349       esac
5350   done
5351   ;;
5352 esac
5353 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
5354
5355
5356 for a_target in $TARGETS_TO_BUILD; do
5357   if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
5358
5359 cat >>confdefs.h <<_ACEOF
5360 #define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCH
5361 _ACEOF
5362
5363     LLVM_NATIVE_TARGET="LLVMInitialize${LLVM_NATIVE_ARCH}Target"
5364     LLVM_NATIVE_TARGETINFO="LLVMInitialize${LLVM_NATIVE_ARCH}TargetInfo"
5365     LLVM_NATIVE_TARGETMC="LLVMInitialize${LLVM_NATIVE_ARCH}TargetMC"
5366     LLVM_NATIVE_ASMPRINTER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmPrinter"
5367     if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5368       LLVM_NATIVE_ASMPARSER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmParser"
5369     fi
5370     if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5371       LLVM_NATIVE_DISASSEMBLER="LLVMInitialize${LLVM_NATIVE_ARCH}Disassembler"
5372     fi
5373
5374 cat >>confdefs.h <<_ACEOF
5375 #define LLVM_NATIVE_TARGET $LLVM_NATIVE_TARGET
5376 _ACEOF
5377
5378
5379 cat >>confdefs.h <<_ACEOF
5380 #define LLVM_NATIVE_TARGETINFO $LLVM_NATIVE_TARGETINFO
5381 _ACEOF
5382
5383
5384 cat >>confdefs.h <<_ACEOF
5385 #define LLVM_NATIVE_TARGETMC $LLVM_NATIVE_TARGETMC
5386 _ACEOF
5387
5388
5389 cat >>confdefs.h <<_ACEOF
5390 #define LLVM_NATIVE_ASMPRINTER $LLVM_NATIVE_ASMPRINTER
5391 _ACEOF
5392
5393     if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5394
5395 cat >>confdefs.h <<_ACEOF
5396 #define LLVM_NATIVE_ASMPARSER $LLVM_NATIVE_ASMPARSER
5397 _ACEOF
5398
5399     fi
5400     if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5401
5402 cat >>confdefs.h <<_ACEOF
5403 #define LLVM_NATIVE_DISASSEMBLER $LLVM_NATIVE_DISASSEMBLER
5404 _ACEOF
5405
5406     fi
5407   fi
5408 done
5409
5410 LLVM_ENUM_TARGETS=""
5411 LLVM_ENUM_ASM_PRINTERS=""
5412 LLVM_ENUM_ASM_PARSERS=""
5413 LLVM_ENUM_DISASSEMBLERS=""
5414 for target_to_build in $TARGETS_TO_BUILD; do
5415   LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
5416   if test -f ${srcdir}/lib/Target/${target_to_build}/*AsmPrinter.cpp ; then
5417     LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5418   fi
5419   if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5420     LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5421   fi
5422   if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
5423     LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
5424   fi
5425 done
5426
5427
5428
5429
5430
5431
5432 # Check whether --with-optimize-option was given.
5433 if test "${with_optimize_option+set}" = set; then
5434   withval=$with_optimize_option;
5435 else
5436   withval=default
5437 fi
5438
5439 { echo "$as_me:$LINENO: checking optimization flags" >&5
5440 echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
5441 case "$withval" in
5442   default)
5443     case "$llvm_cv_os_type" in
5444     FreeBSD) optimize_option=-O2 ;;
5445     MingW) optimize_option=-O2 ;;
5446     *)     optimize_option=-O3 ;;
5447     esac ;;
5448   *) optimize_option="$withval" ;;
5449 esac
5450 OPTIMIZE_OPTION=$optimize_option
5451
5452 { echo "$as_me:$LINENO: result: $optimize_option" >&5
5453 echo "${ECHO_T}$optimize_option" >&6; }
5454
5455
5456 # Check whether --with-extra-options was given.
5457 if test "${with_extra_options+set}" = set; then
5458   withval=$with_extra_options;
5459 else
5460   withval=default
5461 fi
5462
5463 case "$withval" in
5464   default) EXTRA_OPTIONS= ;;
5465   *) EXTRA_OPTIONS=$withval ;;
5466 esac
5467 EXTRA_OPTIONS=$EXTRA_OPTIONS
5468
5469
5470
5471 # Check whether --with-extra-ld-options was given.
5472 if test "${with_extra_ld_options+set}" = set; then
5473   withval=$with_extra_ld_options;
5474 else
5475   withval=default
5476 fi
5477
5478 case "$withval" in
5479   default) EXTRA_LD_OPTIONS= ;;
5480   *) EXTRA_LD_OPTIONS=$withval ;;
5481 esac
5482 EXTRA_LD_OPTIONS=$EXTRA_LD_OPTIONS
5483
5484
5485 # Check whether --enable-bindings was given.
5486 if test "${enable_bindings+set}" = set; then
5487   enableval=$enable_bindings;
5488 else
5489   enableval=default
5490 fi
5491
5492 BINDINGS_TO_BUILD=""
5493 case "$enableval" in
5494   yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
5495   all ) BINDINGS_TO_BUILD="ocaml" ;;
5496   none | no) BINDINGS_TO_BUILD="" ;;
5497   *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5498       case "$a_binding" in
5499         ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5500         *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5501 echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5502    { (exit 1); exit 1; }; } ;;
5503       esac
5504   done
5505   ;;
5506 esac
5507
5508
5509 # Check whether --with-ocaml-libdir was given.
5510 if test "${with_ocaml_libdir+set}" = set; then
5511   withval=$with_ocaml_libdir;
5512 else
5513   withval=auto
5514 fi
5515
5516 case "$withval" in
5517   auto) with_ocaml_libdir="$withval" ;;
5518   /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5519   *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5520 echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5521    { (exit 1); exit 1; }; } ;;
5522 esac
5523
5524
5525 # Check whether --with-clang-srcdir was given.
5526 if test "${with_clang_srcdir+set}" = set; then
5527   withval=$with_clang_srcdir;
5528 else
5529   withval="-"
5530 fi
5531
5532 case "$withval" in
5533   -) clang_src_root="" ;;
5534   /* | [A-Za-z]:[\\/]*) clang_src_root="$withval" ;;
5535   *) clang_src_root="$ac_pwd/$withval" ;;
5536 esac
5537 CLANG_SRC_ROOT=$clang_src_root
5538
5539
5540
5541 # Check whether --with-clang-resource-dir was given.
5542 if test "${with_clang_resource_dir+set}" = set; then
5543   withval=$with_clang_resource_dir;
5544 else
5545   withval=""
5546 fi
5547
5548
5549 cat >>confdefs.h <<_ACEOF
5550 #define CLANG_RESOURCE_DIR "$withval"
5551 _ACEOF
5552
5553
5554
5555 # Check whether --with-c-include-dirs was given.
5556 if test "${with_c_include_dirs+set}" = set; then
5557   withval=$with_c_include_dirs;
5558 else
5559   withval=""
5560 fi
5561
5562
5563 cat >>confdefs.h <<_ACEOF
5564 #define C_INCLUDE_DIRS "$withval"
5565 _ACEOF
5566
5567
5568 # Clang normally uses the system c++ headers and libraries. With this option,
5569 # clang will use the ones provided by a gcc installation instead. This option should
5570 # be passed the same value that was used with --prefix when configuring gcc.
5571
5572 # Check whether --with-gcc-toolchain was given.
5573 if test "${with_gcc_toolchain+set}" = set; then
5574   withval=$with_gcc_toolchain;
5575 else
5576   withval=""
5577 fi
5578
5579
5580 cat >>confdefs.h <<_ACEOF
5581 #define GCC_INSTALL_PREFIX "$withval"
5582 _ACEOF
5583
5584
5585
5586 # Check whether --with-binutils-include was given.
5587 if test "${with_binutils_include+set}" = set; then
5588   withval=$with_binutils_include;
5589 else
5590   withval=default
5591 fi
5592
5593 case "$withval" in
5594   default) WITH_BINUTILS_INCDIR=default ;;
5595   /* | [A-Za-z]:[\\/]*)      WITH_BINUTILS_INCDIR=$withval ;;
5596   *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5597 echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5598    { (exit 1); exit 1; }; } ;;
5599 esac
5600 if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5601   BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5602
5603   if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5604      echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5605      { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5606 echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5607    { (exit 1); exit 1; }; };
5608   fi
5609 fi
5610
5611
5612 # Check whether --with-bug-report-url was given.
5613 if test "${with_bug_report_url+set}" = set; then
5614   withval=$with_bug_report_url;
5615 else
5616   withval="http://llvm.org/bugs/"
5617 fi
5618
5619
5620 cat >>confdefs.h <<_ACEOF
5621 #define BUG_REPORT_URL "$withval"
5622 _ACEOF
5623
5624
5625 # Check whether --enable-libffi was given.
5626 if test "${enable_libffi+set}" = set; then
5627   enableval=$enable_libffi; case "$enableval" in
5628     yes) llvm_cv_enable_libffi="yes" ;;
5629     no)  llvm_cv_enable_libffi="no"  ;;
5630     *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
5631 echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5632    { (exit 1); exit 1; }; } ;;
5633   esac
5634 else
5635   llvm_cv_enable_libffi=no
5636 fi
5637
5638
5639
5640 # Check whether --with-internal-prefix was given.
5641 if test "${with_internal_prefix+set}" = set; then
5642   withval=$with_internal_prefix;
5643 else
5644   withval=""
5645 fi
5646
5647 INTERNAL_PREFIX=$withval
5648
5649
5650
5651 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5652 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
5653 if test "${lt_cv_path_NM+set}" = set; then
5654   echo $ECHO_N "(cached) $ECHO_C" >&6
5655 else
5656   if test -n "$NM"; then
5657   # Let the user override the test.
5658   lt_cv_path_NM="$NM"
5659 else
5660   lt_nm_to_check="${ac_tool_prefix}nm"
5661   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5662     lt_nm_to_check="$lt_nm_to_check nm"
5663   fi
5664   for lt_tmp_nm in $lt_nm_to_check; do
5665     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5666     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5667       IFS="$lt_save_ifs"
5668       test -z "$ac_dir" && ac_dir=.
5669       tmp_nm="$ac_dir/$lt_tmp_nm"
5670       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5671         # Check to see if the nm accepts a BSD-compat flag.
5672         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5673         #   nm: unknown option "B" ignored
5674         # Tru64's nm complains that /dev/null is an invalid object file
5675         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5676         */dev/null* | *'Invalid file or object type'*)
5677           lt_cv_path_NM="$tmp_nm -B"
5678           break
5679           ;;
5680         *)
5681           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5682           */dev/null*)
5683             lt_cv_path_NM="$tmp_nm -p"
5684             break
5685             ;;
5686           *)
5687             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5688             continue # so that we can try to find one that supports BSD flags
5689             ;;
5690           esac
5691           ;;
5692         esac
5693       fi
5694     done
5695     IFS="$lt_save_ifs"
5696   done
5697   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5698 fi
5699 fi
5700 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5701 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
5702 NM="$lt_cv_path_NM"
5703
5704
5705
5706 { echo "$as_me:$LINENO: checking for GNU make" >&5
5707 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
5708 if test "${llvm_cv_gnu_make_command+set}" = set; then
5709   echo $ECHO_N "(cached) $ECHO_C" >&6
5710 else
5711   llvm_cv_gnu_make_command=''
5712  for a in "$MAKE" make gmake gnumake ; do
5713   if test -z "$a" ; then continue ; fi ;
5714   if  ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
5715   then
5716    llvm_cv_gnu_make_command=$a ;
5717    break;
5718   fi
5719  done
5720 fi
5721 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
5722 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
5723  if test "x$llvm_cv_gnu_make_command" != "x"  ; then
5724    ifGNUmake='' ;
5725  else
5726    ifGNUmake='#' ;
5727    { echo "$as_me:$LINENO: result: \"Not found\"" >&5
5728 echo "${ECHO_T}\"Not found\"" >&6; };
5729  fi
5730
5731
5732 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
5733 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
5734 LN_S=$as_ln_s
5735 if test "$LN_S" = "ln -s"; then
5736   { echo "$as_me:$LINENO: result: yes" >&5
5737 echo "${ECHO_T}yes" >&6; }
5738 else
5739   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5740 echo "${ECHO_T}no, using $LN_S" >&6; }
5741 fi
5742
5743 # Extract the first word of "cmp", so it can be a program name with args.
5744 set dummy cmp; ac_word=$2
5745 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5746 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5747 if test "${ac_cv_path_CMP+set}" = set; then
5748   echo $ECHO_N "(cached) $ECHO_C" >&6
5749 else
5750   case $CMP in
5751   [\\/]* | ?:[\\/]*)
5752   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
5753   ;;
5754   *)
5755   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5756 for as_dir in $PATH
5757 do
5758   IFS=$as_save_IFS
5759   test -z "$as_dir" && as_dir=.
5760   for ac_exec_ext in '' $ac_executable_extensions; do
5761   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5762     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
5763     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5764     break 2
5765   fi
5766 done
5767 done
5768 IFS=$as_save_IFS
5769
5770   test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
5771   ;;
5772 esac
5773 fi
5774 CMP=$ac_cv_path_CMP
5775 if test -n "$CMP"; then
5776   { echo "$as_me:$LINENO: result: $CMP" >&5
5777 echo "${ECHO_T}$CMP" >&6; }
5778 else
5779   { echo "$as_me:$LINENO: result: no" >&5
5780 echo "${ECHO_T}no" >&6; }
5781 fi
5782
5783
5784 # Extract the first word of "cp", so it can be a program name with args.
5785 set dummy cp; ac_word=$2
5786 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5787 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5788 if test "${ac_cv_path_CP+set}" = set; then
5789   echo $ECHO_N "(cached) $ECHO_C" >&6
5790 else
5791   case $CP in
5792   [\\/]* | ?:[\\/]*)
5793   ac_cv_path_CP="$CP" # Let the user override the test with a path.
5794   ;;
5795   *)
5796   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5797 for as_dir in $PATH
5798 do
5799   IFS=$as_save_IFS
5800   test -z "$as_dir" && as_dir=.
5801   for ac_exec_ext in '' $ac_executable_extensions; do
5802   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5803     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
5804     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5805     break 2
5806   fi
5807 done
5808 done
5809 IFS=$as_save_IFS
5810
5811   test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
5812   ;;
5813 esac
5814 fi
5815 CP=$ac_cv_path_CP
5816 if test -n "$CP"; then
5817   { echo "$as_me:$LINENO: result: $CP" >&5
5818 echo "${ECHO_T}$CP" >&6; }
5819 else
5820   { echo "$as_me:$LINENO: result: no" >&5
5821 echo "${ECHO_T}no" >&6; }
5822 fi
5823
5824
5825 # Extract the first word of "date", so it can be a program name with args.
5826 set dummy date; ac_word=$2
5827 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5828 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5829 if test "${ac_cv_path_DATE+set}" = set; then
5830   echo $ECHO_N "(cached) $ECHO_C" >&6
5831 else
5832   case $DATE in
5833   [\\/]* | ?:[\\/]*)
5834   ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
5835   ;;
5836   *)
5837   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5838 for as_dir in $PATH
5839 do
5840   IFS=$as_save_IFS
5841   test -z "$as_dir" && as_dir=.
5842   for ac_exec_ext in '' $ac_executable_extensions; do
5843   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5844     ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
5845     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5846     break 2
5847   fi
5848 done
5849 done
5850 IFS=$as_save_IFS
5851
5852   test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
5853   ;;
5854 esac
5855 fi
5856 DATE=$ac_cv_path_DATE
5857 if test -n "$DATE"; then
5858   { echo "$as_me:$LINENO: result: $DATE" >&5
5859 echo "${ECHO_T}$DATE" >&6; }
5860 else
5861   { echo "$as_me:$LINENO: result: no" >&5
5862 echo "${ECHO_T}no" >&6; }
5863 fi
5864
5865
5866 # Extract the first word of "find", so it can be a program name with args.
5867 set dummy find; ac_word=$2
5868 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5869 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5870 if test "${ac_cv_path_FIND+set}" = set; then
5871   echo $ECHO_N "(cached) $ECHO_C" >&6
5872 else
5873   case $FIND in
5874   [\\/]* | ?:[\\/]*)
5875   ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
5876   ;;
5877   *)
5878   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5879 for as_dir in $PATH
5880 do
5881   IFS=$as_save_IFS
5882   test -z "$as_dir" && as_dir=.
5883   for ac_exec_ext in '' $ac_executable_extensions; do
5884   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5885     ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
5886     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5887     break 2
5888   fi
5889 done
5890 done
5891 IFS=$as_save_IFS
5892
5893   test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
5894   ;;
5895 esac
5896 fi
5897 FIND=$ac_cv_path_FIND
5898 if test -n "$FIND"; then
5899   { echo "$as_me:$LINENO: result: $FIND" >&5
5900 echo "${ECHO_T}$FIND" >&6; }
5901 else
5902   { echo "$as_me:$LINENO: result: no" >&5
5903 echo "${ECHO_T}no" >&6; }
5904 fi
5905
5906
5907 # Extract the first word of "grep", so it can be a program name with args.
5908 set dummy grep; ac_word=$2
5909 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5910 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5911 if test "${ac_cv_path_GREP+set}" = set; then
5912   echo $ECHO_N "(cached) $ECHO_C" >&6
5913 else
5914   case $GREP in
5915   [\\/]* | ?:[\\/]*)
5916   ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
5917   ;;
5918   *)
5919   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5920 for as_dir in $PATH
5921 do
5922   IFS=$as_save_IFS
5923   test -z "$as_dir" && as_dir=.
5924   for ac_exec_ext in '' $ac_executable_extensions; do
5925   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5926     ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
5927     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5928     break 2
5929   fi
5930 done
5931 done
5932 IFS=$as_save_IFS
5933
5934   test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
5935   ;;
5936 esac
5937 fi
5938 GREP=$ac_cv_path_GREP
5939 if test -n "$GREP"; then
5940   { echo "$as_me:$LINENO: result: $GREP" >&5
5941 echo "${ECHO_T}$GREP" >&6; }
5942 else
5943   { echo "$as_me:$LINENO: result: no" >&5
5944 echo "${ECHO_T}no" >&6; }
5945 fi
5946
5947
5948 # Extract the first word of "mkdir", so it can be a program name with args.
5949 set dummy mkdir; ac_word=$2
5950 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5951 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5952 if test "${ac_cv_path_MKDIR+set}" = set; then
5953   echo $ECHO_N "(cached) $ECHO_C" >&6
5954 else
5955   case $MKDIR in
5956   [\\/]* | ?:[\\/]*)
5957   ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
5958   ;;
5959   *)
5960   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5961 for as_dir in $PATH
5962 do
5963   IFS=$as_save_IFS
5964   test -z "$as_dir" && as_dir=.
5965   for ac_exec_ext in '' $ac_executable_extensions; do
5966   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5967     ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
5968     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5969     break 2
5970   fi
5971 done
5972 done
5973 IFS=$as_save_IFS
5974
5975   test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
5976   ;;
5977 esac
5978 fi
5979 MKDIR=$ac_cv_path_MKDIR
5980 if test -n "$MKDIR"; then
5981   { echo "$as_me:$LINENO: result: $MKDIR" >&5
5982 echo "${ECHO_T}$MKDIR" >&6; }
5983 else
5984   { echo "$as_me:$LINENO: result: no" >&5
5985 echo "${ECHO_T}no" >&6; }
5986 fi
5987
5988
5989 # Extract the first word of "mv", so it can be a program name with args.
5990 set dummy mv; ac_word=$2
5991 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5992 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5993 if test "${ac_cv_path_MV+set}" = set; then
5994   echo $ECHO_N "(cached) $ECHO_C" >&6
5995 else
5996   case $MV in
5997   [\\/]* | ?:[\\/]*)
5998   ac_cv_path_MV="$MV" # Let the user override the test with a path.
5999   ;;
6000   *)
6001   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6002 for as_dir in $PATH
6003 do
6004   IFS=$as_save_IFS
6005   test -z "$as_dir" && as_dir=.
6006   for ac_exec_ext in '' $ac_executable_extensions; do
6007   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6008     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
6009     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6010     break 2
6011   fi
6012 done
6013 done
6014 IFS=$as_save_IFS
6015
6016   test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6017   ;;
6018 esac
6019 fi
6020 MV=$ac_cv_path_MV
6021 if test -n "$MV"; then
6022   { echo "$as_me:$LINENO: result: $MV" >&5
6023 echo "${ECHO_T}$MV" >&6; }
6024 else
6025   { echo "$as_me:$LINENO: result: no" >&5
6026 echo "${ECHO_T}no" >&6; }
6027 fi
6028
6029
6030 if test -n "$ac_tool_prefix"; then
6031   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6032 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6033 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6034 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6035 if test "${ac_cv_prog_RANLIB+set}" = set; then
6036   echo $ECHO_N "(cached) $ECHO_C" >&6
6037 else
6038   if test -n "$RANLIB"; then
6039   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6040 else
6041 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6042 for as_dir in $PATH
6043 do
6044   IFS=$as_save_IFS
6045   test -z "$as_dir" && as_dir=.
6046   for ac_exec_ext in '' $ac_executable_extensions; do
6047   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6048     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6049     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6050     break 2
6051   fi
6052 done
6053 done
6054 IFS=$as_save_IFS
6055
6056 fi
6057 fi
6058 RANLIB=$ac_cv_prog_RANLIB
6059 if test -n "$RANLIB"; then
6060   { echo "$as_me:$LINENO: result: $RANLIB" >&5
6061 echo "${ECHO_T}$RANLIB" >&6; }
6062 else
6063   { echo "$as_me:$LINENO: result: no" >&5
6064 echo "${ECHO_T}no" >&6; }
6065 fi
6066
6067
6068 fi
6069 if test -z "$ac_cv_prog_RANLIB"; then
6070   ac_ct_RANLIB=$RANLIB
6071   # Extract the first word of "ranlib", so it can be a program name with args.
6072 set dummy ranlib; ac_word=$2
6073 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6074 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6075 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6076   echo $ECHO_N "(cached) $ECHO_C" >&6
6077 else
6078   if test -n "$ac_ct_RANLIB"; then
6079   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6080 else
6081 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6082 for as_dir in $PATH
6083 do
6084   IFS=$as_save_IFS
6085   test -z "$as_dir" && as_dir=.
6086   for ac_exec_ext in '' $ac_executable_extensions; do
6087   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6088     ac_cv_prog_ac_ct_RANLIB="ranlib"
6089     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6090     break 2
6091   fi
6092 done
6093 done
6094 IFS=$as_save_IFS
6095
6096 fi
6097 fi
6098 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6099 if test -n "$ac_ct_RANLIB"; then
6100   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6101 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6102 else
6103   { echo "$as_me:$LINENO: result: no" >&5
6104 echo "${ECHO_T}no" >&6; }
6105 fi
6106
6107   if test "x$ac_ct_RANLIB" = x; then
6108     RANLIB=":"
6109   else
6110     case $cross_compiling:$ac_tool_warned in
6111 yes:)
6112 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6113 whose name does not start with the host triplet.  If you think this
6114 configuration is useful to you, please write to autoconf@gnu.org." >&5
6115 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6116 whose name does not start with the host triplet.  If you think this
6117 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6118 ac_tool_warned=yes ;;
6119 esac
6120     RANLIB=$ac_ct_RANLIB
6121   fi
6122 else
6123   RANLIB="$ac_cv_prog_RANLIB"
6124 fi
6125
6126 if test -n "$ac_tool_prefix"; then
6127   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6128 set dummy ${ac_tool_prefix}ar; ac_word=$2
6129 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6130 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6131 if test "${ac_cv_prog_AR+set}" = set; then
6132   echo $ECHO_N "(cached) $ECHO_C" >&6
6133 else
6134   if test -n "$AR"; then
6135   ac_cv_prog_AR="$AR" # Let the user override the test.
6136 else
6137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6138 for as_dir in $PATH
6139 do
6140   IFS=$as_save_IFS
6141   test -z "$as_dir" && as_dir=.
6142   for ac_exec_ext in '' $ac_executable_extensions; do
6143   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6144     ac_cv_prog_AR="${ac_tool_prefix}ar"
6145     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6146     break 2
6147   fi
6148 done
6149 done
6150 IFS=$as_save_IFS
6151
6152 fi
6153 fi
6154 AR=$ac_cv_prog_AR
6155 if test -n "$AR"; then
6156   { echo "$as_me:$LINENO: result: $AR" >&5
6157 echo "${ECHO_T}$AR" >&6; }
6158 else
6159   { echo "$as_me:$LINENO: result: no" >&5
6160 echo "${ECHO_T}no" >&6; }
6161 fi
6162
6163
6164 fi
6165 if test -z "$ac_cv_prog_AR"; then
6166   ac_ct_AR=$AR
6167   # Extract the first word of "ar", so it can be a program name with args.
6168 set dummy ar; ac_word=$2
6169 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6170 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6171 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6172   echo $ECHO_N "(cached) $ECHO_C" >&6
6173 else
6174   if test -n "$ac_ct_AR"; then
6175   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6176 else
6177 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6178 for as_dir in $PATH
6179 do
6180   IFS=$as_save_IFS
6181   test -z "$as_dir" && as_dir=.
6182   for ac_exec_ext in '' $ac_executable_extensions; do
6183   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6184     ac_cv_prog_ac_ct_AR="ar"
6185     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6186     break 2
6187   fi
6188 done
6189 done
6190 IFS=$as_save_IFS
6191
6192 fi
6193 fi
6194 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6195 if test -n "$ac_ct_AR"; then
6196   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6197 echo "${ECHO_T}$ac_ct_AR" >&6; }
6198 else
6199   { echo "$as_me:$LINENO: result: no" >&5
6200 echo "${ECHO_T}no" >&6; }
6201 fi
6202
6203   if test "x$ac_ct_AR" = x; then
6204     AR="false"
6205   else
6206     case $cross_compiling:$ac_tool_warned in
6207 yes:)
6208 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6209 whose name does not start with the host triplet.  If you think this
6210 configuration is useful to you, please write to autoconf@gnu.org." >&5
6211 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6212 whose name does not start with the host triplet.  If you think this
6213 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6214 ac_tool_warned=yes ;;
6215 esac
6216     AR=$ac_ct_AR
6217   fi
6218 else
6219   AR="$ac_cv_prog_AR"
6220 fi
6221
6222 # Extract the first word of "rm", so it can be a program name with args.
6223 set dummy rm; ac_word=$2
6224 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6225 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6226 if test "${ac_cv_path_RM+set}" = set; then
6227   echo $ECHO_N "(cached) $ECHO_C" >&6
6228 else
6229   case $RM in
6230   [\\/]* | ?:[\\/]*)
6231   ac_cv_path_RM="$RM" # Let the user override the test with a path.
6232   ;;
6233   *)
6234   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6235 for as_dir in $PATH
6236 do
6237   IFS=$as_save_IFS
6238   test -z "$as_dir" && as_dir=.
6239   for ac_exec_ext in '' $ac_executable_extensions; do
6240   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6241     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
6242     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6243     break 2
6244   fi
6245 done
6246 done
6247 IFS=$as_save_IFS
6248
6249   test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
6250   ;;
6251 esac
6252 fi
6253 RM=$ac_cv_path_RM
6254 if test -n "$RM"; then
6255   { echo "$as_me:$LINENO: result: $RM" >&5
6256 echo "${ECHO_T}$RM" >&6; }
6257 else
6258   { echo "$as_me:$LINENO: result: no" >&5
6259 echo "${ECHO_T}no" >&6; }
6260 fi
6261
6262
6263 # Extract the first word of "sed", so it can be a program name with args.
6264 set dummy sed; ac_word=$2
6265 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6266 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6267 if test "${ac_cv_path_SED+set}" = set; then
6268   echo $ECHO_N "(cached) $ECHO_C" >&6
6269 else
6270   case $SED in
6271   [\\/]* | ?:[\\/]*)
6272   ac_cv_path_SED="$SED" # Let the user override the test with a path.
6273   ;;
6274   *)
6275   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6276 for as_dir in $PATH
6277 do
6278   IFS=$as_save_IFS
6279   test -z "$as_dir" && as_dir=.
6280   for ac_exec_ext in '' $ac_executable_extensions; do
6281   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6282     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
6283     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6284     break 2
6285   fi
6286 done
6287 done
6288 IFS=$as_save_IFS
6289
6290   test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
6291   ;;
6292 esac
6293 fi
6294 SED=$ac_cv_path_SED
6295 if test -n "$SED"; then
6296   { echo "$as_me:$LINENO: result: $SED" >&5
6297 echo "${ECHO_T}$SED" >&6; }
6298 else
6299   { echo "$as_me:$LINENO: result: no" >&5
6300 echo "${ECHO_T}no" >&6; }
6301 fi
6302
6303
6304 # Extract the first word of "tar", so it can be a program name with args.
6305 set dummy tar; ac_word=$2
6306 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6307 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6308 if test "${ac_cv_path_TAR+set}" = set; then
6309   echo $ECHO_N "(cached) $ECHO_C" >&6
6310 else
6311   case $TAR in
6312   [\\/]* | ?:[\\/]*)
6313   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6314   ;;
6315   *)
6316   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6317 for as_dir in $PATH
6318 do
6319   IFS=$as_save_IFS
6320   test -z "$as_dir" && as_dir=.
6321   for ac_exec_ext in '' $ac_executable_extensions; do
6322   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6323     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
6324     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6325     break 2
6326   fi
6327 done
6328 done
6329 IFS=$as_save_IFS
6330
6331   test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
6332   ;;
6333 esac
6334 fi
6335 TAR=$ac_cv_path_TAR
6336 if test -n "$TAR"; then
6337   { echo "$as_me:$LINENO: result: $TAR" >&5
6338 echo "${ECHO_T}$TAR" >&6; }
6339 else
6340   { echo "$as_me:$LINENO: result: no" >&5
6341 echo "${ECHO_T}no" >&6; }
6342 fi
6343
6344
6345 # Extract the first word of "pwd", so it can be a program name with args.
6346 set dummy pwd; ac_word=$2
6347 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6348 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6349 if test "${ac_cv_path_BINPWD+set}" = set; then
6350   echo $ECHO_N "(cached) $ECHO_C" >&6
6351 else
6352   case $BINPWD in
6353   [\\/]* | ?:[\\/]*)
6354   ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
6355   ;;
6356   *)
6357   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6358 for as_dir in $PATH
6359 do
6360   IFS=$as_save_IFS
6361   test -z "$as_dir" && as_dir=.
6362   for ac_exec_ext in '' $ac_executable_extensions; do
6363   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6364     ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
6365     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6366     break 2
6367   fi
6368 done
6369 done
6370 IFS=$as_save_IFS
6371
6372   test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
6373   ;;
6374 esac
6375 fi
6376 BINPWD=$ac_cv_path_BINPWD
6377 if test -n "$BINPWD"; then
6378   { echo "$as_me:$LINENO: result: $BINPWD" >&5
6379 echo "${ECHO_T}$BINPWD" >&6; }
6380 else
6381   { echo "$as_me:$LINENO: result: no" >&5
6382 echo "${ECHO_T}no" >&6; }
6383 fi
6384
6385
6386
6387 # Extract the first word of "Graphviz", so it can be a program name with args.
6388 set dummy Graphviz; ac_word=$2
6389 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6390 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6391 if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
6392   echo $ECHO_N "(cached) $ECHO_C" >&6
6393 else
6394   case $GRAPHVIZ in
6395   [\\/]* | ?:[\\/]*)
6396   ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
6397   ;;
6398   *)
6399   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6400 for as_dir in $PATH
6401 do
6402   IFS=$as_save_IFS
6403   test -z "$as_dir" && as_dir=.
6404   for ac_exec_ext in '' $ac_executable_extensions; do
6405   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6406     ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
6407     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6408     break 2
6409   fi
6410 done
6411 done
6412 IFS=$as_save_IFS
6413
6414   test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
6415   ;;
6416 esac
6417 fi
6418 GRAPHVIZ=$ac_cv_path_GRAPHVIZ
6419 if test -n "$GRAPHVIZ"; then
6420   { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
6421 echo "${ECHO_T}$GRAPHVIZ" >&6; }
6422 else
6423   { echo "$as_me:$LINENO: result: no" >&5
6424 echo "${ECHO_T}no" >&6; }
6425 fi
6426
6427
6428 if test "$GRAPHVIZ" != "echo Graphviz" ; then
6429
6430 cat >>confdefs.h <<\_ACEOF
6431 #define HAVE_GRAPHVIZ 1
6432 _ACEOF
6433
6434     if test "$llvm_cv_os_type" = "MingW" ; then
6435     GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6436   fi
6437
6438 cat >>confdefs.h <<_ACEOF
6439 #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
6440 _ACEOF
6441
6442 fi
6443 # Extract the first word of "dot", so it can be a program name with args.
6444 set dummy dot; ac_word=$2
6445 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6446 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6447 if test "${ac_cv_path_DOT+set}" = set; then
6448   echo $ECHO_N "(cached) $ECHO_C" >&6
6449 else
6450   case $DOT in
6451   [\\/]* | ?:[\\/]*)
6452   ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
6453   ;;
6454   *)
6455   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6456 for as_dir in $PATH
6457 do
6458   IFS=$as_save_IFS
6459   test -z "$as_dir" && as_dir=.
6460   for ac_exec_ext in '' $ac_executable_extensions; do
6461   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6462     ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
6463     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6464     break 2
6465   fi
6466 done
6467 done
6468 IFS=$as_save_IFS
6469
6470   test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
6471   ;;
6472 esac
6473 fi
6474 DOT=$ac_cv_path_DOT
6475 if test -n "$DOT"; then
6476   { echo "$as_me:$LINENO: result: $DOT" >&5
6477 echo "${ECHO_T}$DOT" >&6; }
6478 else
6479   { echo "$as_me:$LINENO: result: no" >&5
6480 echo "${ECHO_T}no" >&6; }
6481 fi
6482
6483
6484 if test "$DOT" != "echo dot" ; then
6485
6486 cat >>confdefs.h <<\_ACEOF
6487 #define HAVE_DOT 1
6488 _ACEOF
6489
6490     if test "$llvm_cv_os_type" = "MingW" ; then
6491     DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6492   fi
6493
6494 cat >>confdefs.h <<_ACEOF
6495 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
6496 _ACEOF
6497
6498 fi
6499 # Extract the first word of "fdp", so it can be a program name with args.
6500 set dummy fdp; ac_word=$2
6501 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6502 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6503 if test "${ac_cv_path_FDP+set}" = set; then
6504   echo $ECHO_N "(cached) $ECHO_C" >&6
6505 else
6506   case $FDP in
6507   [\\/]* | ?:[\\/]*)
6508   ac_cv_path_FDP="$FDP" # Let the user override the test with a path.
6509   ;;
6510   *)
6511   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6512 for as_dir in $PATH
6513 do
6514   IFS=$as_save_IFS
6515   test -z "$as_dir" && as_dir=.
6516   for ac_exec_ext in '' $ac_executable_extensions; do
6517   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6518     ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext"
6519     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6520     break 2
6521   fi
6522 done
6523 done
6524 IFS=$as_save_IFS
6525
6526   test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp"
6527   ;;
6528 esac
6529 fi
6530 FDP=$ac_cv_path_FDP
6531 if test -n "$FDP"; then
6532   { echo "$as_me:$LINENO: result: $FDP" >&5
6533 echo "${ECHO_T}$FDP" >&6; }
6534 else
6535   { echo "$as_me:$LINENO: result: no" >&5
6536 echo "${ECHO_T}no" >&6; }
6537 fi
6538
6539
6540 if test "$FDP" != "echo fdp" ; then
6541
6542 cat >>confdefs.h <<\_ACEOF
6543 #define HAVE_FDP 1
6544 _ACEOF
6545
6546     if test "$llvm_cv_os_type" = "MingW" ; then
6547     FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6548   fi
6549
6550 cat >>confdefs.h <<_ACEOF
6551 #define LLVM_PATH_FDP "$FDP${EXEEXT}"
6552 _ACEOF
6553
6554 fi
6555 # Extract the first word of "neato", so it can be a program name with args.
6556 set dummy neato; ac_word=$2
6557 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6558 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6559 if test "${ac_cv_path_NEATO+set}" = set; then
6560   echo $ECHO_N "(cached) $ECHO_C" >&6
6561 else
6562   case $NEATO in
6563   [\\/]* | ?:[\\/]*)
6564   ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path.
6565   ;;
6566   *)
6567   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6568 for as_dir in $PATH
6569 do
6570   IFS=$as_save_IFS
6571   test -z "$as_dir" && as_dir=.
6572   for ac_exec_ext in '' $ac_executable_extensions; do
6573   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6574     ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext"
6575     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6576     break 2
6577   fi
6578 done
6579 done
6580 IFS=$as_save_IFS
6581
6582   test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato"
6583   ;;
6584 esac
6585 fi
6586 NEATO=$ac_cv_path_NEATO
6587 if test -n "$NEATO"; then
6588   { echo "$as_me:$LINENO: result: $NEATO" >&5
6589 echo "${ECHO_T}$NEATO" >&6; }
6590 else
6591   { echo "$as_me:$LINENO: result: no" >&5
6592 echo "${ECHO_T}no" >&6; }
6593 fi
6594
6595
6596 if test "$NEATO" != "echo neato" ; then
6597
6598 cat >>confdefs.h <<\_ACEOF
6599 #define HAVE_NEATO 1
6600 _ACEOF
6601
6602     if test "$llvm_cv_os_type" = "MingW" ; then
6603     NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6604   fi
6605
6606 cat >>confdefs.h <<_ACEOF
6607 #define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
6608 _ACEOF
6609
6610 fi
6611 # Extract the first word of "twopi", so it can be a program name with args.
6612 set dummy twopi; ac_word=$2
6613 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6614 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6615 if test "${ac_cv_path_TWOPI+set}" = set; then
6616   echo $ECHO_N "(cached) $ECHO_C" >&6
6617 else
6618   case $TWOPI in
6619   [\\/]* | ?:[\\/]*)
6620   ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path.
6621   ;;
6622   *)
6623   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6624 for as_dir in $PATH
6625 do
6626   IFS=$as_save_IFS
6627   test -z "$as_dir" && as_dir=.
6628   for ac_exec_ext in '' $ac_executable_extensions; do
6629   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6630     ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext"
6631     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6632     break 2
6633   fi
6634 done
6635 done
6636 IFS=$as_save_IFS
6637
6638   test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi"
6639   ;;
6640 esac
6641 fi
6642 TWOPI=$ac_cv_path_TWOPI
6643 if test -n "$TWOPI"; then
6644   { echo "$as_me:$LINENO: result: $TWOPI" >&5
6645 echo "${ECHO_T}$TWOPI" >&6; }
6646 else
6647   { echo "$as_me:$LINENO: result: no" >&5
6648 echo "${ECHO_T}no" >&6; }
6649 fi
6650
6651
6652 if test "$TWOPI" != "echo twopi" ; then
6653
6654 cat >>confdefs.h <<\_ACEOF
6655 #define HAVE_TWOPI 1
6656 _ACEOF
6657
6658     if test "$llvm_cv_os_type" = "MingW" ; then
6659     TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6660   fi
6661
6662 cat >>confdefs.h <<_ACEOF
6663 #define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
6664 _ACEOF
6665
6666 fi
6667 # Extract the first word of "circo", so it can be a program name with args.
6668 set dummy circo; ac_word=$2
6669 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6670 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6671 if test "${ac_cv_path_CIRCO+set}" = set; then
6672   echo $ECHO_N "(cached) $ECHO_C" >&6
6673 else
6674   case $CIRCO in
6675   [\\/]* | ?:[\\/]*)
6676   ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path.
6677   ;;
6678   *)
6679   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6680 for as_dir in $PATH
6681 do
6682   IFS=$as_save_IFS
6683   test -z "$as_dir" && as_dir=.
6684   for ac_exec_ext in '' $ac_executable_extensions; do
6685   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6686     ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext"
6687     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6688     break 2
6689   fi
6690 done
6691 done
6692 IFS=$as_save_IFS
6693
6694   test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo"
6695   ;;
6696 esac
6697 fi
6698 CIRCO=$ac_cv_path_CIRCO
6699 if test -n "$CIRCO"; then
6700   { echo "$as_me:$LINENO: result: $CIRCO" >&5
6701 echo "${ECHO_T}$CIRCO" >&6; }
6702 else
6703   { echo "$as_me:$LINENO: result: no" >&5
6704 echo "${ECHO_T}no" >&6; }
6705 fi
6706
6707
6708 if test "$CIRCO" != "echo circo" ; then
6709
6710 cat >>confdefs.h <<\_ACEOF
6711 #define HAVE_CIRCO 1
6712 _ACEOF
6713
6714     if test "$llvm_cv_os_type" = "MingW" ; then
6715     CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6716   fi
6717
6718 cat >>confdefs.h <<_ACEOF
6719 #define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
6720 _ACEOF
6721
6722 fi
6723 for ac_prog in gv gsview32
6724 do
6725   # Extract the first word of "$ac_prog", so it can be a program name with args.
6726 set dummy $ac_prog; ac_word=$2
6727 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6728 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6729 if test "${ac_cv_path_GV+set}" = set; then
6730   echo $ECHO_N "(cached) $ECHO_C" >&6
6731 else
6732   case $GV in
6733   [\\/]* | ?:[\\/]*)
6734   ac_cv_path_GV="$GV" # Let the user override the test with a path.
6735   ;;
6736   *)
6737   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6738 for as_dir in $PATH
6739 do
6740   IFS=$as_save_IFS
6741   test -z "$as_dir" && as_dir=.
6742   for ac_exec_ext in '' $ac_executable_extensions; do
6743   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6744     ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
6745     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6746     break 2
6747   fi
6748 done
6749 done
6750 IFS=$as_save_IFS
6751
6752   ;;
6753 esac
6754 fi
6755 GV=$ac_cv_path_GV
6756 if test -n "$GV"; then
6757   { echo "$as_me:$LINENO: result: $GV" >&5
6758 echo "${ECHO_T}$GV" >&6; }
6759 else
6760   { echo "$as_me:$LINENO: result: no" >&5
6761 echo "${ECHO_T}no" >&6; }
6762 fi
6763
6764
6765   test -n "$GV" && break
6766 done
6767 test -n "$GV" || GV="echo gv"
6768
6769 if test "$GV" != "echo gv" ; then
6770
6771 cat >>confdefs.h <<\_ACEOF
6772 #define HAVE_GV 1
6773 _ACEOF
6774
6775     if test "$llvm_cv_os_type" = "MingW" ; then
6776     GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6777   fi
6778
6779 cat >>confdefs.h <<_ACEOF
6780 #define LLVM_PATH_GV "$GV${EXEEXT}"
6781 _ACEOF
6782
6783 fi
6784 # Extract the first word of "dotty", so it can be a program name with args.
6785 set dummy dotty; ac_word=$2
6786 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6787 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6788 if test "${ac_cv_path_DOTTY+set}" = set; then
6789   echo $ECHO_N "(cached) $ECHO_C" >&6
6790 else
6791   case $DOTTY in
6792   [\\/]* | ?:[\\/]*)
6793   ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
6794   ;;
6795   *)
6796   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6797 for as_dir in $PATH
6798 do
6799   IFS=$as_save_IFS
6800   test -z "$as_dir" && as_dir=.
6801   for ac_exec_ext in '' $ac_executable_extensions; do
6802   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6803     ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
6804     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6805     break 2
6806   fi
6807 done
6808 done
6809 IFS=$as_save_IFS
6810
6811   test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
6812   ;;
6813 esac
6814 fi
6815 DOTTY=$ac_cv_path_DOTTY
6816 if test -n "$DOTTY"; then
6817   { echo "$as_me:$LINENO: result: $DOTTY" >&5
6818 echo "${ECHO_T}$DOTTY" >&6; }
6819 else
6820   { echo "$as_me:$LINENO: result: no" >&5
6821 echo "${ECHO_T}no" >&6; }
6822 fi
6823
6824
6825 if test "$DOTTY" != "echo dotty" ; then
6826
6827 cat >>confdefs.h <<\_ACEOF
6828 #define HAVE_DOTTY 1
6829 _ACEOF
6830
6831     if test "$llvm_cv_os_type" = "MingW" ; then
6832     DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6833   fi
6834
6835 cat >>confdefs.h <<_ACEOF
6836 #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
6837 _ACEOF
6838
6839 fi
6840 # Extract the first word of "xdot.py", so it can be a program name with args.
6841 set dummy xdot.py; ac_word=$2
6842 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6843 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6844 if test "${ac_cv_path_XDOT_PY+set}" = set; then
6845   echo $ECHO_N "(cached) $ECHO_C" >&6
6846 else
6847   case $XDOT_PY in
6848   [\\/]* | ?:[\\/]*)
6849   ac_cv_path_XDOT_PY="$XDOT_PY" # Let the user override the test with a path.
6850   ;;
6851   *)
6852   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6853 for as_dir in $PATH
6854 do
6855   IFS=$as_save_IFS
6856   test -z "$as_dir" && as_dir=.
6857   for ac_exec_ext in '' $ac_executable_extensions; do
6858   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6859     ac_cv_path_XDOT_PY="$as_dir/$ac_word$ac_exec_ext"
6860     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6861     break 2
6862   fi
6863 done
6864 done
6865 IFS=$as_save_IFS
6866
6867   test -z "$ac_cv_path_XDOT_PY" && ac_cv_path_XDOT_PY="echo xdot.py"
6868   ;;
6869 esac
6870 fi
6871 XDOT_PY=$ac_cv_path_XDOT_PY
6872 if test -n "$XDOT_PY"; then
6873   { echo "$as_me:$LINENO: result: $XDOT_PY" >&5
6874 echo "${ECHO_T}$XDOT_PY" >&6; }
6875 else
6876   { echo "$as_me:$LINENO: result: no" >&5
6877 echo "${ECHO_T}no" >&6; }
6878 fi
6879
6880
6881 if test "$XDOT_PY" != "echo xdot.py" ; then
6882
6883 cat >>confdefs.h <<\_ACEOF
6884 #define HAVE_XDOT_PY 1
6885 _ACEOF
6886
6887     if test "$llvm_cv_os_type" = "MingW" ; then
6888     XDOT_PY=`echo $XDOT_PY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6889   fi
6890
6891 cat >>confdefs.h <<_ACEOF
6892 #define LLVM_PATH_XDOT_PY "$XDOT_PY${EXEEXT}"
6893 _ACEOF
6894
6895 fi
6896
6897 # Find a good install program.  We prefer a C program (faster),
6898 # so one script is as good as another.  But avoid the broken or
6899 # incompatible versions:
6900 # SysV /etc/install, /usr/sbin/install
6901 # SunOS /usr/etc/install
6902 # IRIX /sbin/install
6903 # AIX /bin/install
6904 # AmigaOS /C/install, which installs bootblocks on floppy discs
6905 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6906 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
6907 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6908 # OS/2's system install, which has a completely different semantic
6909 # ./install, which can be erroneously created by make from ./install.sh.
6910 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
6911 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
6912 if test -z "$INSTALL"; then
6913 if test "${ac_cv_path_install+set}" = set; then
6914   echo $ECHO_N "(cached) $ECHO_C" >&6
6915 else
6916   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6917 for as_dir in $PATH
6918 do
6919   IFS=$as_save_IFS
6920   test -z "$as_dir" && as_dir=.
6921   # Account for people who put trailing slashes in PATH elements.
6922 case $as_dir/ in
6923   ./ | .// | /cC/* | \
6924   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
6925   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
6926   /usr/ucb/* ) ;;
6927   *)
6928     # OSF1 and SCO ODT 3.0 have their own names for install.
6929     # Don't use installbsd from OSF since it installs stuff as root
6930     # by default.
6931     for ac_prog in ginstall scoinst install; do
6932       for ac_exec_ext in '' $ac_executable_extensions; do
6933         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
6934           if test $ac_prog = install &&
6935             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6936             # AIX install.  It has an incompatible calling convention.
6937             :
6938           elif test $ac_prog = install &&
6939             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6940             # program-specific install script used by HP pwplus--don't use.
6941             :
6942           else
6943             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
6944             break 3
6945           fi
6946         fi
6947       done
6948     done
6949     ;;
6950 esac
6951 done
6952 IFS=$as_save_IFS
6953
6954
6955 fi
6956   if test "${ac_cv_path_install+set}" = set; then
6957     INSTALL=$ac_cv_path_install
6958   else
6959     # As a last resort, use the slow shell script.  Don't cache a
6960     # value for INSTALL within a source directory, because that will
6961     # break other packages using the cache if that directory is
6962     # removed, or if the value is a relative name.
6963     INSTALL=$ac_install_sh
6964   fi
6965 fi
6966 { echo "$as_me:$LINENO: result: $INSTALL" >&5
6967 echo "${ECHO_T}$INSTALL" >&6; }
6968
6969 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6970 # It thinks the first close brace ends the variable substitution.
6971 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
6972
6973 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
6974
6975 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
6976
6977 case "$INSTALL" in
6978  [\\/$]* | ?:[\\/]* ) ;;
6979  *)  INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
6980 esac
6981
6982 # Extract the first word of "bzip2", so it can be a program name with args.
6983 set dummy bzip2; ac_word=$2
6984 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6985 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6986 if test "${ac_cv_path_BZIP2+set}" = set; then
6987   echo $ECHO_N "(cached) $ECHO_C" >&6
6988 else
6989   case $BZIP2 in
6990   [\\/]* | ?:[\\/]*)
6991   ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
6992   ;;
6993   *)
6994   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6995 for as_dir in $PATH
6996 do
6997   IFS=$as_save_IFS
6998   test -z "$as_dir" && as_dir=.
6999   for ac_exec_ext in '' $ac_executable_extensions; do
7000   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7001     ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
7002     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7003     break 2
7004   fi
7005 done
7006 done
7007 IFS=$as_save_IFS
7008
7009   ;;
7010 esac
7011 fi
7012 BZIP2=$ac_cv_path_BZIP2
7013 if test -n "$BZIP2"; then
7014   { echo "$as_me:$LINENO: result: $BZIP2" >&5
7015 echo "${ECHO_T}$BZIP2" >&6; }
7016 else
7017   { echo "$as_me:$LINENO: result: no" >&5
7018 echo "${ECHO_T}no" >&6; }
7019 fi
7020
7021
7022 # Extract the first word of "cat", so it can be a program name with args.
7023 set dummy cat; ac_word=$2
7024 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7025 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7026 if test "${ac_cv_path_CAT+set}" = set; then
7027   echo $ECHO_N "(cached) $ECHO_C" >&6
7028 else
7029   case $CAT in
7030   [\\/]* | ?:[\\/]*)
7031   ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
7032   ;;
7033   *)
7034   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7035 for as_dir in $PATH
7036 do
7037   IFS=$as_save_IFS
7038   test -z "$as_dir" && as_dir=.
7039   for ac_exec_ext in '' $ac_executable_extensions; do
7040   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7041     ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
7042     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7043     break 2
7044   fi
7045 done
7046 done
7047 IFS=$as_save_IFS
7048
7049   ;;
7050 esac
7051 fi
7052 CAT=$ac_cv_path_CAT
7053 if test -n "$CAT"; then
7054   { echo "$as_me:$LINENO: result: $CAT" >&5
7055 echo "${ECHO_T}$CAT" >&6; }
7056 else
7057   { echo "$as_me:$LINENO: result: no" >&5
7058 echo "${ECHO_T}no" >&6; }
7059 fi
7060
7061
7062 # Extract the first word of "doxygen", so it can be a program name with args.
7063 set dummy doxygen; ac_word=$2
7064 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7065 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7066 if test "${ac_cv_path_DOXYGEN+set}" = set; then
7067   echo $ECHO_N "(cached) $ECHO_C" >&6
7068 else
7069   case $DOXYGEN in
7070   [\\/]* | ?:[\\/]*)
7071   ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7072   ;;
7073   *)
7074   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7075 for as_dir in $PATH
7076 do
7077   IFS=$as_save_IFS
7078   test -z "$as_dir" && as_dir=.
7079   for ac_exec_ext in '' $ac_executable_extensions; do
7080   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7081     ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
7082     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7083     break 2
7084   fi
7085 done
7086 done
7087 IFS=$as_save_IFS
7088
7089   ;;
7090 esac
7091 fi
7092 DOXYGEN=$ac_cv_path_DOXYGEN
7093 if test -n "$DOXYGEN"; then
7094   { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7095 echo "${ECHO_T}$DOXYGEN" >&6; }
7096 else
7097   { echo "$as_me:$LINENO: result: no" >&5
7098 echo "${ECHO_T}no" >&6; }
7099 fi
7100
7101
7102 # Extract the first word of "groff", so it can be a program name with args.
7103 set dummy groff; ac_word=$2
7104 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7105 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7106 if test "${ac_cv_path_GROFF+set}" = set; then
7107   echo $ECHO_N "(cached) $ECHO_C" >&6
7108 else
7109   case $GROFF in
7110   [\\/]* | ?:[\\/]*)
7111   ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7112   ;;
7113   *)
7114   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7115 for as_dir in $PATH
7116 do
7117   IFS=$as_save_IFS
7118   test -z "$as_dir" && as_dir=.
7119   for ac_exec_ext in '' $ac_executable_extensions; do
7120   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7121     ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7122     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7123     break 2
7124   fi
7125 done
7126 done
7127 IFS=$as_save_IFS
7128
7129   ;;
7130 esac
7131 fi
7132 GROFF=$ac_cv_path_GROFF
7133 if test -n "$GROFF"; then
7134   { echo "$as_me:$LINENO: result: $GROFF" >&5
7135 echo "${ECHO_T}$GROFF" >&6; }
7136 else
7137   { echo "$as_me:$LINENO: result: no" >&5
7138 echo "${ECHO_T}no" >&6; }
7139 fi
7140
7141
7142 # Extract the first word of "gzip", so it can be a program name with args.
7143 set dummy gzip; ac_word=$2
7144 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7145 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7146 if test "${ac_cv_path_GZIPBIN+set}" = set; then
7147   echo $ECHO_N "(cached) $ECHO_C" >&6
7148 else
7149   case $GZIPBIN in
7150   [\\/]* | ?:[\\/]*)
7151   ac_cv_path_GZIPBIN="$GZIPBIN" # Let the user override the test with a path.
7152   ;;
7153   *)
7154   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7155 for as_dir in $PATH
7156 do
7157   IFS=$as_save_IFS
7158   test -z "$as_dir" && as_dir=.
7159   for ac_exec_ext in '' $ac_executable_extensions; do
7160   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7161     ac_cv_path_GZIPBIN="$as_dir/$ac_word$ac_exec_ext"
7162     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7163     break 2
7164   fi
7165 done
7166 done
7167 IFS=$as_save_IFS
7168
7169   ;;
7170 esac
7171 fi
7172 GZIPBIN=$ac_cv_path_GZIPBIN
7173 if test -n "$GZIPBIN"; then
7174   { echo "$as_me:$LINENO: result: $GZIPBIN" >&5
7175 echo "${ECHO_T}$GZIPBIN" >&6; }
7176 else
7177   { echo "$as_me:$LINENO: result: no" >&5
7178 echo "${ECHO_T}no" >&6; }
7179 fi
7180
7181
7182 # Extract the first word of "pod2html", so it can be a program name with args.
7183 set dummy pod2html; ac_word=$2
7184 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7185 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7186 if test "${ac_cv_path_POD2HTML+set}" = set; then
7187   echo $ECHO_N "(cached) $ECHO_C" >&6
7188 else
7189   case $POD2HTML in
7190   [\\/]* | ?:[\\/]*)
7191   ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
7192   ;;
7193   *)
7194   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7195 for as_dir in $PATH
7196 do
7197   IFS=$as_save_IFS
7198   test -z "$as_dir" && as_dir=.
7199   for ac_exec_ext in '' $ac_executable_extensions; do
7200   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7201     ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
7202     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7203     break 2
7204   fi
7205 done
7206 done
7207 IFS=$as_save_IFS
7208
7209   ;;
7210 esac
7211 fi
7212 POD2HTML=$ac_cv_path_POD2HTML
7213 if test -n "$POD2HTML"; then
7214   { echo "$as_me:$LINENO: result: $POD2HTML" >&5
7215 echo "${ECHO_T}$POD2HTML" >&6; }
7216 else
7217   { echo "$as_me:$LINENO: result: no" >&5
7218 echo "${ECHO_T}no" >&6; }
7219 fi
7220
7221
7222 # Extract the first word of "pod2man", so it can be a program name with args.
7223 set dummy pod2man; ac_word=$2
7224 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7225 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7226 if test "${ac_cv_path_POD2MAN+set}" = set; then
7227   echo $ECHO_N "(cached) $ECHO_C" >&6
7228 else
7229   case $POD2MAN in
7230   [\\/]* | ?:[\\/]*)
7231   ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
7232   ;;
7233   *)
7234   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7235 for as_dir in $PATH
7236 do
7237   IFS=$as_save_IFS
7238   test -z "$as_dir" && as_dir=.
7239   for ac_exec_ext in '' $ac_executable_extensions; do
7240   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7241     ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
7242     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7243     break 2
7244   fi
7245 done
7246 done
7247 IFS=$as_save_IFS
7248
7249   ;;
7250 esac
7251 fi
7252 POD2MAN=$ac_cv_path_POD2MAN
7253 if test -n "$POD2MAN"; then
7254   { echo "$as_me:$LINENO: result: $POD2MAN" >&5
7255 echo "${ECHO_T}$POD2MAN" >&6; }
7256 else
7257   { echo "$as_me:$LINENO: result: no" >&5
7258 echo "${ECHO_T}no" >&6; }
7259 fi
7260
7261
7262 # Extract the first word of "pdfroff", so it can be a program name with args.
7263 set dummy pdfroff; ac_word=$2
7264 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7265 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7266 if test "${ac_cv_path_PDFROFF+set}" = set; then
7267   echo $ECHO_N "(cached) $ECHO_C" >&6
7268 else
7269   case $PDFROFF in
7270   [\\/]* | ?:[\\/]*)
7271   ac_cv_path_PDFROFF="$PDFROFF" # Let the user override the test with a path.
7272   ;;
7273   *)
7274   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7275 for as_dir in $PATH
7276 do
7277   IFS=$as_save_IFS
7278   test -z "$as_dir" && as_dir=.
7279   for ac_exec_ext in '' $ac_executable_extensions; do
7280   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7281     ac_cv_path_PDFROFF="$as_dir/$ac_word$ac_exec_ext"
7282     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7283     break 2
7284   fi
7285 done
7286 done
7287 IFS=$as_save_IFS
7288
7289   ;;
7290 esac
7291 fi
7292 PDFROFF=$ac_cv_path_PDFROFF
7293 if test -n "$PDFROFF"; then
7294   { echo "$as_me:$LINENO: result: $PDFROFF" >&5
7295 echo "${ECHO_T}$PDFROFF" >&6; }
7296 else
7297   { echo "$as_me:$LINENO: result: no" >&5
7298 echo "${ECHO_T}no" >&6; }
7299 fi
7300
7301
7302 # Extract the first word of "runtest", so it can be a program name with args.
7303 set dummy runtest; ac_word=$2
7304 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7305 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7306 if test "${ac_cv_path_RUNTEST+set}" = set; then
7307   echo $ECHO_N "(cached) $ECHO_C" >&6
7308 else
7309   case $RUNTEST in
7310   [\\/]* | ?:[\\/]*)
7311   ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
7312   ;;
7313   *)
7314   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7315 for as_dir in $PATH
7316 do
7317   IFS=$as_save_IFS
7318   test -z "$as_dir" && as_dir=.
7319   for ac_exec_ext in '' $ac_executable_extensions; do
7320   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7321     ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
7322     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7323     break 2
7324   fi
7325 done
7326 done
7327 IFS=$as_save_IFS
7328
7329   ;;
7330 esac
7331 fi
7332 RUNTEST=$ac_cv_path_RUNTEST
7333 if test -n "$RUNTEST"; then
7334   { echo "$as_me:$LINENO: result: $RUNTEST" >&5
7335 echo "${ECHO_T}$RUNTEST" >&6; }
7336 else
7337   { echo "$as_me:$LINENO: result: no" >&5
7338 echo "${ECHO_T}no" >&6; }
7339 fi
7340
7341
7342
7343 no_itcl=true
7344 { echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
7345 echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
7346
7347 # Check whether --with-tclinclude was given.
7348 if test "${with_tclinclude+set}" = set; then
7349   withval=$with_tclinclude; with_tclinclude=${withval}
7350 else
7351   with_tclinclude=''
7352 fi
7353
7354 if test "${ac_cv_path_tclsh+set}" = set; then
7355   echo $ECHO_N "(cached) $ECHO_C" >&6
7356 else
7357
7358 if test x"${with_tclinclude}" != x ; then
7359   if test -f ${with_tclinclude}/tclsh ; then
7360     ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
7361   elif test -f ${with_tclinclude}/src/tclsh ; then
7362     ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
7363   else
7364     { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
7365 echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
7366    { (exit 1); exit 1; }; }
7367   fi
7368 fi
7369 fi
7370
7371
7372 if test x"${ac_cv_path_tclsh}" = x ; then
7373   { echo "$as_me:$LINENO: result: none" >&5
7374 echo "${ECHO_T}none" >&6; }
7375   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
7376 do
7377   # Extract the first word of "$ac_prog", so it can be a program name with args.
7378 set dummy $ac_prog; ac_word=$2
7379 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7380 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7381 if test "${ac_cv_path_TCLSH+set}" = set; then
7382   echo $ECHO_N "(cached) $ECHO_C" >&6
7383 else
7384   case $TCLSH in
7385   [\\/]* | ?:[\\/]*)
7386   ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
7387   ;;
7388   *)
7389   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7390 for as_dir in $PATH
7391 do
7392   IFS=$as_save_IFS
7393   test -z "$as_dir" && as_dir=.
7394   for ac_exec_ext in '' $ac_executable_extensions; do
7395   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7396     ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
7397     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7398     break 2
7399   fi
7400 done
7401 done
7402 IFS=$as_save_IFS
7403
7404   ;;
7405 esac
7406 fi
7407 TCLSH=$ac_cv_path_TCLSH
7408 if test -n "$TCLSH"; then
7409   { echo "$as_me:$LINENO: result: $TCLSH" >&5
7410 echo "${ECHO_T}$TCLSH" >&6; }
7411 else
7412   { echo "$as_me:$LINENO: result: no" >&5
7413 echo "${ECHO_T}no" >&6; }
7414 fi
7415
7416
7417   test -n "$TCLSH" && break
7418 done
7419
7420   if test x"${TCLSH}" = x ; then
7421     ac_cv_path_tclsh='';
7422   else
7423     ac_cv_path_tclsh="${TCLSH}";
7424   fi
7425 else
7426   { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
7427 echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
7428   TCLSH="${ac_cv_path_tclsh}"
7429
7430 fi
7431
7432 # Extract the first word of "zip", so it can be a program name with args.
7433 set dummy zip; ac_word=$2
7434 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7435 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7436 if test "${ac_cv_path_ZIP+set}" = set; then
7437   echo $ECHO_N "(cached) $ECHO_C" >&6
7438 else
7439   case $ZIP in
7440   [\\/]* | ?:[\\/]*)
7441   ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
7442   ;;
7443   *)
7444   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7445 for as_dir in $PATH
7446 do
7447   IFS=$as_save_IFS
7448   test -z "$as_dir" && as_dir=.
7449   for ac_exec_ext in '' $ac_executable_extensions; do
7450   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7451     ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
7452     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7453     break 2
7454   fi
7455 done
7456 done
7457 IFS=$as_save_IFS
7458
7459   ;;
7460 esac
7461 fi
7462 ZIP=$ac_cv_path_ZIP
7463 if test -n "$ZIP"; then
7464   { echo "$as_me:$LINENO: result: $ZIP" >&5
7465 echo "${ECHO_T}$ZIP" >&6; }
7466 else
7467   { echo "$as_me:$LINENO: result: no" >&5
7468 echo "${ECHO_T}no" >&6; }
7469 fi
7470
7471
7472 for ac_prog in ocamlc
7473 do
7474   # Extract the first word of "$ac_prog", so it can be a program name with args.
7475 set dummy $ac_prog; ac_word=$2
7476 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7477 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7478 if test "${ac_cv_path_OCAMLC+set}" = set; then
7479   echo $ECHO_N "(cached) $ECHO_C" >&6
7480 else
7481   case $OCAMLC in
7482   [\\/]* | ?:[\\/]*)
7483   ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
7484   ;;
7485   *)
7486   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7487 for as_dir in $PATH
7488 do
7489   IFS=$as_save_IFS
7490   test -z "$as_dir" && as_dir=.
7491   for ac_exec_ext in '' $ac_executable_extensions; do
7492   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7493     ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
7494     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7495     break 2
7496   fi
7497 done
7498 done
7499 IFS=$as_save_IFS
7500
7501   ;;
7502 esac
7503 fi
7504 OCAMLC=$ac_cv_path_OCAMLC
7505 if test -n "$OCAMLC"; then
7506   { echo "$as_me:$LINENO: result: $OCAMLC" >&5
7507 echo "${ECHO_T}$OCAMLC" >&6; }
7508 else
7509   { echo "$as_me:$LINENO: result: no" >&5
7510 echo "${ECHO_T}no" >&6; }
7511 fi
7512
7513
7514   test -n "$OCAMLC" && break
7515 done
7516
7517 for ac_prog in ocamlopt
7518 do
7519   # Extract the first word of "$ac_prog", so it can be a program name with args.
7520 set dummy $ac_prog; ac_word=$2
7521 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7522 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7523 if test "${ac_cv_path_OCAMLOPT+set}" = set; then
7524   echo $ECHO_N "(cached) $ECHO_C" >&6
7525 else
7526   case $OCAMLOPT in
7527   [\\/]* | ?:[\\/]*)
7528   ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
7529   ;;
7530   *)
7531   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7532 for as_dir in $PATH
7533 do
7534   IFS=$as_save_IFS
7535   test -z "$as_dir" && as_dir=.
7536   for ac_exec_ext in '' $ac_executable_extensions; do
7537   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7538     ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
7539     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7540     break 2
7541   fi
7542 done
7543 done
7544 IFS=$as_save_IFS
7545
7546   ;;
7547 esac
7548 fi
7549 OCAMLOPT=$ac_cv_path_OCAMLOPT
7550 if test -n "$OCAMLOPT"; then
7551   { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
7552 echo "${ECHO_T}$OCAMLOPT" >&6; }
7553 else
7554   { echo "$as_me:$LINENO: result: no" >&5
7555 echo "${ECHO_T}no" >&6; }
7556 fi
7557
7558
7559   test -n "$OCAMLOPT" && break
7560 done
7561
7562 for ac_prog in ocamldep
7563 do
7564   # Extract the first word of "$ac_prog", so it can be a program name with args.
7565 set dummy $ac_prog; ac_word=$2
7566 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7567 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7568 if test "${ac_cv_path_OCAMLDEP+set}" = set; then
7569   echo $ECHO_N "(cached) $ECHO_C" >&6
7570 else
7571   case $OCAMLDEP in
7572   [\\/]* | ?:[\\/]*)
7573   ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
7574   ;;
7575   *)
7576   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7577 for as_dir in $PATH
7578 do
7579   IFS=$as_save_IFS
7580   test -z "$as_dir" && as_dir=.
7581   for ac_exec_ext in '' $ac_executable_extensions; do
7582   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7583     ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
7584     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7585     break 2
7586   fi
7587 done
7588 done
7589 IFS=$as_save_IFS
7590
7591   ;;
7592 esac
7593 fi
7594 OCAMLDEP=$ac_cv_path_OCAMLDEP
7595 if test -n "$OCAMLDEP"; then
7596   { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
7597 echo "${ECHO_T}$OCAMLDEP" >&6; }
7598 else
7599   { echo "$as_me:$LINENO: result: no" >&5
7600 echo "${ECHO_T}no" >&6; }
7601 fi
7602
7603
7604   test -n "$OCAMLDEP" && break
7605 done
7606
7607 for ac_prog in ocamldoc
7608 do
7609   # Extract the first word of "$ac_prog", so it can be a program name with args.
7610 set dummy $ac_prog; ac_word=$2
7611 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7612 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7613 if test "${ac_cv_path_OCAMLDOC+set}" = set; then
7614   echo $ECHO_N "(cached) $ECHO_C" >&6
7615 else
7616   case $OCAMLDOC in
7617   [\\/]* | ?:[\\/]*)
7618   ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
7619   ;;
7620   *)
7621   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7622 for as_dir in $PATH
7623 do
7624   IFS=$as_save_IFS
7625   test -z "$as_dir" && as_dir=.
7626   for ac_exec_ext in '' $ac_executable_extensions; do
7627   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7628     ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
7629     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7630     break 2
7631   fi
7632 done
7633 done
7634 IFS=$as_save_IFS
7635
7636   ;;
7637 esac
7638 fi
7639 OCAMLDOC=$ac_cv_path_OCAMLDOC
7640 if test -n "$OCAMLDOC"; then
7641   { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
7642 echo "${ECHO_T}$OCAMLDOC" >&6; }
7643 else
7644   { echo "$as_me:$LINENO: result: no" >&5
7645 echo "${ECHO_T}no" >&6; }
7646 fi
7647
7648
7649   test -n "$OCAMLDOC" && break
7650 done
7651
7652 for ac_prog in gas as
7653 do
7654   # Extract the first word of "$ac_prog", so it can be a program name with args.
7655 set dummy $ac_prog; ac_word=$2
7656 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7657 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7658 if test "${ac_cv_path_GAS+set}" = set; then
7659   echo $ECHO_N "(cached) $ECHO_C" >&6
7660 else
7661   case $GAS in
7662   [\\/]* | ?:[\\/]*)
7663   ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
7664   ;;
7665   *)
7666   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7667 for as_dir in $PATH
7668 do
7669   IFS=$as_save_IFS
7670   test -z "$as_dir" && as_dir=.
7671   for ac_exec_ext in '' $ac_executable_extensions; do
7672   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7673     ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
7674     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7675     break 2
7676   fi
7677 done
7678 done
7679 IFS=$as_save_IFS
7680
7681   ;;
7682 esac
7683 fi
7684 GAS=$ac_cv_path_GAS
7685 if test -n "$GAS"; then
7686   { echo "$as_me:$LINENO: result: $GAS" >&5
7687 echo "${ECHO_T}$GAS" >&6; }
7688 else
7689   { echo "$as_me:$LINENO: result: no" >&5
7690 echo "${ECHO_T}no" >&6; }
7691 fi
7692
7693
7694   test -n "$GAS" && break
7695 done
7696
7697
7698 { echo "$as_me:$LINENO: checking for linker version" >&5
7699 echo $ECHO_N "checking for linker version... $ECHO_C" >&6; }
7700 if test "${llvm_cv_link_version+set}" = set; then
7701   echo $ECHO_N "(cached) $ECHO_C" >&6
7702 else
7703
7704    version_string="$(ld -v 2>&1 | head -1)"
7705
7706    # Check for ld64.
7707    if (echo "$version_string" | grep -q "ld64"); then
7708      llvm_cv_link_version=$(echo "$version_string" | sed -e "s#.*ld64-\([^ ]*\)\( (.*)\)\{0,1\}#\1#")
7709    else
7710      llvm_cv_link_version=$(echo "$version_string" | sed -e "s#[^0-9]*\([0-9.]*\).*#\1#")
7711    fi
7712
7713 fi
7714 { echo "$as_me:$LINENO: result: $llvm_cv_link_version" >&5
7715 echo "${ECHO_T}$llvm_cv_link_version" >&6; }
7716
7717 cat >>confdefs.h <<_ACEOF
7718 #define HOST_LINK_VERSION "$llvm_cv_link_version"
7719 _ACEOF
7720
7721
7722
7723 { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
7724 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
7725 if test "${llvm_cv_link_use_r+set}" = set; then
7726   echo $ECHO_N "(cached) $ECHO_C" >&6
7727 else
7728    ac_ext=c
7729 ac_cpp='$CPP $CPPFLAGS'
7730 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7731 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7732 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7733
7734   oldcflags="$CFLAGS"
7735   CFLAGS="$CFLAGS -Wl,-R."
7736   cat >conftest.$ac_ext <<_ACEOF
7737 /* confdefs.h.  */
7738 _ACEOF
7739 cat confdefs.h >>conftest.$ac_ext
7740 cat >>conftest.$ac_ext <<_ACEOF
7741 /* end confdefs.h.  */
7742
7743 int
7744 main ()
7745 {
7746
7747   ;
7748   return 0;
7749 }
7750 _ACEOF
7751 rm -f conftest.$ac_objext conftest$ac_exeext
7752 if { (ac_try="$ac_link"
7753 case "(($ac_try" in
7754   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7755   *) ac_try_echo=$ac_try;;
7756 esac
7757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7758   (eval "$ac_link") 2>conftest.er1
7759   ac_status=$?
7760   grep -v '^ *+' conftest.er1 >conftest.err
7761   rm -f conftest.er1
7762   cat conftest.err >&5
7763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7764   (exit $ac_status); } &&
7765          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7766   { (case "(($ac_try" in
7767   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7768   *) ac_try_echo=$ac_try;;
7769 esac
7770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7771   (eval "$ac_try") 2>&5
7772   ac_status=$?
7773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7774   (exit $ac_status); }; } &&
7775          { ac_try='test -s conftest$ac_exeext'
7776   { (case "(($ac_try" in
7777   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7778   *) ac_try_echo=$ac_try;;
7779 esac
7780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7781   (eval "$ac_try") 2>&5
7782   ac_status=$?
7783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7784   (exit $ac_status); }; }; then
7785   llvm_cv_link_use_r=yes
7786 else
7787   echo "$as_me: failed program was:" >&5
7788 sed 's/^/| /' conftest.$ac_ext >&5
7789
7790         llvm_cv_link_use_r=no
7791 fi
7792
7793 rm -f core conftest.err conftest.$ac_objext \
7794       conftest$ac_exeext conftest.$ac_ext
7795   CFLAGS="$oldcflags"
7796   ac_ext=c
7797 ac_cpp='$CPP $CPPFLAGS'
7798 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7799 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7800 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7801
7802
7803 fi
7804 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
7805 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
7806 if test "$llvm_cv_link_use_r" = yes ; then
7807
7808 cat >>confdefs.h <<\_ACEOF
7809 #define HAVE_LINK_R 1
7810 _ACEOF
7811
7812   fi
7813
7814
7815 { echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5
7816 echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; }
7817 if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
7818   echo $ECHO_N "(cached) $ECHO_C" >&6
7819 else
7820    ac_ext=c
7821 ac_cpp='$CPP $CPPFLAGS'
7822 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7823 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7824 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7825
7826   oldcflags="$CFLAGS"
7827   CFLAGS="$CFLAGS -Wl,-export-dynamic"
7828   cat >conftest.$ac_ext <<_ACEOF
7829 /* confdefs.h.  */
7830 _ACEOF
7831 cat confdefs.h >>conftest.$ac_ext
7832 cat >>conftest.$ac_ext <<_ACEOF
7833 /* end confdefs.h.  */
7834
7835 int
7836 main ()
7837 {
7838
7839   ;
7840   return 0;
7841 }
7842 _ACEOF
7843 rm -f conftest.$ac_objext conftest$ac_exeext
7844 if { (ac_try="$ac_link"
7845 case "(($ac_try" in
7846   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7847   *) ac_try_echo=$ac_try;;
7848 esac
7849 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7850   (eval "$ac_link") 2>conftest.er1
7851   ac_status=$?
7852   grep -v '^ *+' conftest.er1 >conftest.err
7853   rm -f conftest.er1
7854   cat conftest.err >&5
7855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7856   (exit $ac_status); } &&
7857          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7858   { (case "(($ac_try" in
7859   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7860   *) ac_try_echo=$ac_try;;
7861 esac
7862 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7863   (eval "$ac_try") 2>&5
7864   ac_status=$?
7865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7866   (exit $ac_status); }; } &&
7867          { ac_try='test -s conftest$ac_exeext'
7868   { (case "(($ac_try" in
7869   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7870   *) ac_try_echo=$ac_try;;
7871 esac
7872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7873   (eval "$ac_try") 2>&5
7874   ac_status=$?
7875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7876   (exit $ac_status); }; }; then
7877   llvm_cv_link_use_export_dynamic=yes
7878 else
7879   echo "$as_me: failed program was:" >&5
7880 sed 's/^/| /' conftest.$ac_ext >&5
7881
7882         llvm_cv_link_use_export_dynamic=no
7883 fi
7884
7885 rm -f core conftest.err conftest.$ac_objext \
7886       conftest$ac_exeext conftest.$ac_ext
7887   CFLAGS="$oldcflags"
7888   ac_ext=c
7889 ac_cpp='$CPP $CPPFLAGS'
7890 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7891 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7892 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7893
7894
7895 fi
7896 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
7897 echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
7898 if test "$llvm_cv_link_use_export_dynamic" = yes ; then
7899
7900 cat >>confdefs.h <<\_ACEOF
7901 #define HAVE_LINK_EXPORT_DYNAMIC 1
7902 _ACEOF
7903
7904   fi
7905
7906
7907 { echo "$as_me:$LINENO: checking for compiler -Wl,--version-script option" >&5
7908 echo $ECHO_N "checking for compiler -Wl,--version-script option... $ECHO_C" >&6; }
7909 if test "${llvm_cv_link_use_version_script+set}" = set; then
7910   echo $ECHO_N "(cached) $ECHO_C" >&6
7911 else
7912    ac_ext=c
7913 ac_cpp='$CPP $CPPFLAGS'
7914 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7915 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7916 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7917
7918   oldcflags="$CFLAGS"
7919
7920   # The following code is from the autoconf manual,
7921   # "11.13: Limitations of Usual Tools".
7922   # Create a temporary directory $tmp in $TMPDIR (default /tmp).
7923   # Use mktemp if possible; otherwise fall back on mkdir,
7924   # with $RANDOM to make collisions less likely.
7925   : ${TMPDIR=/tmp}
7926   {
7927     tmp=`
7928       (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null
7929     ` &&
7930     test -n "$tmp" && test -d "$tmp"
7931   } || {
7932     tmp=$TMPDIR/foo$$-$RANDOM
7933     (umask 077 && mkdir "$tmp")
7934   } || exit $?
7935
7936   echo "{" > "$tmp/export.map"
7937   echo "  global: main;" >> "$tmp/export.map"
7938   echo "  local: *;" >> "$tmp/export.map"
7939   echo "};" >> "$tmp/export.map"
7940
7941   CFLAGS="$CFLAGS -Wl,--version-script=$tmp/export.map"
7942   cat >conftest.$ac_ext <<_ACEOF
7943 /* confdefs.h.  */
7944 _ACEOF
7945 cat confdefs.h >>conftest.$ac_ext
7946 cat >>conftest.$ac_ext <<_ACEOF
7947 /* end confdefs.h.  */
7948
7949 int
7950 main ()
7951 {
7952
7953   ;
7954   return 0;
7955 }
7956 _ACEOF
7957 rm -f conftest.$ac_objext conftest$ac_exeext
7958 if { (ac_try="$ac_link"
7959 case "(($ac_try" in
7960   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7961   *) ac_try_echo=$ac_try;;
7962 esac
7963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7964   (eval "$ac_link") 2>conftest.er1
7965   ac_status=$?
7966   grep -v '^ *+' conftest.er1 >conftest.err
7967   rm -f conftest.er1
7968   cat conftest.err >&5
7969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7970   (exit $ac_status); } &&
7971          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7972   { (case "(($ac_try" in
7973   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7974   *) ac_try_echo=$ac_try;;
7975 esac
7976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7977   (eval "$ac_try") 2>&5
7978   ac_status=$?
7979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7980   (exit $ac_status); }; } &&
7981          { ac_try='test -s conftest$ac_exeext'
7982   { (case "(($ac_try" in
7983   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7984   *) ac_try_echo=$ac_try;;
7985 esac
7986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7987   (eval "$ac_try") 2>&5
7988   ac_status=$?
7989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7990   (exit $ac_status); }; }; then
7991   llvm_cv_link_use_version_script=yes
7992 else
7993   echo "$as_me: failed program was:" >&5
7994 sed 's/^/| /' conftest.$ac_ext >&5
7995
7996         llvm_cv_link_use_version_script=no
7997 fi
7998
7999 rm -f core conftest.err conftest.$ac_objext \
8000       conftest$ac_exeext conftest.$ac_ext
8001   rm "$tmp/export.map"
8002   rmdir "$tmp"
8003   CFLAGS="$oldcflags"
8004   ac_ext=c
8005 ac_cpp='$CPP $CPPFLAGS'
8006 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8007 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8008 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8009
8010
8011 fi
8012 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_version_script" >&5
8013 echo "${ECHO_T}$llvm_cv_link_use_version_script" >&6; }
8014 if test "$llvm_cv_link_use_version_script" = yes ; then
8015   HAVE_LINK_VERSION_SCRIPT=1
8016
8017   fi
8018
8019
8020
8021
8022 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8023 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8024 if test "${ac_cv_c_const+set}" = set; then
8025   echo $ECHO_N "(cached) $ECHO_C" >&6
8026 else
8027   cat >conftest.$ac_ext <<_ACEOF
8028 /* confdefs.h.  */
8029 _ACEOF
8030 cat confdefs.h >>conftest.$ac_ext
8031 cat >>conftest.$ac_ext <<_ACEOF
8032 /* end confdefs.h.  */
8033
8034 int
8035 main ()
8036 {
8037 /* FIXME: Include the comments suggested by Paul. */
8038 #ifndef __cplusplus
8039   /* Ultrix mips cc rejects this.  */
8040   typedef int charset[2];
8041   const charset x;
8042   /* SunOS 4.1.1 cc rejects this.  */
8043   char const *const *ccp;
8044   char **p;
8045   /* NEC SVR4.0.2 mips cc rejects this.  */
8046   struct point {int x, y;};
8047   static struct point const zero = {0,0};
8048   /* AIX XL C 1.02.0.0 rejects this.
8049      It does not let you subtract one const X* pointer from another in
8050      an arm of an if-expression whose if-part is not a constant
8051      expression */
8052   const char *g = "string";
8053   ccp = &g + (g ? g-g : 0);
8054   /* HPUX 7.0 cc rejects these. */
8055   ++ccp;
8056   p = (char**) ccp;
8057   ccp = (char const *const *) p;
8058   { /* SCO 3.2v4 cc rejects this.  */
8059     char *t;
8060     char const *s = 0 ? (char *) 0 : (char const *) 0;
8061
8062     *t++ = 0;
8063     if (s) return 0;
8064   }
8065   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
8066     int x[] = {25, 17};
8067     const int *foo = &x[0];
8068     ++foo;
8069   }
8070   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8071     typedef const int *iptr;
8072     iptr p = 0;
8073     ++p;
8074   }
8075   { /* AIX XL C 1.02.0.0 rejects this saying
8076        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8077     struct s { int j; const int *ap[3]; };
8078     struct s *b; b->j = 5;
8079   }
8080   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8081     const int foo = 10;
8082     if (!foo) return 0;
8083   }
8084   return !x[0] && !zero.x;
8085 #endif
8086
8087   ;
8088   return 0;
8089 }
8090 _ACEOF
8091 rm -f conftest.$ac_objext
8092 if { (ac_try="$ac_compile"
8093 case "(($ac_try" in
8094   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8095   *) ac_try_echo=$ac_try;;
8096 esac
8097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8098   (eval "$ac_compile") 2>conftest.er1
8099   ac_status=$?
8100   grep -v '^ *+' conftest.er1 >conftest.err
8101   rm -f conftest.er1
8102   cat conftest.err >&5
8103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8104   (exit $ac_status); } &&
8105          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8106   { (case "(($ac_try" in
8107   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8108   *) ac_try_echo=$ac_try;;
8109 esac
8110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8111   (eval "$ac_try") 2>&5
8112   ac_status=$?
8113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8114   (exit $ac_status); }; } &&
8115          { ac_try='test -s conftest.$ac_objext'
8116   { (case "(($ac_try" in
8117   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8118   *) ac_try_echo=$ac_try;;
8119 esac
8120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8121   (eval "$ac_try") 2>&5
8122   ac_status=$?
8123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8124   (exit $ac_status); }; }; then
8125   ac_cv_c_const=yes
8126 else
8127   echo "$as_me: failed program was:" >&5
8128 sed 's/^/| /' conftest.$ac_ext >&5
8129
8130         ac_cv_c_const=no
8131 fi
8132
8133 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8134 fi
8135 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8136 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8137 if test $ac_cv_c_const = no; then
8138
8139 cat >>confdefs.h <<\_ACEOF
8140 #define const
8141 _ACEOF
8142
8143 fi
8144
8145
8146
8147
8148
8149
8150 ac_header_dirent=no
8151 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8152   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8153 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8154 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8155 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8156   echo $ECHO_N "(cached) $ECHO_C" >&6
8157 else
8158   cat >conftest.$ac_ext <<_ACEOF
8159 /* confdefs.h.  */
8160 _ACEOF
8161 cat confdefs.h >>conftest.$ac_ext
8162 cat >>conftest.$ac_ext <<_ACEOF
8163 /* end confdefs.h.  */
8164 #include <sys/types.h>
8165 #include <$ac_hdr>
8166
8167 int
8168 main ()
8169 {
8170 if ((DIR *) 0)
8171 return 0;
8172   ;
8173   return 0;
8174 }
8175 _ACEOF
8176 rm -f conftest.$ac_objext
8177 if { (ac_try="$ac_compile"
8178 case "(($ac_try" in
8179   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8180   *) ac_try_echo=$ac_try;;
8181 esac
8182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8183   (eval "$ac_compile") 2>conftest.er1
8184   ac_status=$?
8185   grep -v '^ *+' conftest.er1 >conftest.err
8186   rm -f conftest.er1
8187   cat conftest.err >&5
8188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8189   (exit $ac_status); } &&
8190          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8191   { (case "(($ac_try" in
8192   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8193   *) ac_try_echo=$ac_try;;
8194 esac
8195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8196   (eval "$ac_try") 2>&5
8197   ac_status=$?
8198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8199   (exit $ac_status); }; } &&
8200          { ac_try='test -s conftest.$ac_objext'
8201   { (case "(($ac_try" in
8202   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8203   *) ac_try_echo=$ac_try;;
8204 esac
8205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8206   (eval "$ac_try") 2>&5
8207   ac_status=$?
8208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8209   (exit $ac_status); }; }; then
8210   eval "$as_ac_Header=yes"
8211 else
8212   echo "$as_me: failed program was:" >&5
8213 sed 's/^/| /' conftest.$ac_ext >&5
8214
8215         eval "$as_ac_Header=no"
8216 fi
8217
8218 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8219 fi
8220 ac_res=`eval echo '${'$as_ac_Header'}'`
8221                { echo "$as_me:$LINENO: result: $ac_res" >&5
8222 echo "${ECHO_T}$ac_res" >&6; }
8223 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8224   cat >>confdefs.h <<_ACEOF
8225 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8226 _ACEOF
8227
8228 ac_header_dirent=$ac_hdr; break
8229 fi
8230
8231 done
8232 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8233 if test $ac_header_dirent = dirent.h; then
8234   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8235 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8236 if test "${ac_cv_search_opendir+set}" = set; then
8237   echo $ECHO_N "(cached) $ECHO_C" >&6
8238 else
8239   ac_func_search_save_LIBS=$LIBS
8240 cat >conftest.$ac_ext <<_ACEOF
8241 /* confdefs.h.  */
8242 _ACEOF
8243 cat confdefs.h >>conftest.$ac_ext
8244 cat >>conftest.$ac_ext <<_ACEOF
8245 /* end confdefs.h.  */
8246
8247 /* Override any GCC internal prototype to avoid an error.
8248    Use char because int might match the return type of a GCC
8249    builtin and then its argument prototype would still apply.  */
8250 #ifdef __cplusplus
8251 extern "C"
8252 #endif
8253 char opendir ();
8254 int
8255 main ()
8256 {
8257 return opendir ();
8258   ;
8259   return 0;
8260 }
8261 _ACEOF
8262 for ac_lib in '' dir; do
8263   if test -z "$ac_lib"; then
8264     ac_res="none required"
8265   else
8266     ac_res=-l$ac_lib
8267     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8268   fi
8269   rm -f conftest.$ac_objext conftest$ac_exeext
8270 if { (ac_try="$ac_link"
8271 case "(($ac_try" in
8272   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8273   *) ac_try_echo=$ac_try;;
8274 esac
8275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8276   (eval "$ac_link") 2>conftest.er1
8277   ac_status=$?
8278   grep -v '^ *+' conftest.er1 >conftest.err
8279   rm -f conftest.er1
8280   cat conftest.err >&5
8281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8282   (exit $ac_status); } &&
8283          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8284   { (case "(($ac_try" in
8285   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8286   *) ac_try_echo=$ac_try;;
8287 esac
8288 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8289   (eval "$ac_try") 2>&5
8290   ac_status=$?
8291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8292   (exit $ac_status); }; } &&
8293          { ac_try='test -s conftest$ac_exeext'
8294   { (case "(($ac_try" in
8295   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8296   *) ac_try_echo=$ac_try;;
8297 esac
8298 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8299   (eval "$ac_try") 2>&5
8300   ac_status=$?
8301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8302   (exit $ac_status); }; }; then
8303   ac_cv_search_opendir=$ac_res
8304 else
8305   echo "$as_me: failed program was:" >&5
8306 sed 's/^/| /' conftest.$ac_ext >&5
8307
8308
8309 fi
8310
8311 rm -f core conftest.err conftest.$ac_objext \
8312       conftest$ac_exeext
8313   if test "${ac_cv_search_opendir+set}" = set; then
8314   break
8315 fi
8316 done
8317 if test "${ac_cv_search_opendir+set}" = set; then
8318   :
8319 else
8320   ac_cv_search_opendir=no
8321 fi
8322 rm conftest.$ac_ext
8323 LIBS=$ac_func_search_save_LIBS
8324 fi
8325 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8326 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8327 ac_res=$ac_cv_search_opendir
8328 if test "$ac_res" != no; then
8329   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8330
8331 fi
8332
8333 else
8334   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8335 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8336 if test "${ac_cv_search_opendir+set}" = set; then
8337   echo $ECHO_N "(cached) $ECHO_C" >&6
8338 else
8339   ac_func_search_save_LIBS=$LIBS
8340 cat >conftest.$ac_ext <<_ACEOF
8341 /* confdefs.h.  */
8342 _ACEOF
8343 cat confdefs.h >>conftest.$ac_ext
8344 cat >>conftest.$ac_ext <<_ACEOF
8345 /* end confdefs.h.  */
8346
8347 /* Override any GCC internal prototype to avoid an error.
8348    Use char because int might match the return type of a GCC
8349    builtin and then its argument prototype would still apply.  */
8350 #ifdef __cplusplus
8351 extern "C"
8352 #endif
8353 char opendir ();
8354 int
8355 main ()
8356 {
8357 return opendir ();
8358   ;
8359   return 0;
8360 }
8361 _ACEOF
8362 for ac_lib in '' x; do
8363   if test -z "$ac_lib"; then
8364     ac_res="none required"
8365   else
8366     ac_res=-l$ac_lib
8367     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8368   fi
8369   rm -f conftest.$ac_objext conftest$ac_exeext
8370 if { (ac_try="$ac_link"
8371 case "(($ac_try" in
8372   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8373   *) ac_try_echo=$ac_try;;
8374 esac
8375 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8376   (eval "$ac_link") 2>conftest.er1
8377   ac_status=$?
8378   grep -v '^ *+' conftest.er1 >conftest.err
8379   rm -f conftest.er1
8380   cat conftest.err >&5
8381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8382   (exit $ac_status); } &&
8383          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8384   { (case "(($ac_try" in
8385   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8386   *) ac_try_echo=$ac_try;;
8387 esac
8388 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8389   (eval "$ac_try") 2>&5
8390   ac_status=$?
8391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8392   (exit $ac_status); }; } &&
8393          { ac_try='test -s conftest$ac_exeext'
8394   { (case "(($ac_try" in
8395   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8396   *) ac_try_echo=$ac_try;;
8397 esac
8398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8399   (eval "$ac_try") 2>&5
8400   ac_status=$?
8401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8402   (exit $ac_status); }; }; then
8403   ac_cv_search_opendir=$ac_res
8404 else
8405   echo "$as_me: failed program was:" >&5
8406 sed 's/^/| /' conftest.$ac_ext >&5
8407
8408
8409 fi
8410
8411 rm -f core conftest.err conftest.$ac_objext \
8412       conftest$ac_exeext
8413   if test "${ac_cv_search_opendir+set}" = set; then
8414   break
8415 fi
8416 done
8417 if test "${ac_cv_search_opendir+set}" = set; then
8418   :
8419 else
8420   ac_cv_search_opendir=no
8421 fi
8422 rm conftest.$ac_ext
8423 LIBS=$ac_func_search_save_LIBS
8424 fi
8425 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8426 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8427 ac_res=$ac_cv_search_opendir
8428 if test "$ac_res" != no; then
8429   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8430
8431 fi
8432
8433 fi
8434
8435
8436 for ac_header in dlfcn.h
8437 do
8438 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8439 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8440   { echo "$as_me:$LINENO: checking for $ac_header" >&5
8441 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8442 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8443   echo $ECHO_N "(cached) $ECHO_C" >&6
8444 fi
8445 ac_res=`eval echo '${'$as_ac_Header'}'`
8446                { echo "$as_me:$LINENO: result: $ac_res" >&5
8447 echo "${ECHO_T}$ac_res" >&6; }
8448 else
8449   # Is the header compilable?
8450 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8451 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8452 cat >conftest.$ac_ext <<_ACEOF
8453 /* confdefs.h.  */
8454 _ACEOF
8455 cat confdefs.h >>conftest.$ac_ext
8456 cat >>conftest.$ac_ext <<_ACEOF
8457 /* end confdefs.h.  */
8458 $ac_includes_default
8459 #include <$ac_header>
8460 _ACEOF
8461 rm -f conftest.$ac_objext
8462 if { (ac_try="$ac_compile"
8463 case "(($ac_try" in
8464   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8465   *) ac_try_echo=$ac_try;;
8466 esac
8467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8468   (eval "$ac_compile") 2>conftest.er1
8469   ac_status=$?
8470   grep -v '^ *+' conftest.er1 >conftest.err
8471   rm -f conftest.er1
8472   cat conftest.err >&5
8473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8474   (exit $ac_status); } &&
8475          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8476   { (case "(($ac_try" in
8477   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8478   *) ac_try_echo=$ac_try;;
8479 esac
8480 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8481   (eval "$ac_try") 2>&5
8482   ac_status=$?
8483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8484   (exit $ac_status); }; } &&
8485          { ac_try='test -s conftest.$ac_objext'
8486   { (case "(($ac_try" in
8487   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8488   *) ac_try_echo=$ac_try;;
8489 esac
8490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8491   (eval "$ac_try") 2>&5
8492   ac_status=$?
8493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8494   (exit $ac_status); }; }; then
8495   ac_header_compiler=yes
8496 else
8497   echo "$as_me: failed program was:" >&5
8498 sed 's/^/| /' conftest.$ac_ext >&5
8499
8500         ac_header_compiler=no
8501 fi
8502
8503 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8504 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8505 echo "${ECHO_T}$ac_header_compiler" >&6; }
8506
8507 # Is the header present?
8508 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8509 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8510 cat >conftest.$ac_ext <<_ACEOF
8511 /* confdefs.h.  */
8512 _ACEOF
8513 cat confdefs.h >>conftest.$ac_ext
8514 cat >>conftest.$ac_ext <<_ACEOF
8515 /* end confdefs.h.  */
8516 #include <$ac_header>
8517 _ACEOF
8518 if { (ac_try="$ac_cpp conftest.$ac_ext"
8519 case "(($ac_try" in
8520   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8521   *) ac_try_echo=$ac_try;;
8522 esac
8523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8524   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8525   ac_status=$?
8526   grep -v '^ *+' conftest.er1 >conftest.err
8527   rm -f conftest.er1
8528   cat conftest.err >&5
8529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8530   (exit $ac_status); } >/dev/null; then
8531   if test -s conftest.err; then
8532     ac_cpp_err=$ac_c_preproc_warn_flag
8533     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8534   else
8535     ac_cpp_err=
8536   fi
8537 else
8538   ac_cpp_err=yes
8539 fi
8540 if test -z "$ac_cpp_err"; then
8541   ac_header_preproc=yes
8542 else
8543   echo "$as_me: failed program was:" >&5
8544 sed 's/^/| /' conftest.$ac_ext >&5
8545
8546   ac_header_preproc=no
8547 fi
8548
8549 rm -f conftest.err conftest.$ac_ext
8550 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8551 echo "${ECHO_T}$ac_header_preproc" >&6; }
8552
8553 # So?  What about this header?
8554 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8555   yes:no: )
8556     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8557 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8558     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8559 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8560     ac_header_preproc=yes
8561     ;;
8562   no:yes:* )
8563     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8564 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8565     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8566 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8567     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8568 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8569     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8570 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8571     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8572 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8573     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8574 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8575     ( cat <<\_ASBOX
8576 ## ------------------------------------ ##
8577 ## Report this to http://llvm.org/bugs/ ##
8578 ## ------------------------------------ ##
8579 _ASBOX
8580      ) | sed "s/^/$as_me: WARNING:     /" >&2
8581     ;;
8582 esac
8583 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8584 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8585 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8586   echo $ECHO_N "(cached) $ECHO_C" >&6
8587 else
8588   eval "$as_ac_Header=\$ac_header_preproc"
8589 fi
8590 ac_res=`eval echo '${'$as_ac_Header'}'`
8591                { echo "$as_me:$LINENO: result: $ac_res" >&5
8592 echo "${ECHO_T}$ac_res" >&6; }
8593
8594 fi
8595 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8596   cat >>confdefs.h <<_ACEOF
8597 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8598 _ACEOF
8599
8600 fi
8601
8602 done
8603
8604 # Check whether --enable-ltdl-install was given.
8605 if test "${enable_ltdl_install+set}" = set; then
8606   enableval=$enable_ltdl_install;
8607 fi
8608
8609
8610
8611
8612 if test x"${enable_ltdl_install-no}" != xno; then
8613   INSTALL_LTDL_TRUE=
8614   INSTALL_LTDL_FALSE='#'
8615 else
8616   INSTALL_LTDL_TRUE='#'
8617   INSTALL_LTDL_FALSE=
8618 fi
8619
8620
8621
8622 if test x"${enable_ltdl_convenience-no}" != xno; then
8623   CONVENIENCE_LTDL_TRUE=
8624   CONVENIENCE_LTDL_FALSE='#'
8625 else
8626   CONVENIENCE_LTDL_TRUE='#'
8627   CONVENIENCE_LTDL_FALSE=
8628 fi
8629
8630
8631 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8632 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8633 library_names_spec=
8634 libname_spec='lib$name'
8635 soname_spec=
8636 shrext_cmds=".so"
8637 postinstall_cmds=
8638 postuninstall_cmds=
8639 finish_cmds=
8640 finish_eval=
8641 shlibpath_var=
8642 shlibpath_overrides_runpath=unknown
8643 version_type=none
8644 dynamic_linker="$host_os ld.so"
8645 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8646 if test "$GCC" = yes; then
8647   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8648   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8649     # if the path contains ";" then we assume it to be the separator
8650     # otherwise default to the standard path separator (i.e. ":") - it is
8651     # assumed that no part of a normal pathname contains ";" but that should
8652     # okay in the real world where ";" in dirpaths is itself problematic.
8653     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8654   else
8655     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8656   fi
8657 else
8658   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8659 fi
8660 need_lib_prefix=unknown
8661 hardcode_into_libs=no
8662
8663 # when you set need_version to no, make sure it does not cause -set_version
8664 # flags to be left without arguments
8665 need_version=unknown
8666
8667 case $host_os in
8668 aix3*)
8669   version_type=linux
8670   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8671   shlibpath_var=LIBPATH
8672
8673   # AIX 3 has no versioning support, so we append a major version to the name.
8674   soname_spec='${libname}${release}${shared_ext}$major'
8675   ;;
8676
8677 aix4* | aix5*)
8678   version_type=linux
8679   need_lib_prefix=no
8680   need_version=no
8681   hardcode_into_libs=yes
8682   if test "$host_cpu" = ia64; then
8683     # AIX 5 supports IA64
8684     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8685     shlibpath_var=LD_LIBRARY_PATH
8686   else
8687     # With GCC up to 2.95.x, collect2 would create an import file
8688     # for dependence libraries.  The import file would start with
8689     # the line `#! .'.  This would cause the generated library to
8690     # depend on `.', always an invalid library.  This was fixed in
8691     # development snapshots of GCC prior to 3.0.
8692     case $host_os in
8693       aix4 | aix4.[01] | aix4.[01].*)
8694       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8695            echo ' yes '
8696            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8697         :
8698       else
8699         can_build_shared=no
8700       fi
8701       ;;
8702     esac
8703     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8704     # soname into executable. Probably we can add versioning support to
8705     # collect2, so additional links can be useful in future.
8706     if test "$aix_use_runtimelinking" = yes; then
8707       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8708       # instead of lib<name>.a to let people know that these are not
8709       # typical AIX shared libraries.
8710       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8711     else
8712       # We preserve .a as extension for shared libraries through AIX4.2
8713       # and later when we are not doing run time linking.
8714       library_names_spec='${libname}${release}.a $libname.a'
8715       soname_spec='${libname}${release}${shared_ext}$major'
8716     fi
8717     shlibpath_var=LIBPATH
8718   fi
8719   ;;
8720
8721 amigaos*)
8722   library_names_spec='$libname.ixlibrary $libname.a'
8723   # Create ${libname}_ixlibrary.a entries in /sys/libs.
8724   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'
8725   ;;
8726
8727 beos*)
8728   library_names_spec='${libname}${shared_ext}'
8729   dynamic_linker="$host_os ld.so"
8730   shlibpath_var=LIBRARY_PATH
8731   ;;
8732
8733 bsdi[45]*)
8734   version_type=linux
8735   need_version=no
8736   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8737   soname_spec='${libname}${release}${shared_ext}$major'
8738   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8739   shlibpath_var=LD_LIBRARY_PATH
8740   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8741   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8742   # the default ld.so.conf also contains /usr/contrib/lib and
8743   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8744   # libtool to hard-code these into programs
8745   ;;
8746
8747 cygwin* | mingw* | pw32*)
8748   version_type=windows
8749   shrext_cmds=".dll"
8750   need_version=no
8751   need_lib_prefix=no
8752
8753   case $GCC,$host_os in
8754   yes,cygwin* | yes,mingw* | yes,pw32*)
8755     library_names_spec='$libname.dll.a'
8756     # DLL is installed to $(libdir)/../bin by postinstall_cmds
8757     postinstall_cmds='base_file=`basename \${file}`~
8758       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8759       dldir=$destdir/`dirname \$dlpath`~
8760       test -d \$dldir || mkdir -p \$dldir~
8761       $install_prog $dir/$dlname \$dldir/$dlname~
8762       chmod a+x \$dldir/$dlname'
8763     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8764       dlpath=$dir/\$dldll~
8765        $rm \$dlpath'
8766     shlibpath_overrides_runpath=yes
8767
8768     case $host_os in
8769     cygwin*)
8770       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8771       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8772       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8773       ;;
8774     mingw*)
8775       # MinGW DLLs use traditional 'lib' prefix
8776       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8777       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8778       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8779         # It is most probably a Windows format PATH printed by
8780         # mingw gcc, but we are running on Cygwin. Gcc prints its search
8781         # path with ; separators, and with drive letters. We can handle the
8782         # drive letters (cygwin fileutils understands them), so leave them,
8783         # especially as we might pass files found there to a mingw objdump,
8784         # which wouldn't understand a cygwinified path. Ahh.
8785         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8786       else
8787         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8788       fi
8789       ;;
8790     pw32*)
8791       # pw32 DLLs use 'pw' prefix rather than 'lib'
8792       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8793       ;;
8794     esac
8795     ;;
8796
8797   *)
8798     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8799     ;;
8800   esac
8801   dynamic_linker='Win32 ld.exe'
8802   # FIXME: first we should search . and the directory the executable is in
8803   shlibpath_var=PATH
8804   ;;
8805
8806 darwin* | rhapsody*)
8807   dynamic_linker="$host_os dyld"
8808   version_type=darwin
8809   need_lib_prefix=no
8810   need_version=no
8811   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8812   soname_spec='${libname}${release}${major}$shared_ext'
8813   shlibpath_overrides_runpath=yes
8814   shlibpath_var=DYLD_LIBRARY_PATH
8815   shrext_cmds='.dylib'
8816   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8817   if test "$GCC" = yes; then
8818     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"`
8819   else
8820     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8821   fi
8822   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8823   ;;
8824
8825 dgux*)
8826   version_type=linux
8827   need_lib_prefix=no
8828   need_version=no
8829   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8830   soname_spec='${libname}${release}${shared_ext}$major'
8831   shlibpath_var=LD_LIBRARY_PATH
8832   ;;
8833
8834 freebsd1.*)
8835   dynamic_linker=no
8836   ;;
8837
8838 kfreebsd*-gnu)
8839   version_type=linux
8840   need_lib_prefix=no
8841   need_version=no
8842   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8843   soname_spec='${libname}${release}${shared_ext}$major'
8844   shlibpath_var=LD_LIBRARY_PATH
8845   shlibpath_overrides_runpath=no
8846   hardcode_into_libs=yes
8847   dynamic_linker='GNU ld.so'
8848   ;;
8849
8850 freebsd* | dragonfly*)
8851   # DragonFly does not have aout.  When/if they implement a new
8852   # versioning mechanism, adjust this.
8853   if test -x /usr/bin/objformat; then
8854     objformat=`/usr/bin/objformat`
8855   else
8856     case $host_os in
8857     freebsd[123].*) objformat=aout ;;
8858     *) objformat=elf ;;
8859     esac
8860   fi
8861   version_type=freebsd-$objformat
8862   case $version_type in
8863     freebsd-elf*)
8864       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8865       need_version=no
8866       need_lib_prefix=no
8867       ;;
8868     freebsd-*)
8869       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8870       need_version=yes
8871       ;;
8872   esac
8873   shlibpath_var=LD_LIBRARY_PATH
8874   case $host_os in
8875   freebsd2.*)
8876     shlibpath_overrides_runpath=yes
8877     ;;
8878   freebsd3.[01]* | freebsdelf3.[01]*)
8879     shlibpath_overrides_runpath=yes
8880     hardcode_into_libs=yes
8881     ;;
8882   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8883   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8884     shlibpath_overrides_runpath=no
8885     hardcode_into_libs=yes
8886     ;;
8887   freebsd*) # from 4.6 on
8888     shlibpath_overrides_runpath=yes
8889     hardcode_into_libs=yes
8890     ;;
8891   esac
8892   ;;
8893
8894 gnu*)
8895   version_type=linux
8896   need_lib_prefix=no
8897   need_version=no
8898   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8899   soname_spec='${libname}${release}${shared_ext}$major'
8900   shlibpath_var=LD_LIBRARY_PATH
8901   hardcode_into_libs=yes
8902   ;;
8903
8904 hpux9* | hpux10* | hpux11*)
8905   # Give a soname corresponding to the major version so that dld.sl refuses to
8906   # link against other versions.
8907   version_type=sunos
8908   need_lib_prefix=no
8909   need_version=no
8910   case $host_cpu in
8911   ia64*)
8912     shrext_cmds='.so'
8913     hardcode_into_libs=yes
8914     dynamic_linker="$host_os dld.so"
8915     shlibpath_var=LD_LIBRARY_PATH
8916     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8917     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8918     soname_spec='${libname}${release}${shared_ext}$major'
8919     if test "X$HPUX_IA64_MODE" = X32; then
8920       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8921     else
8922       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8923     fi
8924     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8925     ;;
8926    hppa*64*)
8927      shrext_cmds='.sl'
8928      hardcode_into_libs=yes
8929      dynamic_linker="$host_os dld.sl"
8930      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8931      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8932      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8933      soname_spec='${libname}${release}${shared_ext}$major'
8934      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8935      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8936      ;;
8937    *)
8938     shrext_cmds='.sl'
8939     dynamic_linker="$host_os dld.sl"
8940     shlibpath_var=SHLIB_PATH
8941     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8942     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8943     soname_spec='${libname}${release}${shared_ext}$major'
8944     ;;
8945   esac
8946   # HP-UX runs *really* slowly unless shared libraries are mode 555.
8947   postinstall_cmds='chmod 555 $lib'
8948   ;;
8949
8950 interix3*)
8951   version_type=linux
8952   need_lib_prefix=no
8953   need_version=no
8954   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8955   soname_spec='${libname}${release}${shared_ext}$major'
8956   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8957   shlibpath_var=LD_LIBRARY_PATH
8958   shlibpath_overrides_runpath=no
8959   hardcode_into_libs=yes
8960   ;;
8961
8962 irix5* | irix6* | nonstopux*)
8963   case $host_os in
8964     nonstopux*) version_type=nonstopux ;;
8965     *)
8966         if test "$lt_cv_prog_gnu_ld" = yes; then
8967                 version_type=linux
8968         else
8969                 version_type=irix
8970         fi ;;
8971   esac
8972   need_lib_prefix=no
8973   need_version=no
8974   soname_spec='${libname}${release}${shared_ext}$major'
8975   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8976   case $host_os in
8977   irix5* | nonstopux*)
8978     libsuff= shlibsuff=
8979     ;;
8980   *)
8981     case $LD in # libtool.m4 will add one of these switches to LD
8982     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8983       libsuff= shlibsuff= libmagic=32-bit;;
8984     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8985       libsuff=32 shlibsuff=N32 libmagic=N32;;
8986     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8987       libsuff=64 shlibsuff=64 libmagic=64-bit;;
8988     *) libsuff= shlibsuff= libmagic=never-match;;
8989     esac
8990     ;;
8991   esac
8992   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8993   shlibpath_overrides_runpath=no
8994   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8995   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8996   hardcode_into_libs=yes
8997   ;;
8998
8999 # No shared lib support for Linux oldld, aout, or coff.
9000 linux*oldld* | linux*aout* | linux*coff*)
9001   dynamic_linker=no
9002   ;;
9003
9004 # This must be Linux ELF.
9005 linux*)
9006   version_type=linux
9007   need_lib_prefix=no
9008   need_version=no
9009   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9010   soname_spec='${libname}${release}${shared_ext}$major'
9011   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9012   shlibpath_var=LD_LIBRARY_PATH
9013   shlibpath_overrides_runpath=no
9014   # This implies no fast_install, which is unacceptable.
9015   # Some rework will be needed to allow for fast_install
9016   # before this can be enabled.
9017   hardcode_into_libs=yes
9018
9019   # Append ld.so.conf contents to the search path
9020   if test -f /etc/ld.so.conf; then
9021     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' ' '`
9022     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9023   fi
9024
9025   # We used to test for /lib/ld.so.1 and disable shared libraries on
9026   # powerpc, because MkLinux only supported shared libraries with the
9027   # GNU dynamic linker.  Since this was broken with cross compilers,
9028   # most powerpc-linux boxes support dynamic linking these days and
9029   # people can always --disable-shared, the test was removed, and we
9030   # assume the GNU/Linux dynamic linker is in use.
9031   dynamic_linker='GNU/Linux ld.so'
9032   ;;
9033
9034 knetbsd*-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   shlibpath_overrides_runpath=no
9042   hardcode_into_libs=yes
9043   dynamic_linker='GNU ld.so'
9044   ;;
9045
9046 netbsd*)
9047   version_type=sunos
9048   need_lib_prefix=no
9049   need_version=no
9050   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9051     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9052     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9053     dynamic_linker='NetBSD (a.out) ld.so'
9054   else
9055     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9056     soname_spec='${libname}${release}${shared_ext}$major'
9057     dynamic_linker='NetBSD ld.elf_so'
9058   fi
9059   shlibpath_var=LD_LIBRARY_PATH
9060   shlibpath_overrides_runpath=yes
9061   hardcode_into_libs=yes
9062   ;;
9063
9064 newsos6)
9065   version_type=linux
9066   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9067   shlibpath_var=LD_LIBRARY_PATH
9068   shlibpath_overrides_runpath=yes
9069   ;;
9070
9071 nto-qnx*)
9072   version_type=linux
9073   need_lib_prefix=no
9074   need_version=no
9075   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9076   soname_spec='${libname}${release}${shared_ext}$major'
9077   shlibpath_var=LD_LIBRARY_PATH
9078   shlibpath_overrides_runpath=yes
9079   ;;
9080
9081 openbsd*)
9082   version_type=sunos
9083   sys_lib_dlsearch_path_spec="/usr/lib"
9084   need_lib_prefix=no
9085   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9086   case $host_os in
9087     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9088     *)                         need_version=no  ;;
9089   esac
9090   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9091   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9092   shlibpath_var=LD_LIBRARY_PATH
9093   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9094     case $host_os in
9095       openbsd2.[89] | openbsd2.[89].*)
9096         shlibpath_overrides_runpath=no
9097         ;;
9098       *)
9099         shlibpath_overrides_runpath=yes
9100         ;;
9101       esac
9102   else
9103     shlibpath_overrides_runpath=yes
9104   fi
9105   ;;
9106
9107 os2*)
9108   libname_spec='$name'
9109   shrext_cmds=".dll"
9110   need_lib_prefix=no
9111   library_names_spec='$libname${shared_ext} $libname.a'
9112   dynamic_linker='OS/2 ld.exe'
9113   shlibpath_var=LIBPATH
9114   ;;
9115
9116 osf3* | osf4* | osf5*)
9117   version_type=osf
9118   need_lib_prefix=no
9119   need_version=no
9120   soname_spec='${libname}${release}${shared_ext}$major'
9121   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9122   shlibpath_var=LD_LIBRARY_PATH
9123   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9124   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9125   ;;
9126
9127 solaris*)
9128   version_type=linux
9129   need_lib_prefix=no
9130   need_version=no
9131   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9132   soname_spec='${libname}${release}${shared_ext}$major'
9133   shlibpath_var=LD_LIBRARY_PATH
9134   shlibpath_overrides_runpath=yes
9135   hardcode_into_libs=yes
9136   # ldd complains unless libraries are executable
9137   postinstall_cmds='chmod +x $lib'
9138   ;;
9139
9140 sunos4*)
9141   version_type=sunos
9142   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9143   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9144   shlibpath_var=LD_LIBRARY_PATH
9145   shlibpath_overrides_runpath=yes
9146   if test "$with_gnu_ld" = yes; then
9147     need_lib_prefix=no
9148   fi
9149   need_version=yes
9150   ;;
9151
9152 sysv4 | sysv4.3*)
9153   version_type=linux
9154   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9155   soname_spec='${libname}${release}${shared_ext}$major'
9156   shlibpath_var=LD_LIBRARY_PATH
9157   case $host_vendor in
9158     sni)
9159       shlibpath_overrides_runpath=no
9160       need_lib_prefix=no
9161       export_dynamic_flag_spec='${wl}-Blargedynsym'
9162       runpath_var=LD_RUN_PATH
9163       ;;
9164     siemens)
9165       need_lib_prefix=no
9166       ;;
9167     motorola)
9168       need_lib_prefix=no
9169       need_version=no
9170       shlibpath_overrides_runpath=no
9171       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9172       ;;
9173   esac
9174   ;;
9175
9176 sysv4*MP*)
9177   if test -d /usr/nec ;then
9178     version_type=linux
9179     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9180     soname_spec='$libname${shared_ext}.$major'
9181     shlibpath_var=LD_LIBRARY_PATH
9182   fi
9183   ;;
9184
9185 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9186   version_type=freebsd-elf
9187   need_lib_prefix=no
9188   need_version=no
9189   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9190   soname_spec='${libname}${release}${shared_ext}$major'
9191   shlibpath_var=LD_LIBRARY_PATH
9192   hardcode_into_libs=yes
9193   if test "$with_gnu_ld" = yes; then
9194     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9195     shlibpath_overrides_runpath=no
9196   else
9197     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9198     shlibpath_overrides_runpath=yes
9199     case $host_os in
9200       sco3.2v5*)
9201         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9202         ;;
9203     esac
9204   fi
9205   sys_lib_dlsearch_path_spec='/usr/lib'
9206   ;;
9207
9208 uts4*)
9209   version_type=linux
9210   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9211   soname_spec='${libname}${release}${shared_ext}$major'
9212   shlibpath_var=LD_LIBRARY_PATH
9213   ;;
9214
9215 *)
9216   dynamic_linker=no
9217   ;;
9218 esac
9219 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9220 echo "${ECHO_T}$dynamic_linker" >&6; }
9221 test "$dynamic_linker" = no && can_build_shared=no
9222
9223 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9224 if test "$GCC" = yes; then
9225   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9226 fi
9227
9228
9229 { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9230 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
9231 if test "${libltdl_cv_shlibext+set}" = set; then
9232   echo $ECHO_N "(cached) $ECHO_C" >&6
9233 else
9234
9235 module=yes
9236 eval libltdl_cv_shlibext=$shrext_cmds
9237
9238 fi
9239 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9240 echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
9241 if test -n "$libltdl_cv_shlibext"; then
9242
9243 cat >>confdefs.h <<_ACEOF
9244 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9245 _ACEOF
9246
9247 fi
9248
9249
9250 { echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
9251 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
9252 if test "${libltdl_cv_shlibpath_var+set}" = set; then
9253   echo $ECHO_N "(cached) $ECHO_C" >&6
9254 else
9255   libltdl_cv_shlibpath_var="$shlibpath_var"
9256 fi
9257 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
9258 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
9259 if test -n "$libltdl_cv_shlibpath_var"; then
9260
9261 cat >>confdefs.h <<_ACEOF
9262 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
9263 _ACEOF
9264
9265 fi
9266
9267
9268 { echo "$as_me:$LINENO: checking for the default library search path" >&5
9269 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
9270 if test "${libltdl_cv_sys_search_path+set}" = set; then
9271   echo $ECHO_N "(cached) $ECHO_C" >&6
9272 else
9273   libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9274 fi
9275 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9276 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
9277 if test -n "$libltdl_cv_sys_search_path"; then
9278   sys_search_path=
9279   for dir in $libltdl_cv_sys_search_path; do
9280     if test -z "$sys_search_path"; then
9281       sys_search_path="$dir"
9282     else
9283       sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9284     fi
9285   done
9286
9287 cat >>confdefs.h <<_ACEOF
9288 #define LTDL_SYSSEARCHPATH "$sys_search_path"
9289 _ACEOF
9290
9291 fi
9292
9293 { echo "$as_me:$LINENO: checking for objdir" >&5
9294 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9295 if test "${libltdl_cv_objdir+set}" = set; then
9296   echo $ECHO_N "(cached) $ECHO_C" >&6
9297 else
9298   libltdl_cv_objdir="$objdir"
9299   if test -n "$objdir"; then
9300     :
9301   else
9302     rm -f .libs 2>/dev/null
9303     mkdir .libs 2>/dev/null
9304     if test -d .libs; then
9305       libltdl_cv_objdir=.libs
9306     else
9307       # MS-DOS does not allow filenames that begin with a dot.
9308       libltdl_cv_objdir=_libs
9309     fi
9310   rmdir .libs 2>/dev/null
9311   fi
9312
9313 fi
9314 { echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9315 echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
9316
9317 cat >>confdefs.h <<_ACEOF
9318 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
9319 _ACEOF
9320
9321
9322
9323
9324
9325
9326 # Check for command to grab the raw symbol name followed by C symbol from nm.
9327 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9328 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
9329 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9330   echo $ECHO_N "(cached) $ECHO_C" >&6
9331 else
9332
9333 # These are sane defaults that work on at least a few old systems.
9334 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
9335
9336 # Character class describing NM global symbol codes.
9337 symcode='[BCDEGRST]'
9338
9339 # Regexp to match symbols that can be accessed directly from C.
9340 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9341
9342 # Transform an extracted symbol line into a proper C declaration
9343 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9344
9345 # Transform an extracted symbol line into symbol name and symbol address
9346 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'"
9347
9348 # Define system-specific variables.
9349 case $host_os in
9350 aix*)
9351   symcode='[BCDT]'
9352   ;;
9353 cygwin* | mingw* | pw32*)
9354   symcode='[ABCDGISTW]'
9355   ;;
9356 hpux*) # Its linker distinguishes data from code symbols
9357   if test "$host_cpu" = ia64; then
9358     symcode='[ABCDEGRST]'
9359   fi
9360   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9361   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'"
9362   ;;
9363 linux*)
9364   if test "$host_cpu" = ia64; then
9365     symcode='[ABCDGIRSTW]'
9366     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9367     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'"
9368   fi
9369   ;;
9370 irix* | nonstopux*)
9371   symcode='[BCDEGRST]'
9372   ;;
9373 osf*)
9374   symcode='[BCDEGQRST]'
9375   ;;
9376 solaris*)
9377   symcode='[BDRT]'
9378   ;;
9379 sco3.2v5*)
9380   symcode='[DT]'
9381   ;;
9382 sysv4.2uw2*)
9383   symcode='[DT]'
9384   ;;
9385 sysv5* | sco5v6* | unixware* | OpenUNIX*)
9386   symcode='[ABDT]'
9387   ;;
9388 sysv4)
9389   symcode='[DFNSTU]'
9390   ;;
9391 esac
9392
9393 # Handle CRLF in mingw tool chain
9394 opt_cr=
9395 case $build_os in
9396 mingw*)
9397   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9398   ;;
9399 esac
9400
9401 # If we're using GNU nm, then use its standard symbol codes.
9402 case `$NM -V 2>&1` in
9403 *GNU* | *'with BFD'*)
9404   symcode='[ABCDGIRSTW]' ;;
9405 esac
9406
9407 # Try without a prefix undercore, then with it.
9408 for ac_symprfx in "" "_"; do
9409
9410   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9411   symxfrm="\\1 $ac_symprfx\\2 \\2"
9412
9413   # Write the raw and C identifiers.
9414   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9415
9416   # Check to see that the pipe works correctly.
9417   pipe_works=no
9418
9419   rm -f conftest*
9420   cat > conftest.$ac_ext <<EOF
9421 #ifdef __cplusplus
9422 extern "C" {
9423 #endif
9424 char nm_test_var;
9425 void nm_test_func(){}
9426 #ifdef __cplusplus
9427 }
9428 #endif
9429 int main(){nm_test_var='a';nm_test_func();return(0);}
9430 EOF
9431
9432   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9433   (eval $ac_compile) 2>&5
9434   ac_status=$?
9435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9436   (exit $ac_status); }; then
9437     # Now try to grab the symbols.
9438     nlist=conftest.nm
9439     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
9440   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9441   ac_status=$?
9442   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9443   (exit $ac_status); } && test -s "$nlist"; then
9444       # Try sorting and uniquifying the output.
9445       if sort "$nlist" | uniq > "$nlist"T; then
9446         mv -f "$nlist"T "$nlist"
9447       else
9448         rm -f "$nlist"T
9449       fi
9450
9451       # Make sure that we snagged all the symbols we need.
9452       if grep ' nm_test_var$' "$nlist" >/dev/null; then
9453         if grep ' nm_test_func$' "$nlist" >/dev/null; then
9454           cat <<EOF > conftest.$ac_ext
9455 #ifdef __cplusplus
9456 extern "C" {
9457 #endif
9458
9459 EOF
9460           # Now generate the symbol file.
9461           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9462
9463           cat <<EOF >> conftest.$ac_ext
9464 #if defined (__STDC__) && __STDC__
9465 # define lt_ptr_t void *
9466 #else
9467 # define lt_ptr_t char *
9468 # define const
9469 #endif
9470
9471 /* The mapping between symbol names and symbols. */
9472 const struct {
9473   const char *name;
9474   lt_ptr_t address;
9475 }
9476 lt_preloaded_symbols[] =
9477 {
9478 EOF
9479           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9480           cat <<\EOF >> conftest.$ac_ext
9481   {0, (lt_ptr_t) 0}
9482 };
9483
9484 #ifdef __cplusplus
9485 }
9486 #endif
9487 EOF
9488           # Now try linking the two files.
9489           mv conftest.$ac_objext conftstm.$ac_objext
9490           lt_save_LIBS="$LIBS"
9491           lt_save_CFLAGS="$CFLAGS"
9492           LIBS="conftstm.$ac_objext"
9493           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9494           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9495   (eval $ac_link) 2>&5
9496   ac_status=$?
9497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9498   (exit $ac_status); } && test -s conftest${ac_exeext}; then
9499             pipe_works=yes
9500           fi
9501           LIBS="$lt_save_LIBS"
9502           CFLAGS="$lt_save_CFLAGS"
9503         else
9504           echo "cannot find nm_test_func in $nlist" >&5
9505         fi
9506       else
9507         echo "cannot find nm_test_var in $nlist" >&5
9508       fi
9509     else
9510       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9511     fi
9512   else
9513     echo "$progname: failed program was:" >&5
9514     cat conftest.$ac_ext >&5
9515   fi
9516   rm -f conftest* conftst*
9517
9518   # Do not use the global_symbol_pipe unless it works.
9519   if test "$pipe_works" = yes; then
9520     break
9521   else
9522     lt_cv_sys_global_symbol_pipe=
9523   fi
9524 done
9525
9526 fi
9527
9528 if test -z "$lt_cv_sys_global_symbol_pipe"; then
9529   lt_cv_sys_global_symbol_to_cdecl=
9530 fi
9531 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9532   { echo "$as_me:$LINENO: result: failed" >&5
9533 echo "${ECHO_T}failed" >&6; }
9534 else
9535   { echo "$as_me:$LINENO: result: ok" >&5
9536 echo "${ECHO_T}ok" >&6; }
9537 fi
9538
9539
9540 { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
9541 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
9542 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
9543   echo $ECHO_N "(cached) $ECHO_C" >&6
9544 else
9545   if test -n "$lt_cv_sys_global_symbol_pipe"; then
9546     libltdl_cv_preloaded_symbols=yes
9547   else
9548     libltdl_cv_preloaded_symbols=no
9549   fi
9550
9551 fi
9552 { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
9553 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
9554 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
9555
9556 cat >>confdefs.h <<\_ACEOF
9557 #define HAVE_PRELOADED_SYMBOLS 1
9558 _ACEOF
9559
9560 fi
9561
9562 LIBADD_DL=
9563
9564 ac_ext=c
9565 ac_cpp='$CPP $CPPFLAGS'
9566 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9567 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9568 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9569
9570
9571 { echo "$as_me:$LINENO: checking for shl_load" >&5
9572 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9573 if test "${ac_cv_func_shl_load+set}" = set; then
9574   echo $ECHO_N "(cached) $ECHO_C" >&6
9575 else
9576   cat >conftest.$ac_ext <<_ACEOF
9577 /* confdefs.h.  */
9578 _ACEOF
9579 cat confdefs.h >>conftest.$ac_ext
9580 cat >>conftest.$ac_ext <<_ACEOF
9581 /* end confdefs.h.  */
9582 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9583    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9584 #define shl_load innocuous_shl_load
9585
9586 /* System header to define __stub macros and hopefully few prototypes,
9587     which can conflict with char shl_load (); below.
9588     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9589     <limits.h> exists even on freestanding compilers.  */
9590
9591 #ifdef __STDC__
9592 # include <limits.h>
9593 #else
9594 # include <assert.h>
9595 #endif
9596
9597 #undef shl_load
9598
9599 /* Override any GCC internal prototype to avoid an error.
9600    Use char because int might match the return type of a GCC
9601    builtin and then its argument prototype would still apply.  */
9602 #ifdef __cplusplus
9603 extern "C"
9604 #endif
9605 char shl_load ();
9606 /* The GNU C library defines this for functions which it implements
9607     to always fail with ENOSYS.  Some functions are actually named
9608     something starting with __ and the normal name is an alias.  */
9609 #if defined __stub_shl_load || defined __stub___shl_load
9610 choke me
9611 #endif
9612
9613 int
9614 main ()
9615 {
9616 return shl_load ();
9617   ;
9618   return 0;
9619 }
9620 _ACEOF
9621 rm -f conftest.$ac_objext conftest$ac_exeext
9622 if { (ac_try="$ac_link"
9623 case "(($ac_try" in
9624   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9625   *) ac_try_echo=$ac_try;;
9626 esac
9627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9628   (eval "$ac_link") 2>conftest.er1
9629   ac_status=$?
9630   grep -v '^ *+' conftest.er1 >conftest.err
9631   rm -f conftest.er1
9632   cat conftest.err >&5
9633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9634   (exit $ac_status); } &&
9635          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9636   { (case "(($ac_try" in
9637   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9638   *) ac_try_echo=$ac_try;;
9639 esac
9640 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9641   (eval "$ac_try") 2>&5
9642   ac_status=$?
9643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9644   (exit $ac_status); }; } &&
9645          { ac_try='test -s conftest$ac_exeext'
9646   { (case "(($ac_try" in
9647   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9648   *) ac_try_echo=$ac_try;;
9649 esac
9650 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9651   (eval "$ac_try") 2>&5
9652   ac_status=$?
9653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9654   (exit $ac_status); }; }; then
9655   ac_cv_func_shl_load=yes
9656 else
9657   echo "$as_me: failed program was:" >&5
9658 sed 's/^/| /' conftest.$ac_ext >&5
9659
9660         ac_cv_func_shl_load=no
9661 fi
9662
9663 rm -f core conftest.err conftest.$ac_objext \
9664       conftest$ac_exeext conftest.$ac_ext
9665 fi
9666 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9667 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9668 if test $ac_cv_func_shl_load = yes; then
9669
9670 cat >>confdefs.h <<\_ACEOF
9671 #define HAVE_SHL_LOAD 1
9672 _ACEOF
9673
9674 else
9675   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9676 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9677 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9678   echo $ECHO_N "(cached) $ECHO_C" >&6
9679 else
9680   ac_check_lib_save_LIBS=$LIBS
9681 LIBS="-ldld  $LIBS"
9682 cat >conftest.$ac_ext <<_ACEOF
9683 /* confdefs.h.  */
9684 _ACEOF
9685 cat confdefs.h >>conftest.$ac_ext
9686 cat >>conftest.$ac_ext <<_ACEOF
9687 /* end confdefs.h.  */
9688
9689 /* Override any GCC internal prototype to avoid an error.
9690    Use char because int might match the return type of a GCC
9691    builtin and then its argument prototype would still apply.  */
9692 #ifdef __cplusplus
9693 extern "C"
9694 #endif
9695 char shl_load ();
9696 int
9697 main ()
9698 {
9699 return shl_load ();
9700   ;
9701   return 0;
9702 }
9703 _ACEOF
9704 rm -f conftest.$ac_objext conftest$ac_exeext
9705 if { (ac_try="$ac_link"
9706 case "(($ac_try" in
9707   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9708   *) ac_try_echo=$ac_try;;
9709 esac
9710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9711   (eval "$ac_link") 2>conftest.er1
9712   ac_status=$?
9713   grep -v '^ *+' conftest.er1 >conftest.err
9714   rm -f conftest.er1
9715   cat conftest.err >&5
9716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9717   (exit $ac_status); } &&
9718          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9719   { (case "(($ac_try" in
9720   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9721   *) ac_try_echo=$ac_try;;
9722 esac
9723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9724   (eval "$ac_try") 2>&5
9725   ac_status=$?
9726   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9727   (exit $ac_status); }; } &&
9728          { ac_try='test -s conftest$ac_exeext'
9729   { (case "(($ac_try" in
9730   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9731   *) ac_try_echo=$ac_try;;
9732 esac
9733 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9734   (eval "$ac_try") 2>&5
9735   ac_status=$?
9736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9737   (exit $ac_status); }; }; then
9738   ac_cv_lib_dld_shl_load=yes
9739 else
9740   echo "$as_me: failed program was:" >&5
9741 sed 's/^/| /' conftest.$ac_ext >&5
9742
9743         ac_cv_lib_dld_shl_load=no
9744 fi
9745
9746 rm -f core conftest.err conftest.$ac_objext \
9747       conftest$ac_exeext conftest.$ac_ext
9748 LIBS=$ac_check_lib_save_LIBS
9749 fi
9750 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9751 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9752 if test $ac_cv_lib_dld_shl_load = yes; then
9753
9754 cat >>confdefs.h <<\_ACEOF
9755 #define HAVE_SHL_LOAD 1
9756 _ACEOF
9757
9758         LIBADD_DL="$LIBADD_DL -ldld"
9759 else
9760   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9761 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9762 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9763   echo $ECHO_N "(cached) $ECHO_C" >&6
9764 else
9765   ac_check_lib_save_LIBS=$LIBS
9766 LIBS="-ldl  $LIBS"
9767 cat >conftest.$ac_ext <<_ACEOF
9768 /* confdefs.h.  */
9769 _ACEOF
9770 cat confdefs.h >>conftest.$ac_ext
9771 cat >>conftest.$ac_ext <<_ACEOF
9772 /* end confdefs.h.  */
9773
9774 /* Override any GCC internal prototype to avoid an error.
9775    Use char because int might match the return type of a GCC
9776    builtin and then its argument prototype would still apply.  */
9777 #ifdef __cplusplus
9778 extern "C"
9779 #endif
9780 char dlopen ();
9781 int
9782 main ()
9783 {
9784 return dlopen ();
9785   ;
9786   return 0;
9787 }
9788 _ACEOF
9789 rm -f conftest.$ac_objext conftest$ac_exeext
9790 if { (ac_try="$ac_link"
9791 case "(($ac_try" in
9792   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9793   *) ac_try_echo=$ac_try;;
9794 esac
9795 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9796   (eval "$ac_link") 2>conftest.er1
9797   ac_status=$?
9798   grep -v '^ *+' conftest.er1 >conftest.err
9799   rm -f conftest.er1
9800   cat conftest.err >&5
9801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9802   (exit $ac_status); } &&
9803          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9804   { (case "(($ac_try" in
9805   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9806   *) ac_try_echo=$ac_try;;
9807 esac
9808 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9809   (eval "$ac_try") 2>&5
9810   ac_status=$?
9811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9812   (exit $ac_status); }; } &&
9813          { ac_try='test -s conftest$ac_exeext'
9814   { (case "(($ac_try" in
9815   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9816   *) ac_try_echo=$ac_try;;
9817 esac
9818 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9819   (eval "$ac_try") 2>&5
9820   ac_status=$?
9821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9822   (exit $ac_status); }; }; then
9823   ac_cv_lib_dl_dlopen=yes
9824 else
9825   echo "$as_me: failed program was:" >&5
9826 sed 's/^/| /' conftest.$ac_ext >&5
9827
9828         ac_cv_lib_dl_dlopen=no
9829 fi
9830
9831 rm -f core conftest.err conftest.$ac_objext \
9832       conftest$ac_exeext conftest.$ac_ext
9833 LIBS=$ac_check_lib_save_LIBS
9834 fi
9835 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9836 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9837 if test $ac_cv_lib_dl_dlopen = yes; then
9838
9839 cat >>confdefs.h <<\_ACEOF
9840 #define HAVE_LIBDL 1
9841 _ACEOF
9842
9843                 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
9844 else
9845   cat >conftest.$ac_ext <<_ACEOF
9846 /* confdefs.h.  */
9847 _ACEOF
9848 cat confdefs.h >>conftest.$ac_ext
9849 cat >>conftest.$ac_ext <<_ACEOF
9850 /* end confdefs.h.  */
9851 #if HAVE_DLFCN_H
9852 #  include <dlfcn.h>
9853 #endif
9854
9855 int
9856 main ()
9857 {
9858 dlopen(0, 0);
9859   ;
9860   return 0;
9861 }
9862 _ACEOF
9863 rm -f conftest.$ac_objext conftest$ac_exeext
9864 if { (ac_try="$ac_link"
9865 case "(($ac_try" in
9866   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9867   *) ac_try_echo=$ac_try;;
9868 esac
9869 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9870   (eval "$ac_link") 2>conftest.er1
9871   ac_status=$?
9872   grep -v '^ *+' conftest.er1 >conftest.err
9873   rm -f conftest.er1
9874   cat conftest.err >&5
9875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9876   (exit $ac_status); } &&
9877          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9878   { (case "(($ac_try" in
9879   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9880   *) ac_try_echo=$ac_try;;
9881 esac
9882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9883   (eval "$ac_try") 2>&5
9884   ac_status=$?
9885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9886   (exit $ac_status); }; } &&
9887          { ac_try='test -s conftest$ac_exeext'
9888   { (case "(($ac_try" in
9889   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9890   *) ac_try_echo=$ac_try;;
9891 esac
9892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9893   (eval "$ac_try") 2>&5
9894   ac_status=$?
9895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9896   (exit $ac_status); }; }; then
9897
9898 cat >>confdefs.h <<\_ACEOF
9899 #define HAVE_LIBDL 1
9900 _ACEOF
9901  libltdl_cv_func_dlopen="yes"
9902 else
9903   echo "$as_me: failed program was:" >&5
9904 sed 's/^/| /' conftest.$ac_ext >&5
9905
9906         { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9907 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
9908 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9909   echo $ECHO_N "(cached) $ECHO_C" >&6
9910 else
9911   ac_check_lib_save_LIBS=$LIBS
9912 LIBS="-lsvld  $LIBS"
9913 cat >conftest.$ac_ext <<_ACEOF
9914 /* confdefs.h.  */
9915 _ACEOF
9916 cat confdefs.h >>conftest.$ac_ext
9917 cat >>conftest.$ac_ext <<_ACEOF
9918 /* end confdefs.h.  */
9919
9920 /* Override any GCC internal prototype to avoid an error.
9921    Use char because int might match the return type of a GCC
9922    builtin and then its argument prototype would still apply.  */
9923 #ifdef __cplusplus
9924 extern "C"
9925 #endif
9926 char dlopen ();
9927 int
9928 main ()
9929 {
9930 return dlopen ();
9931   ;
9932   return 0;
9933 }
9934 _ACEOF
9935 rm -f conftest.$ac_objext conftest$ac_exeext
9936 if { (ac_try="$ac_link"
9937 case "(($ac_try" in
9938   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9939   *) ac_try_echo=$ac_try;;
9940 esac
9941 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9942   (eval "$ac_link") 2>conftest.er1
9943   ac_status=$?
9944   grep -v '^ *+' conftest.er1 >conftest.err
9945   rm -f conftest.er1
9946   cat conftest.err >&5
9947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9948   (exit $ac_status); } &&
9949          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9950   { (case "(($ac_try" in
9951   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9952   *) ac_try_echo=$ac_try;;
9953 esac
9954 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9955   (eval "$ac_try") 2>&5
9956   ac_status=$?
9957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9958   (exit $ac_status); }; } &&
9959          { ac_try='test -s conftest$ac_exeext'
9960   { (case "(($ac_try" in
9961   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9962   *) ac_try_echo=$ac_try;;
9963 esac
9964 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9965   (eval "$ac_try") 2>&5
9966   ac_status=$?
9967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9968   (exit $ac_status); }; }; then
9969   ac_cv_lib_svld_dlopen=yes
9970 else
9971   echo "$as_me: failed program was:" >&5
9972 sed 's/^/| /' conftest.$ac_ext >&5
9973
9974         ac_cv_lib_svld_dlopen=no
9975 fi
9976
9977 rm -f core conftest.err conftest.$ac_objext \
9978       conftest$ac_exeext conftest.$ac_ext
9979 LIBS=$ac_check_lib_save_LIBS
9980 fi
9981 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9982 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
9983 if test $ac_cv_lib_svld_dlopen = yes; then
9984
9985 cat >>confdefs.h <<\_ACEOF
9986 #define HAVE_LIBDL 1
9987 _ACEOF
9988
9989                     LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
9990 else
9991   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9992 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
9993 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9994   echo $ECHO_N "(cached) $ECHO_C" >&6
9995 else
9996   ac_check_lib_save_LIBS=$LIBS
9997 LIBS="-ldld  $LIBS"
9998 cat >conftest.$ac_ext <<_ACEOF
9999 /* confdefs.h.  */
10000 _ACEOF
10001 cat confdefs.h >>conftest.$ac_ext
10002 cat >>conftest.$ac_ext <<_ACEOF
10003 /* end confdefs.h.  */
10004
10005 /* Override any GCC internal prototype to avoid an error.
10006    Use char because int might match the return type of a GCC
10007    builtin and then its argument prototype would still apply.  */
10008 #ifdef __cplusplus
10009 extern "C"
10010 #endif
10011 char dld_link ();
10012 int
10013 main ()
10014 {
10015 return dld_link ();
10016   ;
10017   return 0;
10018 }
10019 _ACEOF
10020 rm -f conftest.$ac_objext conftest$ac_exeext
10021 if { (ac_try="$ac_link"
10022 case "(($ac_try" in
10023   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10024   *) ac_try_echo=$ac_try;;
10025 esac
10026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10027   (eval "$ac_link") 2>conftest.er1
10028   ac_status=$?
10029   grep -v '^ *+' conftest.er1 >conftest.err
10030   rm -f conftest.er1
10031   cat conftest.err >&5
10032   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10033   (exit $ac_status); } &&
10034          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10035   { (case "(($ac_try" in
10036   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10037   *) ac_try_echo=$ac_try;;
10038 esac
10039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10040   (eval "$ac_try") 2>&5
10041   ac_status=$?
10042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10043   (exit $ac_status); }; } &&
10044          { ac_try='test -s conftest$ac_exeext'
10045   { (case "(($ac_try" in
10046   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10047   *) ac_try_echo=$ac_try;;
10048 esac
10049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10050   (eval "$ac_try") 2>&5
10051   ac_status=$?
10052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10053   (exit $ac_status); }; }; then
10054   ac_cv_lib_dld_dld_link=yes
10055 else
10056   echo "$as_me: failed program was:" >&5
10057 sed 's/^/| /' conftest.$ac_ext >&5
10058
10059         ac_cv_lib_dld_dld_link=no
10060 fi
10061
10062 rm -f core conftest.err conftest.$ac_objext \
10063       conftest$ac_exeext conftest.$ac_ext
10064 LIBS=$ac_check_lib_save_LIBS
10065 fi
10066 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10067 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10068 if test $ac_cv_lib_dld_dld_link = yes; then
10069
10070 cat >>confdefs.h <<\_ACEOF
10071 #define HAVE_DLD 1
10072 _ACEOF
10073
10074                 LIBADD_DL="$LIBADD_DL -ldld"
10075 else
10076   { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
10077 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
10078 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
10079   echo $ECHO_N "(cached) $ECHO_C" >&6
10080 else
10081   cat >conftest.$ac_ext <<_ACEOF
10082 /* confdefs.h.  */
10083 _ACEOF
10084 cat confdefs.h >>conftest.$ac_ext
10085 cat >>conftest.$ac_ext <<_ACEOF
10086 /* end confdefs.h.  */
10087 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10088    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10089 #define _dyld_func_lookup innocuous__dyld_func_lookup
10090
10091 /* System header to define __stub macros and hopefully few prototypes,
10092     which can conflict with char _dyld_func_lookup (); below.
10093     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10094     <limits.h> exists even on freestanding compilers.  */
10095
10096 #ifdef __STDC__
10097 # include <limits.h>
10098 #else
10099 # include <assert.h>
10100 #endif
10101
10102 #undef _dyld_func_lookup
10103
10104 /* Override any GCC internal prototype to avoid an error.
10105    Use char because int might match the return type of a GCC
10106    builtin and then its argument prototype would still apply.  */
10107 #ifdef __cplusplus
10108 extern "C"
10109 #endif
10110 char _dyld_func_lookup ();
10111 /* The GNU C library defines this for functions which it implements
10112     to always fail with ENOSYS.  Some functions are actually named
10113     something starting with __ and the normal name is an alias.  */
10114 #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
10115 choke me
10116 #endif
10117
10118 int
10119 main ()
10120 {
10121 return _dyld_func_lookup ();
10122   ;
10123   return 0;
10124 }
10125 _ACEOF
10126 rm -f conftest.$ac_objext conftest$ac_exeext
10127 if { (ac_try="$ac_link"
10128 case "(($ac_try" in
10129   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10130   *) ac_try_echo=$ac_try;;
10131 esac
10132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10133   (eval "$ac_link") 2>conftest.er1
10134   ac_status=$?
10135   grep -v '^ *+' conftest.er1 >conftest.err
10136   rm -f conftest.er1
10137   cat conftest.err >&5
10138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10139   (exit $ac_status); } &&
10140          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10141   { (case "(($ac_try" in
10142   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10143   *) ac_try_echo=$ac_try;;
10144 esac
10145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10146   (eval "$ac_try") 2>&5
10147   ac_status=$?
10148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10149   (exit $ac_status); }; } &&
10150          { ac_try='test -s conftest$ac_exeext'
10151   { (case "(($ac_try" in
10152   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10153   *) ac_try_echo=$ac_try;;
10154 esac
10155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10156   (eval "$ac_try") 2>&5
10157   ac_status=$?
10158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10159   (exit $ac_status); }; }; then
10160   ac_cv_func__dyld_func_lookup=yes
10161 else
10162   echo "$as_me: failed program was:" >&5
10163 sed 's/^/| /' conftest.$ac_ext >&5
10164
10165         ac_cv_func__dyld_func_lookup=no
10166 fi
10167
10168 rm -f core conftest.err conftest.$ac_objext \
10169       conftest$ac_exeext conftest.$ac_ext
10170 fi
10171 { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10172 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
10173 if test $ac_cv_func__dyld_func_lookup = yes; then
10174
10175 cat >>confdefs.h <<\_ACEOF
10176 #define HAVE_DYLD 1
10177 _ACEOF
10178
10179 fi
10180
10181
10182 fi
10183
10184
10185 fi
10186
10187
10188 fi
10189
10190 rm -f core conftest.err conftest.$ac_objext \
10191       conftest$ac_exeext conftest.$ac_ext
10192
10193 fi
10194
10195
10196 fi
10197
10198
10199 fi
10200
10201
10202 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10203 then
10204   lt_save_LIBS="$LIBS"
10205   LIBS="$LIBS $LIBADD_DL"
10206
10207 for ac_func in dlerror
10208 do
10209 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10210 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10211 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10212 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10213   echo $ECHO_N "(cached) $ECHO_C" >&6
10214 else
10215   cat >conftest.$ac_ext <<_ACEOF
10216 /* confdefs.h.  */
10217 _ACEOF
10218 cat confdefs.h >>conftest.$ac_ext
10219 cat >>conftest.$ac_ext <<_ACEOF
10220 /* end confdefs.h.  */
10221 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10222    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10223 #define $ac_func innocuous_$ac_func
10224
10225 /* System header to define __stub macros and hopefully few prototypes,
10226     which can conflict with char $ac_func (); below.
10227     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10228     <limits.h> exists even on freestanding compilers.  */
10229
10230 #ifdef __STDC__
10231 # include <limits.h>
10232 #else
10233 # include <assert.h>
10234 #endif
10235
10236 #undef $ac_func
10237
10238 /* Override any GCC internal prototype to avoid an error.
10239    Use char because int might match the return type of a GCC
10240    builtin and then its argument prototype would still apply.  */
10241 #ifdef __cplusplus
10242 extern "C"
10243 #endif
10244 char $ac_func ();
10245 /* The GNU C library defines this for functions which it implements
10246     to always fail with ENOSYS.  Some functions are actually named
10247     something starting with __ and the normal name is an alias.  */
10248 #if defined __stub_$ac_func || defined __stub___$ac_func
10249 choke me
10250 #endif
10251
10252 int
10253 main ()
10254 {
10255 return $ac_func ();
10256   ;
10257   return 0;
10258 }
10259 _ACEOF
10260 rm -f conftest.$ac_objext conftest$ac_exeext
10261 if { (ac_try="$ac_link"
10262 case "(($ac_try" in
10263   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10264   *) ac_try_echo=$ac_try;;
10265 esac
10266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10267   (eval "$ac_link") 2>conftest.er1
10268   ac_status=$?
10269   grep -v '^ *+' conftest.er1 >conftest.err
10270   rm -f conftest.er1
10271   cat conftest.err >&5
10272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10273   (exit $ac_status); } &&
10274          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10275   { (case "(($ac_try" in
10276   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10277   *) ac_try_echo=$ac_try;;
10278 esac
10279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10280   (eval "$ac_try") 2>&5
10281   ac_status=$?
10282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10283   (exit $ac_status); }; } &&
10284          { ac_try='test -s conftest$ac_exeext'
10285   { (case "(($ac_try" in
10286   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10287   *) ac_try_echo=$ac_try;;
10288 esac
10289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10290   (eval "$ac_try") 2>&5
10291   ac_status=$?
10292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10293   (exit $ac_status); }; }; then
10294   eval "$as_ac_var=yes"
10295 else
10296   echo "$as_me: failed program was:" >&5
10297 sed 's/^/| /' conftest.$ac_ext >&5
10298
10299         eval "$as_ac_var=no"
10300 fi
10301
10302 rm -f core conftest.err conftest.$ac_objext \
10303       conftest$ac_exeext conftest.$ac_ext
10304 fi
10305 ac_res=`eval echo '${'$as_ac_var'}'`
10306                { echo "$as_me:$LINENO: result: $ac_res" >&5
10307 echo "${ECHO_T}$ac_res" >&6; }
10308 if test `eval echo '${'$as_ac_var'}'` = yes; then
10309   cat >>confdefs.h <<_ACEOF
10310 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10311 _ACEOF
10312
10313 fi
10314 done
10315
10316   LIBS="$lt_save_LIBS"
10317 fi
10318 ac_ext=c
10319 ac_cpp='$CPP $CPPFLAGS'
10320 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10321 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10322 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10323
10324
10325
10326 { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10327 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
10328 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10329   echo $ECHO_N "(cached) $ECHO_C" >&6
10330 else
10331   ac_cv_sys_symbol_underscore=no
10332   cat > conftest.$ac_ext <<EOF
10333 void nm_test_func(){}
10334 int main(){nm_test_func;return 0;}
10335 EOF
10336   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10337   (eval $ac_compile) 2>&5
10338   ac_status=$?
10339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10340   (exit $ac_status); }; then
10341     # Now try to grab the symbols.
10342     ac_nlist=conftest.nm
10343     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
10344   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10345   ac_status=$?
10346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10347   (exit $ac_status); } && test -s "$ac_nlist"; then
10348       # See whether the symbols have a leading underscore.
10349       if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10350         ac_cv_sys_symbol_underscore=yes
10351       else
10352         if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10353           :
10354         else
10355           echo "configure: cannot find nm_test_func in $ac_nlist" >&5
10356         fi
10357       fi
10358     else
10359       echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
10360     fi
10361   else
10362     echo "configure: failed program was:" >&5
10363     cat conftest.c >&5
10364   fi
10365   rm -rf conftest*
10366
10367 fi
10368 { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
10369 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
10370
10371
10372 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10373   if test x"$libltdl_cv_func_dlopen" = xyes ||
10374      test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
10375         { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
10376 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
10377 if test "${libltdl_cv_need_uscore+set}" = set; then
10378   echo $ECHO_N "(cached) $ECHO_C" >&6
10379 else
10380   libltdl_cv_need_uscore=unknown
10381           save_LIBS="$LIBS"
10382           LIBS="$LIBS $LIBADD_DL"
10383           if test "$cross_compiling" = yes; then :
10384   libltdl_cv_need_uscore=cross
10385 else
10386   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10387   lt_status=$lt_dlunknown
10388   cat > conftest.$ac_ext <<EOF
10389 #line 10387 "configure"
10390 #include "confdefs.h"
10391
10392 #if HAVE_DLFCN_H
10393 #include <dlfcn.h>
10394 #endif
10395
10396 #include <stdio.h>
10397
10398 #ifdef RTLD_GLOBAL
10399 #  define LT_DLGLOBAL           RTLD_GLOBAL
10400 #else
10401 #  ifdef DL_GLOBAL
10402 #    define LT_DLGLOBAL         DL_GLOBAL
10403 #  else
10404 #    define LT_DLGLOBAL         0
10405 #  endif
10406 #endif
10407
10408 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10409    find out it does not work in some platform. */
10410 #ifndef LT_DLLAZY_OR_NOW
10411 #  ifdef RTLD_LAZY
10412 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10413 #  else
10414 #    ifdef DL_LAZY
10415 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10416 #    else
10417 #      ifdef RTLD_NOW
10418 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10419 #      else
10420 #        ifdef DL_NOW
10421 #          define LT_DLLAZY_OR_NOW      DL_NOW
10422 #        else
10423 #          define LT_DLLAZY_OR_NOW      0
10424 #        endif
10425 #      endif
10426 #    endif
10427 #  endif
10428 #endif
10429
10430 #ifdef __cplusplus
10431 extern "C" void exit (int);
10432 #endif
10433
10434 void fnord() { int i=42;}
10435 int main ()
10436 {
10437   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10438   int status = $lt_dlunknown;
10439
10440   if (self)
10441     {
10442       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10443       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10444       /* dlclose (self); */
10445     }
10446   else
10447     puts (dlerror ());
10448
10449     exit (status);
10450 }
10451 EOF
10452   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10453   (eval $ac_link) 2>&5
10454   ac_status=$?
10455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10456   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10457     (./conftest; exit; ) >&5 2>/dev/null
10458     lt_status=$?
10459     case x$lt_status in
10460       x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
10461       x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
10462       x$lt_dlunknown|x*)  ;;
10463     esac
10464   else :
10465     # compilation failed
10466
10467   fi
10468 fi
10469 rm -fr conftest*
10470
10471           LIBS="$save_LIBS"
10472
10473 fi
10474 { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
10475 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
10476   fi
10477 fi
10478
10479 if test x"$libltdl_cv_need_uscore" = xyes; then
10480
10481 cat >>confdefs.h <<\_ACEOF
10482 #define NEED_USCORE 1
10483 _ACEOF
10484
10485 fi
10486
10487
10488 { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
10489 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
10490 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
10491   echo $ECHO_N "(cached) $ECHO_C" >&6
10492 else
10493   # PORTME does your system automatically load deplibs for dlopen?
10494   # or its logical equivalent (e.g. shl_load for HP-UX < 11)
10495   # For now, we just catch OSes we know something about -- in the
10496   # future, we'll try test this programmatically.
10497   libltdl_cv_sys_dlopen_deplibs=unknown
10498   case "$host_os" in
10499   aix3*|aix4.1.*|aix4.2.*)
10500     # Unknown whether this is true for these versions of AIX, but
10501     # we want this `case' here to explicitly catch those versions.
10502     libltdl_cv_sys_dlopen_deplibs=unknown
10503     ;;
10504   aix[45]*)
10505     libltdl_cv_sys_dlopen_deplibs=yes
10506     ;;
10507   darwin*)
10508     # Assuming the user has installed a libdl from somewhere, this is true
10509     # If you are looking for one http://www.opendarwin.org/projects/dlcompat
10510     libltdl_cv_sys_dlopen_deplibs=yes
10511     ;;
10512   gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
10513     # GNU and its variants, using gnu ld.so (Glibc)
10514     libltdl_cv_sys_dlopen_deplibs=yes
10515     ;;
10516   hpux10*|hpux11*)
10517     libltdl_cv_sys_dlopen_deplibs=yes
10518     ;;
10519   interix*)
10520     libltdl_cv_sys_dlopen_deplibs=yes
10521     ;;
10522   irix[12345]*|irix6.[01]*)
10523     # Catch all versions of IRIX before 6.2, and indicate that we don't
10524     # know how it worked for any of those versions.
10525     libltdl_cv_sys_dlopen_deplibs=unknown
10526     ;;
10527   irix*)
10528     # The case above catches anything before 6.2, and it's known that
10529     # at 6.2 and later dlopen does load deplibs.
10530     libltdl_cv_sys_dlopen_deplibs=yes
10531     ;;
10532   netbsd*)
10533     libltdl_cv_sys_dlopen_deplibs=yes
10534     ;;
10535   openbsd*)
10536     libltdl_cv_sys_dlopen_deplibs=yes
10537     ;;
10538   osf[1234]*)
10539     # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
10540     # it did *not* use an RPATH in a shared library to find objects the
10541     # library depends on, so we explicitly say `no'.
10542     libltdl_cv_sys_dlopen_deplibs=no
10543     ;;
10544   osf5.0|osf5.0a|osf5.1)
10545     # dlopen *does* load deplibs and with the right loader patch applied
10546     # it even uses RPATH in a shared library to search for shared objects
10547     # that the library depends on, but there's no easy way to know if that
10548     # patch is installed.  Since this is the case, all we can really
10549     # say is unknown -- it depends on the patch being installed.  If
10550     # it is, this changes to `yes'.  Without it, it would be `no'.
10551     libltdl_cv_sys_dlopen_deplibs=unknown
10552     ;;
10553   osf*)
10554     # the two cases above should catch all versions of osf <= 5.1.  Read
10555     # the comments above for what we know about them.
10556     # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
10557     # is used to find them so we can finally say `yes'.
10558     libltdl_cv_sys_dlopen_deplibs=yes
10559     ;;
10560   solaris*)
10561     libltdl_cv_sys_dlopen_deplibs=yes
10562     ;;
10563   sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10564     libltdl_cv_sys_dlopen_deplibs=yes
10565     ;;
10566   esac
10567
10568 fi
10569 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
10570 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
10571 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
10572
10573 cat >>confdefs.h <<\_ACEOF
10574 #define LTDL_DLOPEN_DEPLIBS 1
10575 _ACEOF
10576
10577 fi
10578
10579
10580 for ac_header in argz.h
10581 do
10582 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10583 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10584   { echo "$as_me:$LINENO: checking for $ac_header" >&5
10585 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10586 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10587   echo $ECHO_N "(cached) $ECHO_C" >&6
10588 fi
10589 ac_res=`eval echo '${'$as_ac_Header'}'`
10590                { echo "$as_me:$LINENO: result: $ac_res" >&5
10591 echo "${ECHO_T}$ac_res" >&6; }
10592 else
10593   # Is the header compilable?
10594 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10595 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10596 cat >conftest.$ac_ext <<_ACEOF
10597 /* confdefs.h.  */
10598 _ACEOF
10599 cat confdefs.h >>conftest.$ac_ext
10600 cat >>conftest.$ac_ext <<_ACEOF
10601 /* end confdefs.h.  */
10602 $ac_includes_default
10603 #include <$ac_header>
10604 _ACEOF
10605 rm -f conftest.$ac_objext
10606 if { (ac_try="$ac_compile"
10607 case "(($ac_try" in
10608   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10609   *) ac_try_echo=$ac_try;;
10610 esac
10611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10612   (eval "$ac_compile") 2>conftest.er1
10613   ac_status=$?
10614   grep -v '^ *+' conftest.er1 >conftest.err
10615   rm -f conftest.er1
10616   cat conftest.err >&5
10617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10618   (exit $ac_status); } &&
10619          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10620   { (case "(($ac_try" in
10621   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10622   *) ac_try_echo=$ac_try;;
10623 esac
10624 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10625   (eval "$ac_try") 2>&5
10626   ac_status=$?
10627   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10628   (exit $ac_status); }; } &&
10629          { ac_try='test -s conftest.$ac_objext'
10630   { (case "(($ac_try" in
10631   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10632   *) ac_try_echo=$ac_try;;
10633 esac
10634 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10635   (eval "$ac_try") 2>&5
10636   ac_status=$?
10637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10638   (exit $ac_status); }; }; then
10639   ac_header_compiler=yes
10640 else
10641   echo "$as_me: failed program was:" >&5
10642 sed 's/^/| /' conftest.$ac_ext >&5
10643
10644         ac_header_compiler=no
10645 fi
10646
10647 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10648 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10649 echo "${ECHO_T}$ac_header_compiler" >&6; }
10650
10651 # Is the header present?
10652 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10653 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10654 cat >conftest.$ac_ext <<_ACEOF
10655 /* confdefs.h.  */
10656 _ACEOF
10657 cat confdefs.h >>conftest.$ac_ext
10658 cat >>conftest.$ac_ext <<_ACEOF
10659 /* end confdefs.h.  */
10660 #include <$ac_header>
10661 _ACEOF
10662 if { (ac_try="$ac_cpp conftest.$ac_ext"
10663 case "(($ac_try" in
10664   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10665   *) ac_try_echo=$ac_try;;
10666 esac
10667 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10668   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10669   ac_status=$?
10670   grep -v '^ *+' conftest.er1 >conftest.err
10671   rm -f conftest.er1
10672   cat conftest.err >&5
10673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10674   (exit $ac_status); } >/dev/null; then
10675   if test -s conftest.err; then
10676     ac_cpp_err=$ac_c_preproc_warn_flag
10677     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10678   else
10679     ac_cpp_err=
10680   fi
10681 else
10682   ac_cpp_err=yes
10683 fi
10684 if test -z "$ac_cpp_err"; then
10685   ac_header_preproc=yes
10686 else
10687   echo "$as_me: failed program was:" >&5
10688 sed 's/^/| /' conftest.$ac_ext >&5
10689
10690   ac_header_preproc=no
10691 fi
10692
10693 rm -f conftest.err conftest.$ac_ext
10694 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10695 echo "${ECHO_T}$ac_header_preproc" >&6; }
10696
10697 # So?  What about this header?
10698 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10699   yes:no: )
10700     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10701 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10702     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10703 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10704     ac_header_preproc=yes
10705     ;;
10706   no:yes:* )
10707     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10708 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10709     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10710 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10711     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10712 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10713     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10714 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10715     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10716 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10717     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10718 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10719     ( cat <<\_ASBOX
10720 ## ------------------------------------ ##
10721 ## Report this to http://llvm.org/bugs/ ##
10722 ## ------------------------------------ ##
10723 _ASBOX
10724      ) | sed "s/^/$as_me: WARNING:     /" >&2
10725     ;;
10726 esac
10727 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10728 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10729 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10730   echo $ECHO_N "(cached) $ECHO_C" >&6
10731 else
10732   eval "$as_ac_Header=\$ac_header_preproc"
10733 fi
10734 ac_res=`eval echo '${'$as_ac_Header'}'`
10735                { echo "$as_me:$LINENO: result: $ac_res" >&5
10736 echo "${ECHO_T}$ac_res" >&6; }
10737
10738 fi
10739 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10740   cat >>confdefs.h <<_ACEOF
10741 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10742 _ACEOF
10743
10744 fi
10745
10746 done
10747
10748
10749 { echo "$as_me:$LINENO: checking for error_t" >&5
10750 echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
10751 if test "${ac_cv_type_error_t+set}" = set; then
10752   echo $ECHO_N "(cached) $ECHO_C" >&6
10753 else
10754   cat >conftest.$ac_ext <<_ACEOF
10755 /* confdefs.h.  */
10756 _ACEOF
10757 cat confdefs.h >>conftest.$ac_ext
10758 cat >>conftest.$ac_ext <<_ACEOF
10759 /* end confdefs.h.  */
10760 #if HAVE_ARGZ_H
10761 #  include <argz.h>
10762 #endif
10763
10764 typedef error_t ac__type_new_;
10765 int
10766 main ()
10767 {
10768 if ((ac__type_new_ *) 0)
10769   return 0;
10770 if (sizeof (ac__type_new_))
10771   return 0;
10772   ;
10773   return 0;
10774 }
10775 _ACEOF
10776 rm -f conftest.$ac_objext
10777 if { (ac_try="$ac_compile"
10778 case "(($ac_try" in
10779   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10780   *) ac_try_echo=$ac_try;;
10781 esac
10782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10783   (eval "$ac_compile") 2>conftest.er1
10784   ac_status=$?
10785   grep -v '^ *+' conftest.er1 >conftest.err
10786   rm -f conftest.er1
10787   cat conftest.err >&5
10788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10789   (exit $ac_status); } &&
10790          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10791   { (case "(($ac_try" in
10792   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10793   *) ac_try_echo=$ac_try;;
10794 esac
10795 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10796   (eval "$ac_try") 2>&5
10797   ac_status=$?
10798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10799   (exit $ac_status); }; } &&
10800          { ac_try='test -s conftest.$ac_objext'
10801   { (case "(($ac_try" in
10802   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10803   *) ac_try_echo=$ac_try;;
10804 esac
10805 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10806   (eval "$ac_try") 2>&5
10807   ac_status=$?
10808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10809   (exit $ac_status); }; }; then
10810   ac_cv_type_error_t=yes
10811 else
10812   echo "$as_me: failed program was:" >&5
10813 sed 's/^/| /' conftest.$ac_ext >&5
10814
10815         ac_cv_type_error_t=no
10816 fi
10817
10818 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10819 fi
10820 { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
10821 echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
10822 if test $ac_cv_type_error_t = yes; then
10823
10824 cat >>confdefs.h <<_ACEOF
10825 #define HAVE_ERROR_T 1
10826 _ACEOF
10827
10828
10829 else
10830
10831 cat >>confdefs.h <<\_ACEOF
10832 #define error_t int
10833 _ACEOF
10834
10835 fi
10836
10837
10838
10839
10840
10841
10842
10843 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
10844 do
10845 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10846 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10847 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10848 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10849   echo $ECHO_N "(cached) $ECHO_C" >&6
10850 else
10851   cat >conftest.$ac_ext <<_ACEOF
10852 /* confdefs.h.  */
10853 _ACEOF
10854 cat confdefs.h >>conftest.$ac_ext
10855 cat >>conftest.$ac_ext <<_ACEOF
10856 /* end confdefs.h.  */
10857 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10858    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10859 #define $ac_func innocuous_$ac_func
10860
10861 /* System header to define __stub macros and hopefully few prototypes,
10862     which can conflict with char $ac_func (); below.
10863     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10864     <limits.h> exists even on freestanding compilers.  */
10865
10866 #ifdef __STDC__
10867 # include <limits.h>
10868 #else
10869 # include <assert.h>
10870 #endif
10871
10872 #undef $ac_func
10873
10874 /* Override any GCC internal prototype to avoid an error.
10875    Use char because int might match the return type of a GCC
10876    builtin and then its argument prototype would still apply.  */
10877 #ifdef __cplusplus
10878 extern "C"
10879 #endif
10880 char $ac_func ();
10881 /* The GNU C library defines this for functions which it implements
10882     to always fail with ENOSYS.  Some functions are actually named
10883     something starting with __ and the normal name is an alias.  */
10884 #if defined __stub_$ac_func || defined __stub___$ac_func
10885 choke me
10886 #endif
10887
10888 int
10889 main ()
10890 {
10891 return $ac_func ();
10892   ;
10893   return 0;
10894 }
10895 _ACEOF
10896 rm -f conftest.$ac_objext conftest$ac_exeext
10897 if { (ac_try="$ac_link"
10898 case "(($ac_try" in
10899   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10900   *) ac_try_echo=$ac_try;;
10901 esac
10902 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10903   (eval "$ac_link") 2>conftest.er1
10904   ac_status=$?
10905   grep -v '^ *+' conftest.er1 >conftest.err
10906   rm -f conftest.er1
10907   cat conftest.err >&5
10908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10909   (exit $ac_status); } &&
10910          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10911   { (case "(($ac_try" in
10912   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10913   *) ac_try_echo=$ac_try;;
10914 esac
10915 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10916   (eval "$ac_try") 2>&5
10917   ac_status=$?
10918   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10919   (exit $ac_status); }; } &&
10920          { ac_try='test -s conftest$ac_exeext'
10921   { (case "(($ac_try" in
10922   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10923   *) ac_try_echo=$ac_try;;
10924 esac
10925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10926   (eval "$ac_try") 2>&5
10927   ac_status=$?
10928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10929   (exit $ac_status); }; }; then
10930   eval "$as_ac_var=yes"
10931 else
10932   echo "$as_me: failed program was:" >&5
10933 sed 's/^/| /' conftest.$ac_ext >&5
10934
10935         eval "$as_ac_var=no"
10936 fi
10937
10938 rm -f core conftest.err conftest.$ac_objext \
10939       conftest$ac_exeext conftest.$ac_ext
10940 fi
10941 ac_res=`eval echo '${'$as_ac_var'}'`
10942                { echo "$as_me:$LINENO: result: $ac_res" >&5
10943 echo "${ECHO_T}$ac_res" >&6; }
10944 if test `eval echo '${'$as_ac_var'}'` = yes; then
10945   cat >>confdefs.h <<_ACEOF
10946 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10947 _ACEOF
10948
10949 fi
10950 done
10951
10952
10953
10954
10955
10956
10957
10958
10959
10960
10961
10962
10963
10964
10965
10966
10967
10968
10969
10970
10971
10972
10973
10974
10975
10976
10977
10978
10979 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
10980                   stdio.h unistd.h
10981 do
10982 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10983 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10984   { echo "$as_me:$LINENO: checking for $ac_header" >&5
10985 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10986 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10987   echo $ECHO_N "(cached) $ECHO_C" >&6
10988 fi
10989 ac_res=`eval echo '${'$as_ac_Header'}'`
10990                { echo "$as_me:$LINENO: result: $ac_res" >&5
10991 echo "${ECHO_T}$ac_res" >&6; }
10992 else
10993   # Is the header compilable?
10994 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10995 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10996 cat >conftest.$ac_ext <<_ACEOF
10997 /* confdefs.h.  */
10998 _ACEOF
10999 cat confdefs.h >>conftest.$ac_ext
11000 cat >>conftest.$ac_ext <<_ACEOF
11001 /* end confdefs.h.  */
11002 $ac_includes_default
11003 #include <$ac_header>
11004 _ACEOF
11005 rm -f conftest.$ac_objext
11006 if { (ac_try="$ac_compile"
11007 case "(($ac_try" in
11008   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11009   *) ac_try_echo=$ac_try;;
11010 esac
11011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11012   (eval "$ac_compile") 2>conftest.er1
11013   ac_status=$?
11014   grep -v '^ *+' conftest.er1 >conftest.err
11015   rm -f conftest.er1
11016   cat conftest.err >&5
11017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11018   (exit $ac_status); } &&
11019          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11020   { (case "(($ac_try" in
11021   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11022   *) ac_try_echo=$ac_try;;
11023 esac
11024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11025   (eval "$ac_try") 2>&5
11026   ac_status=$?
11027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11028   (exit $ac_status); }; } &&
11029          { ac_try='test -s conftest.$ac_objext'
11030   { (case "(($ac_try" in
11031   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11032   *) ac_try_echo=$ac_try;;
11033 esac
11034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11035   (eval "$ac_try") 2>&5
11036   ac_status=$?
11037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11038   (exit $ac_status); }; }; then
11039   ac_header_compiler=yes
11040 else
11041   echo "$as_me: failed program was:" >&5
11042 sed 's/^/| /' conftest.$ac_ext >&5
11043
11044         ac_header_compiler=no
11045 fi
11046
11047 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11048 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11049 echo "${ECHO_T}$ac_header_compiler" >&6; }
11050
11051 # Is the header present?
11052 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11053 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11054 cat >conftest.$ac_ext <<_ACEOF
11055 /* confdefs.h.  */
11056 _ACEOF
11057 cat confdefs.h >>conftest.$ac_ext
11058 cat >>conftest.$ac_ext <<_ACEOF
11059 /* end confdefs.h.  */
11060 #include <$ac_header>
11061 _ACEOF
11062 if { (ac_try="$ac_cpp conftest.$ac_ext"
11063 case "(($ac_try" in
11064   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11065   *) ac_try_echo=$ac_try;;
11066 esac
11067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11068   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11069   ac_status=$?
11070   grep -v '^ *+' conftest.er1 >conftest.err
11071   rm -f conftest.er1
11072   cat conftest.err >&5
11073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11074   (exit $ac_status); } >/dev/null; then
11075   if test -s conftest.err; then
11076     ac_cpp_err=$ac_c_preproc_warn_flag
11077     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11078   else
11079     ac_cpp_err=
11080   fi
11081 else
11082   ac_cpp_err=yes
11083 fi
11084 if test -z "$ac_cpp_err"; then
11085   ac_header_preproc=yes
11086 else
11087   echo "$as_me: failed program was:" >&5
11088 sed 's/^/| /' conftest.$ac_ext >&5
11089
11090   ac_header_preproc=no
11091 fi
11092
11093 rm -f conftest.err conftest.$ac_ext
11094 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11095 echo "${ECHO_T}$ac_header_preproc" >&6; }
11096
11097 # So?  What about this header?
11098 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11099   yes:no: )
11100     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11101 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11102     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11103 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11104     ac_header_preproc=yes
11105     ;;
11106   no:yes:* )
11107     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11108 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11109     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11110 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11111     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11112 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11113     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11114 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11115     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11116 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11117     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11118 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11119     ( cat <<\_ASBOX
11120 ## ------------------------------------ ##
11121 ## Report this to http://llvm.org/bugs/ ##
11122 ## ------------------------------------ ##
11123 _ASBOX
11124      ) | sed "s/^/$as_me: WARNING:     /" >&2
11125     ;;
11126 esac
11127 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11128 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11129 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11130   echo $ECHO_N "(cached) $ECHO_C" >&6
11131 else
11132   eval "$as_ac_Header=\$ac_header_preproc"
11133 fi
11134 ac_res=`eval echo '${'$as_ac_Header'}'`
11135                { echo "$as_me:$LINENO: result: $ac_res" >&5
11136 echo "${ECHO_T}$ac_res" >&6; }
11137
11138 fi
11139 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11140   cat >>confdefs.h <<_ACEOF
11141 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11142 _ACEOF
11143
11144 fi
11145
11146 done
11147
11148
11149
11150
11151
11152 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
11153 do
11154 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11155 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11156   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11157 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11158 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11159   echo $ECHO_N "(cached) $ECHO_C" >&6
11160 fi
11161 ac_res=`eval echo '${'$as_ac_Header'}'`
11162                { echo "$as_me:$LINENO: result: $ac_res" >&5
11163 echo "${ECHO_T}$ac_res" >&6; }
11164 else
11165   # Is the header compilable?
11166 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11167 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11168 cat >conftest.$ac_ext <<_ACEOF
11169 /* confdefs.h.  */
11170 _ACEOF
11171 cat confdefs.h >>conftest.$ac_ext
11172 cat >>conftest.$ac_ext <<_ACEOF
11173 /* end confdefs.h.  */
11174 $ac_includes_default
11175 #include <$ac_header>
11176 _ACEOF
11177 rm -f conftest.$ac_objext
11178 if { (ac_try="$ac_compile"
11179 case "(($ac_try" in
11180   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11181   *) ac_try_echo=$ac_try;;
11182 esac
11183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11184   (eval "$ac_compile") 2>conftest.er1
11185   ac_status=$?
11186   grep -v '^ *+' conftest.er1 >conftest.err
11187   rm -f conftest.er1
11188   cat conftest.err >&5
11189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11190   (exit $ac_status); } &&
11191          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11192   { (case "(($ac_try" in
11193   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11194   *) ac_try_echo=$ac_try;;
11195 esac
11196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11197   (eval "$ac_try") 2>&5
11198   ac_status=$?
11199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11200   (exit $ac_status); }; } &&
11201          { ac_try='test -s conftest.$ac_objext'
11202   { (case "(($ac_try" in
11203   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11204   *) ac_try_echo=$ac_try;;
11205 esac
11206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11207   (eval "$ac_try") 2>&5
11208   ac_status=$?
11209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11210   (exit $ac_status); }; }; then
11211   ac_header_compiler=yes
11212 else
11213   echo "$as_me: failed program was:" >&5
11214 sed 's/^/| /' conftest.$ac_ext >&5
11215
11216         ac_header_compiler=no
11217 fi
11218
11219 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11220 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11221 echo "${ECHO_T}$ac_header_compiler" >&6; }
11222
11223 # Is the header present?
11224 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11225 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11226 cat >conftest.$ac_ext <<_ACEOF
11227 /* confdefs.h.  */
11228 _ACEOF
11229 cat confdefs.h >>conftest.$ac_ext
11230 cat >>conftest.$ac_ext <<_ACEOF
11231 /* end confdefs.h.  */
11232 #include <$ac_header>
11233 _ACEOF
11234 if { (ac_try="$ac_cpp conftest.$ac_ext"
11235 case "(($ac_try" in
11236   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11237   *) ac_try_echo=$ac_try;;
11238 esac
11239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11240   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11241   ac_status=$?
11242   grep -v '^ *+' conftest.er1 >conftest.err
11243   rm -f conftest.er1
11244   cat conftest.err >&5
11245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11246   (exit $ac_status); } >/dev/null; then
11247   if test -s conftest.err; then
11248     ac_cpp_err=$ac_c_preproc_warn_flag
11249     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11250   else
11251     ac_cpp_err=
11252   fi
11253 else
11254   ac_cpp_err=yes
11255 fi
11256 if test -z "$ac_cpp_err"; then
11257   ac_header_preproc=yes
11258 else
11259   echo "$as_me: failed program was:" >&5
11260 sed 's/^/| /' conftest.$ac_ext >&5
11261
11262   ac_header_preproc=no
11263 fi
11264
11265 rm -f conftest.err conftest.$ac_ext
11266 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11267 echo "${ECHO_T}$ac_header_preproc" >&6; }
11268
11269 # So?  What about this header?
11270 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11271   yes:no: )
11272     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11273 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11274     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11275 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11276     ac_header_preproc=yes
11277     ;;
11278   no:yes:* )
11279     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11280 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11281     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11282 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11283     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11284 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11285     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11286 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11287     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11288 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11289     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11290 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11291     ( cat <<\_ASBOX
11292 ## ------------------------------------ ##
11293 ## Report this to http://llvm.org/bugs/ ##
11294 ## ------------------------------------ ##
11295 _ASBOX
11296      ) | sed "s/^/$as_me: WARNING:     /" >&2
11297     ;;
11298 esac
11299 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11300 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11301 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11302   echo $ECHO_N "(cached) $ECHO_C" >&6
11303 else
11304   eval "$as_ac_Header=\$ac_header_preproc"
11305 fi
11306 ac_res=`eval echo '${'$as_ac_Header'}'`
11307                { echo "$as_me:$LINENO: result: $ac_res" >&5
11308 echo "${ECHO_T}$ac_res" >&6; }
11309
11310 fi
11311 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11312   cat >>confdefs.h <<_ACEOF
11313 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11314 _ACEOF
11315
11316 fi
11317
11318 done
11319
11320
11321
11322 for ac_header in string.h strings.h
11323 do
11324 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11325 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11326   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11327 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11328 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11329   echo $ECHO_N "(cached) $ECHO_C" >&6
11330 fi
11331 ac_res=`eval echo '${'$as_ac_Header'}'`
11332                { echo "$as_me:$LINENO: result: $ac_res" >&5
11333 echo "${ECHO_T}$ac_res" >&6; }
11334 else
11335   # Is the header compilable?
11336 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11337 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11338 cat >conftest.$ac_ext <<_ACEOF
11339 /* confdefs.h.  */
11340 _ACEOF
11341 cat confdefs.h >>conftest.$ac_ext
11342 cat >>conftest.$ac_ext <<_ACEOF
11343 /* end confdefs.h.  */
11344 $ac_includes_default
11345 #include <$ac_header>
11346 _ACEOF
11347 rm -f conftest.$ac_objext
11348 if { (ac_try="$ac_compile"
11349 case "(($ac_try" in
11350   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11351   *) ac_try_echo=$ac_try;;
11352 esac
11353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11354   (eval "$ac_compile") 2>conftest.er1
11355   ac_status=$?
11356   grep -v '^ *+' conftest.er1 >conftest.err
11357   rm -f conftest.er1
11358   cat conftest.err >&5
11359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11360   (exit $ac_status); } &&
11361          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11362   { (case "(($ac_try" in
11363   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11364   *) ac_try_echo=$ac_try;;
11365 esac
11366 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11367   (eval "$ac_try") 2>&5
11368   ac_status=$?
11369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11370   (exit $ac_status); }; } &&
11371          { ac_try='test -s conftest.$ac_objext'
11372   { (case "(($ac_try" in
11373   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11374   *) ac_try_echo=$ac_try;;
11375 esac
11376 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11377   (eval "$ac_try") 2>&5
11378   ac_status=$?
11379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11380   (exit $ac_status); }; }; then
11381   ac_header_compiler=yes
11382 else
11383   echo "$as_me: failed program was:" >&5
11384 sed 's/^/| /' conftest.$ac_ext >&5
11385
11386         ac_header_compiler=no
11387 fi
11388
11389 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11390 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11391 echo "${ECHO_T}$ac_header_compiler" >&6; }
11392
11393 # Is the header present?
11394 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11395 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11396 cat >conftest.$ac_ext <<_ACEOF
11397 /* confdefs.h.  */
11398 _ACEOF
11399 cat confdefs.h >>conftest.$ac_ext
11400 cat >>conftest.$ac_ext <<_ACEOF
11401 /* end confdefs.h.  */
11402 #include <$ac_header>
11403 _ACEOF
11404 if { (ac_try="$ac_cpp conftest.$ac_ext"
11405 case "(($ac_try" in
11406   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11407   *) ac_try_echo=$ac_try;;
11408 esac
11409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11410   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11411   ac_status=$?
11412   grep -v '^ *+' conftest.er1 >conftest.err
11413   rm -f conftest.er1
11414   cat conftest.err >&5
11415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11416   (exit $ac_status); } >/dev/null; then
11417   if test -s conftest.err; then
11418     ac_cpp_err=$ac_c_preproc_warn_flag
11419     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11420   else
11421     ac_cpp_err=
11422   fi
11423 else
11424   ac_cpp_err=yes
11425 fi
11426 if test -z "$ac_cpp_err"; then
11427   ac_header_preproc=yes
11428 else
11429   echo "$as_me: failed program was:" >&5
11430 sed 's/^/| /' conftest.$ac_ext >&5
11431
11432   ac_header_preproc=no
11433 fi
11434
11435 rm -f conftest.err conftest.$ac_ext
11436 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11437 echo "${ECHO_T}$ac_header_preproc" >&6; }
11438
11439 # So?  What about this header?
11440 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11441   yes:no: )
11442     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11443 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11444     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11445 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11446     ac_header_preproc=yes
11447     ;;
11448   no:yes:* )
11449     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11450 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11451     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11452 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11453     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11454 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11455     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11456 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11457     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11458 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11459     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11460 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11461     ( cat <<\_ASBOX
11462 ## ------------------------------------ ##
11463 ## Report this to http://llvm.org/bugs/ ##
11464 ## ------------------------------------ ##
11465 _ASBOX
11466      ) | sed "s/^/$as_me: WARNING:     /" >&2
11467     ;;
11468 esac
11469 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11470 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11471 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11472   echo $ECHO_N "(cached) $ECHO_C" >&6
11473 else
11474   eval "$as_ac_Header=\$ac_header_preproc"
11475 fi
11476 ac_res=`eval echo '${'$as_ac_Header'}'`
11477                { echo "$as_me:$LINENO: result: $ac_res" >&5
11478 echo "${ECHO_T}$ac_res" >&6; }
11479
11480 fi
11481 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11482   cat >>confdefs.h <<_ACEOF
11483 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11484 _ACEOF
11485  break
11486 fi
11487
11488 done
11489
11490
11491
11492
11493 for ac_func in strchr index
11494 do
11495 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11496 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11497 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11498 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11499   echo $ECHO_N "(cached) $ECHO_C" >&6
11500 else
11501   cat >conftest.$ac_ext <<_ACEOF
11502 /* confdefs.h.  */
11503 _ACEOF
11504 cat confdefs.h >>conftest.$ac_ext
11505 cat >>conftest.$ac_ext <<_ACEOF
11506 /* end confdefs.h.  */
11507 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11508    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11509 #define $ac_func innocuous_$ac_func
11510
11511 /* System header to define __stub macros and hopefully few prototypes,
11512     which can conflict with char $ac_func (); below.
11513     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11514     <limits.h> exists even on freestanding compilers.  */
11515
11516 #ifdef __STDC__
11517 # include <limits.h>
11518 #else
11519 # include <assert.h>
11520 #endif
11521
11522 #undef $ac_func
11523
11524 /* Override any GCC internal prototype to avoid an error.
11525    Use char because int might match the return type of a GCC
11526    builtin and then its argument prototype would still apply.  */
11527 #ifdef __cplusplus
11528 extern "C"
11529 #endif
11530 char $ac_func ();
11531 /* The GNU C library defines this for functions which it implements
11532     to always fail with ENOSYS.  Some functions are actually named
11533     something starting with __ and the normal name is an alias.  */
11534 #if defined __stub_$ac_func || defined __stub___$ac_func
11535 choke me
11536 #endif
11537
11538 int
11539 main ()
11540 {
11541 return $ac_func ();
11542   ;
11543   return 0;
11544 }
11545 _ACEOF
11546 rm -f conftest.$ac_objext conftest$ac_exeext
11547 if { (ac_try="$ac_link"
11548 case "(($ac_try" in
11549   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11550   *) ac_try_echo=$ac_try;;
11551 esac
11552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11553   (eval "$ac_link") 2>conftest.er1
11554   ac_status=$?
11555   grep -v '^ *+' conftest.er1 >conftest.err
11556   rm -f conftest.er1
11557   cat conftest.err >&5
11558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11559   (exit $ac_status); } &&
11560          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11561   { (case "(($ac_try" in
11562   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11563   *) ac_try_echo=$ac_try;;
11564 esac
11565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11566   (eval "$ac_try") 2>&5
11567   ac_status=$?
11568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11569   (exit $ac_status); }; } &&
11570          { ac_try='test -s conftest$ac_exeext'
11571   { (case "(($ac_try" in
11572   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11573   *) ac_try_echo=$ac_try;;
11574 esac
11575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11576   (eval "$ac_try") 2>&5
11577   ac_status=$?
11578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11579   (exit $ac_status); }; }; then
11580   eval "$as_ac_var=yes"
11581 else
11582   echo "$as_me: failed program was:" >&5
11583 sed 's/^/| /' conftest.$ac_ext >&5
11584
11585         eval "$as_ac_var=no"
11586 fi
11587
11588 rm -f core conftest.err conftest.$ac_objext \
11589       conftest$ac_exeext conftest.$ac_ext
11590 fi
11591 ac_res=`eval echo '${'$as_ac_var'}'`
11592                { echo "$as_me:$LINENO: result: $ac_res" >&5
11593 echo "${ECHO_T}$ac_res" >&6; }
11594 if test `eval echo '${'$as_ac_var'}'` = yes; then
11595   cat >>confdefs.h <<_ACEOF
11596 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11597 _ACEOF
11598  break
11599 fi
11600 done
11601
11602
11603
11604 for ac_func in strrchr rindex
11605 do
11606 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11607 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11608 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11609 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11610   echo $ECHO_N "(cached) $ECHO_C" >&6
11611 else
11612   cat >conftest.$ac_ext <<_ACEOF
11613 /* confdefs.h.  */
11614 _ACEOF
11615 cat confdefs.h >>conftest.$ac_ext
11616 cat >>conftest.$ac_ext <<_ACEOF
11617 /* end confdefs.h.  */
11618 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11619    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11620 #define $ac_func innocuous_$ac_func
11621
11622 /* System header to define __stub macros and hopefully few prototypes,
11623     which can conflict with char $ac_func (); below.
11624     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11625     <limits.h> exists even on freestanding compilers.  */
11626
11627 #ifdef __STDC__
11628 # include <limits.h>
11629 #else
11630 # include <assert.h>
11631 #endif
11632
11633 #undef $ac_func
11634
11635 /* Override any GCC internal prototype to avoid an error.
11636    Use char because int might match the return type of a GCC
11637    builtin and then its argument prototype would still apply.  */
11638 #ifdef __cplusplus
11639 extern "C"
11640 #endif
11641 char $ac_func ();
11642 /* The GNU C library defines this for functions which it implements
11643     to always fail with ENOSYS.  Some functions are actually named
11644     something starting with __ and the normal name is an alias.  */
11645 #if defined __stub_$ac_func || defined __stub___$ac_func
11646 choke me
11647 #endif
11648
11649 int
11650 main ()
11651 {
11652 return $ac_func ();
11653   ;
11654   return 0;
11655 }
11656 _ACEOF
11657 rm -f conftest.$ac_objext conftest$ac_exeext
11658 if { (ac_try="$ac_link"
11659 case "(($ac_try" in
11660   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11661   *) ac_try_echo=$ac_try;;
11662 esac
11663 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11664   (eval "$ac_link") 2>conftest.er1
11665   ac_status=$?
11666   grep -v '^ *+' conftest.er1 >conftest.err
11667   rm -f conftest.er1
11668   cat conftest.err >&5
11669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11670   (exit $ac_status); } &&
11671          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11672   { (case "(($ac_try" in
11673   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11674   *) ac_try_echo=$ac_try;;
11675 esac
11676 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11677   (eval "$ac_try") 2>&5
11678   ac_status=$?
11679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11680   (exit $ac_status); }; } &&
11681          { ac_try='test -s conftest$ac_exeext'
11682   { (case "(($ac_try" in
11683   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11684   *) ac_try_echo=$ac_try;;
11685 esac
11686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11687   (eval "$ac_try") 2>&5
11688   ac_status=$?
11689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11690   (exit $ac_status); }; }; then
11691   eval "$as_ac_var=yes"
11692 else
11693   echo "$as_me: failed program was:" >&5
11694 sed 's/^/| /' conftest.$ac_ext >&5
11695
11696         eval "$as_ac_var=no"
11697 fi
11698
11699 rm -f core conftest.err conftest.$ac_objext \
11700       conftest$ac_exeext conftest.$ac_ext
11701 fi
11702 ac_res=`eval echo '${'$as_ac_var'}'`
11703                { echo "$as_me:$LINENO: result: $ac_res" >&5
11704 echo "${ECHO_T}$ac_res" >&6; }
11705 if test `eval echo '${'$as_ac_var'}'` = yes; then
11706   cat >>confdefs.h <<_ACEOF
11707 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11708 _ACEOF
11709  break
11710 fi
11711 done
11712
11713
11714
11715 for ac_func in memcpy bcopy
11716 do
11717 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11718 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11719 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11720 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11721   echo $ECHO_N "(cached) $ECHO_C" >&6
11722 else
11723   cat >conftest.$ac_ext <<_ACEOF
11724 /* confdefs.h.  */
11725 _ACEOF
11726 cat confdefs.h >>conftest.$ac_ext
11727 cat >>conftest.$ac_ext <<_ACEOF
11728 /* end confdefs.h.  */
11729 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11730    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11731 #define $ac_func innocuous_$ac_func
11732
11733 /* System header to define __stub macros and hopefully few prototypes,
11734     which can conflict with char $ac_func (); below.
11735     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11736     <limits.h> exists even on freestanding compilers.  */
11737
11738 #ifdef __STDC__
11739 # include <limits.h>
11740 #else
11741 # include <assert.h>
11742 #endif
11743
11744 #undef $ac_func
11745
11746 /* Override any GCC internal prototype to avoid an error.
11747    Use char because int might match the return type of a GCC
11748    builtin and then its argument prototype would still apply.  */
11749 #ifdef __cplusplus
11750 extern "C"
11751 #endif
11752 char $ac_func ();
11753 /* The GNU C library defines this for functions which it implements
11754     to always fail with ENOSYS.  Some functions are actually named
11755     something starting with __ and the normal name is an alias.  */
11756 #if defined __stub_$ac_func || defined __stub___$ac_func
11757 choke me
11758 #endif
11759
11760 int
11761 main ()
11762 {
11763 return $ac_func ();
11764   ;
11765   return 0;
11766 }
11767 _ACEOF
11768 rm -f conftest.$ac_objext conftest$ac_exeext
11769 if { (ac_try="$ac_link"
11770 case "(($ac_try" in
11771   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11772   *) ac_try_echo=$ac_try;;
11773 esac
11774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11775   (eval "$ac_link") 2>conftest.er1
11776   ac_status=$?
11777   grep -v '^ *+' conftest.er1 >conftest.err
11778   rm -f conftest.er1
11779   cat conftest.err >&5
11780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11781   (exit $ac_status); } &&
11782          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11783   { (case "(($ac_try" in
11784   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11785   *) ac_try_echo=$ac_try;;
11786 esac
11787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11788   (eval "$ac_try") 2>&5
11789   ac_status=$?
11790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11791   (exit $ac_status); }; } &&
11792          { ac_try='test -s conftest$ac_exeext'
11793   { (case "(($ac_try" in
11794   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11795   *) ac_try_echo=$ac_try;;
11796 esac
11797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11798   (eval "$ac_try") 2>&5
11799   ac_status=$?
11800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11801   (exit $ac_status); }; }; then
11802   eval "$as_ac_var=yes"
11803 else
11804   echo "$as_me: failed program was:" >&5
11805 sed 's/^/| /' conftest.$ac_ext >&5
11806
11807         eval "$as_ac_var=no"
11808 fi
11809
11810 rm -f core conftest.err conftest.$ac_objext \
11811       conftest$ac_exeext conftest.$ac_ext
11812 fi
11813 ac_res=`eval echo '${'$as_ac_var'}'`
11814                { echo "$as_me:$LINENO: result: $ac_res" >&5
11815 echo "${ECHO_T}$ac_res" >&6; }
11816 if test `eval echo '${'$as_ac_var'}'` = yes; then
11817   cat >>confdefs.h <<_ACEOF
11818 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11819 _ACEOF
11820  break
11821 fi
11822 done
11823
11824
11825
11826 for ac_func in memmove strcmp
11827 do
11828 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11829 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11830 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11831 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11832   echo $ECHO_N "(cached) $ECHO_C" >&6
11833 else
11834   cat >conftest.$ac_ext <<_ACEOF
11835 /* confdefs.h.  */
11836 _ACEOF
11837 cat confdefs.h >>conftest.$ac_ext
11838 cat >>conftest.$ac_ext <<_ACEOF
11839 /* end confdefs.h.  */
11840 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11841    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11842 #define $ac_func innocuous_$ac_func
11843
11844 /* System header to define __stub macros and hopefully few prototypes,
11845     which can conflict with char $ac_func (); below.
11846     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11847     <limits.h> exists even on freestanding compilers.  */
11848
11849 #ifdef __STDC__
11850 # include <limits.h>
11851 #else
11852 # include <assert.h>
11853 #endif
11854
11855 #undef $ac_func
11856
11857 /* Override any GCC internal prototype to avoid an error.
11858    Use char because int might match the return type of a GCC
11859    builtin and then its argument prototype would still apply.  */
11860 #ifdef __cplusplus
11861 extern "C"
11862 #endif
11863 char $ac_func ();
11864 /* The GNU C library defines this for functions which it implements
11865     to always fail with ENOSYS.  Some functions are actually named
11866     something starting with __ and the normal name is an alias.  */
11867 #if defined __stub_$ac_func || defined __stub___$ac_func
11868 choke me
11869 #endif
11870
11871 int
11872 main ()
11873 {
11874 return $ac_func ();
11875   ;
11876   return 0;
11877 }
11878 _ACEOF
11879 rm -f conftest.$ac_objext conftest$ac_exeext
11880 if { (ac_try="$ac_link"
11881 case "(($ac_try" in
11882   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11883   *) ac_try_echo=$ac_try;;
11884 esac
11885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11886   (eval "$ac_link") 2>conftest.er1
11887   ac_status=$?
11888   grep -v '^ *+' conftest.er1 >conftest.err
11889   rm -f conftest.er1
11890   cat conftest.err >&5
11891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11892   (exit $ac_status); } &&
11893          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11894   { (case "(($ac_try" in
11895   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11896   *) ac_try_echo=$ac_try;;
11897 esac
11898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11899   (eval "$ac_try") 2>&5
11900   ac_status=$?
11901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11902   (exit $ac_status); }; } &&
11903          { ac_try='test -s conftest$ac_exeext'
11904   { (case "(($ac_try" in
11905   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11906   *) ac_try_echo=$ac_try;;
11907 esac
11908 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11909   (eval "$ac_try") 2>&5
11910   ac_status=$?
11911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11912   (exit $ac_status); }; }; then
11913   eval "$as_ac_var=yes"
11914 else
11915   echo "$as_me: failed program was:" >&5
11916 sed 's/^/| /' conftest.$ac_ext >&5
11917
11918         eval "$as_ac_var=no"
11919 fi
11920
11921 rm -f core conftest.err conftest.$ac_objext \
11922       conftest$ac_exeext conftest.$ac_ext
11923 fi
11924 ac_res=`eval echo '${'$as_ac_var'}'`
11925                { echo "$as_me:$LINENO: result: $ac_res" >&5
11926 echo "${ECHO_T}$ac_res" >&6; }
11927 if test `eval echo '${'$as_ac_var'}'` = yes; then
11928   cat >>confdefs.h <<_ACEOF
11929 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11930 _ACEOF
11931
11932 fi
11933 done
11934
11935
11936
11937
11938 for ac_func in closedir opendir readdir
11939 do
11940 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11941 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11942 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11943 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11944   echo $ECHO_N "(cached) $ECHO_C" >&6
11945 else
11946   cat >conftest.$ac_ext <<_ACEOF
11947 /* confdefs.h.  */
11948 _ACEOF
11949 cat confdefs.h >>conftest.$ac_ext
11950 cat >>conftest.$ac_ext <<_ACEOF
11951 /* end confdefs.h.  */
11952 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11953    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11954 #define $ac_func innocuous_$ac_func
11955
11956 /* System header to define __stub macros and hopefully few prototypes,
11957     which can conflict with char $ac_func (); below.
11958     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11959     <limits.h> exists even on freestanding compilers.  */
11960
11961 #ifdef __STDC__
11962 # include <limits.h>
11963 #else
11964 # include <assert.h>
11965 #endif
11966
11967 #undef $ac_func
11968
11969 /* Override any GCC internal prototype to avoid an error.
11970    Use char because int might match the return type of a GCC
11971    builtin and then its argument prototype would still apply.  */
11972 #ifdef __cplusplus
11973 extern "C"
11974 #endif
11975 char $ac_func ();
11976 /* The GNU C library defines this for functions which it implements
11977     to always fail with ENOSYS.  Some functions are actually named
11978     something starting with __ and the normal name is an alias.  */
11979 #if defined __stub_$ac_func || defined __stub___$ac_func
11980 choke me
11981 #endif
11982
11983 int
11984 main ()
11985 {
11986 return $ac_func ();
11987   ;
11988   return 0;
11989 }
11990 _ACEOF
11991 rm -f conftest.$ac_objext conftest$ac_exeext
11992 if { (ac_try="$ac_link"
11993 case "(($ac_try" in
11994   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11995   *) ac_try_echo=$ac_try;;
11996 esac
11997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11998   (eval "$ac_link") 2>conftest.er1
11999   ac_status=$?
12000   grep -v '^ *+' conftest.er1 >conftest.err
12001   rm -f conftest.er1
12002   cat conftest.err >&5
12003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12004   (exit $ac_status); } &&
12005          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12006   { (case "(($ac_try" in
12007   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12008   *) ac_try_echo=$ac_try;;
12009 esac
12010 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12011   (eval "$ac_try") 2>&5
12012   ac_status=$?
12013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12014   (exit $ac_status); }; } &&
12015          { ac_try='test -s conftest$ac_exeext'
12016   { (case "(($ac_try" in
12017   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12018   *) ac_try_echo=$ac_try;;
12019 esac
12020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12021   (eval "$ac_try") 2>&5
12022   ac_status=$?
12023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12024   (exit $ac_status); }; }; then
12025   eval "$as_ac_var=yes"
12026 else
12027   echo "$as_me: failed program was:" >&5
12028 sed 's/^/| /' conftest.$ac_ext >&5
12029
12030         eval "$as_ac_var=no"
12031 fi
12032
12033 rm -f core conftest.err conftest.$ac_objext \
12034       conftest$ac_exeext conftest.$ac_ext
12035 fi
12036 ac_res=`eval echo '${'$as_ac_var'}'`
12037                { echo "$as_me:$LINENO: result: $ac_res" >&5
12038 echo "${ECHO_T}$ac_res" >&6; }
12039 if test `eval echo '${'$as_ac_var'}'` = yes; then
12040   cat >>confdefs.h <<_ACEOF
12041 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12042 _ACEOF
12043
12044 fi
12045 done
12046
12047
12048
12049 { echo "$as_me:$LINENO: checking tool compatibility" >&5
12050 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
12051
12052 ICC=no
12053 IXX=no
12054 case $CC in
12055   icc*|icpc*)
12056     ICC=yes
12057     IXX=yes
12058     ;;
12059    *)
12060     ;;
12061 esac
12062
12063 if test "$GCC" != "yes" && test "$ICC" != "yes"
12064 then
12065   { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
12066 echo "$as_me: error: gcc|icc required but not found" >&2;}
12067    { (exit 1); exit 1; }; }
12068 fi
12069
12070 if test "$GXX" != "yes" && test "$IXX" != "yes"
12071 then
12072   { { echo "$as_me:$LINENO: error: g++|clang++|icc required but not found" >&5
12073 echo "$as_me: error: g++|clang++|icc required but not found" >&2;}
12074    { (exit 1); exit 1; }; }
12075 fi
12076
12077 if test "$GCC" = "yes"
12078 then
12079   cat >conftest.$ac_ext <<_ACEOF
12080 #if !defined(__GNUC__) || __GNUC__ < 3
12081 #error Unsupported GCC version
12082 #endif
12083
12084 _ACEOF
12085 rm -f conftest.$ac_objext
12086 if { (ac_try="$ac_compile"
12087 case "(($ac_try" in
12088   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12089   *) ac_try_echo=$ac_try;;
12090 esac
12091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12092   (eval "$ac_compile") 2>conftest.er1
12093   ac_status=$?
12094   grep -v '^ *+' conftest.er1 >conftest.err
12095   rm -f conftest.er1
12096   cat conftest.err >&5
12097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12098   (exit $ac_status); } &&
12099          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12100   { (case "(($ac_try" in
12101   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12102   *) ac_try_echo=$ac_try;;
12103 esac
12104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12105   (eval "$ac_try") 2>&5
12106   ac_status=$?
12107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12108   (exit $ac_status); }; } &&
12109          { ac_try='test -s conftest.$ac_objext'
12110   { (case "(($ac_try" in
12111   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12112   *) ac_try_echo=$ac_try;;
12113 esac
12114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12115   (eval "$ac_try") 2>&5
12116   ac_status=$?
12117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12118   (exit $ac_status); }; }; then
12119   :
12120 else
12121   echo "$as_me: failed program was:" >&5
12122 sed 's/^/| /' conftest.$ac_ext >&5
12123
12124         { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
12125 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
12126    { (exit 1); exit 1; }; }
12127 fi
12128
12129 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12130 fi
12131
12132 if test -z "$llvm_cv_gnu_make_command"
12133 then
12134   { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
12135 echo "$as_me: error: GNU Make required but not found" >&2;}
12136    { (exit 1); exit 1; }; }
12137 fi
12138
12139 { echo "$as_me:$LINENO: result: ok" >&5
12140 echo "${ECHO_T}ok" >&6; }
12141
12142 { echo "$as_me:$LINENO: checking optional compiler flags" >&5
12143 echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
12144 NO_VARIADIC_MACROS=`$CXX -Werror -Wno-variadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
12145
12146 NO_MISSING_FIELD_INITIALIZERS=`$CXX -Werror -Wno-missing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
12147
12148 COVERED_SWITCH_DEFAULT=`$CXX -Werror -Wcovered-switch-default -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wcovered-switch-default`
12149
12150 { echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT" >&5
12151 echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT" >&6; }
12152
12153
12154
12155 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
12156 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
12157 if test "${ac_cv_lib_m_sin+set}" = set; then
12158   echo $ECHO_N "(cached) $ECHO_C" >&6
12159 else
12160   ac_check_lib_save_LIBS=$LIBS
12161 LIBS="-lm  $LIBS"
12162 cat >conftest.$ac_ext <<_ACEOF
12163 /* confdefs.h.  */
12164 _ACEOF
12165 cat confdefs.h >>conftest.$ac_ext
12166 cat >>conftest.$ac_ext <<_ACEOF
12167 /* end confdefs.h.  */
12168
12169 /* Override any GCC internal prototype to avoid an error.
12170    Use char because int might match the return type of a GCC
12171    builtin and then its argument prototype would still apply.  */
12172 #ifdef __cplusplus
12173 extern "C"
12174 #endif
12175 char sin ();
12176 int
12177 main ()
12178 {
12179 return sin ();
12180   ;
12181   return 0;
12182 }
12183 _ACEOF
12184 rm -f conftest.$ac_objext conftest$ac_exeext
12185 if { (ac_try="$ac_link"
12186 case "(($ac_try" in
12187   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12188   *) ac_try_echo=$ac_try;;
12189 esac
12190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12191   (eval "$ac_link") 2>conftest.er1
12192   ac_status=$?
12193   grep -v '^ *+' conftest.er1 >conftest.err
12194   rm -f conftest.er1
12195   cat conftest.err >&5
12196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12197   (exit $ac_status); } &&
12198          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12199   { (case "(($ac_try" in
12200   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12201   *) ac_try_echo=$ac_try;;
12202 esac
12203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12204   (eval "$ac_try") 2>&5
12205   ac_status=$?
12206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12207   (exit $ac_status); }; } &&
12208          { ac_try='test -s conftest$ac_exeext'
12209   { (case "(($ac_try" in
12210   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12211   *) ac_try_echo=$ac_try;;
12212 esac
12213 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12214   (eval "$ac_try") 2>&5
12215   ac_status=$?
12216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12217   (exit $ac_status); }; }; then
12218   ac_cv_lib_m_sin=yes
12219 else
12220   echo "$as_me: failed program was:" >&5
12221 sed 's/^/| /' conftest.$ac_ext >&5
12222
12223         ac_cv_lib_m_sin=no
12224 fi
12225
12226 rm -f core conftest.err conftest.$ac_objext \
12227       conftest$ac_exeext conftest.$ac_ext
12228 LIBS=$ac_check_lib_save_LIBS
12229 fi
12230 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
12231 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
12232 if test $ac_cv_lib_m_sin = yes; then
12233   cat >>confdefs.h <<_ACEOF
12234 #define HAVE_LIBM 1
12235 _ACEOF
12236
12237   LIBS="-lm $LIBS"
12238
12239 fi
12240
12241 if test "$llvm_cv_os_type" = "MingW" ; then
12242
12243 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
12244 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
12245 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
12246   echo $ECHO_N "(cached) $ECHO_C" >&6
12247 else
12248   ac_check_lib_save_LIBS=$LIBS
12249 LIBS="-limagehlp  $LIBS"
12250 cat >conftest.$ac_ext <<_ACEOF
12251 /* confdefs.h.  */
12252 _ACEOF
12253 cat confdefs.h >>conftest.$ac_ext
12254 cat >>conftest.$ac_ext <<_ACEOF
12255 /* end confdefs.h.  */
12256
12257
12258 int
12259 main ()
12260 {
12261 return main ();
12262   ;
12263   return 0;
12264 }
12265 _ACEOF
12266 rm -f conftest.$ac_objext conftest$ac_exeext
12267 if { (ac_try="$ac_link"
12268 case "(($ac_try" in
12269   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12270   *) ac_try_echo=$ac_try;;
12271 esac
12272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12273   (eval "$ac_link") 2>conftest.er1
12274   ac_status=$?
12275   grep -v '^ *+' conftest.er1 >conftest.err
12276   rm -f conftest.er1
12277   cat conftest.err >&5
12278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12279   (exit $ac_status); } &&
12280          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12281   { (case "(($ac_try" in
12282   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12283   *) ac_try_echo=$ac_try;;
12284 esac
12285 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12286   (eval "$ac_try") 2>&5
12287   ac_status=$?
12288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12289   (exit $ac_status); }; } &&
12290          { ac_try='test -s conftest$ac_exeext'
12291   { (case "(($ac_try" in
12292   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12293   *) ac_try_echo=$ac_try;;
12294 esac
12295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12296   (eval "$ac_try") 2>&5
12297   ac_status=$?
12298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12299   (exit $ac_status); }; }; then
12300   ac_cv_lib_imagehlp_main=yes
12301 else
12302   echo "$as_me: failed program was:" >&5
12303 sed 's/^/| /' conftest.$ac_ext >&5
12304
12305         ac_cv_lib_imagehlp_main=no
12306 fi
12307
12308 rm -f core conftest.err conftest.$ac_objext \
12309       conftest$ac_exeext conftest.$ac_ext
12310 LIBS=$ac_check_lib_save_LIBS
12311 fi
12312 { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
12313 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
12314 if test $ac_cv_lib_imagehlp_main = yes; then
12315   cat >>confdefs.h <<_ACEOF
12316 #define HAVE_LIBIMAGEHLP 1
12317 _ACEOF
12318
12319   LIBS="-limagehlp $LIBS"
12320
12321 fi
12322
12323
12324 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
12325 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
12326 if test "${ac_cv_lib_psapi_main+set}" = set; then
12327   echo $ECHO_N "(cached) $ECHO_C" >&6
12328 else
12329   ac_check_lib_save_LIBS=$LIBS
12330 LIBS="-lpsapi  $LIBS"
12331 cat >conftest.$ac_ext <<_ACEOF
12332 /* confdefs.h.  */
12333 _ACEOF
12334 cat confdefs.h >>conftest.$ac_ext
12335 cat >>conftest.$ac_ext <<_ACEOF
12336 /* end confdefs.h.  */
12337
12338
12339 int
12340 main ()
12341 {
12342 return main ();
12343   ;
12344   return 0;
12345 }
12346 _ACEOF
12347 rm -f conftest.$ac_objext conftest$ac_exeext
12348 if { (ac_try="$ac_link"
12349 case "(($ac_try" in
12350   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12351   *) ac_try_echo=$ac_try;;
12352 esac
12353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12354   (eval "$ac_link") 2>conftest.er1
12355   ac_status=$?
12356   grep -v '^ *+' conftest.er1 >conftest.err
12357   rm -f conftest.er1
12358   cat conftest.err >&5
12359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12360   (exit $ac_status); } &&
12361          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12362   { (case "(($ac_try" in
12363   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12364   *) ac_try_echo=$ac_try;;
12365 esac
12366 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12367   (eval "$ac_try") 2>&5
12368   ac_status=$?
12369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12370   (exit $ac_status); }; } &&
12371          { ac_try='test -s conftest$ac_exeext'
12372   { (case "(($ac_try" in
12373   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12374   *) ac_try_echo=$ac_try;;
12375 esac
12376 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12377   (eval "$ac_try") 2>&5
12378   ac_status=$?
12379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12380   (exit $ac_status); }; }; then
12381   ac_cv_lib_psapi_main=yes
12382 else
12383   echo "$as_me: failed program was:" >&5
12384 sed 's/^/| /' conftest.$ac_ext >&5
12385
12386         ac_cv_lib_psapi_main=no
12387 fi
12388
12389 rm -f core conftest.err conftest.$ac_objext \
12390       conftest$ac_exeext conftest.$ac_ext
12391 LIBS=$ac_check_lib_save_LIBS
12392 fi
12393 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
12394 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
12395 if test $ac_cv_lib_psapi_main = yes; then
12396   cat >>confdefs.h <<_ACEOF
12397 #define HAVE_LIBPSAPI 1
12398 _ACEOF
12399
12400   LIBS="-lpsapi $LIBS"
12401
12402 fi
12403
12404 fi
12405
12406 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
12407 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
12408 if test "${ac_cv_search_dlopen+set}" = set; then
12409   echo $ECHO_N "(cached) $ECHO_C" >&6
12410 else
12411   ac_func_search_save_LIBS=$LIBS
12412 cat >conftest.$ac_ext <<_ACEOF
12413 /* confdefs.h.  */
12414 _ACEOF
12415 cat confdefs.h >>conftest.$ac_ext
12416 cat >>conftest.$ac_ext <<_ACEOF
12417 /* end confdefs.h.  */
12418
12419 /* Override any GCC internal prototype to avoid an error.
12420    Use char because int might match the return type of a GCC
12421    builtin and then its argument prototype would still apply.  */
12422 #ifdef __cplusplus
12423 extern "C"
12424 #endif
12425 char dlopen ();
12426 int
12427 main ()
12428 {
12429 return dlopen ();
12430   ;
12431   return 0;
12432 }
12433 _ACEOF
12434 for ac_lib in '' dl; do
12435   if test -z "$ac_lib"; then
12436     ac_res="none required"
12437   else
12438     ac_res=-l$ac_lib
12439     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12440   fi
12441   rm -f conftest.$ac_objext conftest$ac_exeext
12442 if { (ac_try="$ac_link"
12443 case "(($ac_try" in
12444   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12445   *) ac_try_echo=$ac_try;;
12446 esac
12447 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12448   (eval "$ac_link") 2>conftest.er1
12449   ac_status=$?
12450   grep -v '^ *+' conftest.er1 >conftest.err
12451   rm -f conftest.er1
12452   cat conftest.err >&5
12453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12454   (exit $ac_status); } &&
12455          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12456   { (case "(($ac_try" in
12457   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12458   *) ac_try_echo=$ac_try;;
12459 esac
12460 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12461   (eval "$ac_try") 2>&5
12462   ac_status=$?
12463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12464   (exit $ac_status); }; } &&
12465          { ac_try='test -s conftest$ac_exeext'
12466   { (case "(($ac_try" in
12467   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12468   *) ac_try_echo=$ac_try;;
12469 esac
12470 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12471   (eval "$ac_try") 2>&5
12472   ac_status=$?
12473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12474   (exit $ac_status); }; }; then
12475   ac_cv_search_dlopen=$ac_res
12476 else
12477   echo "$as_me: failed program was:" >&5
12478 sed 's/^/| /' conftest.$ac_ext >&5
12479
12480
12481 fi
12482
12483 rm -f core conftest.err conftest.$ac_objext \
12484       conftest$ac_exeext
12485   if test "${ac_cv_search_dlopen+set}" = set; then
12486   break
12487 fi
12488 done
12489 if test "${ac_cv_search_dlopen+set}" = set; then
12490   :
12491 else
12492   ac_cv_search_dlopen=no
12493 fi
12494 rm conftest.$ac_ext
12495 LIBS=$ac_func_search_save_LIBS
12496 fi
12497 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
12498 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
12499 ac_res=$ac_cv_search_dlopen
12500 if test "$ac_res" != no; then
12501   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12502
12503 cat >>confdefs.h <<\_ACEOF
12504 #define HAVE_DLOPEN 1
12505 _ACEOF
12506
12507 else
12508   { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
12509 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
12510 fi
12511
12512
12513 if test "$llvm_cv_enable_libffi" = "yes" ; then
12514   { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
12515 echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
12516 if test "${ac_cv_search_ffi_call+set}" = set; then
12517   echo $ECHO_N "(cached) $ECHO_C" >&6
12518 else
12519   ac_func_search_save_LIBS=$LIBS
12520 cat >conftest.$ac_ext <<_ACEOF
12521 /* confdefs.h.  */
12522 _ACEOF
12523 cat confdefs.h >>conftest.$ac_ext
12524 cat >>conftest.$ac_ext <<_ACEOF
12525 /* end confdefs.h.  */
12526
12527 /* Override any GCC internal prototype to avoid an error.
12528    Use char because int might match the return type of a GCC
12529    builtin and then its argument prototype would still apply.  */
12530 #ifdef __cplusplus
12531 extern "C"
12532 #endif
12533 char ffi_call ();
12534 int
12535 main ()
12536 {
12537 return ffi_call ();
12538   ;
12539   return 0;
12540 }
12541 _ACEOF
12542 for ac_lib in '' ffi; do
12543   if test -z "$ac_lib"; then
12544     ac_res="none required"
12545   else
12546     ac_res=-l$ac_lib
12547     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12548   fi
12549   rm -f conftest.$ac_objext conftest$ac_exeext
12550 if { (ac_try="$ac_link"
12551 case "(($ac_try" in
12552   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12553   *) ac_try_echo=$ac_try;;
12554 esac
12555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12556   (eval "$ac_link") 2>conftest.er1
12557   ac_status=$?
12558   grep -v '^ *+' conftest.er1 >conftest.err
12559   rm -f conftest.er1
12560   cat conftest.err >&5
12561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12562   (exit $ac_status); } &&
12563          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12564   { (case "(($ac_try" in
12565   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12566   *) ac_try_echo=$ac_try;;
12567 esac
12568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12569   (eval "$ac_try") 2>&5
12570   ac_status=$?
12571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12572   (exit $ac_status); }; } &&
12573          { ac_try='test -s conftest$ac_exeext'
12574   { (case "(($ac_try" in
12575   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12576   *) ac_try_echo=$ac_try;;
12577 esac
12578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12579   (eval "$ac_try") 2>&5
12580   ac_status=$?
12581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12582   (exit $ac_status); }; }; then
12583   ac_cv_search_ffi_call=$ac_res
12584 else
12585   echo "$as_me: failed program was:" >&5
12586 sed 's/^/| /' conftest.$ac_ext >&5
12587
12588
12589 fi
12590
12591 rm -f core conftest.err conftest.$ac_objext \
12592       conftest$ac_exeext
12593   if test "${ac_cv_search_ffi_call+set}" = set; then
12594   break
12595 fi
12596 done
12597 if test "${ac_cv_search_ffi_call+set}" = set; then
12598   :
12599 else
12600   ac_cv_search_ffi_call=no
12601 fi
12602 rm conftest.$ac_ext
12603 LIBS=$ac_func_search_save_LIBS
12604 fi
12605 { echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
12606 echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
12607 ac_res=$ac_cv_search_ffi_call
12608 if test "$ac_res" != no; then
12609   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12610
12611 cat >>confdefs.h <<\_ACEOF
12612 #define HAVE_FFI_CALL 1
12613 _ACEOF
12614
12615 else
12616   { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
12617 echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
12618    { (exit 1); exit 1; }; }
12619 fi
12620
12621 fi
12622
12623 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
12624 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
12625 if test "${ac_cv_search_mallinfo+set}" = set; then
12626   echo $ECHO_N "(cached) $ECHO_C" >&6
12627 else
12628   ac_func_search_save_LIBS=$LIBS
12629 cat >conftest.$ac_ext <<_ACEOF
12630 /* confdefs.h.  */
12631 _ACEOF
12632 cat confdefs.h >>conftest.$ac_ext
12633 cat >>conftest.$ac_ext <<_ACEOF
12634 /* end confdefs.h.  */
12635
12636 /* Override any GCC internal prototype to avoid an error.
12637    Use char because int might match the return type of a GCC
12638    builtin and then its argument prototype would still apply.  */
12639 #ifdef __cplusplus
12640 extern "C"
12641 #endif
12642 char mallinfo ();
12643 int
12644 main ()
12645 {
12646 return mallinfo ();
12647   ;
12648   return 0;
12649 }
12650 _ACEOF
12651 for ac_lib in '' malloc; do
12652   if test -z "$ac_lib"; then
12653     ac_res="none required"
12654   else
12655     ac_res=-l$ac_lib
12656     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12657   fi
12658   rm -f conftest.$ac_objext conftest$ac_exeext
12659 if { (ac_try="$ac_link"
12660 case "(($ac_try" in
12661   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12662   *) ac_try_echo=$ac_try;;
12663 esac
12664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12665   (eval "$ac_link") 2>conftest.er1
12666   ac_status=$?
12667   grep -v '^ *+' conftest.er1 >conftest.err
12668   rm -f conftest.er1
12669   cat conftest.err >&5
12670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12671   (exit $ac_status); } &&
12672          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12673   { (case "(($ac_try" in
12674   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12675   *) ac_try_echo=$ac_try;;
12676 esac
12677 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12678   (eval "$ac_try") 2>&5
12679   ac_status=$?
12680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12681   (exit $ac_status); }; } &&
12682          { ac_try='test -s conftest$ac_exeext'
12683   { (case "(($ac_try" in
12684   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12685   *) ac_try_echo=$ac_try;;
12686 esac
12687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12688   (eval "$ac_try") 2>&5
12689   ac_status=$?
12690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12691   (exit $ac_status); }; }; then
12692   ac_cv_search_mallinfo=$ac_res
12693 else
12694   echo "$as_me: failed program was:" >&5
12695 sed 's/^/| /' conftest.$ac_ext >&5
12696
12697
12698 fi
12699
12700 rm -f core conftest.err conftest.$ac_objext \
12701       conftest$ac_exeext
12702   if test "${ac_cv_search_mallinfo+set}" = set; then
12703   break
12704 fi
12705 done
12706 if test "${ac_cv_search_mallinfo+set}" = set; then
12707   :
12708 else
12709   ac_cv_search_mallinfo=no
12710 fi
12711 rm conftest.$ac_ext
12712 LIBS=$ac_func_search_save_LIBS
12713 fi
12714 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
12715 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
12716 ac_res=$ac_cv_search_mallinfo
12717 if test "$ac_res" != no; then
12718   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12719
12720 cat >>confdefs.h <<\_ACEOF
12721 #define HAVE_MALLINFO 1
12722 _ACEOF
12723
12724 fi
12725
12726
12727 if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
12728
12729 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
12730 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
12731 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
12732   echo $ECHO_N "(cached) $ECHO_C" >&6
12733 else
12734   ac_check_lib_save_LIBS=$LIBS
12735 LIBS="-lpthread  $LIBS"
12736 cat >conftest.$ac_ext <<_ACEOF
12737 /* confdefs.h.  */
12738 _ACEOF
12739 cat confdefs.h >>conftest.$ac_ext
12740 cat >>conftest.$ac_ext <<_ACEOF
12741 /* end confdefs.h.  */
12742
12743 /* Override any GCC internal prototype to avoid an error.
12744    Use char because int might match the return type of a GCC
12745    builtin and then its argument prototype would still apply.  */
12746 #ifdef __cplusplus
12747 extern "C"
12748 #endif
12749 char pthread_mutex_init ();
12750 int
12751 main ()
12752 {
12753 return pthread_mutex_init ();
12754   ;
12755   return 0;
12756 }
12757 _ACEOF
12758 rm -f conftest.$ac_objext conftest$ac_exeext
12759 if { (ac_try="$ac_link"
12760 case "(($ac_try" in
12761   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12762   *) ac_try_echo=$ac_try;;
12763 esac
12764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12765   (eval "$ac_link") 2>conftest.er1
12766   ac_status=$?
12767   grep -v '^ *+' conftest.er1 >conftest.err
12768   rm -f conftest.er1
12769   cat conftest.err >&5
12770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12771   (exit $ac_status); } &&
12772          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12773   { (case "(($ac_try" in
12774   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12775   *) ac_try_echo=$ac_try;;
12776 esac
12777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12778   (eval "$ac_try") 2>&5
12779   ac_status=$?
12780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12781   (exit $ac_status); }; } &&
12782          { ac_try='test -s conftest$ac_exeext'
12783   { (case "(($ac_try" in
12784   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12785   *) ac_try_echo=$ac_try;;
12786 esac
12787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12788   (eval "$ac_try") 2>&5
12789   ac_status=$?
12790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12791   (exit $ac_status); }; }; then
12792   ac_cv_lib_pthread_pthread_mutex_init=yes
12793 else
12794   echo "$as_me: failed program was:" >&5
12795 sed 's/^/| /' conftest.$ac_ext >&5
12796
12797         ac_cv_lib_pthread_pthread_mutex_init=no
12798 fi
12799
12800 rm -f core conftest.err conftest.$ac_objext \
12801       conftest$ac_exeext conftest.$ac_ext
12802 LIBS=$ac_check_lib_save_LIBS
12803 fi
12804 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
12805 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
12806 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
12807   cat >>confdefs.h <<_ACEOF
12808 #define HAVE_LIBPTHREAD 1
12809 _ACEOF
12810
12811   LIBS="-lpthread $LIBS"
12812
12813 fi
12814
12815   { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
12816 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
12817 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12818   echo $ECHO_N "(cached) $ECHO_C" >&6
12819 else
12820   ac_func_search_save_LIBS=$LIBS
12821 cat >conftest.$ac_ext <<_ACEOF
12822 /* confdefs.h.  */
12823 _ACEOF
12824 cat confdefs.h >>conftest.$ac_ext
12825 cat >>conftest.$ac_ext <<_ACEOF
12826 /* end confdefs.h.  */
12827
12828 /* Override any GCC internal prototype to avoid an error.
12829    Use char because int might match the return type of a GCC
12830    builtin and then its argument prototype would still apply.  */
12831 #ifdef __cplusplus
12832 extern "C"
12833 #endif
12834 char pthread_mutex_lock ();
12835 int
12836 main ()
12837 {
12838 return pthread_mutex_lock ();
12839   ;
12840   return 0;
12841 }
12842 _ACEOF
12843 for ac_lib in '' pthread; do
12844   if test -z "$ac_lib"; then
12845     ac_res="none required"
12846   else
12847     ac_res=-l$ac_lib
12848     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12849   fi
12850   rm -f conftest.$ac_objext conftest$ac_exeext
12851 if { (ac_try="$ac_link"
12852 case "(($ac_try" in
12853   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12854   *) ac_try_echo=$ac_try;;
12855 esac
12856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12857   (eval "$ac_link") 2>conftest.er1
12858   ac_status=$?
12859   grep -v '^ *+' conftest.er1 >conftest.err
12860   rm -f conftest.er1
12861   cat conftest.err >&5
12862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12863   (exit $ac_status); } &&
12864          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12865   { (case "(($ac_try" in
12866   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12867   *) ac_try_echo=$ac_try;;
12868 esac
12869 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12870   (eval "$ac_try") 2>&5
12871   ac_status=$?
12872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12873   (exit $ac_status); }; } &&
12874          { ac_try='test -s conftest$ac_exeext'
12875   { (case "(($ac_try" in
12876   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12877   *) ac_try_echo=$ac_try;;
12878 esac
12879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12880   (eval "$ac_try") 2>&5
12881   ac_status=$?
12882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12883   (exit $ac_status); }; }; then
12884   ac_cv_search_pthread_mutex_lock=$ac_res
12885 else
12886   echo "$as_me: failed program was:" >&5
12887 sed 's/^/| /' conftest.$ac_ext >&5
12888
12889
12890 fi
12891
12892 rm -f core conftest.err conftest.$ac_objext \
12893       conftest$ac_exeext
12894   if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12895   break
12896 fi
12897 done
12898 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12899   :
12900 else
12901   ac_cv_search_pthread_mutex_lock=no
12902 fi
12903 rm conftest.$ac_ext
12904 LIBS=$ac_func_search_save_LIBS
12905 fi
12906 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
12907 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
12908 ac_res=$ac_cv_search_pthread_mutex_lock
12909 if test "$ac_res" != no; then
12910   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12911
12912 cat >>confdefs.h <<\_ACEOF
12913 #define HAVE_PTHREAD_MUTEX_LOCK 1
12914 _ACEOF
12915
12916 fi
12917
12918   { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
12919 echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
12920 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
12921   echo $ECHO_N "(cached) $ECHO_C" >&6
12922 else
12923   ac_func_search_save_LIBS=$LIBS
12924 cat >conftest.$ac_ext <<_ACEOF
12925 /* confdefs.h.  */
12926 _ACEOF
12927 cat confdefs.h >>conftest.$ac_ext
12928 cat >>conftest.$ac_ext <<_ACEOF
12929 /* end confdefs.h.  */
12930
12931 /* Override any GCC internal prototype to avoid an error.
12932    Use char because int might match the return type of a GCC
12933    builtin and then its argument prototype would still apply.  */
12934 #ifdef __cplusplus
12935 extern "C"
12936 #endif
12937 char pthread_rwlock_init ();
12938 int
12939 main ()
12940 {
12941 return pthread_rwlock_init ();
12942   ;
12943   return 0;
12944 }
12945 _ACEOF
12946 for ac_lib in '' pthread; do
12947   if test -z "$ac_lib"; then
12948     ac_res="none required"
12949   else
12950     ac_res=-l$ac_lib
12951     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12952   fi
12953   rm -f conftest.$ac_objext conftest$ac_exeext
12954 if { (ac_try="$ac_link"
12955 case "(($ac_try" in
12956   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12957   *) ac_try_echo=$ac_try;;
12958 esac
12959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12960   (eval "$ac_link") 2>conftest.er1
12961   ac_status=$?
12962   grep -v '^ *+' conftest.er1 >conftest.err
12963   rm -f conftest.er1
12964   cat conftest.err >&5
12965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12966   (exit $ac_status); } &&
12967          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12968   { (case "(($ac_try" in
12969   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12970   *) ac_try_echo=$ac_try;;
12971 esac
12972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12973   (eval "$ac_try") 2>&5
12974   ac_status=$?
12975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12976   (exit $ac_status); }; } &&
12977          { ac_try='test -s conftest$ac_exeext'
12978   { (case "(($ac_try" in
12979   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12980   *) ac_try_echo=$ac_try;;
12981 esac
12982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12983   (eval "$ac_try") 2>&5
12984   ac_status=$?
12985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12986   (exit $ac_status); }; }; then
12987   ac_cv_search_pthread_rwlock_init=$ac_res
12988 else
12989   echo "$as_me: failed program was:" >&5
12990 sed 's/^/| /' conftest.$ac_ext >&5
12991
12992
12993 fi
12994
12995 rm -f core conftest.err conftest.$ac_objext \
12996       conftest$ac_exeext
12997   if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
12998   break
12999 fi
13000 done
13001 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13002   :
13003 else
13004   ac_cv_search_pthread_rwlock_init=no
13005 fi
13006 rm conftest.$ac_ext
13007 LIBS=$ac_func_search_save_LIBS
13008 fi
13009 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
13010 echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
13011 ac_res=$ac_cv_search_pthread_rwlock_init
13012 if test "$ac_res" != no; then
13013   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13014
13015 cat >>confdefs.h <<\_ACEOF
13016 #define HAVE_PTHREAD_RWLOCK_INIT 1
13017 _ACEOF
13018
13019 fi
13020
13021   { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
13022 echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
13023 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13024   echo $ECHO_N "(cached) $ECHO_C" >&6
13025 else
13026   ac_func_search_save_LIBS=$LIBS
13027 cat >conftest.$ac_ext <<_ACEOF
13028 /* confdefs.h.  */
13029 _ACEOF
13030 cat confdefs.h >>conftest.$ac_ext
13031 cat >>conftest.$ac_ext <<_ACEOF
13032 /* end confdefs.h.  */
13033
13034 /* Override any GCC internal prototype to avoid an error.
13035    Use char because int might match the return type of a GCC
13036    builtin and then its argument prototype would still apply.  */
13037 #ifdef __cplusplus
13038 extern "C"
13039 #endif
13040 char pthread_getspecific ();
13041 int
13042 main ()
13043 {
13044 return pthread_getspecific ();
13045   ;
13046   return 0;
13047 }
13048 _ACEOF
13049 for ac_lib in '' pthread; do
13050   if test -z "$ac_lib"; then
13051     ac_res="none required"
13052   else
13053     ac_res=-l$ac_lib
13054     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13055   fi
13056   rm -f conftest.$ac_objext conftest$ac_exeext
13057 if { (ac_try="$ac_link"
13058 case "(($ac_try" in
13059   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13060   *) ac_try_echo=$ac_try;;
13061 esac
13062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13063   (eval "$ac_link") 2>conftest.er1
13064   ac_status=$?
13065   grep -v '^ *+' conftest.er1 >conftest.err
13066   rm -f conftest.er1
13067   cat conftest.err >&5
13068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13069   (exit $ac_status); } &&
13070          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13071   { (case "(($ac_try" in
13072   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13073   *) ac_try_echo=$ac_try;;
13074 esac
13075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13076   (eval "$ac_try") 2>&5
13077   ac_status=$?
13078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13079   (exit $ac_status); }; } &&
13080          { ac_try='test -s conftest$ac_exeext'
13081   { (case "(($ac_try" in
13082   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13083   *) ac_try_echo=$ac_try;;
13084 esac
13085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13086   (eval "$ac_try") 2>&5
13087   ac_status=$?
13088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13089   (exit $ac_status); }; }; then
13090   ac_cv_search_pthread_getspecific=$ac_res
13091 else
13092   echo "$as_me: failed program was:" >&5
13093 sed 's/^/| /' conftest.$ac_ext >&5
13094
13095
13096 fi
13097
13098 rm -f core conftest.err conftest.$ac_objext \
13099       conftest$ac_exeext
13100   if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13101   break
13102 fi
13103 done
13104 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13105   :
13106 else
13107   ac_cv_search_pthread_getspecific=no
13108 fi
13109 rm conftest.$ac_ext
13110 LIBS=$ac_func_search_save_LIBS
13111 fi
13112 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
13113 echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
13114 ac_res=$ac_cv_search_pthread_getspecific
13115 if test "$ac_res" != no; then
13116   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13117
13118 cat >>confdefs.h <<\_ACEOF
13119 #define HAVE_PTHREAD_GETSPECIFIC 1
13120 _ACEOF
13121
13122 fi
13123
13124 fi
13125
13126
13127 # Check whether --with-udis86 was given.
13128 if test "${with_udis86+set}" = set; then
13129   withval=$with_udis86;
13130       USE_UDIS86=1
13131
13132       case "$withval" in
13133         /usr/lib|yes) ;;
13134         *) LDFLAGS="$LDFLAGS -L${withval}" ;;
13135       esac
13136
13137 { echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
13138 echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
13139 if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
13140   echo $ECHO_N "(cached) $ECHO_C" >&6
13141 else
13142   ac_check_lib_save_LIBS=$LIBS
13143 LIBS="-ludis86  $LIBS"
13144 cat >conftest.$ac_ext <<_ACEOF
13145 /* confdefs.h.  */
13146 _ACEOF
13147 cat confdefs.h >>conftest.$ac_ext
13148 cat >>conftest.$ac_ext <<_ACEOF
13149 /* end confdefs.h.  */
13150
13151 /* Override any GCC internal prototype to avoid an error.
13152    Use char because int might match the return type of a GCC
13153    builtin and then its argument prototype would still apply.  */
13154 #ifdef __cplusplus
13155 extern "C"
13156 #endif
13157 char ud_init ();
13158 int
13159 main ()
13160 {
13161 return ud_init ();
13162   ;
13163   return 0;
13164 }
13165 _ACEOF
13166 rm -f conftest.$ac_objext conftest$ac_exeext
13167 if { (ac_try="$ac_link"
13168 case "(($ac_try" in
13169   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13170   *) ac_try_echo=$ac_try;;
13171 esac
13172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13173   (eval "$ac_link") 2>conftest.er1
13174   ac_status=$?
13175   grep -v '^ *+' conftest.er1 >conftest.err
13176   rm -f conftest.er1
13177   cat conftest.err >&5
13178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13179   (exit $ac_status); } &&
13180          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13181   { (case "(($ac_try" in
13182   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13183   *) ac_try_echo=$ac_try;;
13184 esac
13185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13186   (eval "$ac_try") 2>&5
13187   ac_status=$?
13188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13189   (exit $ac_status); }; } &&
13190          { ac_try='test -s conftest$ac_exeext'
13191   { (case "(($ac_try" in
13192   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13193   *) ac_try_echo=$ac_try;;
13194 esac
13195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13196   (eval "$ac_try") 2>&5
13197   ac_status=$?
13198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13199   (exit $ac_status); }; }; then
13200   ac_cv_lib_udis86_ud_init=yes
13201 else
13202   echo "$as_me: failed program was:" >&5
13203 sed 's/^/| /' conftest.$ac_ext >&5
13204
13205         ac_cv_lib_udis86_ud_init=no
13206 fi
13207
13208 rm -f core conftest.err conftest.$ac_objext \
13209       conftest$ac_exeext conftest.$ac_ext
13210 LIBS=$ac_check_lib_save_LIBS
13211 fi
13212 { echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
13213 echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
13214 if test $ac_cv_lib_udis86_ud_init = yes; then
13215   cat >>confdefs.h <<_ACEOF
13216 #define HAVE_LIBUDIS86 1
13217 _ACEOF
13218
13219   LIBS="-ludis86 $LIBS"
13220
13221 else
13222
13223         echo "Error! You need to have libudis86 around."
13224         exit -1
13225
13226 fi
13227
13228
13229 else
13230   USE_UDIS86=0
13231
13232 fi
13233
13234
13235 cat >>confdefs.h <<_ACEOF
13236 #define USE_UDIS86 $USE_UDIS86
13237 _ACEOF
13238
13239
13240
13241 # Check whether --with-oprofile was given.
13242 if test "${with_oprofile+set}" = set; then
13243   withval=$with_oprofile;
13244       USE_OPROFILE=1
13245
13246       case "$withval" in
13247         /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
13248         no) llvm_cv_oppath=
13249             USE_OPROFILE=0
13250  ;;
13251         *) llvm_cv_oppath="${withval}/lib/oprofile"
13252            CPPFLAGS="-I${withval}/include";;
13253       esac
13254       case $llvm_cv_os_type in
13255         Linux)
13256           if test -n "$llvm_cv_oppath" ; then
13257             LIBS="$LIBS -lopagent -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
13258                                                             { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
13259 echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
13260 if test "${ac_cv_search_bfd_init+set}" = set; then
13261   echo $ECHO_N "(cached) $ECHO_C" >&6
13262 else
13263   ac_func_search_save_LIBS=$LIBS
13264 cat >conftest.$ac_ext <<_ACEOF
13265 /* confdefs.h.  */
13266 _ACEOF
13267 cat confdefs.h >>conftest.$ac_ext
13268 cat >>conftest.$ac_ext <<_ACEOF
13269 /* end confdefs.h.  */
13270
13271 /* Override any GCC internal prototype to avoid an error.
13272    Use char because int might match the return type of a GCC
13273    builtin and then its argument prototype would still apply.  */
13274 #ifdef __cplusplus
13275 extern "C"
13276 #endif
13277 char bfd_init ();
13278 int
13279 main ()
13280 {
13281 return bfd_init ();
13282   ;
13283   return 0;
13284 }
13285 _ACEOF
13286 for ac_lib in '' bfd; do
13287   if test -z "$ac_lib"; then
13288     ac_res="none required"
13289   else
13290     ac_res=-l$ac_lib
13291     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13292   fi
13293   rm -f conftest.$ac_objext conftest$ac_exeext
13294 if { (ac_try="$ac_link"
13295 case "(($ac_try" in
13296   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13297   *) ac_try_echo=$ac_try;;
13298 esac
13299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13300   (eval "$ac_link") 2>conftest.er1
13301   ac_status=$?
13302   grep -v '^ *+' conftest.er1 >conftest.err
13303   rm -f conftest.er1
13304   cat conftest.err >&5
13305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13306   (exit $ac_status); } &&
13307          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13308   { (case "(($ac_try" in
13309   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13310   *) ac_try_echo=$ac_try;;
13311 esac
13312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13313   (eval "$ac_try") 2>&5
13314   ac_status=$?
13315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13316   (exit $ac_status); }; } &&
13317          { ac_try='test -s conftest$ac_exeext'
13318   { (case "(($ac_try" in
13319   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13320   *) ac_try_echo=$ac_try;;
13321 esac
13322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13323   (eval "$ac_try") 2>&5
13324   ac_status=$?
13325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13326   (exit $ac_status); }; }; then
13327   ac_cv_search_bfd_init=$ac_res
13328 else
13329   echo "$as_me: failed program was:" >&5
13330 sed 's/^/| /' conftest.$ac_ext >&5
13331
13332
13333 fi
13334
13335 rm -f core conftest.err conftest.$ac_objext \
13336       conftest$ac_exeext
13337   if test "${ac_cv_search_bfd_init+set}" = set; then
13338   break
13339 fi
13340 done
13341 if test "${ac_cv_search_bfd_init+set}" = set; then
13342   :
13343 else
13344   ac_cv_search_bfd_init=no
13345 fi
13346 rm conftest.$ac_ext
13347 LIBS=$ac_func_search_save_LIBS
13348 fi
13349 { echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
13350 echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
13351 ac_res=$ac_cv_search_bfd_init
13352 if test "$ac_res" != no; then
13353   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13354
13355 fi
13356
13357             { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
13358 echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
13359 if test "${ac_cv_search_op_open_agent+set}" = set; then
13360   echo $ECHO_N "(cached) $ECHO_C" >&6
13361 else
13362   ac_func_search_save_LIBS=$LIBS
13363 cat >conftest.$ac_ext <<_ACEOF
13364 /* confdefs.h.  */
13365 _ACEOF
13366 cat confdefs.h >>conftest.$ac_ext
13367 cat >>conftest.$ac_ext <<_ACEOF
13368 /* end confdefs.h.  */
13369
13370 /* Override any GCC internal prototype to avoid an error.
13371    Use char because int might match the return type of a GCC
13372    builtin and then its argument prototype would still apply.  */
13373 #ifdef __cplusplus
13374 extern "C"
13375 #endif
13376 char op_open_agent ();
13377 int
13378 main ()
13379 {
13380 return op_open_agent ();
13381   ;
13382   return 0;
13383 }
13384 _ACEOF
13385 for ac_lib in '' opagent; do
13386   if test -z "$ac_lib"; then
13387     ac_res="none required"
13388   else
13389     ac_res=-l$ac_lib
13390     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13391   fi
13392   rm -f conftest.$ac_objext conftest$ac_exeext
13393 if { (ac_try="$ac_link"
13394 case "(($ac_try" in
13395   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13396   *) ac_try_echo=$ac_try;;
13397 esac
13398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13399   (eval "$ac_link") 2>conftest.er1
13400   ac_status=$?
13401   grep -v '^ *+' conftest.er1 >conftest.err
13402   rm -f conftest.er1
13403   cat conftest.err >&5
13404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13405   (exit $ac_status); } &&
13406          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13407   { (case "(($ac_try" in
13408   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13409   *) ac_try_echo=$ac_try;;
13410 esac
13411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13412   (eval "$ac_try") 2>&5
13413   ac_status=$?
13414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13415   (exit $ac_status); }; } &&
13416          { ac_try='test -s conftest$ac_exeext'
13417   { (case "(($ac_try" in
13418   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13419   *) ac_try_echo=$ac_try;;
13420 esac
13421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13422   (eval "$ac_try") 2>&5
13423   ac_status=$?
13424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13425   (exit $ac_status); }; }; then
13426   ac_cv_search_op_open_agent=$ac_res
13427 else
13428   echo "$as_me: failed program was:" >&5
13429 sed 's/^/| /' conftest.$ac_ext >&5
13430
13431
13432 fi
13433
13434 rm -f core conftest.err conftest.$ac_objext \
13435       conftest$ac_exeext
13436   if test "${ac_cv_search_op_open_agent+set}" = set; then
13437   break
13438 fi
13439 done
13440 if test "${ac_cv_search_op_open_agent+set}" = set; then
13441   :
13442 else
13443   ac_cv_search_op_open_agent=no
13444 fi
13445 rm conftest.$ac_ext
13446 LIBS=$ac_func_search_save_LIBS
13447 fi
13448 { echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
13449 echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
13450 ac_res=$ac_cv_search_op_open_agent
13451 if test "$ac_res" != no; then
13452   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13453
13454 else
13455
13456               echo "Error! You need to have libopagent around."
13457               exit -1
13458
13459 fi
13460
13461             if test "${ac_cv_header_opagent_h+set}" = set; then
13462   { echo "$as_me:$LINENO: checking for opagent.h" >&5
13463 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13464 if test "${ac_cv_header_opagent_h+set}" = set; then
13465   echo $ECHO_N "(cached) $ECHO_C" >&6
13466 fi
13467 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13468 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13469 else
13470   # Is the header compilable?
13471 { echo "$as_me:$LINENO: checking opagent.h usability" >&5
13472 echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
13473 cat >conftest.$ac_ext <<_ACEOF
13474 /* confdefs.h.  */
13475 _ACEOF
13476 cat confdefs.h >>conftest.$ac_ext
13477 cat >>conftest.$ac_ext <<_ACEOF
13478 /* end confdefs.h.  */
13479 $ac_includes_default
13480 #include <opagent.h>
13481 _ACEOF
13482 rm -f conftest.$ac_objext
13483 if { (ac_try="$ac_compile"
13484 case "(($ac_try" in
13485   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13486   *) ac_try_echo=$ac_try;;
13487 esac
13488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13489   (eval "$ac_compile") 2>conftest.er1
13490   ac_status=$?
13491   grep -v '^ *+' conftest.er1 >conftest.err
13492   rm -f conftest.er1
13493   cat conftest.err >&5
13494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13495   (exit $ac_status); } &&
13496          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13497   { (case "(($ac_try" in
13498   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13499   *) ac_try_echo=$ac_try;;
13500 esac
13501 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13502   (eval "$ac_try") 2>&5
13503   ac_status=$?
13504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13505   (exit $ac_status); }; } &&
13506          { ac_try='test -s conftest.$ac_objext'
13507   { (case "(($ac_try" in
13508   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13509   *) ac_try_echo=$ac_try;;
13510 esac
13511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13512   (eval "$ac_try") 2>&5
13513   ac_status=$?
13514   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13515   (exit $ac_status); }; }; then
13516   ac_header_compiler=yes
13517 else
13518   echo "$as_me: failed program was:" >&5
13519 sed 's/^/| /' conftest.$ac_ext >&5
13520
13521         ac_header_compiler=no
13522 fi
13523
13524 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13525 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13526 echo "${ECHO_T}$ac_header_compiler" >&6; }
13527
13528 # Is the header present?
13529 { echo "$as_me:$LINENO: checking opagent.h presence" >&5
13530 echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
13531 cat >conftest.$ac_ext <<_ACEOF
13532 /* confdefs.h.  */
13533 _ACEOF
13534 cat confdefs.h >>conftest.$ac_ext
13535 cat >>conftest.$ac_ext <<_ACEOF
13536 /* end confdefs.h.  */
13537 #include <opagent.h>
13538 _ACEOF
13539 if { (ac_try="$ac_cpp conftest.$ac_ext"
13540 case "(($ac_try" in
13541   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13542   *) ac_try_echo=$ac_try;;
13543 esac
13544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13545   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13546   ac_status=$?
13547   grep -v '^ *+' conftest.er1 >conftest.err
13548   rm -f conftest.er1
13549   cat conftest.err >&5
13550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13551   (exit $ac_status); } >/dev/null; then
13552   if test -s conftest.err; then
13553     ac_cpp_err=$ac_c_preproc_warn_flag
13554     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13555   else
13556     ac_cpp_err=
13557   fi
13558 else
13559   ac_cpp_err=yes
13560 fi
13561 if test -z "$ac_cpp_err"; then
13562   ac_header_preproc=yes
13563 else
13564   echo "$as_me: failed program was:" >&5
13565 sed 's/^/| /' conftest.$ac_ext >&5
13566
13567   ac_header_preproc=no
13568 fi
13569
13570 rm -f conftest.err conftest.$ac_ext
13571 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13572 echo "${ECHO_T}$ac_header_preproc" >&6; }
13573
13574 # So?  What about this header?
13575 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13576   yes:no: )
13577     { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
13578 echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13579     { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
13580 echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
13581     ac_header_preproc=yes
13582     ;;
13583   no:yes:* )
13584     { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
13585 echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
13586     { echo "$as_me:$LINENO: WARNING: opagent.h:     check for missing prerequisite headers?" >&5
13587 echo "$as_me: WARNING: opagent.h:     check for missing prerequisite headers?" >&2;}
13588     { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
13589 echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
13590     { echo "$as_me:$LINENO: WARNING: opagent.h:     section \"Present But Cannot Be Compiled\"" >&5
13591 echo "$as_me: WARNING: opagent.h:     section \"Present But Cannot Be Compiled\"" >&2;}
13592     { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
13593 echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
13594     { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
13595 echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
13596     ( cat <<\_ASBOX
13597 ## ------------------------------------ ##
13598 ## Report this to http://llvm.org/bugs/ ##
13599 ## ------------------------------------ ##
13600 _ASBOX
13601      ) | sed "s/^/$as_me: WARNING:     /" >&2
13602     ;;
13603 esac
13604 { echo "$as_me:$LINENO: checking for opagent.h" >&5
13605 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13606 if test "${ac_cv_header_opagent_h+set}" = set; then
13607   echo $ECHO_N "(cached) $ECHO_C" >&6
13608 else
13609   ac_cv_header_opagent_h=$ac_header_preproc
13610 fi
13611 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13612 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13613
13614 fi
13615 if test $ac_cv_header_opagent_h = yes; then
13616   :
13617 else
13618
13619               echo "Error! You need to have opagent.h around."
13620               exit -1
13621
13622 fi
13623
13624
13625           fi ;;
13626         *)
13627           { { echo "$as_me:$LINENO: error: OProfile support is available on Linux only." >&5
13628 echo "$as_me: error: OProfile support is available on Linux only." >&2;}
13629    { (exit 1); exit 1; }; } ;;
13630       esac
13631
13632 else
13633
13634       USE_OPROFILE=0
13635
13636
13637 fi
13638
13639
13640 cat >>confdefs.h <<_ACEOF
13641 #define LLVM_USE_OPROFILE $USE_OPROFILE
13642 _ACEOF
13643
13644
13645
13646 # Check whether --with-intel-jitevents was given.
13647 if test "${with_intel_jitevents+set}" = set; then
13648   withval=$with_intel_jitevents;
13649       case $llvm_cv_os_type in
13650         Linux|Win32|Cygwin|MingW) ;;
13651         *)
13652           { { echo "$as_me:$LINENO: error:
13653             Intel JIT API support is available on Linux and Windows only.\"" >&5
13654 echo "$as_me: error:
13655             Intel JIT API support is available on Linux and Windows only.\"" >&2;}
13656    { (exit 1); exit 1; }; } ;;
13657       esac
13658
13659       USE_INTEL_JITEVENTS=1
13660
13661       case "$llvm_cv_target_arch" in
13662         x86)    llvm_intel_jitevents_archdir="lib32";;
13663         x86_64) llvm_intel_jitevents_archdir="lib64";;
13664         *)      echo "Target architecture $llvm_cv_target_arch does not support Intel JIT Events API"
13665                 exit -1;;
13666       esac
13667       INTEL_JITEVENTS_INCDIR="/opt/intel/vtune_amplifier_xe_2011/include"
13668       INTEL_JITEVENTS_LIBDIR="/opt/intel/vtune_amplifier_xe_2011/$llvm_intel_jitevents_archdir"
13669       case "$withval" in
13670         /* | [A-Za-z]:[\\/]*) INTEL_JITEVENTS_INCDIR=$withval/include
13671                                   INTEL_JITEVENTS_LIBDIR=$withval/$llvm_intel_jitevents_archdir ;;
13672         *) ;;
13673       esac
13674
13675
13676
13677
13678       LIBS="$LIBS -L${INTEL_JITEVENTS_LIBDIR}"
13679       CPPFLAGS="$CPPFLAGS -I$INTEL_JITEVENTS_INCDIR"
13680
13681       { echo "$as_me:$LINENO: checking for library containing iJIT_IsProfilingActive" >&5
13682 echo $ECHO_N "checking for library containing iJIT_IsProfilingActive... $ECHO_C" >&6; }
13683 if test "${ac_cv_search_iJIT_IsProfilingActive+set}" = set; then
13684   echo $ECHO_N "(cached) $ECHO_C" >&6
13685 else
13686   ac_func_search_save_LIBS=$LIBS
13687 cat >conftest.$ac_ext <<_ACEOF
13688 /* confdefs.h.  */
13689 _ACEOF
13690 cat confdefs.h >>conftest.$ac_ext
13691 cat >>conftest.$ac_ext <<_ACEOF
13692 /* end confdefs.h.  */
13693
13694 /* Override any GCC internal prototype to avoid an error.
13695    Use char because int might match the return type of a GCC
13696    builtin and then its argument prototype would still apply.  */
13697 #ifdef __cplusplus
13698 extern "C"
13699 #endif
13700 char iJIT_IsProfilingActive ();
13701 int
13702 main ()
13703 {
13704 return iJIT_IsProfilingActive ();
13705   ;
13706   return 0;
13707 }
13708 _ACEOF
13709 for ac_lib in '' jitprofiling; do
13710   if test -z "$ac_lib"; then
13711     ac_res="none required"
13712   else
13713     ac_res=-l$ac_lib
13714     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13715   fi
13716   rm -f conftest.$ac_objext conftest$ac_exeext
13717 if { (ac_try="$ac_link"
13718 case "(($ac_try" in
13719   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13720   *) ac_try_echo=$ac_try;;
13721 esac
13722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13723   (eval "$ac_link") 2>conftest.er1
13724   ac_status=$?
13725   grep -v '^ *+' conftest.er1 >conftest.err
13726   rm -f conftest.er1
13727   cat conftest.err >&5
13728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13729   (exit $ac_status); } &&
13730          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13731   { (case "(($ac_try" in
13732   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13733   *) ac_try_echo=$ac_try;;
13734 esac
13735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13736   (eval "$ac_try") 2>&5
13737   ac_status=$?
13738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13739   (exit $ac_status); }; } &&
13740          { ac_try='test -s conftest$ac_exeext'
13741   { (case "(($ac_try" in
13742   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13743   *) ac_try_echo=$ac_try;;
13744 esac
13745 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13746   (eval "$ac_try") 2>&5
13747   ac_status=$?
13748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13749   (exit $ac_status); }; }; then
13750   ac_cv_search_iJIT_IsProfilingActive=$ac_res
13751 else
13752   echo "$as_me: failed program was:" >&5
13753 sed 's/^/| /' conftest.$ac_ext >&5
13754
13755
13756 fi
13757
13758 rm -f core conftest.err conftest.$ac_objext \
13759       conftest$ac_exeext
13760   if test "${ac_cv_search_iJIT_IsProfilingActive+set}" = set; then
13761   break
13762 fi
13763 done
13764 if test "${ac_cv_search_iJIT_IsProfilingActive+set}" = set; then
13765   :
13766 else
13767   ac_cv_search_iJIT_IsProfilingActive=no
13768 fi
13769 rm conftest.$ac_ext
13770 LIBS=$ac_func_search_save_LIBS
13771 fi
13772 { echo "$as_me:$LINENO: result: $ac_cv_search_iJIT_IsProfilingActive" >&5
13773 echo "${ECHO_T}$ac_cv_search_iJIT_IsProfilingActive" >&6; }
13774 ac_res=$ac_cv_search_iJIT_IsProfilingActive
13775 if test "$ac_res" != no; then
13776   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13777
13778 else
13779
13780         echo "Error! Cannot find libjitprofiling.a. Please check path specified in flag --with-intel-jitevents"
13781         exit -1
13782
13783 fi
13784
13785       if test "${ac_cv_header_jitprofiling_h+set}" = set; then
13786   { echo "$as_me:$LINENO: checking for jitprofiling.h" >&5
13787 echo $ECHO_N "checking for jitprofiling.h... $ECHO_C" >&6; }
13788 if test "${ac_cv_header_jitprofiling_h+set}" = set; then
13789   echo $ECHO_N "(cached) $ECHO_C" >&6
13790 fi
13791 { echo "$as_me:$LINENO: result: $ac_cv_header_jitprofiling_h" >&5
13792 echo "${ECHO_T}$ac_cv_header_jitprofiling_h" >&6; }
13793 else
13794   # Is the header compilable?
13795 { echo "$as_me:$LINENO: checking jitprofiling.h usability" >&5
13796 echo $ECHO_N "checking jitprofiling.h usability... $ECHO_C" >&6; }
13797 cat >conftest.$ac_ext <<_ACEOF
13798 /* confdefs.h.  */
13799 _ACEOF
13800 cat confdefs.h >>conftest.$ac_ext
13801 cat >>conftest.$ac_ext <<_ACEOF
13802 /* end confdefs.h.  */
13803 $ac_includes_default
13804 #include <jitprofiling.h>
13805 _ACEOF
13806 rm -f conftest.$ac_objext
13807 if { (ac_try="$ac_compile"
13808 case "(($ac_try" in
13809   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13810   *) ac_try_echo=$ac_try;;
13811 esac
13812 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13813   (eval "$ac_compile") 2>conftest.er1
13814   ac_status=$?
13815   grep -v '^ *+' conftest.er1 >conftest.err
13816   rm -f conftest.er1
13817   cat conftest.err >&5
13818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13819   (exit $ac_status); } &&
13820          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13821   { (case "(($ac_try" in
13822   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13823   *) ac_try_echo=$ac_try;;
13824 esac
13825 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13826   (eval "$ac_try") 2>&5
13827   ac_status=$?
13828   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13829   (exit $ac_status); }; } &&
13830          { ac_try='test -s conftest.$ac_objext'
13831   { (case "(($ac_try" in
13832   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13833   *) ac_try_echo=$ac_try;;
13834 esac
13835 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13836   (eval "$ac_try") 2>&5
13837   ac_status=$?
13838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13839   (exit $ac_status); }; }; then
13840   ac_header_compiler=yes
13841 else
13842   echo "$as_me: failed program was:" >&5
13843 sed 's/^/| /' conftest.$ac_ext >&5
13844
13845         ac_header_compiler=no
13846 fi
13847
13848 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13849 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13850 echo "${ECHO_T}$ac_header_compiler" >&6; }
13851
13852 # Is the header present?
13853 { echo "$as_me:$LINENO: checking jitprofiling.h presence" >&5
13854 echo $ECHO_N "checking jitprofiling.h presence... $ECHO_C" >&6; }
13855 cat >conftest.$ac_ext <<_ACEOF
13856 /* confdefs.h.  */
13857 _ACEOF
13858 cat confdefs.h >>conftest.$ac_ext
13859 cat >>conftest.$ac_ext <<_ACEOF
13860 /* end confdefs.h.  */
13861 #include <jitprofiling.h>
13862 _ACEOF
13863 if { (ac_try="$ac_cpp conftest.$ac_ext"
13864 case "(($ac_try" in
13865   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13866   *) ac_try_echo=$ac_try;;
13867 esac
13868 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13869   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13870   ac_status=$?
13871   grep -v '^ *+' conftest.er1 >conftest.err
13872   rm -f conftest.er1
13873   cat conftest.err >&5
13874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13875   (exit $ac_status); } >/dev/null; then
13876   if test -s conftest.err; then
13877     ac_cpp_err=$ac_c_preproc_warn_flag
13878     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13879   else
13880     ac_cpp_err=
13881   fi
13882 else
13883   ac_cpp_err=yes
13884 fi
13885 if test -z "$ac_cpp_err"; then
13886   ac_header_preproc=yes
13887 else
13888   echo "$as_me: failed program was:" >&5
13889 sed 's/^/| /' conftest.$ac_ext >&5
13890
13891   ac_header_preproc=no
13892 fi
13893
13894 rm -f conftest.err conftest.$ac_ext
13895 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13896 echo "${ECHO_T}$ac_header_preproc" >&6; }
13897
13898 # So?  What about this header?
13899 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13900   yes:no: )
13901     { echo "$as_me:$LINENO: WARNING: jitprofiling.h: accepted by the compiler, rejected by the preprocessor!" >&5
13902 echo "$as_me: WARNING: jitprofiling.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13903     { echo "$as_me:$LINENO: WARNING: jitprofiling.h: proceeding with the compiler's result" >&5
13904 echo "$as_me: WARNING: jitprofiling.h: proceeding with the compiler's result" >&2;}
13905     ac_header_preproc=yes
13906     ;;
13907   no:yes:* )
13908     { echo "$as_me:$LINENO: WARNING: jitprofiling.h: present but cannot be compiled" >&5
13909 echo "$as_me: WARNING: jitprofiling.h: present but cannot be compiled" >&2;}
13910     { echo "$as_me:$LINENO: WARNING: jitprofiling.h:     check for missing prerequisite headers?" >&5
13911 echo "$as_me: WARNING: jitprofiling.h:     check for missing prerequisite headers?" >&2;}
13912     { echo "$as_me:$LINENO: WARNING: jitprofiling.h: see the Autoconf documentation" >&5
13913 echo "$as_me: WARNING: jitprofiling.h: see the Autoconf documentation" >&2;}
13914     { echo "$as_me:$LINENO: WARNING: jitprofiling.h:     section \"Present But Cannot Be Compiled\"" >&5
13915 echo "$as_me: WARNING: jitprofiling.h:     section \"Present But Cannot Be Compiled\"" >&2;}
13916     { echo "$as_me:$LINENO: WARNING: jitprofiling.h: proceeding with the preprocessor's result" >&5
13917 echo "$as_me: WARNING: jitprofiling.h: proceeding with the preprocessor's result" >&2;}
13918     { echo "$as_me:$LINENO: WARNING: jitprofiling.h: in the future, the compiler will take precedence" >&5
13919 echo "$as_me: WARNING: jitprofiling.h: in the future, the compiler will take precedence" >&2;}
13920     ( cat <<\_ASBOX
13921 ## ------------------------------------ ##
13922 ## Report this to http://llvm.org/bugs/ ##
13923 ## ------------------------------------ ##
13924 _ASBOX
13925      ) | sed "s/^/$as_me: WARNING:     /" >&2
13926     ;;
13927 esac
13928 { echo "$as_me:$LINENO: checking for jitprofiling.h" >&5
13929 echo $ECHO_N "checking for jitprofiling.h... $ECHO_C" >&6; }
13930 if test "${ac_cv_header_jitprofiling_h+set}" = set; then
13931   echo $ECHO_N "(cached) $ECHO_C" >&6
13932 else
13933   ac_cv_header_jitprofiling_h=$ac_header_preproc
13934 fi
13935 { echo "$as_me:$LINENO: result: $ac_cv_header_jitprofiling_h" >&5
13936 echo "${ECHO_T}$ac_cv_header_jitprofiling_h" >&6; }
13937
13938 fi
13939 if test $ac_cv_header_jitprofiling_h = yes; then
13940   :
13941 else
13942
13943         echo "Error! Cannot find jitprofiling.h. Please check path specified in flag --with-intel-jitevents"
13944         exit -1
13945
13946 fi
13947
13948
13949
13950
13951 else
13952
13953       USE_INTEL_JITEVENTS=0
13954
13955
13956 fi
13957
13958
13959 cat >>confdefs.h <<_ACEOF
13960 #define LLVM_USE_INTEL_JITEVENTS $USE_INTEL_JITEVENTS
13961 _ACEOF
13962
13963
13964
13965
13966
13967
13968
13969
13970 ac_header_dirent=no
13971 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
13972   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
13973 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
13974 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
13975 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13976   echo $ECHO_N "(cached) $ECHO_C" >&6
13977 else
13978   cat >conftest.$ac_ext <<_ACEOF
13979 /* confdefs.h.  */
13980 _ACEOF
13981 cat confdefs.h >>conftest.$ac_ext
13982 cat >>conftest.$ac_ext <<_ACEOF
13983 /* end confdefs.h.  */
13984 #include <sys/types.h>
13985 #include <$ac_hdr>
13986
13987 int
13988 main ()
13989 {
13990 if ((DIR *) 0)
13991 return 0;
13992   ;
13993   return 0;
13994 }
13995 _ACEOF
13996 rm -f conftest.$ac_objext
13997 if { (ac_try="$ac_compile"
13998 case "(($ac_try" in
13999   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14000   *) ac_try_echo=$ac_try;;
14001 esac
14002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14003   (eval "$ac_compile") 2>conftest.er1
14004   ac_status=$?
14005   grep -v '^ *+' conftest.er1 >conftest.err
14006   rm -f conftest.er1
14007   cat conftest.err >&5
14008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14009   (exit $ac_status); } &&
14010          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14011   { (case "(($ac_try" in
14012   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14013   *) ac_try_echo=$ac_try;;
14014 esac
14015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14016   (eval "$ac_try") 2>&5
14017   ac_status=$?
14018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14019   (exit $ac_status); }; } &&
14020          { ac_try='test -s conftest.$ac_objext'
14021   { (case "(($ac_try" in
14022   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14023   *) ac_try_echo=$ac_try;;
14024 esac
14025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14026   (eval "$ac_try") 2>&5
14027   ac_status=$?
14028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14029   (exit $ac_status); }; }; then
14030   eval "$as_ac_Header=yes"
14031 else
14032   echo "$as_me: failed program was:" >&5
14033 sed 's/^/| /' conftest.$ac_ext >&5
14034
14035         eval "$as_ac_Header=no"
14036 fi
14037
14038 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14039 fi
14040 ac_res=`eval echo '${'$as_ac_Header'}'`
14041                { echo "$as_me:$LINENO: result: $ac_res" >&5
14042 echo "${ECHO_T}$ac_res" >&6; }
14043 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14044   cat >>confdefs.h <<_ACEOF
14045 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
14046 _ACEOF
14047
14048 ac_header_dirent=$ac_hdr; break
14049 fi
14050
14051 done
14052 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
14053 if test $ac_header_dirent = dirent.h; then
14054   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
14055 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
14056 if test "${ac_cv_search_opendir+set}" = set; then
14057   echo $ECHO_N "(cached) $ECHO_C" >&6
14058 else
14059   ac_func_search_save_LIBS=$LIBS
14060 cat >conftest.$ac_ext <<_ACEOF
14061 /* confdefs.h.  */
14062 _ACEOF
14063 cat confdefs.h >>conftest.$ac_ext
14064 cat >>conftest.$ac_ext <<_ACEOF
14065 /* end confdefs.h.  */
14066
14067 /* Override any GCC internal prototype to avoid an error.
14068    Use char because int might match the return type of a GCC
14069    builtin and then its argument prototype would still apply.  */
14070 #ifdef __cplusplus
14071 extern "C"
14072 #endif
14073 char opendir ();
14074 int
14075 main ()
14076 {
14077 return opendir ();
14078   ;
14079   return 0;
14080 }
14081 _ACEOF
14082 for ac_lib in '' dir; do
14083   if test -z "$ac_lib"; then
14084     ac_res="none required"
14085   else
14086     ac_res=-l$ac_lib
14087     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14088   fi
14089   rm -f conftest.$ac_objext conftest$ac_exeext
14090 if { (ac_try="$ac_link"
14091 case "(($ac_try" in
14092   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14093   *) ac_try_echo=$ac_try;;
14094 esac
14095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14096   (eval "$ac_link") 2>conftest.er1
14097   ac_status=$?
14098   grep -v '^ *+' conftest.er1 >conftest.err
14099   rm -f conftest.er1
14100   cat conftest.err >&5
14101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14102   (exit $ac_status); } &&
14103          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14104   { (case "(($ac_try" in
14105   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14106   *) ac_try_echo=$ac_try;;
14107 esac
14108 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14109   (eval "$ac_try") 2>&5
14110   ac_status=$?
14111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14112   (exit $ac_status); }; } &&
14113          { ac_try='test -s conftest$ac_exeext'
14114   { (case "(($ac_try" in
14115   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14116   *) ac_try_echo=$ac_try;;
14117 esac
14118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14119   (eval "$ac_try") 2>&5
14120   ac_status=$?
14121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14122   (exit $ac_status); }; }; then
14123   ac_cv_search_opendir=$ac_res
14124 else
14125   echo "$as_me: failed program was:" >&5
14126 sed 's/^/| /' conftest.$ac_ext >&5
14127
14128
14129 fi
14130
14131 rm -f core conftest.err conftest.$ac_objext \
14132       conftest$ac_exeext
14133   if test "${ac_cv_search_opendir+set}" = set; then
14134   break
14135 fi
14136 done
14137 if test "${ac_cv_search_opendir+set}" = set; then
14138   :
14139 else
14140   ac_cv_search_opendir=no
14141 fi
14142 rm conftest.$ac_ext
14143 LIBS=$ac_func_search_save_LIBS
14144 fi
14145 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14146 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
14147 ac_res=$ac_cv_search_opendir
14148 if test "$ac_res" != no; then
14149   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14150
14151 fi
14152
14153 else
14154   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
14155 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
14156 if test "${ac_cv_search_opendir+set}" = set; then
14157   echo $ECHO_N "(cached) $ECHO_C" >&6
14158 else
14159   ac_func_search_save_LIBS=$LIBS
14160 cat >conftest.$ac_ext <<_ACEOF
14161 /* confdefs.h.  */
14162 _ACEOF
14163 cat confdefs.h >>conftest.$ac_ext
14164 cat >>conftest.$ac_ext <<_ACEOF
14165 /* end confdefs.h.  */
14166
14167 /* Override any GCC internal prototype to avoid an error.
14168    Use char because int might match the return type of a GCC
14169    builtin and then its argument prototype would still apply.  */
14170 #ifdef __cplusplus
14171 extern "C"
14172 #endif
14173 char opendir ();
14174 int
14175 main ()
14176 {
14177 return opendir ();
14178   ;
14179   return 0;
14180 }
14181 _ACEOF
14182 for ac_lib in '' x; do
14183   if test -z "$ac_lib"; then
14184     ac_res="none required"
14185   else
14186     ac_res=-l$ac_lib
14187     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14188   fi
14189   rm -f conftest.$ac_objext conftest$ac_exeext
14190 if { (ac_try="$ac_link"
14191 case "(($ac_try" in
14192   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14193   *) ac_try_echo=$ac_try;;
14194 esac
14195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14196   (eval "$ac_link") 2>conftest.er1
14197   ac_status=$?
14198   grep -v '^ *+' conftest.er1 >conftest.err
14199   rm -f conftest.er1
14200   cat conftest.err >&5
14201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14202   (exit $ac_status); } &&
14203          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14204   { (case "(($ac_try" in
14205   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14206   *) ac_try_echo=$ac_try;;
14207 esac
14208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14209   (eval "$ac_try") 2>&5
14210   ac_status=$?
14211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14212   (exit $ac_status); }; } &&
14213          { ac_try='test -s conftest$ac_exeext'
14214   { (case "(($ac_try" in
14215   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14216   *) ac_try_echo=$ac_try;;
14217 esac
14218 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14219   (eval "$ac_try") 2>&5
14220   ac_status=$?
14221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14222   (exit $ac_status); }; }; then
14223   ac_cv_search_opendir=$ac_res
14224 else
14225   echo "$as_me: failed program was:" >&5
14226 sed 's/^/| /' conftest.$ac_ext >&5
14227
14228
14229 fi
14230
14231 rm -f core conftest.err conftest.$ac_objext \
14232       conftest$ac_exeext
14233   if test "${ac_cv_search_opendir+set}" = set; then
14234   break
14235 fi
14236 done
14237 if test "${ac_cv_search_opendir+set}" = set; then
14238   :
14239 else
14240   ac_cv_search_opendir=no
14241 fi
14242 rm conftest.$ac_ext
14243 LIBS=$ac_func_search_save_LIBS
14244 fi
14245 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14246 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
14247 ac_res=$ac_cv_search_opendir
14248 if test "$ac_res" != no; then
14249   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14250
14251 fi
14252
14253 fi
14254
14255 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
14256 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
14257 if test "${ac_cv_header_mmap_anon+set}" = set; then
14258   echo $ECHO_N "(cached) $ECHO_C" >&6
14259 else
14260    ac_ext=c
14261 ac_cpp='$CPP $CPPFLAGS'
14262 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14263 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14264 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14265
14266   cat >conftest.$ac_ext <<_ACEOF
14267 /* confdefs.h.  */
14268 _ACEOF
14269 cat confdefs.h >>conftest.$ac_ext
14270 cat >>conftest.$ac_ext <<_ACEOF
14271 /* end confdefs.h.  */
14272 #include <sys/mman.h>
14273 #include <unistd.h>
14274 #include <fcntl.h>
14275 int
14276 main ()
14277 {
14278 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
14279   ;
14280   return 0;
14281 }
14282 _ACEOF
14283 rm -f conftest.$ac_objext
14284 if { (ac_try="$ac_compile"
14285 case "(($ac_try" in
14286   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14287   *) ac_try_echo=$ac_try;;
14288 esac
14289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14290   (eval "$ac_compile") 2>conftest.er1
14291   ac_status=$?
14292   grep -v '^ *+' conftest.er1 >conftest.err
14293   rm -f conftest.er1
14294   cat conftest.err >&5
14295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14296   (exit $ac_status); } &&
14297          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14298   { (case "(($ac_try" in
14299   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14300   *) ac_try_echo=$ac_try;;
14301 esac
14302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14303   (eval "$ac_try") 2>&5
14304   ac_status=$?
14305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14306   (exit $ac_status); }; } &&
14307          { ac_try='test -s conftest.$ac_objext'
14308   { (case "(($ac_try" in
14309   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14310   *) ac_try_echo=$ac_try;;
14311 esac
14312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14313   (eval "$ac_try") 2>&5
14314   ac_status=$?
14315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14316   (exit $ac_status); }; }; then
14317   ac_cv_header_mmap_anon=yes
14318 else
14319   echo "$as_me: failed program was:" >&5
14320 sed 's/^/| /' conftest.$ac_ext >&5
14321
14322         ac_cv_header_mmap_anon=no
14323 fi
14324
14325 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14326   ac_ext=c
14327 ac_cpp='$CPP $CPPFLAGS'
14328 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14329 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14330 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14331
14332
14333 fi
14334 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
14335 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
14336 if test "$ac_cv_header_mmap_anon" = yes; then
14337
14338 cat >>confdefs.h <<\_ACEOF
14339 #define HAVE_MMAP_ANONYMOUS 1
14340 _ACEOF
14341
14342 fi
14343
14344 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
14345 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
14346 if test "${ac_cv_header_stat_broken+set}" = set; then
14347   echo $ECHO_N "(cached) $ECHO_C" >&6
14348 else
14349   cat >conftest.$ac_ext <<_ACEOF
14350 /* confdefs.h.  */
14351 _ACEOF
14352 cat confdefs.h >>conftest.$ac_ext
14353 cat >>conftest.$ac_ext <<_ACEOF
14354 /* end confdefs.h.  */
14355 #include <sys/types.h>
14356 #include <sys/stat.h>
14357
14358 #if defined S_ISBLK && defined S_IFDIR
14359 # if S_ISBLK (S_IFDIR)
14360 You lose.
14361 # endif
14362 #endif
14363
14364 #if defined S_ISBLK && defined S_IFCHR
14365 # if S_ISBLK (S_IFCHR)
14366 You lose.
14367 # endif
14368 #endif
14369
14370 #if defined S_ISLNK && defined S_IFREG
14371 # if S_ISLNK (S_IFREG)
14372 You lose.
14373 # endif
14374 #endif
14375
14376 #if defined S_ISSOCK && defined S_IFREG
14377 # if S_ISSOCK (S_IFREG)
14378 You lose.
14379 # endif
14380 #endif
14381
14382 _ACEOF
14383 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14384   $EGREP "You lose" >/dev/null 2>&1; then
14385   ac_cv_header_stat_broken=yes
14386 else
14387   ac_cv_header_stat_broken=no
14388 fi
14389 rm -f conftest*
14390
14391 fi
14392 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
14393 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
14394 if test $ac_cv_header_stat_broken = yes; then
14395
14396 cat >>confdefs.h <<\_ACEOF
14397 #define STAT_MACROS_BROKEN 1
14398 _ACEOF
14399
14400 fi
14401
14402 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
14403 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
14404 if test "${ac_cv_header_sys_wait_h+set}" = set; then
14405   echo $ECHO_N "(cached) $ECHO_C" >&6
14406 else
14407   cat >conftest.$ac_ext <<_ACEOF
14408 /* confdefs.h.  */
14409 _ACEOF
14410 cat confdefs.h >>conftest.$ac_ext
14411 cat >>conftest.$ac_ext <<_ACEOF
14412 /* end confdefs.h.  */
14413 #include <sys/types.h>
14414 #include <sys/wait.h>
14415 #ifndef WEXITSTATUS
14416 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
14417 #endif
14418 #ifndef WIFEXITED
14419 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
14420 #endif
14421
14422 int
14423 main ()
14424 {
14425   int s;
14426   wait (&s);
14427   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
14428   ;
14429   return 0;
14430 }
14431 _ACEOF
14432 rm -f conftest.$ac_objext
14433 if { (ac_try="$ac_compile"
14434 case "(($ac_try" in
14435   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14436   *) ac_try_echo=$ac_try;;
14437 esac
14438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14439   (eval "$ac_compile") 2>conftest.er1
14440   ac_status=$?
14441   grep -v '^ *+' conftest.er1 >conftest.err
14442   rm -f conftest.er1
14443   cat conftest.err >&5
14444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14445   (exit $ac_status); } &&
14446          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14447   { (case "(($ac_try" in
14448   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14449   *) ac_try_echo=$ac_try;;
14450 esac
14451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14452   (eval "$ac_try") 2>&5
14453   ac_status=$?
14454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14455   (exit $ac_status); }; } &&
14456          { ac_try='test -s conftest.$ac_objext'
14457   { (case "(($ac_try" in
14458   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14459   *) ac_try_echo=$ac_try;;
14460 esac
14461 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14462   (eval "$ac_try") 2>&5
14463   ac_status=$?
14464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14465   (exit $ac_status); }; }; then
14466   ac_cv_header_sys_wait_h=yes
14467 else
14468   echo "$as_me: failed program was:" >&5
14469 sed 's/^/| /' conftest.$ac_ext >&5
14470
14471         ac_cv_header_sys_wait_h=no
14472 fi
14473
14474 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14475 fi
14476 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
14477 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
14478 if test $ac_cv_header_sys_wait_h = yes; then
14479
14480 cat >>confdefs.h <<\_ACEOF
14481 #define HAVE_SYS_WAIT_H 1
14482 _ACEOF
14483
14484 fi
14485
14486 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
14487 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
14488 if test "${ac_cv_header_time+set}" = set; then
14489   echo $ECHO_N "(cached) $ECHO_C" >&6
14490 else
14491   cat >conftest.$ac_ext <<_ACEOF
14492 /* confdefs.h.  */
14493 _ACEOF
14494 cat confdefs.h >>conftest.$ac_ext
14495 cat >>conftest.$ac_ext <<_ACEOF
14496 /* end confdefs.h.  */
14497 #include <sys/types.h>
14498 #include <sys/time.h>
14499 #include <time.h>
14500
14501 int
14502 main ()
14503 {
14504 if ((struct tm *) 0)
14505 return 0;
14506   ;
14507   return 0;
14508 }
14509 _ACEOF
14510 rm -f conftest.$ac_objext
14511 if { (ac_try="$ac_compile"
14512 case "(($ac_try" in
14513   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14514   *) ac_try_echo=$ac_try;;
14515 esac
14516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14517   (eval "$ac_compile") 2>conftest.er1
14518   ac_status=$?
14519   grep -v '^ *+' conftest.er1 >conftest.err
14520   rm -f conftest.er1
14521   cat conftest.err >&5
14522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14523   (exit $ac_status); } &&
14524          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14525   { (case "(($ac_try" in
14526   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14527   *) ac_try_echo=$ac_try;;
14528 esac
14529 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14530   (eval "$ac_try") 2>&5
14531   ac_status=$?
14532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14533   (exit $ac_status); }; } &&
14534          { ac_try='test -s conftest.$ac_objext'
14535   { (case "(($ac_try" in
14536   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14537   *) ac_try_echo=$ac_try;;
14538 esac
14539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14540   (eval "$ac_try") 2>&5
14541   ac_status=$?
14542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14543   (exit $ac_status); }; }; then
14544   ac_cv_header_time=yes
14545 else
14546   echo "$as_me: failed program was:" >&5
14547 sed 's/^/| /' conftest.$ac_ext >&5
14548
14549         ac_cv_header_time=no
14550 fi
14551
14552 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14553 fi
14554 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
14555 echo "${ECHO_T}$ac_cv_header_time" >&6; }
14556 if test $ac_cv_header_time = yes; then
14557
14558 cat >>confdefs.h <<\_ACEOF
14559 #define TIME_WITH_SYS_TIME 1
14560 _ACEOF
14561
14562 fi
14563
14564
14565
14566
14567
14568
14569
14570
14571 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
14572 do
14573 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14574 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14575   { echo "$as_me:$LINENO: checking for $ac_header" >&5
14576 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14577 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14578   echo $ECHO_N "(cached) $ECHO_C" >&6
14579 fi
14580 ac_res=`eval echo '${'$as_ac_Header'}'`
14581                { echo "$as_me:$LINENO: result: $ac_res" >&5
14582 echo "${ECHO_T}$ac_res" >&6; }
14583 else
14584   # Is the header compilable?
14585 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14586 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14587 cat >conftest.$ac_ext <<_ACEOF
14588 /* confdefs.h.  */
14589 _ACEOF
14590 cat confdefs.h >>conftest.$ac_ext
14591 cat >>conftest.$ac_ext <<_ACEOF
14592 /* end confdefs.h.  */
14593 $ac_includes_default
14594 #include <$ac_header>
14595 _ACEOF
14596 rm -f conftest.$ac_objext
14597 if { (ac_try="$ac_compile"
14598 case "(($ac_try" in
14599   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14600   *) ac_try_echo=$ac_try;;
14601 esac
14602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14603   (eval "$ac_compile") 2>conftest.er1
14604   ac_status=$?
14605   grep -v '^ *+' conftest.er1 >conftest.err
14606   rm -f conftest.er1
14607   cat conftest.err >&5
14608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14609   (exit $ac_status); } &&
14610          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14611   { (case "(($ac_try" in
14612   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14613   *) ac_try_echo=$ac_try;;
14614 esac
14615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14616   (eval "$ac_try") 2>&5
14617   ac_status=$?
14618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14619   (exit $ac_status); }; } &&
14620          { ac_try='test -s conftest.$ac_objext'
14621   { (case "(($ac_try" in
14622   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14623   *) ac_try_echo=$ac_try;;
14624 esac
14625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14626   (eval "$ac_try") 2>&5
14627   ac_status=$?
14628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14629   (exit $ac_status); }; }; then
14630   ac_header_compiler=yes
14631 else
14632   echo "$as_me: failed program was:" >&5
14633 sed 's/^/| /' conftest.$ac_ext >&5
14634
14635         ac_header_compiler=no
14636 fi
14637
14638 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14639 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14640 echo "${ECHO_T}$ac_header_compiler" >&6; }
14641
14642 # Is the header present?
14643 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14644 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14645 cat >conftest.$ac_ext <<_ACEOF
14646 /* confdefs.h.  */
14647 _ACEOF
14648 cat confdefs.h >>conftest.$ac_ext
14649 cat >>conftest.$ac_ext <<_ACEOF
14650 /* end confdefs.h.  */
14651 #include <$ac_header>
14652 _ACEOF
14653 if { (ac_try="$ac_cpp conftest.$ac_ext"
14654 case "(($ac_try" in
14655   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14656   *) ac_try_echo=$ac_try;;
14657 esac
14658 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14659   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14660   ac_status=$?
14661   grep -v '^ *+' conftest.er1 >conftest.err
14662   rm -f conftest.er1
14663   cat conftest.err >&5
14664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14665   (exit $ac_status); } >/dev/null; then
14666   if test -s conftest.err; then
14667     ac_cpp_err=$ac_c_preproc_warn_flag
14668     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14669   else
14670     ac_cpp_err=
14671   fi
14672 else
14673   ac_cpp_err=yes
14674 fi
14675 if test -z "$ac_cpp_err"; then
14676   ac_header_preproc=yes
14677 else
14678   echo "$as_me: failed program was:" >&5
14679 sed 's/^/| /' conftest.$ac_ext >&5
14680
14681   ac_header_preproc=no
14682 fi
14683
14684 rm -f conftest.err conftest.$ac_ext
14685 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14686 echo "${ECHO_T}$ac_header_preproc" >&6; }
14687
14688 # So?  What about this header?
14689 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14690   yes:no: )
14691     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14692 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14693     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14694 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14695     ac_header_preproc=yes
14696     ;;
14697   no:yes:* )
14698     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14699 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14700     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14701 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14702     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14703 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14704     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14705 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14706     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14707 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14708     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14709 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14710     ( cat <<\_ASBOX
14711 ## ------------------------------------ ##
14712 ## Report this to http://llvm.org/bugs/ ##
14713 ## ------------------------------------ ##
14714 _ASBOX
14715      ) | sed "s/^/$as_me: WARNING:     /" >&2
14716     ;;
14717 esac
14718 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14719 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14720 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14721   echo $ECHO_N "(cached) $ECHO_C" >&6
14722 else
14723   eval "$as_ac_Header=\$ac_header_preproc"
14724 fi
14725 ac_res=`eval echo '${'$as_ac_Header'}'`
14726                { echo "$as_me:$LINENO: result: $ac_res" >&5
14727 echo "${ECHO_T}$ac_res" >&6; }
14728
14729 fi
14730 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14731   cat >>confdefs.h <<_ACEOF
14732 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14733 _ACEOF
14734
14735 fi
14736
14737 done
14738
14739
14740
14741
14742
14743
14744
14745 for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
14746 do
14747 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14748 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14749   { echo "$as_me:$LINENO: checking for $ac_header" >&5
14750 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14751 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14752   echo $ECHO_N "(cached) $ECHO_C" >&6
14753 fi
14754 ac_res=`eval echo '${'$as_ac_Header'}'`
14755                { echo "$as_me:$LINENO: result: $ac_res" >&5
14756 echo "${ECHO_T}$ac_res" >&6; }
14757 else
14758   # Is the header compilable?
14759 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14760 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14761 cat >conftest.$ac_ext <<_ACEOF
14762 /* confdefs.h.  */
14763 _ACEOF
14764 cat confdefs.h >>conftest.$ac_ext
14765 cat >>conftest.$ac_ext <<_ACEOF
14766 /* end confdefs.h.  */
14767 $ac_includes_default
14768 #include <$ac_header>
14769 _ACEOF
14770 rm -f conftest.$ac_objext
14771 if { (ac_try="$ac_compile"
14772 case "(($ac_try" in
14773   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14774   *) ac_try_echo=$ac_try;;
14775 esac
14776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14777   (eval "$ac_compile") 2>conftest.er1
14778   ac_status=$?
14779   grep -v '^ *+' conftest.er1 >conftest.err
14780   rm -f conftest.er1
14781   cat conftest.err >&5
14782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14783   (exit $ac_status); } &&
14784          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14785   { (case "(($ac_try" in
14786   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14787   *) ac_try_echo=$ac_try;;
14788 esac
14789 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14790   (eval "$ac_try") 2>&5
14791   ac_status=$?
14792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14793   (exit $ac_status); }; } &&
14794          { ac_try='test -s conftest.$ac_objext'
14795   { (case "(($ac_try" in
14796   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14797   *) ac_try_echo=$ac_try;;
14798 esac
14799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14800   (eval "$ac_try") 2>&5
14801   ac_status=$?
14802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14803   (exit $ac_status); }; }; then
14804   ac_header_compiler=yes
14805 else
14806   echo "$as_me: failed program was:" >&5
14807 sed 's/^/| /' conftest.$ac_ext >&5
14808
14809         ac_header_compiler=no
14810 fi
14811
14812 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14813 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14814 echo "${ECHO_T}$ac_header_compiler" >&6; }
14815
14816 # Is the header present?
14817 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14818 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14819 cat >conftest.$ac_ext <<_ACEOF
14820 /* confdefs.h.  */
14821 _ACEOF
14822 cat confdefs.h >>conftest.$ac_ext
14823 cat >>conftest.$ac_ext <<_ACEOF
14824 /* end confdefs.h.  */
14825 #include <$ac_header>
14826 _ACEOF
14827 if { (ac_try="$ac_cpp conftest.$ac_ext"
14828 case "(($ac_try" in
14829   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14830   *) ac_try_echo=$ac_try;;
14831 esac
14832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14833   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14834   ac_status=$?
14835   grep -v '^ *+' conftest.er1 >conftest.err
14836   rm -f conftest.er1
14837   cat conftest.err >&5
14838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14839   (exit $ac_status); } >/dev/null; then
14840   if test -s conftest.err; then
14841     ac_cpp_err=$ac_c_preproc_warn_flag
14842     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14843   else
14844     ac_cpp_err=
14845   fi
14846 else
14847   ac_cpp_err=yes
14848 fi
14849 if test -z "$ac_cpp_err"; then
14850   ac_header_preproc=yes
14851 else
14852   echo "$as_me: failed program was:" >&5
14853 sed 's/^/| /' conftest.$ac_ext >&5
14854
14855   ac_header_preproc=no
14856 fi
14857
14858 rm -f conftest.err conftest.$ac_ext
14859 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14860 echo "${ECHO_T}$ac_header_preproc" >&6; }
14861
14862 # So?  What about this header?
14863 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14864   yes:no: )
14865     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14866 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14867     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14868 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14869     ac_header_preproc=yes
14870     ;;
14871   no:yes:* )
14872     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14873 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14874     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14875 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14876     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14877 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14878     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14879 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14880     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14881 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14882     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14883 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14884     ( cat <<\_ASBOX
14885 ## ------------------------------------ ##
14886 ## Report this to http://llvm.org/bugs/ ##
14887 ## ------------------------------------ ##
14888 _ASBOX
14889      ) | sed "s/^/$as_me: WARNING:     /" >&2
14890     ;;
14891 esac
14892 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14893 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14894 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14895   echo $ECHO_N "(cached) $ECHO_C" >&6
14896 else
14897   eval "$as_ac_Header=\$ac_header_preproc"
14898 fi
14899 ac_res=`eval echo '${'$as_ac_Header'}'`
14900                { echo "$as_me:$LINENO: result: $ac_res" >&5
14901 echo "${ECHO_T}$ac_res" >&6; }
14902
14903 fi
14904 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14905   cat >>confdefs.h <<_ACEOF
14906 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14907 _ACEOF
14908
14909 fi
14910
14911 done
14912
14913
14914
14915 for ac_header in utime.h windows.h
14916 do
14917 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14918 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14919   { echo "$as_me:$LINENO: checking for $ac_header" >&5
14920 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14921 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14922   echo $ECHO_N "(cached) $ECHO_C" >&6
14923 fi
14924 ac_res=`eval echo '${'$as_ac_Header'}'`
14925                { echo "$as_me:$LINENO: result: $ac_res" >&5
14926 echo "${ECHO_T}$ac_res" >&6; }
14927 else
14928   # Is the header compilable?
14929 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14930 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14931 cat >conftest.$ac_ext <<_ACEOF
14932 /* confdefs.h.  */
14933 _ACEOF
14934 cat confdefs.h >>conftest.$ac_ext
14935 cat >>conftest.$ac_ext <<_ACEOF
14936 /* end confdefs.h.  */
14937 $ac_includes_default
14938 #include <$ac_header>
14939 _ACEOF
14940 rm -f conftest.$ac_objext
14941 if { (ac_try="$ac_compile"
14942 case "(($ac_try" in
14943   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14944   *) ac_try_echo=$ac_try;;
14945 esac
14946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14947   (eval "$ac_compile") 2>conftest.er1
14948   ac_status=$?
14949   grep -v '^ *+' conftest.er1 >conftest.err
14950   rm -f conftest.er1
14951   cat conftest.err >&5
14952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14953   (exit $ac_status); } &&
14954          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14955   { (case "(($ac_try" in
14956   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14957   *) ac_try_echo=$ac_try;;
14958 esac
14959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14960   (eval "$ac_try") 2>&5
14961   ac_status=$?
14962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14963   (exit $ac_status); }; } &&
14964          { ac_try='test -s conftest.$ac_objext'
14965   { (case "(($ac_try" in
14966   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14967   *) ac_try_echo=$ac_try;;
14968 esac
14969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14970   (eval "$ac_try") 2>&5
14971   ac_status=$?
14972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14973   (exit $ac_status); }; }; then
14974   ac_header_compiler=yes
14975 else
14976   echo "$as_me: failed program was:" >&5
14977 sed 's/^/| /' conftest.$ac_ext >&5
14978
14979         ac_header_compiler=no
14980 fi
14981
14982 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14983 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14984 echo "${ECHO_T}$ac_header_compiler" >&6; }
14985
14986 # Is the header present?
14987 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14988 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14989 cat >conftest.$ac_ext <<_ACEOF
14990 /* confdefs.h.  */
14991 _ACEOF
14992 cat confdefs.h >>conftest.$ac_ext
14993 cat >>conftest.$ac_ext <<_ACEOF
14994 /* end confdefs.h.  */
14995 #include <$ac_header>
14996 _ACEOF
14997 if { (ac_try="$ac_cpp conftest.$ac_ext"
14998 case "(($ac_try" in
14999   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15000   *) ac_try_echo=$ac_try;;
15001 esac
15002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15003   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15004   ac_status=$?
15005   grep -v '^ *+' conftest.er1 >conftest.err
15006   rm -f conftest.er1
15007   cat conftest.err >&5
15008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15009   (exit $ac_status); } >/dev/null; then
15010   if test -s conftest.err; then
15011     ac_cpp_err=$ac_c_preproc_warn_flag
15012     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15013   else
15014     ac_cpp_err=
15015   fi
15016 else
15017   ac_cpp_err=yes
15018 fi
15019 if test -z "$ac_cpp_err"; then
15020   ac_header_preproc=yes
15021 else
15022   echo "$as_me: failed program was:" >&5
15023 sed 's/^/| /' conftest.$ac_ext >&5
15024
15025   ac_header_preproc=no
15026 fi
15027
15028 rm -f conftest.err conftest.$ac_ext
15029 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15030 echo "${ECHO_T}$ac_header_preproc" >&6; }
15031
15032 # So?  What about this header?
15033 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15034   yes:no: )
15035     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15036 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15037     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15038 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15039     ac_header_preproc=yes
15040     ;;
15041   no:yes:* )
15042     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15043 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15044     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15045 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15046     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15047 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15048     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15049 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15050     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15051 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15052     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15053 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15054     ( cat <<\_ASBOX
15055 ## ------------------------------------ ##
15056 ## Report this to http://llvm.org/bugs/ ##
15057 ## ------------------------------------ ##
15058 _ASBOX
15059      ) | sed "s/^/$as_me: WARNING:     /" >&2
15060     ;;
15061 esac
15062 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15063 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15064 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15065   echo $ECHO_N "(cached) $ECHO_C" >&6
15066 else
15067   eval "$as_ac_Header=\$ac_header_preproc"
15068 fi
15069 ac_res=`eval echo '${'$as_ac_Header'}'`
15070                { echo "$as_me:$LINENO: result: $ac_res" >&5
15071 echo "${ECHO_T}$ac_res" >&6; }
15072
15073 fi
15074 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15075   cat >>confdefs.h <<_ACEOF
15076 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15077 _ACEOF
15078
15079 fi
15080
15081 done
15082
15083
15084
15085
15086
15087
15088 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h sys/uio.h
15089 do
15090 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15091 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15092   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15093 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15094 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15095   echo $ECHO_N "(cached) $ECHO_C" >&6
15096 fi
15097 ac_res=`eval echo '${'$as_ac_Header'}'`
15098                { echo "$as_me:$LINENO: result: $ac_res" >&5
15099 echo "${ECHO_T}$ac_res" >&6; }
15100 else
15101   # Is the header compilable?
15102 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15103 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15104 cat >conftest.$ac_ext <<_ACEOF
15105 /* confdefs.h.  */
15106 _ACEOF
15107 cat confdefs.h >>conftest.$ac_ext
15108 cat >>conftest.$ac_ext <<_ACEOF
15109 /* end confdefs.h.  */
15110 $ac_includes_default
15111 #include <$ac_header>
15112 _ACEOF
15113 rm -f conftest.$ac_objext
15114 if { (ac_try="$ac_compile"
15115 case "(($ac_try" in
15116   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15117   *) ac_try_echo=$ac_try;;
15118 esac
15119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15120   (eval "$ac_compile") 2>conftest.er1
15121   ac_status=$?
15122   grep -v '^ *+' conftest.er1 >conftest.err
15123   rm -f conftest.er1
15124   cat conftest.err >&5
15125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15126   (exit $ac_status); } &&
15127          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15128   { (case "(($ac_try" in
15129   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15130   *) ac_try_echo=$ac_try;;
15131 esac
15132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15133   (eval "$ac_try") 2>&5
15134   ac_status=$?
15135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15136   (exit $ac_status); }; } &&
15137          { ac_try='test -s conftest.$ac_objext'
15138   { (case "(($ac_try" in
15139   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15140   *) ac_try_echo=$ac_try;;
15141 esac
15142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15143   (eval "$ac_try") 2>&5
15144   ac_status=$?
15145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15146   (exit $ac_status); }; }; then
15147   ac_header_compiler=yes
15148 else
15149   echo "$as_me: failed program was:" >&5
15150 sed 's/^/| /' conftest.$ac_ext >&5
15151
15152         ac_header_compiler=no
15153 fi
15154
15155 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15156 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15157 echo "${ECHO_T}$ac_header_compiler" >&6; }
15158
15159 # Is the header present?
15160 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15161 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15162 cat >conftest.$ac_ext <<_ACEOF
15163 /* confdefs.h.  */
15164 _ACEOF
15165 cat confdefs.h >>conftest.$ac_ext
15166 cat >>conftest.$ac_ext <<_ACEOF
15167 /* end confdefs.h.  */
15168 #include <$ac_header>
15169 _ACEOF
15170 if { (ac_try="$ac_cpp conftest.$ac_ext"
15171 case "(($ac_try" in
15172   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15173   *) ac_try_echo=$ac_try;;
15174 esac
15175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15176   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15177   ac_status=$?
15178   grep -v '^ *+' conftest.er1 >conftest.err
15179   rm -f conftest.er1
15180   cat conftest.err >&5
15181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15182   (exit $ac_status); } >/dev/null; then
15183   if test -s conftest.err; then
15184     ac_cpp_err=$ac_c_preproc_warn_flag
15185     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15186   else
15187     ac_cpp_err=
15188   fi
15189 else
15190   ac_cpp_err=yes
15191 fi
15192 if test -z "$ac_cpp_err"; then
15193   ac_header_preproc=yes
15194 else
15195   echo "$as_me: failed program was:" >&5
15196 sed 's/^/| /' conftest.$ac_ext >&5
15197
15198   ac_header_preproc=no
15199 fi
15200
15201 rm -f conftest.err conftest.$ac_ext
15202 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15203 echo "${ECHO_T}$ac_header_preproc" >&6; }
15204
15205 # So?  What about this header?
15206 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15207   yes:no: )
15208     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15209 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15210     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15211 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15212     ac_header_preproc=yes
15213     ;;
15214   no:yes:* )
15215     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15216 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15217     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15218 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15219     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15220 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15221     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15222 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15223     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15224 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15225     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15226 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15227     ( cat <<\_ASBOX
15228 ## ------------------------------------ ##
15229 ## Report this to http://llvm.org/bugs/ ##
15230 ## ------------------------------------ ##
15231 _ASBOX
15232      ) | sed "s/^/$as_me: WARNING:     /" >&2
15233     ;;
15234 esac
15235 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15236 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15237 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15238   echo $ECHO_N "(cached) $ECHO_C" >&6
15239 else
15240   eval "$as_ac_Header=\$ac_header_preproc"
15241 fi
15242 ac_res=`eval echo '${'$as_ac_Header'}'`
15243                { echo "$as_me:$LINENO: result: $ac_res" >&5
15244 echo "${ECHO_T}$ac_res" >&6; }
15245
15246 fi
15247 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15248   cat >>confdefs.h <<_ACEOF
15249 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15250 _ACEOF
15251
15252 fi
15253
15254 done
15255
15256
15257
15258
15259
15260 for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h
15261 do
15262 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15263 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15264   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15265 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15266 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15267   echo $ECHO_N "(cached) $ECHO_C" >&6
15268 fi
15269 ac_res=`eval echo '${'$as_ac_Header'}'`
15270                { echo "$as_me:$LINENO: result: $ac_res" >&5
15271 echo "${ECHO_T}$ac_res" >&6; }
15272 else
15273   # Is the header compilable?
15274 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15275 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15276 cat >conftest.$ac_ext <<_ACEOF
15277 /* confdefs.h.  */
15278 _ACEOF
15279 cat confdefs.h >>conftest.$ac_ext
15280 cat >>conftest.$ac_ext <<_ACEOF
15281 /* end confdefs.h.  */
15282 $ac_includes_default
15283 #include <$ac_header>
15284 _ACEOF
15285 rm -f conftest.$ac_objext
15286 if { (ac_try="$ac_compile"
15287 case "(($ac_try" in
15288   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15289   *) ac_try_echo=$ac_try;;
15290 esac
15291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15292   (eval "$ac_compile") 2>conftest.er1
15293   ac_status=$?
15294   grep -v '^ *+' conftest.er1 >conftest.err
15295   rm -f conftest.er1
15296   cat conftest.err >&5
15297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15298   (exit $ac_status); } &&
15299          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15300   { (case "(($ac_try" in
15301   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15302   *) ac_try_echo=$ac_try;;
15303 esac
15304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15305   (eval "$ac_try") 2>&5
15306   ac_status=$?
15307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15308   (exit $ac_status); }; } &&
15309          { ac_try='test -s conftest.$ac_objext'
15310   { (case "(($ac_try" in
15311   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15312   *) ac_try_echo=$ac_try;;
15313 esac
15314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15315   (eval "$ac_try") 2>&5
15316   ac_status=$?
15317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15318   (exit $ac_status); }; }; then
15319   ac_header_compiler=yes
15320 else
15321   echo "$as_me: failed program was:" >&5
15322 sed 's/^/| /' conftest.$ac_ext >&5
15323
15324         ac_header_compiler=no
15325 fi
15326
15327 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15328 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15329 echo "${ECHO_T}$ac_header_compiler" >&6; }
15330
15331 # Is the header present?
15332 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15333 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15334 cat >conftest.$ac_ext <<_ACEOF
15335 /* confdefs.h.  */
15336 _ACEOF
15337 cat confdefs.h >>conftest.$ac_ext
15338 cat >>conftest.$ac_ext <<_ACEOF
15339 /* end confdefs.h.  */
15340 #include <$ac_header>
15341 _ACEOF
15342 if { (ac_try="$ac_cpp conftest.$ac_ext"
15343 case "(($ac_try" in
15344   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15345   *) ac_try_echo=$ac_try;;
15346 esac
15347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15348   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15349   ac_status=$?
15350   grep -v '^ *+' conftest.er1 >conftest.err
15351   rm -f conftest.er1
15352   cat conftest.err >&5
15353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15354   (exit $ac_status); } >/dev/null; then
15355   if test -s conftest.err; then
15356     ac_cpp_err=$ac_c_preproc_warn_flag
15357     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15358   else
15359     ac_cpp_err=
15360   fi
15361 else
15362   ac_cpp_err=yes
15363 fi
15364 if test -z "$ac_cpp_err"; then
15365   ac_header_preproc=yes
15366 else
15367   echo "$as_me: failed program was:" >&5
15368 sed 's/^/| /' conftest.$ac_ext >&5
15369
15370   ac_header_preproc=no
15371 fi
15372
15373 rm -f conftest.err conftest.$ac_ext
15374 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15375 echo "${ECHO_T}$ac_header_preproc" >&6; }
15376
15377 # So?  What about this header?
15378 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15379   yes:no: )
15380     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15381 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15382     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15383 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15384     ac_header_preproc=yes
15385     ;;
15386   no:yes:* )
15387     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15388 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15389     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15390 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15391     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15392 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15393     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15394 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15395     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15396 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15397     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15398 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15399     ( cat <<\_ASBOX
15400 ## ------------------------------------ ##
15401 ## Report this to http://llvm.org/bugs/ ##
15402 ## ------------------------------------ ##
15403 _ASBOX
15404      ) | sed "s/^/$as_me: WARNING:     /" >&2
15405     ;;
15406 esac
15407 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15408 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15409 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15410   echo $ECHO_N "(cached) $ECHO_C" >&6
15411 else
15412   eval "$as_ac_Header=\$ac_header_preproc"
15413 fi
15414 ac_res=`eval echo '${'$as_ac_Header'}'`
15415                { echo "$as_me:$LINENO: result: $ac_res" >&5
15416 echo "${ECHO_T}$ac_res" >&6; }
15417
15418 fi
15419 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15420   cat >>confdefs.h <<_ACEOF
15421 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15422 _ACEOF
15423
15424 fi
15425
15426 done
15427
15428
15429 for ac_header in valgrind/valgrind.h
15430 do
15431 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15432 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15433   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15434 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15435 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15436   echo $ECHO_N "(cached) $ECHO_C" >&6
15437 fi
15438 ac_res=`eval echo '${'$as_ac_Header'}'`
15439                { echo "$as_me:$LINENO: result: $ac_res" >&5
15440 echo "${ECHO_T}$ac_res" >&6; }
15441 else
15442   # Is the header compilable?
15443 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15444 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15445 cat >conftest.$ac_ext <<_ACEOF
15446 /* confdefs.h.  */
15447 _ACEOF
15448 cat confdefs.h >>conftest.$ac_ext
15449 cat >>conftest.$ac_ext <<_ACEOF
15450 /* end confdefs.h.  */
15451 $ac_includes_default
15452 #include <$ac_header>
15453 _ACEOF
15454 rm -f conftest.$ac_objext
15455 if { (ac_try="$ac_compile"
15456 case "(($ac_try" in
15457   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15458   *) ac_try_echo=$ac_try;;
15459 esac
15460 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15461   (eval "$ac_compile") 2>conftest.er1
15462   ac_status=$?
15463   grep -v '^ *+' conftest.er1 >conftest.err
15464   rm -f conftest.er1
15465   cat conftest.err >&5
15466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15467   (exit $ac_status); } &&
15468          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15469   { (case "(($ac_try" in
15470   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15471   *) ac_try_echo=$ac_try;;
15472 esac
15473 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15474   (eval "$ac_try") 2>&5
15475   ac_status=$?
15476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15477   (exit $ac_status); }; } &&
15478          { ac_try='test -s conftest.$ac_objext'
15479   { (case "(($ac_try" in
15480   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15481   *) ac_try_echo=$ac_try;;
15482 esac
15483 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15484   (eval "$ac_try") 2>&5
15485   ac_status=$?
15486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15487   (exit $ac_status); }; }; then
15488   ac_header_compiler=yes
15489 else
15490   echo "$as_me: failed program was:" >&5
15491 sed 's/^/| /' conftest.$ac_ext >&5
15492
15493         ac_header_compiler=no
15494 fi
15495
15496 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15497 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15498 echo "${ECHO_T}$ac_header_compiler" >&6; }
15499
15500 # Is the header present?
15501 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15502 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15503 cat >conftest.$ac_ext <<_ACEOF
15504 /* confdefs.h.  */
15505 _ACEOF
15506 cat confdefs.h >>conftest.$ac_ext
15507 cat >>conftest.$ac_ext <<_ACEOF
15508 /* end confdefs.h.  */
15509 #include <$ac_header>
15510 _ACEOF
15511 if { (ac_try="$ac_cpp conftest.$ac_ext"
15512 case "(($ac_try" in
15513   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15514   *) ac_try_echo=$ac_try;;
15515 esac
15516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15517   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15518   ac_status=$?
15519   grep -v '^ *+' conftest.er1 >conftest.err
15520   rm -f conftest.er1
15521   cat conftest.err >&5
15522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15523   (exit $ac_status); } >/dev/null; then
15524   if test -s conftest.err; then
15525     ac_cpp_err=$ac_c_preproc_warn_flag
15526     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15527   else
15528     ac_cpp_err=
15529   fi
15530 else
15531   ac_cpp_err=yes
15532 fi
15533 if test -z "$ac_cpp_err"; then
15534   ac_header_preproc=yes
15535 else
15536   echo "$as_me: failed program was:" >&5
15537 sed 's/^/| /' conftest.$ac_ext >&5
15538
15539   ac_header_preproc=no
15540 fi
15541
15542 rm -f conftest.err conftest.$ac_ext
15543 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15544 echo "${ECHO_T}$ac_header_preproc" >&6; }
15545
15546 # So?  What about this header?
15547 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15548   yes:no: )
15549     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15550 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15551     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15552 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15553     ac_header_preproc=yes
15554     ;;
15555   no:yes:* )
15556     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15557 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15558     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15559 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15560     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15561 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15562     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15563 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15564     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15565 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15566     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15567 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15568     ( cat <<\_ASBOX
15569 ## ------------------------------------ ##
15570 ## Report this to http://llvm.org/bugs/ ##
15571 ## ------------------------------------ ##
15572 _ASBOX
15573      ) | sed "s/^/$as_me: WARNING:     /" >&2
15574     ;;
15575 esac
15576 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15577 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15578 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15579   echo $ECHO_N "(cached) $ECHO_C" >&6
15580 else
15581   eval "$as_ac_Header=\$ac_header_preproc"
15582 fi
15583 ac_res=`eval echo '${'$as_ac_Header'}'`
15584                { echo "$as_me:$LINENO: result: $ac_res" >&5
15585 echo "${ECHO_T}$ac_res" >&6; }
15586
15587 fi
15588 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15589   cat >>confdefs.h <<_ACEOF
15590 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15591 _ACEOF
15592
15593 fi
15594
15595 done
15596
15597
15598 for ac_header in fenv.h
15599 do
15600 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15601 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15602   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15603 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15604 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15605   echo $ECHO_N "(cached) $ECHO_C" >&6
15606 fi
15607 ac_res=`eval echo '${'$as_ac_Header'}'`
15608                { echo "$as_me:$LINENO: result: $ac_res" >&5
15609 echo "${ECHO_T}$ac_res" >&6; }
15610 else
15611   # Is the header compilable?
15612 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15613 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15614 cat >conftest.$ac_ext <<_ACEOF
15615 /* confdefs.h.  */
15616 _ACEOF
15617 cat confdefs.h >>conftest.$ac_ext
15618 cat >>conftest.$ac_ext <<_ACEOF
15619 /* end confdefs.h.  */
15620 $ac_includes_default
15621 #include <$ac_header>
15622 _ACEOF
15623 rm -f conftest.$ac_objext
15624 if { (ac_try="$ac_compile"
15625 case "(($ac_try" in
15626   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15627   *) ac_try_echo=$ac_try;;
15628 esac
15629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15630   (eval "$ac_compile") 2>conftest.er1
15631   ac_status=$?
15632   grep -v '^ *+' conftest.er1 >conftest.err
15633   rm -f conftest.er1
15634   cat conftest.err >&5
15635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15636   (exit $ac_status); } &&
15637          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15638   { (case "(($ac_try" in
15639   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15640   *) ac_try_echo=$ac_try;;
15641 esac
15642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15643   (eval "$ac_try") 2>&5
15644   ac_status=$?
15645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15646   (exit $ac_status); }; } &&
15647          { ac_try='test -s conftest.$ac_objext'
15648   { (case "(($ac_try" in
15649   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15650   *) ac_try_echo=$ac_try;;
15651 esac
15652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15653   (eval "$ac_try") 2>&5
15654   ac_status=$?
15655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15656   (exit $ac_status); }; }; then
15657   ac_header_compiler=yes
15658 else
15659   echo "$as_me: failed program was:" >&5
15660 sed 's/^/| /' conftest.$ac_ext >&5
15661
15662         ac_header_compiler=no
15663 fi
15664
15665 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15666 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15667 echo "${ECHO_T}$ac_header_compiler" >&6; }
15668
15669 # Is the header present?
15670 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15671 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15672 cat >conftest.$ac_ext <<_ACEOF
15673 /* confdefs.h.  */
15674 _ACEOF
15675 cat confdefs.h >>conftest.$ac_ext
15676 cat >>conftest.$ac_ext <<_ACEOF
15677 /* end confdefs.h.  */
15678 #include <$ac_header>
15679 _ACEOF
15680 if { (ac_try="$ac_cpp conftest.$ac_ext"
15681 case "(($ac_try" in
15682   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15683   *) ac_try_echo=$ac_try;;
15684 esac
15685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15686   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15687   ac_status=$?
15688   grep -v '^ *+' conftest.er1 >conftest.err
15689   rm -f conftest.er1
15690   cat conftest.err >&5
15691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15692   (exit $ac_status); } >/dev/null; then
15693   if test -s conftest.err; then
15694     ac_cpp_err=$ac_c_preproc_warn_flag
15695     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15696   else
15697     ac_cpp_err=
15698   fi
15699 else
15700   ac_cpp_err=yes
15701 fi
15702 if test -z "$ac_cpp_err"; then
15703   ac_header_preproc=yes
15704 else
15705   echo "$as_me: failed program was:" >&5
15706 sed 's/^/| /' conftest.$ac_ext >&5
15707
15708   ac_header_preproc=no
15709 fi
15710
15711 rm -f conftest.err conftest.$ac_ext
15712 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15713 echo "${ECHO_T}$ac_header_preproc" >&6; }
15714
15715 # So?  What about this header?
15716 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15717   yes:no: )
15718     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15719 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15720     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15721 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15722     ac_header_preproc=yes
15723     ;;
15724   no:yes:* )
15725     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15726 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15727     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15728 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15729     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15730 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15731     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15732 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15733     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15734 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15735     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15736 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15737     ( cat <<\_ASBOX
15738 ## ------------------------------------ ##
15739 ## Report this to http://llvm.org/bugs/ ##
15740 ## ------------------------------------ ##
15741 _ASBOX
15742      ) | sed "s/^/$as_me: WARNING:     /" >&2
15743     ;;
15744 esac
15745 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15746 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15747 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15748   echo $ECHO_N "(cached) $ECHO_C" >&6
15749 else
15750   eval "$as_ac_Header=\$ac_header_preproc"
15751 fi
15752 ac_res=`eval echo '${'$as_ac_Header'}'`
15753                { echo "$as_me:$LINENO: result: $ac_res" >&5
15754 echo "${ECHO_T}$ac_res" >&6; }
15755
15756 fi
15757 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15758   cat >>confdefs.h <<_ACEOF
15759 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15760 _ACEOF
15761
15762 fi
15763
15764 done
15765
15766 if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
15767
15768 for ac_header in pthread.h
15769 do
15770 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15771 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15772   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15773 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15774 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15775   echo $ECHO_N "(cached) $ECHO_C" >&6
15776 fi
15777 ac_res=`eval echo '${'$as_ac_Header'}'`
15778                { echo "$as_me:$LINENO: result: $ac_res" >&5
15779 echo "${ECHO_T}$ac_res" >&6; }
15780 else
15781   # Is the header compilable?
15782 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15783 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15784 cat >conftest.$ac_ext <<_ACEOF
15785 /* confdefs.h.  */
15786 _ACEOF
15787 cat confdefs.h >>conftest.$ac_ext
15788 cat >>conftest.$ac_ext <<_ACEOF
15789 /* end confdefs.h.  */
15790 $ac_includes_default
15791 #include <$ac_header>
15792 _ACEOF
15793 rm -f conftest.$ac_objext
15794 if { (ac_try="$ac_compile"
15795 case "(($ac_try" in
15796   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15797   *) ac_try_echo=$ac_try;;
15798 esac
15799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15800   (eval "$ac_compile") 2>conftest.er1
15801   ac_status=$?
15802   grep -v '^ *+' conftest.er1 >conftest.err
15803   rm -f conftest.er1
15804   cat conftest.err >&5
15805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15806   (exit $ac_status); } &&
15807          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15808   { (case "(($ac_try" in
15809   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15810   *) ac_try_echo=$ac_try;;
15811 esac
15812 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15813   (eval "$ac_try") 2>&5
15814   ac_status=$?
15815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15816   (exit $ac_status); }; } &&
15817          { ac_try='test -s conftest.$ac_objext'
15818   { (case "(($ac_try" in
15819   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15820   *) ac_try_echo=$ac_try;;
15821 esac
15822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15823   (eval "$ac_try") 2>&5
15824   ac_status=$?
15825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15826   (exit $ac_status); }; }; then
15827   ac_header_compiler=yes
15828 else
15829   echo "$as_me: failed program was:" >&5
15830 sed 's/^/| /' conftest.$ac_ext >&5
15831
15832         ac_header_compiler=no
15833 fi
15834
15835 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15836 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15837 echo "${ECHO_T}$ac_header_compiler" >&6; }
15838
15839 # Is the header present?
15840 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15841 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15842 cat >conftest.$ac_ext <<_ACEOF
15843 /* confdefs.h.  */
15844 _ACEOF
15845 cat confdefs.h >>conftest.$ac_ext
15846 cat >>conftest.$ac_ext <<_ACEOF
15847 /* end confdefs.h.  */
15848 #include <$ac_header>
15849 _ACEOF
15850 if { (ac_try="$ac_cpp conftest.$ac_ext"
15851 case "(($ac_try" in
15852   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15853   *) ac_try_echo=$ac_try;;
15854 esac
15855 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15856   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15857   ac_status=$?
15858   grep -v '^ *+' conftest.er1 >conftest.err
15859   rm -f conftest.er1
15860   cat conftest.err >&5
15861   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15862   (exit $ac_status); } >/dev/null; then
15863   if test -s conftest.err; then
15864     ac_cpp_err=$ac_c_preproc_warn_flag
15865     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15866   else
15867     ac_cpp_err=
15868   fi
15869 else
15870   ac_cpp_err=yes
15871 fi
15872 if test -z "$ac_cpp_err"; then
15873   ac_header_preproc=yes
15874 else
15875   echo "$as_me: failed program was:" >&5
15876 sed 's/^/| /' conftest.$ac_ext >&5
15877
15878   ac_header_preproc=no
15879 fi
15880
15881 rm -f conftest.err conftest.$ac_ext
15882 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15883 echo "${ECHO_T}$ac_header_preproc" >&6; }
15884
15885 # So?  What about this header?
15886 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15887   yes:no: )
15888     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15889 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15890     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15891 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15892     ac_header_preproc=yes
15893     ;;
15894   no:yes:* )
15895     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15896 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15897     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15898 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15899     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15900 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15901     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15902 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15903     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15904 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15905     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15906 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15907     ( cat <<\_ASBOX
15908 ## ------------------------------------ ##
15909 ## Report this to http://llvm.org/bugs/ ##
15910 ## ------------------------------------ ##
15911 _ASBOX
15912      ) | sed "s/^/$as_me: WARNING:     /" >&2
15913     ;;
15914 esac
15915 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15916 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15917 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15918   echo $ECHO_N "(cached) $ECHO_C" >&6
15919 else
15920   eval "$as_ac_Header=\$ac_header_preproc"
15921 fi
15922 ac_res=`eval echo '${'$as_ac_Header'}'`
15923                { echo "$as_me:$LINENO: result: $ac_res" >&5
15924 echo "${ECHO_T}$ac_res" >&6; }
15925
15926 fi
15927 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15928   cat >>confdefs.h <<_ACEOF
15929 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15930 _ACEOF
15931  HAVE_PTHREAD=1
15932
15933 else
15934   HAVE_PTHREAD=0
15935
15936 fi
15937
15938 done
15939
15940 else
15941   HAVE_PTHREAD=0
15942
15943 fi
15944
15945 if test "$llvm_cv_enable_libffi" = "yes" ; then
15946
15947
15948 for ac_header in ffi.h ffi/ffi.h
15949 do
15950 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15951 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15952   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15953 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15954 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15955   echo $ECHO_N "(cached) $ECHO_C" >&6
15956 fi
15957 ac_res=`eval echo '${'$as_ac_Header'}'`
15958                { echo "$as_me:$LINENO: result: $ac_res" >&5
15959 echo "${ECHO_T}$ac_res" >&6; }
15960 else
15961   # Is the header compilable?
15962 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15963 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15964 cat >conftest.$ac_ext <<_ACEOF
15965 /* confdefs.h.  */
15966 _ACEOF
15967 cat confdefs.h >>conftest.$ac_ext
15968 cat >>conftest.$ac_ext <<_ACEOF
15969 /* end confdefs.h.  */
15970 $ac_includes_default
15971 #include <$ac_header>
15972 _ACEOF
15973 rm -f conftest.$ac_objext
15974 if { (ac_try="$ac_compile"
15975 case "(($ac_try" in
15976   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15977   *) ac_try_echo=$ac_try;;
15978 esac
15979 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15980   (eval "$ac_compile") 2>conftest.er1
15981   ac_status=$?
15982   grep -v '^ *+' conftest.er1 >conftest.err
15983   rm -f conftest.er1
15984   cat conftest.err >&5
15985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15986   (exit $ac_status); } &&
15987          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15988   { (case "(($ac_try" in
15989   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15990   *) ac_try_echo=$ac_try;;
15991 esac
15992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15993   (eval "$ac_try") 2>&5
15994   ac_status=$?
15995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15996   (exit $ac_status); }; } &&
15997          { ac_try='test -s conftest.$ac_objext'
15998   { (case "(($ac_try" in
15999   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16000   *) ac_try_echo=$ac_try;;
16001 esac
16002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16003   (eval "$ac_try") 2>&5
16004   ac_status=$?
16005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16006   (exit $ac_status); }; }; then
16007   ac_header_compiler=yes
16008 else
16009   echo "$as_me: failed program was:" >&5
16010 sed 's/^/| /' conftest.$ac_ext >&5
16011
16012         ac_header_compiler=no
16013 fi
16014
16015 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16016 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16017 echo "${ECHO_T}$ac_header_compiler" >&6; }
16018
16019 # Is the header present?
16020 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16021 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16022 cat >conftest.$ac_ext <<_ACEOF
16023 /* confdefs.h.  */
16024 _ACEOF
16025 cat confdefs.h >>conftest.$ac_ext
16026 cat >>conftest.$ac_ext <<_ACEOF
16027 /* end confdefs.h.  */
16028 #include <$ac_header>
16029 _ACEOF
16030 if { (ac_try="$ac_cpp conftest.$ac_ext"
16031 case "(($ac_try" in
16032   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16033   *) ac_try_echo=$ac_try;;
16034 esac
16035 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16036   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16037   ac_status=$?
16038   grep -v '^ *+' conftest.er1 >conftest.err
16039   rm -f conftest.er1
16040   cat conftest.err >&5
16041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16042   (exit $ac_status); } >/dev/null; then
16043   if test -s conftest.err; then
16044     ac_cpp_err=$ac_c_preproc_warn_flag
16045     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16046   else
16047     ac_cpp_err=
16048   fi
16049 else
16050   ac_cpp_err=yes
16051 fi
16052 if test -z "$ac_cpp_err"; then
16053   ac_header_preproc=yes
16054 else
16055   echo "$as_me: failed program was:" >&5
16056 sed 's/^/| /' conftest.$ac_ext >&5
16057
16058   ac_header_preproc=no
16059 fi
16060
16061 rm -f conftest.err conftest.$ac_ext
16062 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16063 echo "${ECHO_T}$ac_header_preproc" >&6; }
16064
16065 # So?  What about this header?
16066 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16067   yes:no: )
16068     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16069 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16070     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16071 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16072     ac_header_preproc=yes
16073     ;;
16074   no:yes:* )
16075     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16076 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16077     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16078 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16079     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16080 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16081     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16082 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16083     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16084 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16085     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16086 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16087     ( cat <<\_ASBOX
16088 ## ------------------------------------ ##
16089 ## Report this to http://llvm.org/bugs/ ##
16090 ## ------------------------------------ ##
16091 _ASBOX
16092      ) | sed "s/^/$as_me: WARNING:     /" >&2
16093     ;;
16094 esac
16095 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16096 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16097 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16098   echo $ECHO_N "(cached) $ECHO_C" >&6
16099 else
16100   eval "$as_ac_Header=\$ac_header_preproc"
16101 fi
16102 ac_res=`eval echo '${'$as_ac_Header'}'`
16103                { echo "$as_me:$LINENO: result: $ac_res" >&5
16104 echo "${ECHO_T}$ac_res" >&6; }
16105
16106 fi
16107 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16108   cat >>confdefs.h <<_ACEOF
16109 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16110 _ACEOF
16111
16112 fi
16113
16114 done
16115
16116 fi
16117
16118
16119 for ac_header in CrashReporterClient.h
16120 do
16121 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16122 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16123   { echo "$as_me:$LINENO: checking for $ac_header" >&5
16124 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16125 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16126   echo $ECHO_N "(cached) $ECHO_C" >&6
16127 fi
16128 ac_res=`eval echo '${'$as_ac_Header'}'`
16129                { echo "$as_me:$LINENO: result: $ac_res" >&5
16130 echo "${ECHO_T}$ac_res" >&6; }
16131 else
16132   # Is the header compilable?
16133 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16134 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16135 cat >conftest.$ac_ext <<_ACEOF
16136 /* confdefs.h.  */
16137 _ACEOF
16138 cat confdefs.h >>conftest.$ac_ext
16139 cat >>conftest.$ac_ext <<_ACEOF
16140 /* end confdefs.h.  */
16141 $ac_includes_default
16142 #include <$ac_header>
16143 _ACEOF
16144 rm -f conftest.$ac_objext
16145 if { (ac_try="$ac_compile"
16146 case "(($ac_try" in
16147   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16148   *) ac_try_echo=$ac_try;;
16149 esac
16150 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16151   (eval "$ac_compile") 2>conftest.er1
16152   ac_status=$?
16153   grep -v '^ *+' conftest.er1 >conftest.err
16154   rm -f conftest.er1
16155   cat conftest.err >&5
16156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16157   (exit $ac_status); } &&
16158          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16159   { (case "(($ac_try" in
16160   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16161   *) ac_try_echo=$ac_try;;
16162 esac
16163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16164   (eval "$ac_try") 2>&5
16165   ac_status=$?
16166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16167   (exit $ac_status); }; } &&
16168          { ac_try='test -s conftest.$ac_objext'
16169   { (case "(($ac_try" in
16170   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16171   *) ac_try_echo=$ac_try;;
16172 esac
16173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16174   (eval "$ac_try") 2>&5
16175   ac_status=$?
16176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16177   (exit $ac_status); }; }; then
16178   ac_header_compiler=yes
16179 else
16180   echo "$as_me: failed program was:" >&5
16181 sed 's/^/| /' conftest.$ac_ext >&5
16182
16183         ac_header_compiler=no
16184 fi
16185
16186 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16187 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16188 echo "${ECHO_T}$ac_header_compiler" >&6; }
16189
16190 # Is the header present?
16191 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16192 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16193 cat >conftest.$ac_ext <<_ACEOF
16194 /* confdefs.h.  */
16195 _ACEOF
16196 cat confdefs.h >>conftest.$ac_ext
16197 cat >>conftest.$ac_ext <<_ACEOF
16198 /* end confdefs.h.  */
16199 #include <$ac_header>
16200 _ACEOF
16201 if { (ac_try="$ac_cpp conftest.$ac_ext"
16202 case "(($ac_try" in
16203   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16204   *) ac_try_echo=$ac_try;;
16205 esac
16206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16207   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16208   ac_status=$?
16209   grep -v '^ *+' conftest.er1 >conftest.err
16210   rm -f conftest.er1
16211   cat conftest.err >&5
16212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16213   (exit $ac_status); } >/dev/null; then
16214   if test -s conftest.err; then
16215     ac_cpp_err=$ac_c_preproc_warn_flag
16216     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16217   else
16218     ac_cpp_err=
16219   fi
16220 else
16221   ac_cpp_err=yes
16222 fi
16223 if test -z "$ac_cpp_err"; then
16224   ac_header_preproc=yes
16225 else
16226   echo "$as_me: failed program was:" >&5
16227 sed 's/^/| /' conftest.$ac_ext >&5
16228
16229   ac_header_preproc=no
16230 fi
16231
16232 rm -f conftest.err conftest.$ac_ext
16233 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16234 echo "${ECHO_T}$ac_header_preproc" >&6; }
16235
16236 # So?  What about this header?
16237 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16238   yes:no: )
16239     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16240 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16241     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16242 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16243     ac_header_preproc=yes
16244     ;;
16245   no:yes:* )
16246     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16247 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16248     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16249 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16250     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16251 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16252     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16253 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16254     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16255 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16256     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16257 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16258     ( cat <<\_ASBOX
16259 ## ------------------------------------ ##
16260 ## Report this to http://llvm.org/bugs/ ##
16261 ## ------------------------------------ ##
16262 _ASBOX
16263      ) | sed "s/^/$as_me: WARNING:     /" >&2
16264     ;;
16265 esac
16266 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16267 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16268 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16269   echo $ECHO_N "(cached) $ECHO_C" >&6
16270 else
16271   eval "$as_ac_Header=\$ac_header_preproc"
16272 fi
16273 ac_res=`eval echo '${'$as_ac_Header'}'`
16274                { echo "$as_me:$LINENO: result: $ac_res" >&5
16275 echo "${ECHO_T}$ac_res" >&6; }
16276
16277 fi
16278 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16279   cat >>confdefs.h <<_ACEOF
16280 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16281 _ACEOF
16282
16283 fi
16284
16285 done
16286
16287
16288 { echo "$as_me:$LINENO: checking __crashreporter_info__" >&5
16289 echo $ECHO_N "checking __crashreporter_info__... $ECHO_C" >&6; }
16290 cat >conftest.$ac_ext <<_ACEOF
16291 /* confdefs.h.  */
16292 _ACEOF
16293 cat confdefs.h >>conftest.$ac_ext
16294 cat >>conftest.$ac_ext <<_ACEOF
16295 /* end confdefs.h.  */
16296 extern const char *__crashreporter_info__;
16297       int main() {
16298         __crashreporter_info__ = "test";
16299         return 0;
16300       }
16301
16302 _ACEOF
16303 rm -f conftest.$ac_objext conftest$ac_exeext
16304 if { (ac_try="$ac_link"
16305 case "(($ac_try" in
16306   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16307   *) ac_try_echo=$ac_try;;
16308 esac
16309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16310   (eval "$ac_link") 2>conftest.er1
16311   ac_status=$?
16312   grep -v '^ *+' conftest.er1 >conftest.err
16313   rm -f conftest.er1
16314   cat conftest.err >&5
16315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16316   (exit $ac_status); } &&
16317          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16318   { (case "(($ac_try" in
16319   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16320   *) ac_try_echo=$ac_try;;
16321 esac
16322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16323   (eval "$ac_try") 2>&5
16324   ac_status=$?
16325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16326   (exit $ac_status); }; } &&
16327          { ac_try='test -s conftest$ac_exeext'
16328   { (case "(($ac_try" in
16329   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16330   *) ac_try_echo=$ac_try;;
16331 esac
16332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16333   (eval "$ac_try") 2>&5
16334   ac_status=$?
16335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16336   (exit $ac_status); }; }; then
16337   { echo "$as_me:$LINENO: result: yes" >&5
16338 echo "${ECHO_T}yes" >&6; }
16339
16340 cat >>confdefs.h <<\_ACEOF
16341 #define HAVE_CRASHREPORTER_INFO 1
16342 _ACEOF
16343
16344 else
16345   echo "$as_me: failed program was:" >&5
16346 sed 's/^/| /' conftest.$ac_ext >&5
16347
16348         { echo "$as_me:$LINENO: result: no" >&5
16349 echo "${ECHO_T}no" >&6; }
16350
16351 cat >>confdefs.h <<\_ACEOF
16352 #define HAVE_CRASHREPORTER_INFO 0
16353 _ACEOF
16354
16355 fi
16356
16357 rm -f core conftest.err conftest.$ac_objext \
16358       conftest$ac_exeext conftest.$ac_ext
16359
16360
16361
16362
16363   { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
16364 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
16365 if test "${ac_cv_huge_val_sanity+set}" = set; then
16366   echo $ECHO_N "(cached) $ECHO_C" >&6
16367 else
16368
16369     ac_ext=cpp
16370 ac_cpp='$CXXCPP $CPPFLAGS'
16371 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16372 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16373 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16374
16375     ac_save_CXXFLAGS=$CXXFLAGS
16376     CXXFLAGS="$CXXFLAGS -pedantic"
16377     if test "$cross_compiling" = yes; then
16378   ac_cv_huge_val_sanity=yes
16379 else
16380   cat >conftest.$ac_ext <<_ACEOF
16381 /* confdefs.h.  */
16382 _ACEOF
16383 cat confdefs.h >>conftest.$ac_ext
16384 cat >>conftest.$ac_ext <<_ACEOF
16385 /* end confdefs.h.  */
16386 #include <math.h>
16387 int
16388 main ()
16389 {
16390 double x = HUGE_VAL; return x != x;
16391   ;
16392   return 0;
16393 }
16394 _ACEOF
16395 rm -f conftest$ac_exeext
16396 if { (ac_try="$ac_link"
16397 case "(($ac_try" in
16398   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16399   *) ac_try_echo=$ac_try;;
16400 esac
16401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16402   (eval "$ac_link") 2>&5
16403   ac_status=$?
16404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16405   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16406   { (case "(($ac_try" in
16407   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16408   *) ac_try_echo=$ac_try;;
16409 esac
16410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16411   (eval "$ac_try") 2>&5
16412   ac_status=$?
16413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16414   (exit $ac_status); }; }; then
16415   ac_cv_huge_val_sanity=yes
16416 else
16417   echo "$as_me: program exited with status $ac_status" >&5
16418 echo "$as_me: failed program was:" >&5
16419 sed 's/^/| /' conftest.$ac_ext >&5
16420
16421 ( exit $ac_status )
16422 ac_cv_huge_val_sanity=no
16423 fi
16424 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16425 fi
16426
16427
16428     CXXFLAGS=$ac_save_CXXFLAGS
16429     ac_ext=c
16430 ac_cpp='$CPP $CPPFLAGS'
16431 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16432 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16433 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16434
16435
16436 fi
16437 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
16438 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
16439   HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
16440
16441
16442 { echo "$as_me:$LINENO: checking for pid_t" >&5
16443 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
16444 if test "${ac_cv_type_pid_t+set}" = set; then
16445   echo $ECHO_N "(cached) $ECHO_C" >&6
16446 else
16447   cat >conftest.$ac_ext <<_ACEOF
16448 /* confdefs.h.  */
16449 _ACEOF
16450 cat confdefs.h >>conftest.$ac_ext
16451 cat >>conftest.$ac_ext <<_ACEOF
16452 /* end confdefs.h.  */
16453 $ac_includes_default
16454 typedef pid_t ac__type_new_;
16455 int
16456 main ()
16457 {
16458 if ((ac__type_new_ *) 0)
16459   return 0;
16460 if (sizeof (ac__type_new_))
16461   return 0;
16462   ;
16463   return 0;
16464 }
16465 _ACEOF
16466 rm -f conftest.$ac_objext
16467 if { (ac_try="$ac_compile"
16468 case "(($ac_try" in
16469   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16470   *) ac_try_echo=$ac_try;;
16471 esac
16472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16473   (eval "$ac_compile") 2>conftest.er1
16474   ac_status=$?
16475   grep -v '^ *+' conftest.er1 >conftest.err
16476   rm -f conftest.er1
16477   cat conftest.err >&5
16478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16479   (exit $ac_status); } &&
16480          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16481   { (case "(($ac_try" in
16482   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16483   *) ac_try_echo=$ac_try;;
16484 esac
16485 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16486   (eval "$ac_try") 2>&5
16487   ac_status=$?
16488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16489   (exit $ac_status); }; } &&
16490          { ac_try='test -s conftest.$ac_objext'
16491   { (case "(($ac_try" in
16492   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16493   *) ac_try_echo=$ac_try;;
16494 esac
16495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16496   (eval "$ac_try") 2>&5
16497   ac_status=$?
16498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16499   (exit $ac_status); }; }; then
16500   ac_cv_type_pid_t=yes
16501 else
16502   echo "$as_me: failed program was:" >&5
16503 sed 's/^/| /' conftest.$ac_ext >&5
16504
16505         ac_cv_type_pid_t=no
16506 fi
16507
16508 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16509 fi
16510 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
16511 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
16512 if test $ac_cv_type_pid_t = yes; then
16513   :
16514 else
16515
16516 cat >>confdefs.h <<_ACEOF
16517 #define pid_t int
16518 _ACEOF
16519
16520 fi
16521
16522 { echo "$as_me:$LINENO: checking for size_t" >&5
16523 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
16524 if test "${ac_cv_type_size_t+set}" = set; then
16525   echo $ECHO_N "(cached) $ECHO_C" >&6
16526 else
16527   cat >conftest.$ac_ext <<_ACEOF
16528 /* confdefs.h.  */
16529 _ACEOF
16530 cat confdefs.h >>conftest.$ac_ext
16531 cat >>conftest.$ac_ext <<_ACEOF
16532 /* end confdefs.h.  */
16533 $ac_includes_default
16534 typedef size_t ac__type_new_;
16535 int
16536 main ()
16537 {
16538 if ((ac__type_new_ *) 0)
16539   return 0;
16540 if (sizeof (ac__type_new_))
16541   return 0;
16542   ;
16543   return 0;
16544 }
16545 _ACEOF
16546 rm -f conftest.$ac_objext
16547 if { (ac_try="$ac_compile"
16548 case "(($ac_try" in
16549   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16550   *) ac_try_echo=$ac_try;;
16551 esac
16552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16553   (eval "$ac_compile") 2>conftest.er1
16554   ac_status=$?
16555   grep -v '^ *+' conftest.er1 >conftest.err
16556   rm -f conftest.er1
16557   cat conftest.err >&5
16558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16559   (exit $ac_status); } &&
16560          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16561   { (case "(($ac_try" in
16562   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16563   *) ac_try_echo=$ac_try;;
16564 esac
16565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16566   (eval "$ac_try") 2>&5
16567   ac_status=$?
16568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16569   (exit $ac_status); }; } &&
16570          { ac_try='test -s conftest.$ac_objext'
16571   { (case "(($ac_try" in
16572   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16573   *) ac_try_echo=$ac_try;;
16574 esac
16575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16576   (eval "$ac_try") 2>&5
16577   ac_status=$?
16578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16579   (exit $ac_status); }; }; then
16580   ac_cv_type_size_t=yes
16581 else
16582   echo "$as_me: failed program was:" >&5
16583 sed 's/^/| /' conftest.$ac_ext >&5
16584
16585         ac_cv_type_size_t=no
16586 fi
16587
16588 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16589 fi
16590 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
16591 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
16592 if test $ac_cv_type_size_t = yes; then
16593   :
16594 else
16595
16596 cat >>confdefs.h <<_ACEOF
16597 #define size_t unsigned int
16598 _ACEOF
16599
16600 fi
16601
16602
16603 cat >>confdefs.h <<_ACEOF
16604 #define RETSIGTYPE void
16605 _ACEOF
16606
16607 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
16608 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
16609 if test "${ac_cv_struct_tm+set}" = set; then
16610   echo $ECHO_N "(cached) $ECHO_C" >&6
16611 else
16612   cat >conftest.$ac_ext <<_ACEOF
16613 /* confdefs.h.  */
16614 _ACEOF
16615 cat confdefs.h >>conftest.$ac_ext
16616 cat >>conftest.$ac_ext <<_ACEOF
16617 /* end confdefs.h.  */
16618 #include <sys/types.h>
16619 #include <time.h>
16620
16621 int
16622 main ()
16623 {
16624 struct tm *tp; tp->tm_sec;
16625   ;
16626   return 0;
16627 }
16628 _ACEOF
16629 rm -f conftest.$ac_objext
16630 if { (ac_try="$ac_compile"
16631 case "(($ac_try" in
16632   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16633   *) ac_try_echo=$ac_try;;
16634 esac
16635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16636   (eval "$ac_compile") 2>conftest.er1
16637   ac_status=$?
16638   grep -v '^ *+' conftest.er1 >conftest.err
16639   rm -f conftest.er1
16640   cat conftest.err >&5
16641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16642   (exit $ac_status); } &&
16643          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16644   { (case "(($ac_try" in
16645   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16646   *) ac_try_echo=$ac_try;;
16647 esac
16648 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16649   (eval "$ac_try") 2>&5
16650   ac_status=$?
16651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16652   (exit $ac_status); }; } &&
16653          { ac_try='test -s conftest.$ac_objext'
16654   { (case "(($ac_try" in
16655   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16656   *) ac_try_echo=$ac_try;;
16657 esac
16658 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16659   (eval "$ac_try") 2>&5
16660   ac_status=$?
16661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16662   (exit $ac_status); }; }; then
16663   ac_cv_struct_tm=time.h
16664 else
16665   echo "$as_me: failed program was:" >&5
16666 sed 's/^/| /' conftest.$ac_ext >&5
16667
16668         ac_cv_struct_tm=sys/time.h
16669 fi
16670
16671 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16672 fi
16673 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
16674 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
16675 if test $ac_cv_struct_tm = sys/time.h; then
16676
16677 cat >>confdefs.h <<\_ACEOF
16678 #define TM_IN_SYS_TIME 1
16679 _ACEOF
16680
16681 fi
16682
16683 { echo "$as_me:$LINENO: checking for int64_t" >&5
16684 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
16685 if test "${ac_cv_type_int64_t+set}" = set; then
16686   echo $ECHO_N "(cached) $ECHO_C" >&6
16687 else
16688   cat >conftest.$ac_ext <<_ACEOF
16689 /* confdefs.h.  */
16690 _ACEOF
16691 cat confdefs.h >>conftest.$ac_ext
16692 cat >>conftest.$ac_ext <<_ACEOF
16693 /* end confdefs.h.  */
16694 $ac_includes_default
16695 typedef int64_t ac__type_new_;
16696 int
16697 main ()
16698 {
16699 if ((ac__type_new_ *) 0)
16700   return 0;
16701 if (sizeof (ac__type_new_))
16702   return 0;
16703   ;
16704   return 0;
16705 }
16706 _ACEOF
16707 rm -f conftest.$ac_objext
16708 if { (ac_try="$ac_compile"
16709 case "(($ac_try" in
16710   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16711   *) ac_try_echo=$ac_try;;
16712 esac
16713 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16714   (eval "$ac_compile") 2>conftest.er1
16715   ac_status=$?
16716   grep -v '^ *+' conftest.er1 >conftest.err
16717   rm -f conftest.er1
16718   cat conftest.err >&5
16719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16720   (exit $ac_status); } &&
16721          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16722   { (case "(($ac_try" in
16723   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16724   *) ac_try_echo=$ac_try;;
16725 esac
16726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16727   (eval "$ac_try") 2>&5
16728   ac_status=$?
16729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16730   (exit $ac_status); }; } &&
16731          { ac_try='test -s conftest.$ac_objext'
16732   { (case "(($ac_try" in
16733   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16734   *) ac_try_echo=$ac_try;;
16735 esac
16736 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16737   (eval "$ac_try") 2>&5
16738   ac_status=$?
16739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16740   (exit $ac_status); }; }; then
16741   ac_cv_type_int64_t=yes
16742 else
16743   echo "$as_me: failed program was:" >&5
16744 sed 's/^/| /' conftest.$ac_ext >&5
16745
16746         ac_cv_type_int64_t=no
16747 fi
16748
16749 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16750 fi
16751 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
16752 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
16753 if test $ac_cv_type_int64_t = yes; then
16754
16755 cat >>confdefs.h <<_ACEOF
16756 #define HAVE_INT64_T 1
16757 _ACEOF
16758
16759
16760 else
16761   { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
16762 echo "$as_me: error: Type int64_t required but not found" >&2;}
16763    { (exit 1); exit 1; }; }
16764 fi
16765
16766 { echo "$as_me:$LINENO: checking for uint64_t" >&5
16767 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
16768 if test "${ac_cv_type_uint64_t+set}" = set; then
16769   echo $ECHO_N "(cached) $ECHO_C" >&6
16770 else
16771   cat >conftest.$ac_ext <<_ACEOF
16772 /* confdefs.h.  */
16773 _ACEOF
16774 cat confdefs.h >>conftest.$ac_ext
16775 cat >>conftest.$ac_ext <<_ACEOF
16776 /* end confdefs.h.  */
16777 $ac_includes_default
16778 typedef uint64_t ac__type_new_;
16779 int
16780 main ()
16781 {
16782 if ((ac__type_new_ *) 0)
16783   return 0;
16784 if (sizeof (ac__type_new_))
16785   return 0;
16786   ;
16787   return 0;
16788 }
16789 _ACEOF
16790 rm -f conftest.$ac_objext
16791 if { (ac_try="$ac_compile"
16792 case "(($ac_try" in
16793   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16794   *) ac_try_echo=$ac_try;;
16795 esac
16796 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16797   (eval "$ac_compile") 2>conftest.er1
16798   ac_status=$?
16799   grep -v '^ *+' conftest.er1 >conftest.err
16800   rm -f conftest.er1
16801   cat conftest.err >&5
16802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16803   (exit $ac_status); } &&
16804          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16805   { (case "(($ac_try" in
16806   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16807   *) ac_try_echo=$ac_try;;
16808 esac
16809 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16810   (eval "$ac_try") 2>&5
16811   ac_status=$?
16812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16813   (exit $ac_status); }; } &&
16814          { ac_try='test -s conftest.$ac_objext'
16815   { (case "(($ac_try" in
16816   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16817   *) ac_try_echo=$ac_try;;
16818 esac
16819 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16820   (eval "$ac_try") 2>&5
16821   ac_status=$?
16822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16823   (exit $ac_status); }; }; then
16824   ac_cv_type_uint64_t=yes
16825 else
16826   echo "$as_me: failed program was:" >&5
16827 sed 's/^/| /' conftest.$ac_ext >&5
16828
16829         ac_cv_type_uint64_t=no
16830 fi
16831
16832 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16833 fi
16834 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
16835 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
16836 if test $ac_cv_type_uint64_t = yes; then
16837
16838 cat >>confdefs.h <<_ACEOF
16839 #define HAVE_UINT64_T 1
16840 _ACEOF
16841
16842
16843 else
16844   { echo "$as_me:$LINENO: checking for u_int64_t" >&5
16845 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
16846 if test "${ac_cv_type_u_int64_t+set}" = set; then
16847   echo $ECHO_N "(cached) $ECHO_C" >&6
16848 else
16849   cat >conftest.$ac_ext <<_ACEOF
16850 /* confdefs.h.  */
16851 _ACEOF
16852 cat confdefs.h >>conftest.$ac_ext
16853 cat >>conftest.$ac_ext <<_ACEOF
16854 /* end confdefs.h.  */
16855 $ac_includes_default
16856 typedef u_int64_t ac__type_new_;
16857 int
16858 main ()
16859 {
16860 if ((ac__type_new_ *) 0)
16861   return 0;
16862 if (sizeof (ac__type_new_))
16863   return 0;
16864   ;
16865   return 0;
16866 }
16867 _ACEOF
16868 rm -f conftest.$ac_objext
16869 if { (ac_try="$ac_compile"
16870 case "(($ac_try" in
16871   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16872   *) ac_try_echo=$ac_try;;
16873 esac
16874 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16875   (eval "$ac_compile") 2>conftest.er1
16876   ac_status=$?
16877   grep -v '^ *+' conftest.er1 >conftest.err
16878   rm -f conftest.er1
16879   cat conftest.err >&5
16880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16881   (exit $ac_status); } &&
16882          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16883   { (case "(($ac_try" in
16884   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16885   *) ac_try_echo=$ac_try;;
16886 esac
16887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16888   (eval "$ac_try") 2>&5
16889   ac_status=$?
16890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16891   (exit $ac_status); }; } &&
16892          { ac_try='test -s conftest.$ac_objext'
16893   { (case "(($ac_try" in
16894   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16895   *) ac_try_echo=$ac_try;;
16896 esac
16897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16898   (eval "$ac_try") 2>&5
16899   ac_status=$?
16900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16901   (exit $ac_status); }; }; then
16902   ac_cv_type_u_int64_t=yes
16903 else
16904   echo "$as_me: failed program was:" >&5
16905 sed 's/^/| /' conftest.$ac_ext >&5
16906
16907         ac_cv_type_u_int64_t=no
16908 fi
16909
16910 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16911 fi
16912 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
16913 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
16914 if test $ac_cv_type_u_int64_t = yes; then
16915
16916 cat >>confdefs.h <<_ACEOF
16917 #define HAVE_U_INT64_T 1
16918 _ACEOF
16919
16920
16921 else
16922   { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
16923 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
16924    { (exit 1); exit 1; }; }
16925 fi
16926
16927 fi
16928
16929
16930
16931
16932
16933
16934
16935
16936
16937
16938 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
16939 do
16940 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16941 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16942 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16943 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16944   echo $ECHO_N "(cached) $ECHO_C" >&6
16945 else
16946   cat >conftest.$ac_ext <<_ACEOF
16947 /* confdefs.h.  */
16948 _ACEOF
16949 cat confdefs.h >>conftest.$ac_ext
16950 cat >>conftest.$ac_ext <<_ACEOF
16951 /* end confdefs.h.  */
16952 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16953    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16954 #define $ac_func innocuous_$ac_func
16955
16956 /* System header to define __stub macros and hopefully few prototypes,
16957     which can conflict with char $ac_func (); below.
16958     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16959     <limits.h> exists even on freestanding compilers.  */
16960
16961 #ifdef __STDC__
16962 # include <limits.h>
16963 #else
16964 # include <assert.h>
16965 #endif
16966
16967 #undef $ac_func
16968
16969 /* Override any GCC internal prototype to avoid an error.
16970    Use char because int might match the return type of a GCC
16971    builtin and then its argument prototype would still apply.  */
16972 #ifdef __cplusplus
16973 extern "C"
16974 #endif
16975 char $ac_func ();
16976 /* The GNU C library defines this for functions which it implements
16977     to always fail with ENOSYS.  Some functions are actually named
16978     something starting with __ and the normal name is an alias.  */
16979 #if defined __stub_$ac_func || defined __stub___$ac_func
16980 choke me
16981 #endif
16982
16983 int
16984 main ()
16985 {
16986 return $ac_func ();
16987   ;
16988   return 0;
16989 }
16990 _ACEOF
16991 rm -f conftest.$ac_objext conftest$ac_exeext
16992 if { (ac_try="$ac_link"
16993 case "(($ac_try" in
16994   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16995   *) ac_try_echo=$ac_try;;
16996 esac
16997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16998   (eval "$ac_link") 2>conftest.er1
16999   ac_status=$?
17000   grep -v '^ *+' conftest.er1 >conftest.err
17001   rm -f conftest.er1
17002   cat conftest.err >&5
17003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17004   (exit $ac_status); } &&
17005          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17006   { (case "(($ac_try" in
17007   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17008   *) ac_try_echo=$ac_try;;
17009 esac
17010 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17011   (eval "$ac_try") 2>&5
17012   ac_status=$?
17013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17014   (exit $ac_status); }; } &&
17015          { ac_try='test -s conftest$ac_exeext'
17016   { (case "(($ac_try" in
17017   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17018   *) ac_try_echo=$ac_try;;
17019 esac
17020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17021   (eval "$ac_try") 2>&5
17022   ac_status=$?
17023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17024   (exit $ac_status); }; }; then
17025   eval "$as_ac_var=yes"
17026 else
17027   echo "$as_me: failed program was:" >&5
17028 sed 's/^/| /' conftest.$ac_ext >&5
17029
17030         eval "$as_ac_var=no"
17031 fi
17032
17033 rm -f core conftest.err conftest.$ac_objext \
17034       conftest$ac_exeext conftest.$ac_ext
17035 fi
17036 ac_res=`eval echo '${'$as_ac_var'}'`
17037                { echo "$as_me:$LINENO: result: $ac_res" >&5
17038 echo "${ECHO_T}$ac_res" >&6; }
17039 if test `eval echo '${'$as_ac_var'}'` = yes; then
17040   cat >>confdefs.h <<_ACEOF
17041 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17042 _ACEOF
17043
17044 fi
17045 done
17046
17047
17048
17049
17050
17051 for ac_func in powf fmodf strtof round
17052 do
17053 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17054 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17055 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17056 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17057   echo $ECHO_N "(cached) $ECHO_C" >&6
17058 else
17059   cat >conftest.$ac_ext <<_ACEOF
17060 /* confdefs.h.  */
17061 _ACEOF
17062 cat confdefs.h >>conftest.$ac_ext
17063 cat >>conftest.$ac_ext <<_ACEOF
17064 /* end confdefs.h.  */
17065 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17066    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17067 #define $ac_func innocuous_$ac_func
17068
17069 /* System header to define __stub macros and hopefully few prototypes,
17070     which can conflict with char $ac_func (); below.
17071     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17072     <limits.h> exists even on freestanding compilers.  */
17073
17074 #ifdef __STDC__
17075 # include <limits.h>
17076 #else
17077 # include <assert.h>
17078 #endif
17079
17080 #undef $ac_func
17081
17082 /* Override any GCC internal prototype to avoid an error.
17083    Use char because int might match the return type of a GCC
17084    builtin and then its argument prototype would still apply.  */
17085 #ifdef __cplusplus
17086 extern "C"
17087 #endif
17088 char $ac_func ();
17089 /* The GNU C library defines this for functions which it implements
17090     to always fail with ENOSYS.  Some functions are actually named
17091     something starting with __ and the normal name is an alias.  */
17092 #if defined __stub_$ac_func || defined __stub___$ac_func
17093 choke me
17094 #endif
17095
17096 int
17097 main ()
17098 {
17099 return $ac_func ();
17100   ;
17101   return 0;
17102 }
17103 _ACEOF
17104 rm -f conftest.$ac_objext conftest$ac_exeext
17105 if { (ac_try="$ac_link"
17106 case "(($ac_try" in
17107   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17108   *) ac_try_echo=$ac_try;;
17109 esac
17110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17111   (eval "$ac_link") 2>conftest.er1
17112   ac_status=$?
17113   grep -v '^ *+' conftest.er1 >conftest.err
17114   rm -f conftest.er1
17115   cat conftest.err >&5
17116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17117   (exit $ac_status); } &&
17118          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17119   { (case "(($ac_try" in
17120   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17121   *) ac_try_echo=$ac_try;;
17122 esac
17123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17124   (eval "$ac_try") 2>&5
17125   ac_status=$?
17126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17127   (exit $ac_status); }; } &&
17128          { ac_try='test -s conftest$ac_exeext'
17129   { (case "(($ac_try" in
17130   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17131   *) ac_try_echo=$ac_try;;
17132 esac
17133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17134   (eval "$ac_try") 2>&5
17135   ac_status=$?
17136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17137   (exit $ac_status); }; }; then
17138   eval "$as_ac_var=yes"
17139 else
17140   echo "$as_me: failed program was:" >&5
17141 sed 's/^/| /' conftest.$ac_ext >&5
17142
17143         eval "$as_ac_var=no"
17144 fi
17145
17146 rm -f core conftest.err conftest.$ac_objext \
17147       conftest$ac_exeext conftest.$ac_ext
17148 fi
17149 ac_res=`eval echo '${'$as_ac_var'}'`
17150                { echo "$as_me:$LINENO: result: $ac_res" >&5
17151 echo "${ECHO_T}$ac_res" >&6; }
17152 if test `eval echo '${'$as_ac_var'}'` = yes; then
17153   cat >>confdefs.h <<_ACEOF
17154 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17155 _ACEOF
17156
17157 fi
17158 done
17159
17160
17161
17162
17163
17164
17165 for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
17166 do
17167 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17168 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17169 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17170 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17171   echo $ECHO_N "(cached) $ECHO_C" >&6
17172 else
17173   cat >conftest.$ac_ext <<_ACEOF
17174 /* confdefs.h.  */
17175 _ACEOF
17176 cat confdefs.h >>conftest.$ac_ext
17177 cat >>conftest.$ac_ext <<_ACEOF
17178 /* end confdefs.h.  */
17179 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17180    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17181 #define $ac_func innocuous_$ac_func
17182
17183 /* System header to define __stub macros and hopefully few prototypes,
17184     which can conflict with char $ac_func (); below.
17185     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17186     <limits.h> exists even on freestanding compilers.  */
17187
17188 #ifdef __STDC__
17189 # include <limits.h>
17190 #else
17191 # include <assert.h>
17192 #endif
17193
17194 #undef $ac_func
17195
17196 /* Override any GCC internal prototype to avoid an error.
17197    Use char because int might match the return type of a GCC
17198    builtin and then its argument prototype would still apply.  */
17199 #ifdef __cplusplus
17200 extern "C"
17201 #endif
17202 char $ac_func ();
17203 /* The GNU C library defines this for functions which it implements
17204     to always fail with ENOSYS.  Some functions are actually named
17205     something starting with __ and the normal name is an alias.  */
17206 #if defined __stub_$ac_func || defined __stub___$ac_func
17207 choke me
17208 #endif
17209
17210 int
17211 main ()
17212 {
17213 return $ac_func ();
17214   ;
17215   return 0;
17216 }
17217 _ACEOF
17218 rm -f conftest.$ac_objext conftest$ac_exeext
17219 if { (ac_try="$ac_link"
17220 case "(($ac_try" in
17221   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17222   *) ac_try_echo=$ac_try;;
17223 esac
17224 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17225   (eval "$ac_link") 2>conftest.er1
17226   ac_status=$?
17227   grep -v '^ *+' conftest.er1 >conftest.err
17228   rm -f conftest.er1
17229   cat conftest.err >&5
17230   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17231   (exit $ac_status); } &&
17232          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17233   { (case "(($ac_try" in
17234   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17235   *) ac_try_echo=$ac_try;;
17236 esac
17237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17238   (eval "$ac_try") 2>&5
17239   ac_status=$?
17240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17241   (exit $ac_status); }; } &&
17242          { ac_try='test -s conftest$ac_exeext'
17243   { (case "(($ac_try" in
17244   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17245   *) ac_try_echo=$ac_try;;
17246 esac
17247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17248   (eval "$ac_try") 2>&5
17249   ac_status=$?
17250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17251   (exit $ac_status); }; }; then
17252   eval "$as_ac_var=yes"
17253 else
17254   echo "$as_me: failed program was:" >&5
17255 sed 's/^/| /' conftest.$ac_ext >&5
17256
17257         eval "$as_ac_var=no"
17258 fi
17259
17260 rm -f core conftest.err conftest.$ac_objext \
17261       conftest$ac_exeext conftest.$ac_ext
17262 fi
17263 ac_res=`eval echo '${'$as_ac_var'}'`
17264                { echo "$as_me:$LINENO: result: $ac_res" >&5
17265 echo "${ECHO_T}$ac_res" >&6; }
17266 if test `eval echo '${'$as_ac_var'}'` = yes; then
17267   cat >>confdefs.h <<_ACEOF
17268 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17269 _ACEOF
17270
17271 fi
17272 done
17273
17274
17275
17276
17277 for ac_func in isatty mkdtemp mkstemp
17278 do
17279 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17280 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17281 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17282 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17283   echo $ECHO_N "(cached) $ECHO_C" >&6
17284 else
17285   cat >conftest.$ac_ext <<_ACEOF
17286 /* confdefs.h.  */
17287 _ACEOF
17288 cat confdefs.h >>conftest.$ac_ext
17289 cat >>conftest.$ac_ext <<_ACEOF
17290 /* end confdefs.h.  */
17291 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17292    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17293 #define $ac_func innocuous_$ac_func
17294
17295 /* System header to define __stub macros and hopefully few prototypes,
17296     which can conflict with char $ac_func (); below.
17297     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17298     <limits.h> exists even on freestanding compilers.  */
17299
17300 #ifdef __STDC__
17301 # include <limits.h>
17302 #else
17303 # include <assert.h>
17304 #endif
17305
17306 #undef $ac_func
17307
17308 /* Override any GCC internal prototype to avoid an error.
17309    Use char because int might match the return type of a GCC
17310    builtin and then its argument prototype would still apply.  */
17311 #ifdef __cplusplus
17312 extern "C"
17313 #endif
17314 char $ac_func ();
17315 /* The GNU C library defines this for functions which it implements
17316     to always fail with ENOSYS.  Some functions are actually named
17317     something starting with __ and the normal name is an alias.  */
17318 #if defined __stub_$ac_func || defined __stub___$ac_func
17319 choke me
17320 #endif
17321
17322 int
17323 main ()
17324 {
17325 return $ac_func ();
17326   ;
17327   return 0;
17328 }
17329 _ACEOF
17330 rm -f conftest.$ac_objext conftest$ac_exeext
17331 if { (ac_try="$ac_link"
17332 case "(($ac_try" in
17333   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17334   *) ac_try_echo=$ac_try;;
17335 esac
17336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17337   (eval "$ac_link") 2>conftest.er1
17338   ac_status=$?
17339   grep -v '^ *+' conftest.er1 >conftest.err
17340   rm -f conftest.er1
17341   cat conftest.err >&5
17342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17343   (exit $ac_status); } &&
17344          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17345   { (case "(($ac_try" in
17346   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17347   *) ac_try_echo=$ac_try;;
17348 esac
17349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17350   (eval "$ac_try") 2>&5
17351   ac_status=$?
17352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17353   (exit $ac_status); }; } &&
17354          { ac_try='test -s conftest$ac_exeext'
17355   { (case "(($ac_try" in
17356   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17357   *) ac_try_echo=$ac_try;;
17358 esac
17359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17360   (eval "$ac_try") 2>&5
17361   ac_status=$?
17362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17363   (exit $ac_status); }; }; then
17364   eval "$as_ac_var=yes"
17365 else
17366   echo "$as_me: failed program was:" >&5
17367 sed 's/^/| /' conftest.$ac_ext >&5
17368
17369         eval "$as_ac_var=no"
17370 fi
17371
17372 rm -f core conftest.err conftest.$ac_objext \
17373       conftest$ac_exeext conftest.$ac_ext
17374 fi
17375 ac_res=`eval echo '${'$as_ac_var'}'`
17376                { echo "$as_me:$LINENO: result: $ac_res" >&5
17377 echo "${ECHO_T}$ac_res" >&6; }
17378 if test `eval echo '${'$as_ac_var'}'` = yes; then
17379   cat >>confdefs.h <<_ACEOF
17380 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17381 _ACEOF
17382
17383 fi
17384 done
17385
17386
17387
17388
17389
17390
17391
17392
17393 for ac_func in mktemp posix_spawn pread realpath sbrk setrlimit strdup
17394 do
17395 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17396 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17397 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17398 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17399   echo $ECHO_N "(cached) $ECHO_C" >&6
17400 else
17401   cat >conftest.$ac_ext <<_ACEOF
17402 /* confdefs.h.  */
17403 _ACEOF
17404 cat confdefs.h >>conftest.$ac_ext
17405 cat >>conftest.$ac_ext <<_ACEOF
17406 /* end confdefs.h.  */
17407 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17408    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17409 #define $ac_func innocuous_$ac_func
17410
17411 /* System header to define __stub macros and hopefully few prototypes,
17412     which can conflict with char $ac_func (); below.
17413     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17414     <limits.h> exists even on freestanding compilers.  */
17415
17416 #ifdef __STDC__
17417 # include <limits.h>
17418 #else
17419 # include <assert.h>
17420 #endif
17421
17422 #undef $ac_func
17423
17424 /* Override any GCC internal prototype to avoid an error.
17425    Use char because int might match the return type of a GCC
17426    builtin and then its argument prototype would still apply.  */
17427 #ifdef __cplusplus
17428 extern "C"
17429 #endif
17430 char $ac_func ();
17431 /* The GNU C library defines this for functions which it implements
17432     to always fail with ENOSYS.  Some functions are actually named
17433     something starting with __ and the normal name is an alias.  */
17434 #if defined __stub_$ac_func || defined __stub___$ac_func
17435 choke me
17436 #endif
17437
17438 int
17439 main ()
17440 {
17441 return $ac_func ();
17442   ;
17443   return 0;
17444 }
17445 _ACEOF
17446 rm -f conftest.$ac_objext conftest$ac_exeext
17447 if { (ac_try="$ac_link"
17448 case "(($ac_try" in
17449   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17450   *) ac_try_echo=$ac_try;;
17451 esac
17452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17453   (eval "$ac_link") 2>conftest.er1
17454   ac_status=$?
17455   grep -v '^ *+' conftest.er1 >conftest.err
17456   rm -f conftest.er1
17457   cat conftest.err >&5
17458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17459   (exit $ac_status); } &&
17460          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17461   { (case "(($ac_try" in
17462   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17463   *) ac_try_echo=$ac_try;;
17464 esac
17465 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17466   (eval "$ac_try") 2>&5
17467   ac_status=$?
17468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17469   (exit $ac_status); }; } &&
17470          { ac_try='test -s conftest$ac_exeext'
17471   { (case "(($ac_try" in
17472   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17473   *) ac_try_echo=$ac_try;;
17474 esac
17475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17476   (eval "$ac_try") 2>&5
17477   ac_status=$?
17478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17479   (exit $ac_status); }; }; then
17480   eval "$as_ac_var=yes"
17481 else
17482   echo "$as_me: failed program was:" >&5
17483 sed 's/^/| /' conftest.$ac_ext >&5
17484
17485         eval "$as_ac_var=no"
17486 fi
17487
17488 rm -f core conftest.err conftest.$ac_objext \
17489       conftest$ac_exeext conftest.$ac_ext
17490 fi
17491 ac_res=`eval echo '${'$as_ac_var'}'`
17492                { echo "$as_me:$LINENO: result: $ac_res" >&5
17493 echo "${ECHO_T}$ac_res" >&6; }
17494 if test `eval echo '${'$as_ac_var'}'` = yes; then
17495   cat >>confdefs.h <<_ACEOF
17496 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17497 _ACEOF
17498
17499 fi
17500 done
17501
17502
17503
17504
17505 for ac_func in strerror strerror_r setenv
17506 do
17507 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17508 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17509 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17510 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17511   echo $ECHO_N "(cached) $ECHO_C" >&6
17512 else
17513   cat >conftest.$ac_ext <<_ACEOF
17514 /* confdefs.h.  */
17515 _ACEOF
17516 cat confdefs.h >>conftest.$ac_ext
17517 cat >>conftest.$ac_ext <<_ACEOF
17518 /* end confdefs.h.  */
17519 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17520    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17521 #define $ac_func innocuous_$ac_func
17522
17523 /* System header to define __stub macros and hopefully few prototypes,
17524     which can conflict with char $ac_func (); below.
17525     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17526     <limits.h> exists even on freestanding compilers.  */
17527
17528 #ifdef __STDC__
17529 # include <limits.h>
17530 #else
17531 # include <assert.h>
17532 #endif
17533
17534 #undef $ac_func
17535
17536 /* Override any GCC internal prototype to avoid an error.
17537    Use char because int might match the return type of a GCC
17538    builtin and then its argument prototype would still apply.  */
17539 #ifdef __cplusplus
17540 extern "C"
17541 #endif
17542 char $ac_func ();
17543 /* The GNU C library defines this for functions which it implements
17544     to always fail with ENOSYS.  Some functions are actually named
17545     something starting with __ and the normal name is an alias.  */
17546 #if defined __stub_$ac_func || defined __stub___$ac_func
17547 choke me
17548 #endif
17549
17550 int
17551 main ()
17552 {
17553 return $ac_func ();
17554   ;
17555   return 0;
17556 }
17557 _ACEOF
17558 rm -f conftest.$ac_objext conftest$ac_exeext
17559 if { (ac_try="$ac_link"
17560 case "(($ac_try" in
17561   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17562   *) ac_try_echo=$ac_try;;
17563 esac
17564 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17565   (eval "$ac_link") 2>conftest.er1
17566   ac_status=$?
17567   grep -v '^ *+' conftest.er1 >conftest.err
17568   rm -f conftest.er1
17569   cat conftest.err >&5
17570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17571   (exit $ac_status); } &&
17572          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17573   { (case "(($ac_try" in
17574   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17575   *) ac_try_echo=$ac_try;;
17576 esac
17577 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17578   (eval "$ac_try") 2>&5
17579   ac_status=$?
17580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17581   (exit $ac_status); }; } &&
17582          { ac_try='test -s conftest$ac_exeext'
17583   { (case "(($ac_try" in
17584   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17585   *) ac_try_echo=$ac_try;;
17586 esac
17587 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17588   (eval "$ac_try") 2>&5
17589   ac_status=$?
17590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17591   (exit $ac_status); }; }; then
17592   eval "$as_ac_var=yes"
17593 else
17594   echo "$as_me: failed program was:" >&5
17595 sed 's/^/| /' conftest.$ac_ext >&5
17596
17597         eval "$as_ac_var=no"
17598 fi
17599
17600 rm -f core conftest.err conftest.$ac_objext \
17601       conftest$ac_exeext conftest.$ac_ext
17602 fi
17603 ac_res=`eval echo '${'$as_ac_var'}'`
17604                { echo "$as_me:$LINENO: result: $ac_res" >&5
17605 echo "${ECHO_T}$ac_res" >&6; }
17606 if test `eval echo '${'$as_ac_var'}'` = yes; then
17607   cat >>confdefs.h <<_ACEOF
17608 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17609 _ACEOF
17610
17611 fi
17612 done
17613
17614
17615
17616
17617
17618 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
17619 do
17620 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17621 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17622 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17623 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17624   echo $ECHO_N "(cached) $ECHO_C" >&6
17625 else
17626   cat >conftest.$ac_ext <<_ACEOF
17627 /* confdefs.h.  */
17628 _ACEOF
17629 cat confdefs.h >>conftest.$ac_ext
17630 cat >>conftest.$ac_ext <<_ACEOF
17631 /* end confdefs.h.  */
17632 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17633    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17634 #define $ac_func innocuous_$ac_func
17635
17636 /* System header to define __stub macros and hopefully few prototypes,
17637     which can conflict with char $ac_func (); below.
17638     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17639     <limits.h> exists even on freestanding compilers.  */
17640
17641 #ifdef __STDC__
17642 # include <limits.h>
17643 #else
17644 # include <assert.h>
17645 #endif
17646
17647 #undef $ac_func
17648
17649 /* Override any GCC internal prototype to avoid an error.
17650    Use char because int might match the return type of a GCC
17651    builtin and then its argument prototype would still apply.  */
17652 #ifdef __cplusplus
17653 extern "C"
17654 #endif
17655 char $ac_func ();
17656 /* The GNU C library defines this for functions which it implements
17657     to always fail with ENOSYS.  Some functions are actually named
17658     something starting with __ and the normal name is an alias.  */
17659 #if defined __stub_$ac_func || defined __stub___$ac_func
17660 choke me
17661 #endif
17662
17663 int
17664 main ()
17665 {
17666 return $ac_func ();
17667   ;
17668   return 0;
17669 }
17670 _ACEOF
17671 rm -f conftest.$ac_objext conftest$ac_exeext
17672 if { (ac_try="$ac_link"
17673 case "(($ac_try" in
17674   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17675   *) ac_try_echo=$ac_try;;
17676 esac
17677 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17678   (eval "$ac_link") 2>conftest.er1
17679   ac_status=$?
17680   grep -v '^ *+' conftest.er1 >conftest.err
17681   rm -f conftest.er1
17682   cat conftest.err >&5
17683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17684   (exit $ac_status); } &&
17685          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17686   { (case "(($ac_try" in
17687   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17688   *) ac_try_echo=$ac_try;;
17689 esac
17690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17691   (eval "$ac_try") 2>&5
17692   ac_status=$?
17693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17694   (exit $ac_status); }; } &&
17695          { ac_try='test -s conftest$ac_exeext'
17696   { (case "(($ac_try" in
17697   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17698   *) ac_try_echo=$ac_try;;
17699 esac
17700 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17701   (eval "$ac_try") 2>&5
17702   ac_status=$?
17703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17704   (exit $ac_status); }; }; then
17705   eval "$as_ac_var=yes"
17706 else
17707   echo "$as_me: failed program was:" >&5
17708 sed 's/^/| /' conftest.$ac_ext >&5
17709
17710         eval "$as_ac_var=no"
17711 fi
17712
17713 rm -f core conftest.err conftest.$ac_objext \
17714       conftest$ac_exeext conftest.$ac_ext
17715 fi
17716 ac_res=`eval echo '${'$as_ac_var'}'`
17717                { echo "$as_me:$LINENO: result: $ac_res" >&5
17718 echo "${ECHO_T}$ac_res" >&6; }
17719 if test `eval echo '${'$as_ac_var'}'` = yes; then
17720   cat >>confdefs.h <<_ACEOF
17721 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17722 _ACEOF
17723
17724 fi
17725 done
17726
17727
17728
17729
17730
17731
17732 for ac_func in setjmp longjmp sigsetjmp siglongjmp writev
17733 do
17734 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17735 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17736 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17737 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17738   echo $ECHO_N "(cached) $ECHO_C" >&6
17739 else
17740   cat >conftest.$ac_ext <<_ACEOF
17741 /* confdefs.h.  */
17742 _ACEOF
17743 cat confdefs.h >>conftest.$ac_ext
17744 cat >>conftest.$ac_ext <<_ACEOF
17745 /* end confdefs.h.  */
17746 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17747    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17748 #define $ac_func innocuous_$ac_func
17749
17750 /* System header to define __stub macros and hopefully few prototypes,
17751     which can conflict with char $ac_func (); below.
17752     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17753     <limits.h> exists even on freestanding compilers.  */
17754
17755 #ifdef __STDC__
17756 # include <limits.h>
17757 #else
17758 # include <assert.h>
17759 #endif
17760
17761 #undef $ac_func
17762
17763 /* Override any GCC internal prototype to avoid an error.
17764    Use char because int might match the return type of a GCC
17765    builtin and then its argument prototype would still apply.  */
17766 #ifdef __cplusplus
17767 extern "C"
17768 #endif
17769 char $ac_func ();
17770 /* The GNU C library defines this for functions which it implements
17771     to always fail with ENOSYS.  Some functions are actually named
17772     something starting with __ and the normal name is an alias.  */
17773 #if defined __stub_$ac_func || defined __stub___$ac_func
17774 choke me
17775 #endif
17776
17777 int
17778 main ()
17779 {
17780 return $ac_func ();
17781   ;
17782   return 0;
17783 }
17784 _ACEOF
17785 rm -f conftest.$ac_objext conftest$ac_exeext
17786 if { (ac_try="$ac_link"
17787 case "(($ac_try" in
17788   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17789   *) ac_try_echo=$ac_try;;
17790 esac
17791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17792   (eval "$ac_link") 2>conftest.er1
17793   ac_status=$?
17794   grep -v '^ *+' conftest.er1 >conftest.err
17795   rm -f conftest.er1
17796   cat conftest.err >&5
17797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17798   (exit $ac_status); } &&
17799          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17800   { (case "(($ac_try" in
17801   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17802   *) ac_try_echo=$ac_try;;
17803 esac
17804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17805   (eval "$ac_try") 2>&5
17806   ac_status=$?
17807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17808   (exit $ac_status); }; } &&
17809          { ac_try='test -s conftest$ac_exeext'
17810   { (case "(($ac_try" in
17811   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17812   *) ac_try_echo=$ac_try;;
17813 esac
17814 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17815   (eval "$ac_try") 2>&5
17816   ac_status=$?
17817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17818   (exit $ac_status); }; }; then
17819   eval "$as_ac_var=yes"
17820 else
17821   echo "$as_me: failed program was:" >&5
17822 sed 's/^/| /' conftest.$ac_ext >&5
17823
17824         eval "$as_ac_var=no"
17825 fi
17826
17827 rm -f core conftest.err conftest.$ac_objext \
17828       conftest$ac_exeext conftest.$ac_ext
17829 fi
17830 ac_res=`eval echo '${'$as_ac_var'}'`
17831                { echo "$as_me:$LINENO: result: $ac_res" >&5
17832 echo "${ECHO_T}$ac_res" >&6; }
17833 if test `eval echo '${'$as_ac_var'}'` = yes; then
17834   cat >>confdefs.h <<_ACEOF
17835 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17836 _ACEOF
17837
17838 fi
17839 done
17840
17841 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
17842 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
17843 if test "${llvm_cv_c_printf_a+set}" = set; then
17844   echo $ECHO_N "(cached) $ECHO_C" >&6
17845 else
17846   ac_ext=c
17847 ac_cpp='$CPP $CPPFLAGS'
17848 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17849 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17850 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17851
17852  if test "$cross_compiling" = yes; then
17853   llvmac_cv_c_printf_a=no
17854 else
17855   cat >conftest.$ac_ext <<_ACEOF
17856
17857   /* confdefs.h.  */
17858 _ACEOF
17859 cat confdefs.h >>conftest.$ac_ext
17860 cat >>conftest.$ac_ext <<_ACEOF
17861 /* end confdefs.h.  */
17862
17863 #include <stdio.h>
17864 #include <stdlib.h>
17865
17866 int
17867 main ()
17868 {
17869
17870 volatile double A, B;
17871 char Buffer[100];
17872 A = 1;
17873 A /= 10.0;
17874 sprintf(Buffer, "%a", A);
17875 B = atof(Buffer);
17876 if (A != B)
17877   return (1);
17878 if (A != 0x1.999999999999ap-4)
17879   return (1);
17880 return (0);
17881   ;
17882   return 0;
17883 }
17884 _ACEOF
17885 rm -f conftest$ac_exeext
17886 if { (ac_try="$ac_link"
17887 case "(($ac_try" in
17888   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17889   *) ac_try_echo=$ac_try;;
17890 esac
17891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17892   (eval "$ac_link") 2>&5
17893   ac_status=$?
17894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17895   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17896   { (case "(($ac_try" in
17897   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17898   *) ac_try_echo=$ac_try;;
17899 esac
17900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17901   (eval "$ac_try") 2>&5
17902   ac_status=$?
17903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17904   (exit $ac_status); }; }; then
17905   llvm_cv_c_printf_a=yes
17906 else
17907   echo "$as_me: program exited with status $ac_status" >&5
17908 echo "$as_me: failed program was:" >&5
17909 sed 's/^/| /' conftest.$ac_ext >&5
17910
17911 ( exit $ac_status )
17912 llvmac_cv_c_printf_a=no
17913 fi
17914 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17915 fi
17916
17917
17918  ac_ext=c
17919 ac_cpp='$CPP $CPPFLAGS'
17920 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17921 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17922 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17923
17924 fi
17925 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
17926 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
17927  if test "$llvm_cv_c_printf_a" = "yes"; then
17928
17929 cat >>confdefs.h <<\_ACEOF
17930 #define HAVE_PRINTF_A 1
17931 _ACEOF
17932
17933  fi
17934
17935
17936 { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
17937 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
17938 if test "${ac_cv_func_rand48+set}" = set; then
17939   echo $ECHO_N "(cached) $ECHO_C" >&6
17940 else
17941   ac_ext=cpp
17942 ac_cpp='$CXXCPP $CPPFLAGS'
17943 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17944 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17945 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17946
17947    cat >conftest.$ac_ext <<_ACEOF
17948 /* confdefs.h.  */
17949 _ACEOF
17950 cat confdefs.h >>conftest.$ac_ext
17951 cat >>conftest.$ac_ext <<_ACEOF
17952 /* end confdefs.h.  */
17953 #include <stdlib.h>
17954 int
17955 main ()
17956 {
17957 srand48(0);lrand48();drand48();
17958   ;
17959   return 0;
17960 }
17961 _ACEOF
17962 rm -f conftest.$ac_objext
17963 if { (ac_try="$ac_compile"
17964 case "(($ac_try" in
17965   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17966   *) ac_try_echo=$ac_try;;
17967 esac
17968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17969   (eval "$ac_compile") 2>conftest.er1
17970   ac_status=$?
17971   grep -v '^ *+' conftest.er1 >conftest.err
17972   rm -f conftest.er1
17973   cat conftest.err >&5
17974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17975   (exit $ac_status); } &&
17976          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
17977   { (case "(($ac_try" in
17978   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17979   *) ac_try_echo=$ac_try;;
17980 esac
17981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17982   (eval "$ac_try") 2>&5
17983   ac_status=$?
17984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17985   (exit $ac_status); }; } &&
17986          { ac_try='test -s conftest.$ac_objext'
17987   { (case "(($ac_try" in
17988   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17989   *) ac_try_echo=$ac_try;;
17990 esac
17991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17992   (eval "$ac_try") 2>&5
17993   ac_status=$?
17994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17995   (exit $ac_status); }; }; then
17996   ac_cv_func_rand48=yes
17997 else
17998   echo "$as_me: failed program was:" >&5
17999 sed 's/^/| /' conftest.$ac_ext >&5
18000
18001         ac_cv_func_rand48=no
18002 fi
18003
18004 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18005   ac_ext=c
18006 ac_cpp='$CPP $CPPFLAGS'
18007 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18008 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18009 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18010
18011 fi
18012 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
18013 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
18014
18015 if test "$ac_cv_func_rand48" = "yes" ; then
18016
18017 cat >>confdefs.h <<\_ACEOF
18018 #define HAVE_RAND48 1
18019 _ACEOF
18020
18021 fi
18022
18023
18024 { echo "$as_me:$LINENO: checking whether strerror_s is declared" >&5
18025 echo $ECHO_N "checking whether strerror_s is declared... $ECHO_C" >&6; }
18026 if test "${ac_cv_have_decl_strerror_s+set}" = set; then
18027   echo $ECHO_N "(cached) $ECHO_C" >&6
18028 else
18029   cat >conftest.$ac_ext <<_ACEOF
18030 /* confdefs.h.  */
18031 _ACEOF
18032 cat confdefs.h >>conftest.$ac_ext
18033 cat >>conftest.$ac_ext <<_ACEOF
18034 /* end confdefs.h.  */
18035 $ac_includes_default
18036 int
18037 main ()
18038 {
18039 #ifndef strerror_s
18040   char *p = (char *) strerror_s;
18041   return !p;
18042 #endif
18043
18044   ;
18045   return 0;
18046 }
18047 _ACEOF
18048 rm -f conftest.$ac_objext
18049 if { (ac_try="$ac_compile"
18050 case "(($ac_try" in
18051   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18052   *) ac_try_echo=$ac_try;;
18053 esac
18054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18055   (eval "$ac_compile") 2>conftest.er1
18056   ac_status=$?
18057   grep -v '^ *+' conftest.er1 >conftest.err
18058   rm -f conftest.er1
18059   cat conftest.err >&5
18060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18061   (exit $ac_status); } &&
18062          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18063   { (case "(($ac_try" in
18064   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18065   *) ac_try_echo=$ac_try;;
18066 esac
18067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18068   (eval "$ac_try") 2>&5
18069   ac_status=$?
18070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18071   (exit $ac_status); }; } &&
18072          { ac_try='test -s conftest.$ac_objext'
18073   { (case "(($ac_try" in
18074   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18075   *) ac_try_echo=$ac_try;;
18076 esac
18077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18078   (eval "$ac_try") 2>&5
18079   ac_status=$?
18080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18081   (exit $ac_status); }; }; then
18082   ac_cv_have_decl_strerror_s=yes
18083 else
18084   echo "$as_me: failed program was:" >&5
18085 sed 's/^/| /' conftest.$ac_ext >&5
18086
18087         ac_cv_have_decl_strerror_s=no
18088 fi
18089
18090 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18091 fi
18092 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_s" >&5
18093 echo "${ECHO_T}$ac_cv_have_decl_strerror_s" >&6; }
18094 if test $ac_cv_have_decl_strerror_s = yes; then
18095
18096 cat >>confdefs.h <<_ACEOF
18097 #define HAVE_DECL_STRERROR_S 1
18098 _ACEOF
18099
18100
18101 else
18102   cat >>confdefs.h <<_ACEOF
18103 #define HAVE_DECL_STRERROR_S 0
18104 _ACEOF
18105
18106
18107 fi
18108
18109
18110
18111 if test "$llvm_cv_os_type" = "MingW" ; then
18112   { echo "$as_me:$LINENO: checking for _alloca in -lgcc" >&5
18113 echo $ECHO_N "checking for _alloca in -lgcc... $ECHO_C" >&6; }
18114 if test "${ac_cv_lib_gcc__alloca+set}" = set; then
18115   echo $ECHO_N "(cached) $ECHO_C" >&6
18116 else
18117   ac_check_lib_save_LIBS=$LIBS
18118 LIBS="-lgcc  $LIBS"
18119 cat >conftest.$ac_ext <<_ACEOF
18120 /* confdefs.h.  */
18121 _ACEOF
18122 cat confdefs.h >>conftest.$ac_ext
18123 cat >>conftest.$ac_ext <<_ACEOF
18124 /* end confdefs.h.  */
18125
18126 /* Override any GCC internal prototype to avoid an error.
18127    Use char because int might match the return type of a GCC
18128    builtin and then its argument prototype would still apply.  */
18129 #ifdef __cplusplus
18130 extern "C"
18131 #endif
18132 char _alloca ();
18133 int
18134 main ()
18135 {
18136 return _alloca ();
18137   ;
18138   return 0;
18139 }
18140 _ACEOF
18141 rm -f conftest.$ac_objext conftest$ac_exeext
18142 if { (ac_try="$ac_link"
18143 case "(($ac_try" in
18144   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18145   *) ac_try_echo=$ac_try;;
18146 esac
18147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18148   (eval "$ac_link") 2>conftest.er1
18149   ac_status=$?
18150   grep -v '^ *+' conftest.er1 >conftest.err
18151   rm -f conftest.er1
18152   cat conftest.err >&5
18153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18154   (exit $ac_status); } &&
18155          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18156   { (case "(($ac_try" in
18157   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18158   *) ac_try_echo=$ac_try;;
18159 esac
18160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18161   (eval "$ac_try") 2>&5
18162   ac_status=$?
18163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18164   (exit $ac_status); }; } &&
18165          { ac_try='test -s conftest$ac_exeext'
18166   { (case "(($ac_try" in
18167   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18168   *) ac_try_echo=$ac_try;;
18169 esac
18170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18171   (eval "$ac_try") 2>&5
18172   ac_status=$?
18173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18174   (exit $ac_status); }; }; then
18175   ac_cv_lib_gcc__alloca=yes
18176 else
18177   echo "$as_me: failed program was:" >&5
18178 sed 's/^/| /' conftest.$ac_ext >&5
18179
18180         ac_cv_lib_gcc__alloca=no
18181 fi
18182
18183 rm -f core conftest.err conftest.$ac_objext \
18184       conftest$ac_exeext conftest.$ac_ext
18185 LIBS=$ac_check_lib_save_LIBS
18186 fi
18187 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc__alloca" >&5
18188 echo "${ECHO_T}$ac_cv_lib_gcc__alloca" >&6; }
18189 if test $ac_cv_lib_gcc__alloca = yes; then
18190
18191 cat >>confdefs.h <<\_ACEOF
18192 #define HAVE__ALLOCA 1
18193 _ACEOF
18194
18195 fi
18196
18197   { echo "$as_me:$LINENO: checking for __alloca in -lgcc" >&5
18198 echo $ECHO_N "checking for __alloca in -lgcc... $ECHO_C" >&6; }
18199 if test "${ac_cv_lib_gcc___alloca+set}" = set; then
18200   echo $ECHO_N "(cached) $ECHO_C" >&6
18201 else
18202   ac_check_lib_save_LIBS=$LIBS
18203 LIBS="-lgcc  $LIBS"
18204 cat >conftest.$ac_ext <<_ACEOF
18205 /* confdefs.h.  */
18206 _ACEOF
18207 cat confdefs.h >>conftest.$ac_ext
18208 cat >>conftest.$ac_ext <<_ACEOF
18209 /* end confdefs.h.  */
18210
18211 /* Override any GCC internal prototype to avoid an error.
18212    Use char because int might match the return type of a GCC
18213    builtin and then its argument prototype would still apply.  */
18214 #ifdef __cplusplus
18215 extern "C"
18216 #endif
18217 char __alloca ();
18218 int
18219 main ()
18220 {
18221 return __alloca ();
18222   ;
18223   return 0;
18224 }
18225 _ACEOF
18226 rm -f conftest.$ac_objext conftest$ac_exeext
18227 if { (ac_try="$ac_link"
18228 case "(($ac_try" in
18229   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18230   *) ac_try_echo=$ac_try;;
18231 esac
18232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18233   (eval "$ac_link") 2>conftest.er1
18234   ac_status=$?
18235   grep -v '^ *+' conftest.er1 >conftest.err
18236   rm -f conftest.er1
18237   cat conftest.err >&5
18238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18239   (exit $ac_status); } &&
18240          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18241   { (case "(($ac_try" in
18242   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18243   *) ac_try_echo=$ac_try;;
18244 esac
18245 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18246   (eval "$ac_try") 2>&5
18247   ac_status=$?
18248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18249   (exit $ac_status); }; } &&
18250          { ac_try='test -s conftest$ac_exeext'
18251   { (case "(($ac_try" in
18252   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18253   *) ac_try_echo=$ac_try;;
18254 esac
18255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18256   (eval "$ac_try") 2>&5
18257   ac_status=$?
18258   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18259   (exit $ac_status); }; }; then
18260   ac_cv_lib_gcc___alloca=yes
18261 else
18262   echo "$as_me: failed program was:" >&5
18263 sed 's/^/| /' conftest.$ac_ext >&5
18264
18265         ac_cv_lib_gcc___alloca=no
18266 fi
18267
18268 rm -f core conftest.err conftest.$ac_objext \
18269       conftest$ac_exeext conftest.$ac_ext
18270 LIBS=$ac_check_lib_save_LIBS
18271 fi
18272 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___alloca" >&5
18273 echo "${ECHO_T}$ac_cv_lib_gcc___alloca" >&6; }
18274 if test $ac_cv_lib_gcc___alloca = yes; then
18275
18276 cat >>confdefs.h <<\_ACEOF
18277 #define HAVE___ALLOCA 1
18278 _ACEOF
18279
18280 fi
18281
18282   { echo "$as_me:$LINENO: checking for __chkstk in -lgcc" >&5
18283 echo $ECHO_N "checking for __chkstk in -lgcc... $ECHO_C" >&6; }
18284 if test "${ac_cv_lib_gcc___chkstk+set}" = set; then
18285   echo $ECHO_N "(cached) $ECHO_C" >&6
18286 else
18287   ac_check_lib_save_LIBS=$LIBS
18288 LIBS="-lgcc  $LIBS"
18289 cat >conftest.$ac_ext <<_ACEOF
18290 /* confdefs.h.  */
18291 _ACEOF
18292 cat confdefs.h >>conftest.$ac_ext
18293 cat >>conftest.$ac_ext <<_ACEOF
18294 /* end confdefs.h.  */
18295
18296 /* Override any GCC internal prototype to avoid an error.
18297    Use char because int might match the return type of a GCC
18298    builtin and then its argument prototype would still apply.  */
18299 #ifdef __cplusplus
18300 extern "C"
18301 #endif
18302 char __chkstk ();
18303 int
18304 main ()
18305 {
18306 return __chkstk ();
18307   ;
18308   return 0;
18309 }
18310 _ACEOF
18311 rm -f conftest.$ac_objext conftest$ac_exeext
18312 if { (ac_try="$ac_link"
18313 case "(($ac_try" in
18314   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18315   *) ac_try_echo=$ac_try;;
18316 esac
18317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18318   (eval "$ac_link") 2>conftest.er1
18319   ac_status=$?
18320   grep -v '^ *+' conftest.er1 >conftest.err
18321   rm -f conftest.er1
18322   cat conftest.err >&5
18323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18324   (exit $ac_status); } &&
18325          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18326   { (case "(($ac_try" in
18327   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18328   *) ac_try_echo=$ac_try;;
18329 esac
18330 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18331   (eval "$ac_try") 2>&5
18332   ac_status=$?
18333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18334   (exit $ac_status); }; } &&
18335          { ac_try='test -s conftest$ac_exeext'
18336   { (case "(($ac_try" in
18337   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18338   *) ac_try_echo=$ac_try;;
18339 esac
18340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18341   (eval "$ac_try") 2>&5
18342   ac_status=$?
18343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18344   (exit $ac_status); }; }; then
18345   ac_cv_lib_gcc___chkstk=yes
18346 else
18347   echo "$as_me: failed program was:" >&5
18348 sed 's/^/| /' conftest.$ac_ext >&5
18349
18350         ac_cv_lib_gcc___chkstk=no
18351 fi
18352
18353 rm -f core conftest.err conftest.$ac_objext \
18354       conftest$ac_exeext conftest.$ac_ext
18355 LIBS=$ac_check_lib_save_LIBS
18356 fi
18357 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___chkstk" >&5
18358 echo "${ECHO_T}$ac_cv_lib_gcc___chkstk" >&6; }
18359 if test $ac_cv_lib_gcc___chkstk = yes; then
18360
18361 cat >>confdefs.h <<\_ACEOF
18362 #define HAVE___CHKSTK 1
18363 _ACEOF
18364
18365 fi
18366
18367   { echo "$as_me:$LINENO: checking for ___chkstk in -lgcc" >&5
18368 echo $ECHO_N "checking for ___chkstk in -lgcc... $ECHO_C" >&6; }
18369 if test "${ac_cv_lib_gcc____chkstk+set}" = set; then
18370   echo $ECHO_N "(cached) $ECHO_C" >&6
18371 else
18372   ac_check_lib_save_LIBS=$LIBS
18373 LIBS="-lgcc  $LIBS"
18374 cat >conftest.$ac_ext <<_ACEOF
18375 /* confdefs.h.  */
18376 _ACEOF
18377 cat confdefs.h >>conftest.$ac_ext
18378 cat >>conftest.$ac_ext <<_ACEOF
18379 /* end confdefs.h.  */
18380
18381 /* Override any GCC internal prototype to avoid an error.
18382    Use char because int might match the return type of a GCC
18383    builtin and then its argument prototype would still apply.  */
18384 #ifdef __cplusplus
18385 extern "C"
18386 #endif
18387 char ___chkstk ();
18388 int
18389 main ()
18390 {
18391 return ___chkstk ();
18392   ;
18393   return 0;
18394 }
18395 _ACEOF
18396 rm -f conftest.$ac_objext conftest$ac_exeext
18397 if { (ac_try="$ac_link"
18398 case "(($ac_try" in
18399   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18400   *) ac_try_echo=$ac_try;;
18401 esac
18402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18403   (eval "$ac_link") 2>conftest.er1
18404   ac_status=$?
18405   grep -v '^ *+' conftest.er1 >conftest.err
18406   rm -f conftest.er1
18407   cat conftest.err >&5
18408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18409   (exit $ac_status); } &&
18410          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18411   { (case "(($ac_try" in
18412   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18413   *) ac_try_echo=$ac_try;;
18414 esac
18415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18416   (eval "$ac_try") 2>&5
18417   ac_status=$?
18418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18419   (exit $ac_status); }; } &&
18420          { ac_try='test -s conftest$ac_exeext'
18421   { (case "(($ac_try" in
18422   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18423   *) ac_try_echo=$ac_try;;
18424 esac
18425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18426   (eval "$ac_try") 2>&5
18427   ac_status=$?
18428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18429   (exit $ac_status); }; }; then
18430   ac_cv_lib_gcc____chkstk=yes
18431 else
18432   echo "$as_me: failed program was:" >&5
18433 sed 's/^/| /' conftest.$ac_ext >&5
18434
18435         ac_cv_lib_gcc____chkstk=no
18436 fi
18437
18438 rm -f core conftest.err conftest.$ac_objext \
18439       conftest$ac_exeext conftest.$ac_ext
18440 LIBS=$ac_check_lib_save_LIBS
18441 fi
18442 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc____chkstk" >&5
18443 echo "${ECHO_T}$ac_cv_lib_gcc____chkstk" >&6; }
18444 if test $ac_cv_lib_gcc____chkstk = yes; then
18445
18446 cat >>confdefs.h <<\_ACEOF
18447 #define HAVE____CHKSTK 1
18448 _ACEOF
18449
18450 fi
18451
18452
18453   { echo "$as_me:$LINENO: checking for __ashldi3 in -lgcc" >&5
18454 echo $ECHO_N "checking for __ashldi3 in -lgcc... $ECHO_C" >&6; }
18455 if test "${ac_cv_lib_gcc___ashldi3+set}" = set; then
18456   echo $ECHO_N "(cached) $ECHO_C" >&6
18457 else
18458   ac_check_lib_save_LIBS=$LIBS
18459 LIBS="-lgcc  $LIBS"
18460 cat >conftest.$ac_ext <<_ACEOF
18461 /* confdefs.h.  */
18462 _ACEOF
18463 cat confdefs.h >>conftest.$ac_ext
18464 cat >>conftest.$ac_ext <<_ACEOF
18465 /* end confdefs.h.  */
18466
18467 /* Override any GCC internal prototype to avoid an error.
18468    Use char because int might match the return type of a GCC
18469    builtin and then its argument prototype would still apply.  */
18470 #ifdef __cplusplus
18471 extern "C"
18472 #endif
18473 char __ashldi3 ();
18474 int
18475 main ()
18476 {
18477 return __ashldi3 ();
18478   ;
18479   return 0;
18480 }
18481 _ACEOF
18482 rm -f conftest.$ac_objext conftest$ac_exeext
18483 if { (ac_try="$ac_link"
18484 case "(($ac_try" in
18485   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18486   *) ac_try_echo=$ac_try;;
18487 esac
18488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18489   (eval "$ac_link") 2>conftest.er1
18490   ac_status=$?
18491   grep -v '^ *+' conftest.er1 >conftest.err
18492   rm -f conftest.er1
18493   cat conftest.err >&5
18494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18495   (exit $ac_status); } &&
18496          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18497   { (case "(($ac_try" in
18498   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18499   *) ac_try_echo=$ac_try;;
18500 esac
18501 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18502   (eval "$ac_try") 2>&5
18503   ac_status=$?
18504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18505   (exit $ac_status); }; } &&
18506          { ac_try='test -s conftest$ac_exeext'
18507   { (case "(($ac_try" in
18508   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18509   *) ac_try_echo=$ac_try;;
18510 esac
18511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18512   (eval "$ac_try") 2>&5
18513   ac_status=$?
18514   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18515   (exit $ac_status); }; }; then
18516   ac_cv_lib_gcc___ashldi3=yes
18517 else
18518   echo "$as_me: failed program was:" >&5
18519 sed 's/^/| /' conftest.$ac_ext >&5
18520
18521         ac_cv_lib_gcc___ashldi3=no
18522 fi
18523
18524 rm -f core conftest.err conftest.$ac_objext \
18525       conftest$ac_exeext conftest.$ac_ext
18526 LIBS=$ac_check_lib_save_LIBS
18527 fi
18528 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashldi3" >&5
18529 echo "${ECHO_T}$ac_cv_lib_gcc___ashldi3" >&6; }
18530 if test $ac_cv_lib_gcc___ashldi3 = yes; then
18531
18532 cat >>confdefs.h <<\_ACEOF
18533 #define HAVE___ASHLDI3 1
18534 _ACEOF
18535
18536 fi
18537
18538   { echo "$as_me:$LINENO: checking for __ashrdi3 in -lgcc" >&5
18539 echo $ECHO_N "checking for __ashrdi3 in -lgcc... $ECHO_C" >&6; }
18540 if test "${ac_cv_lib_gcc___ashrdi3+set}" = set; then
18541   echo $ECHO_N "(cached) $ECHO_C" >&6
18542 else
18543   ac_check_lib_save_LIBS=$LIBS
18544 LIBS="-lgcc  $LIBS"
18545 cat >conftest.$ac_ext <<_ACEOF
18546 /* confdefs.h.  */
18547 _ACEOF
18548 cat confdefs.h >>conftest.$ac_ext
18549 cat >>conftest.$ac_ext <<_ACEOF
18550 /* end confdefs.h.  */
18551
18552 /* Override any GCC internal prototype to avoid an error.
18553    Use char because int might match the return type of a GCC
18554    builtin and then its argument prototype would still apply.  */
18555 #ifdef __cplusplus
18556 extern "C"
18557 #endif
18558 char __ashrdi3 ();
18559 int
18560 main ()
18561 {
18562 return __ashrdi3 ();
18563   ;
18564   return 0;
18565 }
18566 _ACEOF
18567 rm -f conftest.$ac_objext conftest$ac_exeext
18568 if { (ac_try="$ac_link"
18569 case "(($ac_try" in
18570   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18571   *) ac_try_echo=$ac_try;;
18572 esac
18573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18574   (eval "$ac_link") 2>conftest.er1
18575   ac_status=$?
18576   grep -v '^ *+' conftest.er1 >conftest.err
18577   rm -f conftest.er1
18578   cat conftest.err >&5
18579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18580   (exit $ac_status); } &&
18581          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18582   { (case "(($ac_try" in
18583   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18584   *) ac_try_echo=$ac_try;;
18585 esac
18586 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18587   (eval "$ac_try") 2>&5
18588   ac_status=$?
18589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18590   (exit $ac_status); }; } &&
18591          { ac_try='test -s conftest$ac_exeext'
18592   { (case "(($ac_try" in
18593   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18594   *) ac_try_echo=$ac_try;;
18595 esac
18596 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18597   (eval "$ac_try") 2>&5
18598   ac_status=$?
18599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18600   (exit $ac_status); }; }; then
18601   ac_cv_lib_gcc___ashrdi3=yes
18602 else
18603   echo "$as_me: failed program was:" >&5
18604 sed 's/^/| /' conftest.$ac_ext >&5
18605
18606         ac_cv_lib_gcc___ashrdi3=no
18607 fi
18608
18609 rm -f core conftest.err conftest.$ac_objext \
18610       conftest$ac_exeext conftest.$ac_ext
18611 LIBS=$ac_check_lib_save_LIBS
18612 fi
18613 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashrdi3" >&5
18614 echo "${ECHO_T}$ac_cv_lib_gcc___ashrdi3" >&6; }
18615 if test $ac_cv_lib_gcc___ashrdi3 = yes; then
18616
18617 cat >>confdefs.h <<\_ACEOF
18618 #define HAVE___ASHRDI3 1
18619 _ACEOF
18620
18621 fi
18622
18623   { echo "$as_me:$LINENO: checking for __divdi3 in -lgcc" >&5
18624 echo $ECHO_N "checking for __divdi3 in -lgcc... $ECHO_C" >&6; }
18625 if test "${ac_cv_lib_gcc___divdi3+set}" = set; then
18626   echo $ECHO_N "(cached) $ECHO_C" >&6
18627 else
18628   ac_check_lib_save_LIBS=$LIBS
18629 LIBS="-lgcc  $LIBS"
18630 cat >conftest.$ac_ext <<_ACEOF
18631 /* confdefs.h.  */
18632 _ACEOF
18633 cat confdefs.h >>conftest.$ac_ext
18634 cat >>conftest.$ac_ext <<_ACEOF
18635 /* end confdefs.h.  */
18636
18637 /* Override any GCC internal prototype to avoid an error.
18638    Use char because int might match the return type of a GCC
18639    builtin and then its argument prototype would still apply.  */
18640 #ifdef __cplusplus
18641 extern "C"
18642 #endif
18643 char __divdi3 ();
18644 int
18645 main ()
18646 {
18647 return __divdi3 ();
18648   ;
18649   return 0;
18650 }
18651 _ACEOF
18652 rm -f conftest.$ac_objext conftest$ac_exeext
18653 if { (ac_try="$ac_link"
18654 case "(($ac_try" in
18655   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18656   *) ac_try_echo=$ac_try;;
18657 esac
18658 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18659   (eval "$ac_link") 2>conftest.er1
18660   ac_status=$?
18661   grep -v '^ *+' conftest.er1 >conftest.err
18662   rm -f conftest.er1
18663   cat conftest.err >&5
18664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18665   (exit $ac_status); } &&
18666          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18667   { (case "(($ac_try" in
18668   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18669   *) ac_try_echo=$ac_try;;
18670 esac
18671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18672   (eval "$ac_try") 2>&5
18673   ac_status=$?
18674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18675   (exit $ac_status); }; } &&
18676          { ac_try='test -s conftest$ac_exeext'
18677   { (case "(($ac_try" in
18678   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18679   *) ac_try_echo=$ac_try;;
18680 esac
18681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18682   (eval "$ac_try") 2>&5
18683   ac_status=$?
18684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18685   (exit $ac_status); }; }; then
18686   ac_cv_lib_gcc___divdi3=yes
18687 else
18688   echo "$as_me: failed program was:" >&5
18689 sed 's/^/| /' conftest.$ac_ext >&5
18690
18691         ac_cv_lib_gcc___divdi3=no
18692 fi
18693
18694 rm -f core conftest.err conftest.$ac_objext \
18695       conftest$ac_exeext conftest.$ac_ext
18696 LIBS=$ac_check_lib_save_LIBS
18697 fi
18698 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___divdi3" >&5
18699 echo "${ECHO_T}$ac_cv_lib_gcc___divdi3" >&6; }
18700 if test $ac_cv_lib_gcc___divdi3 = yes; then
18701
18702 cat >>confdefs.h <<\_ACEOF
18703 #define HAVE___DIVDI3 1
18704 _ACEOF
18705
18706 fi
18707
18708   { echo "$as_me:$LINENO: checking for __fixdfdi in -lgcc" >&5
18709 echo $ECHO_N "checking for __fixdfdi in -lgcc... $ECHO_C" >&6; }
18710 if test "${ac_cv_lib_gcc___fixdfdi+set}" = set; then
18711   echo $ECHO_N "(cached) $ECHO_C" >&6
18712 else
18713   ac_check_lib_save_LIBS=$LIBS
18714 LIBS="-lgcc  $LIBS"
18715 cat >conftest.$ac_ext <<_ACEOF
18716 /* confdefs.h.  */
18717 _ACEOF
18718 cat confdefs.h >>conftest.$ac_ext
18719 cat >>conftest.$ac_ext <<_ACEOF
18720 /* end confdefs.h.  */
18721
18722 /* Override any GCC internal prototype to avoid an error.
18723    Use char because int might match the return type of a GCC
18724    builtin and then its argument prototype would still apply.  */
18725 #ifdef __cplusplus
18726 extern "C"
18727 #endif
18728 char __fixdfdi ();
18729 int
18730 main ()
18731 {
18732 return __fixdfdi ();
18733   ;
18734   return 0;
18735 }
18736 _ACEOF
18737 rm -f conftest.$ac_objext conftest$ac_exeext
18738 if { (ac_try="$ac_link"
18739 case "(($ac_try" in
18740   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18741   *) ac_try_echo=$ac_try;;
18742 esac
18743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18744   (eval "$ac_link") 2>conftest.er1
18745   ac_status=$?
18746   grep -v '^ *+' conftest.er1 >conftest.err
18747   rm -f conftest.er1
18748   cat conftest.err >&5
18749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18750   (exit $ac_status); } &&
18751          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18752   { (case "(($ac_try" in
18753   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18754   *) ac_try_echo=$ac_try;;
18755 esac
18756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18757   (eval "$ac_try") 2>&5
18758   ac_status=$?
18759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18760   (exit $ac_status); }; } &&
18761          { ac_try='test -s conftest$ac_exeext'
18762   { (case "(($ac_try" in
18763   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18764   *) ac_try_echo=$ac_try;;
18765 esac
18766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18767   (eval "$ac_try") 2>&5
18768   ac_status=$?
18769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18770   (exit $ac_status); }; }; then
18771   ac_cv_lib_gcc___fixdfdi=yes
18772 else
18773   echo "$as_me: failed program was:" >&5
18774 sed 's/^/| /' conftest.$ac_ext >&5
18775
18776         ac_cv_lib_gcc___fixdfdi=no
18777 fi
18778
18779 rm -f core conftest.err conftest.$ac_objext \
18780       conftest$ac_exeext conftest.$ac_ext
18781 LIBS=$ac_check_lib_save_LIBS
18782 fi
18783 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixdfdi" >&5
18784 echo "${ECHO_T}$ac_cv_lib_gcc___fixdfdi" >&6; }
18785 if test $ac_cv_lib_gcc___fixdfdi = yes; then
18786
18787 cat >>confdefs.h <<\_ACEOF
18788 #define HAVE___FIXDFDI 1
18789 _ACEOF
18790
18791 fi
18792
18793   { echo "$as_me:$LINENO: checking for __fixsfdi in -lgcc" >&5
18794 echo $ECHO_N "checking for __fixsfdi in -lgcc... $ECHO_C" >&6; }
18795 if test "${ac_cv_lib_gcc___fixsfdi+set}" = set; then
18796   echo $ECHO_N "(cached) $ECHO_C" >&6
18797 else
18798   ac_check_lib_save_LIBS=$LIBS
18799 LIBS="-lgcc  $LIBS"
18800 cat >conftest.$ac_ext <<_ACEOF
18801 /* confdefs.h.  */
18802 _ACEOF
18803 cat confdefs.h >>conftest.$ac_ext
18804 cat >>conftest.$ac_ext <<_ACEOF
18805 /* end confdefs.h.  */
18806
18807 /* Override any GCC internal prototype to avoid an error.
18808    Use char because int might match the return type of a GCC
18809    builtin and then its argument prototype would still apply.  */
18810 #ifdef __cplusplus
18811 extern "C"
18812 #endif
18813 char __fixsfdi ();
18814 int
18815 main ()
18816 {
18817 return __fixsfdi ();
18818   ;
18819   return 0;
18820 }
18821 _ACEOF
18822 rm -f conftest.$ac_objext conftest$ac_exeext
18823 if { (ac_try="$ac_link"
18824 case "(($ac_try" in
18825   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18826   *) ac_try_echo=$ac_try;;
18827 esac
18828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18829   (eval "$ac_link") 2>conftest.er1
18830   ac_status=$?
18831   grep -v '^ *+' conftest.er1 >conftest.err
18832   rm -f conftest.er1
18833   cat conftest.err >&5
18834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18835   (exit $ac_status); } &&
18836          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18837   { (case "(($ac_try" in
18838   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18839   *) ac_try_echo=$ac_try;;
18840 esac
18841 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18842   (eval "$ac_try") 2>&5
18843   ac_status=$?
18844   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18845   (exit $ac_status); }; } &&
18846          { ac_try='test -s conftest$ac_exeext'
18847   { (case "(($ac_try" in
18848   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18849   *) ac_try_echo=$ac_try;;
18850 esac
18851 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18852   (eval "$ac_try") 2>&5
18853   ac_status=$?
18854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18855   (exit $ac_status); }; }; then
18856   ac_cv_lib_gcc___fixsfdi=yes
18857 else
18858   echo "$as_me: failed program was:" >&5
18859 sed 's/^/| /' conftest.$ac_ext >&5
18860
18861         ac_cv_lib_gcc___fixsfdi=no
18862 fi
18863
18864 rm -f core conftest.err conftest.$ac_objext \
18865       conftest$ac_exeext conftest.$ac_ext
18866 LIBS=$ac_check_lib_save_LIBS
18867 fi
18868 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixsfdi" >&5
18869 echo "${ECHO_T}$ac_cv_lib_gcc___fixsfdi" >&6; }
18870 if test $ac_cv_lib_gcc___fixsfdi = yes; then
18871
18872 cat >>confdefs.h <<\_ACEOF
18873 #define HAVE___FIXSFDI 1
18874 _ACEOF
18875
18876 fi
18877
18878   { echo "$as_me:$LINENO: checking for __floatdidf in -lgcc" >&5
18879 echo $ECHO_N "checking for __floatdidf in -lgcc... $ECHO_C" >&6; }
18880 if test "${ac_cv_lib_gcc___floatdidf+set}" = set; then
18881   echo $ECHO_N "(cached) $ECHO_C" >&6
18882 else
18883   ac_check_lib_save_LIBS=$LIBS
18884 LIBS="-lgcc  $LIBS"
18885 cat >conftest.$ac_ext <<_ACEOF
18886 /* confdefs.h.  */
18887 _ACEOF
18888 cat confdefs.h >>conftest.$ac_ext
18889 cat >>conftest.$ac_ext <<_ACEOF
18890 /* end confdefs.h.  */
18891
18892 /* Override any GCC internal prototype to avoid an error.
18893    Use char because int might match the return type of a GCC
18894    builtin and then its argument prototype would still apply.  */
18895 #ifdef __cplusplus
18896 extern "C"
18897 #endif
18898 char __floatdidf ();
18899 int
18900 main ()
18901 {
18902 return __floatdidf ();
18903   ;
18904   return 0;
18905 }
18906 _ACEOF
18907 rm -f conftest.$ac_objext conftest$ac_exeext
18908 if { (ac_try="$ac_link"
18909 case "(($ac_try" in
18910   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18911   *) ac_try_echo=$ac_try;;
18912 esac
18913 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18914   (eval "$ac_link") 2>conftest.er1
18915   ac_status=$?
18916   grep -v '^ *+' conftest.er1 >conftest.err
18917   rm -f conftest.er1
18918   cat conftest.err >&5
18919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18920   (exit $ac_status); } &&
18921          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18922   { (case "(($ac_try" in
18923   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18924   *) ac_try_echo=$ac_try;;
18925 esac
18926 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18927   (eval "$ac_try") 2>&5
18928   ac_status=$?
18929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18930   (exit $ac_status); }; } &&
18931          { ac_try='test -s conftest$ac_exeext'
18932   { (case "(($ac_try" in
18933   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18934   *) ac_try_echo=$ac_try;;
18935 esac
18936 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18937   (eval "$ac_try") 2>&5
18938   ac_status=$?
18939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18940   (exit $ac_status); }; }; then
18941   ac_cv_lib_gcc___floatdidf=yes
18942 else
18943   echo "$as_me: failed program was:" >&5
18944 sed 's/^/| /' conftest.$ac_ext >&5
18945
18946         ac_cv_lib_gcc___floatdidf=no
18947 fi
18948
18949 rm -f core conftest.err conftest.$ac_objext \
18950       conftest$ac_exeext conftest.$ac_ext
18951 LIBS=$ac_check_lib_save_LIBS
18952 fi
18953 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___floatdidf" >&5
18954 echo "${ECHO_T}$ac_cv_lib_gcc___floatdidf" >&6; }
18955 if test $ac_cv_lib_gcc___floatdidf = yes; then
18956
18957 cat >>confdefs.h <<\_ACEOF
18958 #define HAVE___FLOATDIDF 1
18959 _ACEOF
18960
18961 fi
18962
18963   { echo "$as_me:$LINENO: checking for __lshrdi3 in -lgcc" >&5
18964 echo $ECHO_N "checking for __lshrdi3 in -lgcc... $ECHO_C" >&6; }
18965 if test "${ac_cv_lib_gcc___lshrdi3+set}" = set; then
18966   echo $ECHO_N "(cached) $ECHO_C" >&6
18967 else
18968   ac_check_lib_save_LIBS=$LIBS
18969 LIBS="-lgcc  $LIBS"
18970 cat >conftest.$ac_ext <<_ACEOF
18971 /* confdefs.h.  */
18972 _ACEOF
18973 cat confdefs.h >>conftest.$ac_ext
18974 cat >>conftest.$ac_ext <<_ACEOF
18975 /* end confdefs.h.  */
18976
18977 /* Override any GCC internal prototype to avoid an error.
18978    Use char because int might match the return type of a GCC
18979    builtin and then its argument prototype would still apply.  */
18980 #ifdef __cplusplus
18981 extern "C"
18982 #endif
18983 char __lshrdi3 ();
18984 int
18985 main ()
18986 {
18987 return __lshrdi3 ();
18988   ;
18989   return 0;
18990 }
18991 _ACEOF
18992 rm -f conftest.$ac_objext conftest$ac_exeext
18993 if { (ac_try="$ac_link"
18994 case "(($ac_try" in
18995   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18996   *) ac_try_echo=$ac_try;;
18997 esac
18998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18999   (eval "$ac_link") 2>conftest.er1
19000   ac_status=$?
19001   grep -v '^ *+' conftest.er1 >conftest.err
19002   rm -f conftest.er1
19003   cat conftest.err >&5
19004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19005   (exit $ac_status); } &&
19006          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19007   { (case "(($ac_try" in
19008   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19009   *) ac_try_echo=$ac_try;;
19010 esac
19011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19012   (eval "$ac_try") 2>&5
19013   ac_status=$?
19014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19015   (exit $ac_status); }; } &&
19016          { ac_try='test -s conftest$ac_exeext'
19017   { (case "(($ac_try" in
19018   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19019   *) ac_try_echo=$ac_try;;
19020 esac
19021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19022   (eval "$ac_try") 2>&5
19023   ac_status=$?
19024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19025   (exit $ac_status); }; }; then
19026   ac_cv_lib_gcc___lshrdi3=yes
19027 else
19028   echo "$as_me: failed program was:" >&5
19029 sed 's/^/| /' conftest.$ac_ext >&5
19030
19031         ac_cv_lib_gcc___lshrdi3=no
19032 fi
19033
19034 rm -f core conftest.err conftest.$ac_objext \
19035       conftest$ac_exeext conftest.$ac_ext
19036 LIBS=$ac_check_lib_save_LIBS
19037 fi
19038 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___lshrdi3" >&5
19039 echo "${ECHO_T}$ac_cv_lib_gcc___lshrdi3" >&6; }
19040 if test $ac_cv_lib_gcc___lshrdi3 = yes; then
19041
19042 cat >>confdefs.h <<\_ACEOF
19043 #define HAVE___LSHRDI3 1
19044 _ACEOF
19045
19046 fi
19047
19048   { echo "$as_me:$LINENO: checking for __moddi3 in -lgcc" >&5
19049 echo $ECHO_N "checking for __moddi3 in -lgcc... $ECHO_C" >&6; }
19050 if test "${ac_cv_lib_gcc___moddi3+set}" = set; then
19051   echo $ECHO_N "(cached) $ECHO_C" >&6
19052 else
19053   ac_check_lib_save_LIBS=$LIBS
19054 LIBS="-lgcc  $LIBS"
19055 cat >conftest.$ac_ext <<_ACEOF
19056 /* confdefs.h.  */
19057 _ACEOF
19058 cat confdefs.h >>conftest.$ac_ext
19059 cat >>conftest.$ac_ext <<_ACEOF
19060 /* end confdefs.h.  */
19061
19062 /* Override any GCC internal prototype to avoid an error.
19063    Use char because int might match the return type of a GCC
19064    builtin and then its argument prototype would still apply.  */
19065 #ifdef __cplusplus
19066 extern "C"
19067 #endif
19068 char __moddi3 ();
19069 int
19070 main ()
19071 {
19072 return __moddi3 ();
19073   ;
19074   return 0;
19075 }
19076 _ACEOF
19077 rm -f conftest.$ac_objext conftest$ac_exeext
19078 if { (ac_try="$ac_link"
19079 case "(($ac_try" in
19080   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19081   *) ac_try_echo=$ac_try;;
19082 esac
19083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19084   (eval "$ac_link") 2>conftest.er1
19085   ac_status=$?
19086   grep -v '^ *+' conftest.er1 >conftest.err
19087   rm -f conftest.er1
19088   cat conftest.err >&5
19089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19090   (exit $ac_status); } &&
19091          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19092   { (case "(($ac_try" in
19093   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19094   *) ac_try_echo=$ac_try;;
19095 esac
19096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19097   (eval "$ac_try") 2>&5
19098   ac_status=$?
19099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19100   (exit $ac_status); }; } &&
19101          { ac_try='test -s conftest$ac_exeext'
19102   { (case "(($ac_try" in
19103   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19104   *) ac_try_echo=$ac_try;;
19105 esac
19106 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19107   (eval "$ac_try") 2>&5
19108   ac_status=$?
19109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19110   (exit $ac_status); }; }; then
19111   ac_cv_lib_gcc___moddi3=yes
19112 else
19113   echo "$as_me: failed program was:" >&5
19114 sed 's/^/| /' conftest.$ac_ext >&5
19115
19116         ac_cv_lib_gcc___moddi3=no
19117 fi
19118
19119 rm -f core conftest.err conftest.$ac_objext \
19120       conftest$ac_exeext conftest.$ac_ext
19121 LIBS=$ac_check_lib_save_LIBS
19122 fi
19123 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___moddi3" >&5
19124 echo "${ECHO_T}$ac_cv_lib_gcc___moddi3" >&6; }
19125 if test $ac_cv_lib_gcc___moddi3 = yes; then
19126
19127 cat >>confdefs.h <<\_ACEOF
19128 #define HAVE___MODDI3 1
19129 _ACEOF
19130
19131 fi
19132
19133   { echo "$as_me:$LINENO: checking for __udivdi3 in -lgcc" >&5
19134 echo $ECHO_N "checking for __udivdi3 in -lgcc... $ECHO_C" >&6; }
19135 if test "${ac_cv_lib_gcc___udivdi3+set}" = set; then
19136   echo $ECHO_N "(cached) $ECHO_C" >&6
19137 else
19138   ac_check_lib_save_LIBS=$LIBS
19139 LIBS="-lgcc  $LIBS"
19140 cat >conftest.$ac_ext <<_ACEOF
19141 /* confdefs.h.  */
19142 _ACEOF
19143 cat confdefs.h >>conftest.$ac_ext
19144 cat >>conftest.$ac_ext <<_ACEOF
19145 /* end confdefs.h.  */
19146
19147 /* Override any GCC internal prototype to avoid an error.
19148    Use char because int might match the return type of a GCC
19149    builtin and then its argument prototype would still apply.  */
19150 #ifdef __cplusplus
19151 extern "C"
19152 #endif
19153 char __udivdi3 ();
19154 int
19155 main ()
19156 {
19157 return __udivdi3 ();
19158   ;
19159   return 0;
19160 }
19161 _ACEOF
19162 rm -f conftest.$ac_objext conftest$ac_exeext
19163 if { (ac_try="$ac_link"
19164 case "(($ac_try" in
19165   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19166   *) ac_try_echo=$ac_try;;
19167 esac
19168 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19169   (eval "$ac_link") 2>conftest.er1
19170   ac_status=$?
19171   grep -v '^ *+' conftest.er1 >conftest.err
19172   rm -f conftest.er1
19173   cat conftest.err >&5
19174   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19175   (exit $ac_status); } &&
19176          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19177   { (case "(($ac_try" in
19178   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19179   *) ac_try_echo=$ac_try;;
19180 esac
19181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19182   (eval "$ac_try") 2>&5
19183   ac_status=$?
19184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19185   (exit $ac_status); }; } &&
19186          { ac_try='test -s conftest$ac_exeext'
19187   { (case "(($ac_try" in
19188   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19189   *) ac_try_echo=$ac_try;;
19190 esac
19191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19192   (eval "$ac_try") 2>&5
19193   ac_status=$?
19194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19195   (exit $ac_status); }; }; then
19196   ac_cv_lib_gcc___udivdi3=yes
19197 else
19198   echo "$as_me: failed program was:" >&5
19199 sed 's/^/| /' conftest.$ac_ext >&5
19200
19201         ac_cv_lib_gcc___udivdi3=no
19202 fi
19203
19204 rm -f core conftest.err conftest.$ac_objext \
19205       conftest$ac_exeext conftest.$ac_ext
19206 LIBS=$ac_check_lib_save_LIBS
19207 fi
19208 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___udivdi3" >&5
19209 echo "${ECHO_T}$ac_cv_lib_gcc___udivdi3" >&6; }
19210 if test $ac_cv_lib_gcc___udivdi3 = yes; then
19211
19212 cat >>confdefs.h <<\_ACEOF
19213 #define HAVE___UDIVDI3 1
19214 _ACEOF
19215
19216 fi
19217
19218   { echo "$as_me:$LINENO: checking for __umoddi3 in -lgcc" >&5
19219 echo $ECHO_N "checking for __umoddi3 in -lgcc... $ECHO_C" >&6; }
19220 if test "${ac_cv_lib_gcc___umoddi3+set}" = set; then
19221   echo $ECHO_N "(cached) $ECHO_C" >&6
19222 else
19223   ac_check_lib_save_LIBS=$LIBS
19224 LIBS="-lgcc  $LIBS"
19225 cat >conftest.$ac_ext <<_ACEOF
19226 /* confdefs.h.  */
19227 _ACEOF
19228 cat confdefs.h >>conftest.$ac_ext
19229 cat >>conftest.$ac_ext <<_ACEOF
19230 /* end confdefs.h.  */
19231
19232 /* Override any GCC internal prototype to avoid an error.
19233    Use char because int might match the return type of a GCC
19234    builtin and then its argument prototype would still apply.  */
19235 #ifdef __cplusplus
19236 extern "C"
19237 #endif
19238 char __umoddi3 ();
19239 int
19240 main ()
19241 {
19242 return __umoddi3 ();
19243   ;
19244   return 0;
19245 }
19246 _ACEOF
19247 rm -f conftest.$ac_objext conftest$ac_exeext
19248 if { (ac_try="$ac_link"
19249 case "(($ac_try" in
19250   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19251   *) ac_try_echo=$ac_try;;
19252 esac
19253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19254   (eval "$ac_link") 2>conftest.er1
19255   ac_status=$?
19256   grep -v '^ *+' conftest.er1 >conftest.err
19257   rm -f conftest.er1
19258   cat conftest.err >&5
19259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19260   (exit $ac_status); } &&
19261          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19262   { (case "(($ac_try" in
19263   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19264   *) ac_try_echo=$ac_try;;
19265 esac
19266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19267   (eval "$ac_try") 2>&5
19268   ac_status=$?
19269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19270   (exit $ac_status); }; } &&
19271          { ac_try='test -s conftest$ac_exeext'
19272   { (case "(($ac_try" in
19273   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19274   *) ac_try_echo=$ac_try;;
19275 esac
19276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19277   (eval "$ac_try") 2>&5
19278   ac_status=$?
19279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19280   (exit $ac_status); }; }; then
19281   ac_cv_lib_gcc___umoddi3=yes
19282 else
19283   echo "$as_me: failed program was:" >&5
19284 sed 's/^/| /' conftest.$ac_ext >&5
19285
19286         ac_cv_lib_gcc___umoddi3=no
19287 fi
19288
19289 rm -f core conftest.err conftest.$ac_objext \
19290       conftest$ac_exeext conftest.$ac_ext
19291 LIBS=$ac_check_lib_save_LIBS
19292 fi
19293 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___umoddi3" >&5
19294 echo "${ECHO_T}$ac_cv_lib_gcc___umoddi3" >&6; }
19295 if test $ac_cv_lib_gcc___umoddi3 = yes; then
19296
19297 cat >>confdefs.h <<\_ACEOF
19298 #define HAVE___UMODDI3 1
19299 _ACEOF
19300
19301 fi
19302
19303
19304   { echo "$as_me:$LINENO: checking for __main in -lgcc" >&5
19305 echo $ECHO_N "checking for __main in -lgcc... $ECHO_C" >&6; }
19306 if test "${ac_cv_lib_gcc___main+set}" = set; then
19307   echo $ECHO_N "(cached) $ECHO_C" >&6
19308 else
19309   ac_check_lib_save_LIBS=$LIBS
19310 LIBS="-lgcc  $LIBS"
19311 cat >conftest.$ac_ext <<_ACEOF
19312 /* confdefs.h.  */
19313 _ACEOF
19314 cat confdefs.h >>conftest.$ac_ext
19315 cat >>conftest.$ac_ext <<_ACEOF
19316 /* end confdefs.h.  */
19317
19318 /* Override any GCC internal prototype to avoid an error.
19319    Use char because int might match the return type of a GCC
19320    builtin and then its argument prototype would still apply.  */
19321 #ifdef __cplusplus
19322 extern "C"
19323 #endif
19324 char __main ();
19325 int
19326 main ()
19327 {
19328 return __main ();
19329   ;
19330   return 0;
19331 }
19332 _ACEOF
19333 rm -f conftest.$ac_objext conftest$ac_exeext
19334 if { (ac_try="$ac_link"
19335 case "(($ac_try" in
19336   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19337   *) ac_try_echo=$ac_try;;
19338 esac
19339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19340   (eval "$ac_link") 2>conftest.er1
19341   ac_status=$?
19342   grep -v '^ *+' conftest.er1 >conftest.err
19343   rm -f conftest.er1
19344   cat conftest.err >&5
19345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19346   (exit $ac_status); } &&
19347          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19348   { (case "(($ac_try" in
19349   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19350   *) ac_try_echo=$ac_try;;
19351 esac
19352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19353   (eval "$ac_try") 2>&5
19354   ac_status=$?
19355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19356   (exit $ac_status); }; } &&
19357          { ac_try='test -s conftest$ac_exeext'
19358   { (case "(($ac_try" in
19359   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19360   *) ac_try_echo=$ac_try;;
19361 esac
19362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19363   (eval "$ac_try") 2>&5
19364   ac_status=$?
19365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19366   (exit $ac_status); }; }; then
19367   ac_cv_lib_gcc___main=yes
19368 else
19369   echo "$as_me: failed program was:" >&5
19370 sed 's/^/| /' conftest.$ac_ext >&5
19371
19372         ac_cv_lib_gcc___main=no
19373 fi
19374
19375 rm -f core conftest.err conftest.$ac_objext \
19376       conftest$ac_exeext conftest.$ac_ext
19377 LIBS=$ac_check_lib_save_LIBS
19378 fi
19379 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___main" >&5
19380 echo "${ECHO_T}$ac_cv_lib_gcc___main" >&6; }
19381 if test $ac_cv_lib_gcc___main = yes; then
19382
19383 cat >>confdefs.h <<\_ACEOF
19384 #define HAVE___MAIN 1
19385 _ACEOF
19386
19387 fi
19388
19389   { echo "$as_me:$LINENO: checking for __cmpdi2 in -lgcc" >&5
19390 echo $ECHO_N "checking for __cmpdi2 in -lgcc... $ECHO_C" >&6; }
19391 if test "${ac_cv_lib_gcc___cmpdi2+set}" = set; then
19392   echo $ECHO_N "(cached) $ECHO_C" >&6
19393 else
19394   ac_check_lib_save_LIBS=$LIBS
19395 LIBS="-lgcc  $LIBS"
19396 cat >conftest.$ac_ext <<_ACEOF
19397 /* confdefs.h.  */
19398 _ACEOF
19399 cat confdefs.h >>conftest.$ac_ext
19400 cat >>conftest.$ac_ext <<_ACEOF
19401 /* end confdefs.h.  */
19402
19403 /* Override any GCC internal prototype to avoid an error.
19404    Use char because int might match the return type of a GCC
19405    builtin and then its argument prototype would still apply.  */
19406 #ifdef __cplusplus
19407 extern "C"
19408 #endif
19409 char __cmpdi2 ();
19410 int
19411 main ()
19412 {
19413 return __cmpdi2 ();
19414   ;
19415   return 0;
19416 }
19417 _ACEOF
19418 rm -f conftest.$ac_objext conftest$ac_exeext
19419 if { (ac_try="$ac_link"
19420 case "(($ac_try" in
19421   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19422   *) ac_try_echo=$ac_try;;
19423 esac
19424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19425   (eval "$ac_link") 2>conftest.er1
19426   ac_status=$?
19427   grep -v '^ *+' conftest.er1 >conftest.err
19428   rm -f conftest.er1
19429   cat conftest.err >&5
19430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19431   (exit $ac_status); } &&
19432          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19433   { (case "(($ac_try" in
19434   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19435   *) ac_try_echo=$ac_try;;
19436 esac
19437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19438   (eval "$ac_try") 2>&5
19439   ac_status=$?
19440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19441   (exit $ac_status); }; } &&
19442          { ac_try='test -s conftest$ac_exeext'
19443   { (case "(($ac_try" in
19444   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19445   *) ac_try_echo=$ac_try;;
19446 esac
19447 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19448   (eval "$ac_try") 2>&5
19449   ac_status=$?
19450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19451   (exit $ac_status); }; }; then
19452   ac_cv_lib_gcc___cmpdi2=yes
19453 else
19454   echo "$as_me: failed program was:" >&5
19455 sed 's/^/| /' conftest.$ac_ext >&5
19456
19457         ac_cv_lib_gcc___cmpdi2=no
19458 fi
19459
19460 rm -f core conftest.err conftest.$ac_objext \
19461       conftest$ac_exeext conftest.$ac_ext
19462 LIBS=$ac_check_lib_save_LIBS
19463 fi
19464 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___cmpdi2" >&5
19465 echo "${ECHO_T}$ac_cv_lib_gcc___cmpdi2" >&6; }
19466 if test $ac_cv_lib_gcc___cmpdi2 = yes; then
19467
19468 cat >>confdefs.h <<\_ACEOF
19469 #define HAVE___CMPDI2 1
19470 _ACEOF
19471
19472 fi
19473
19474 fi
19475
19476 if test "$llvm_cv_os_type" = "MingW" ; then
19477   { echo "$as_me:$LINENO: checking whether EnumerateLoadedModules() accepts new decl" >&5
19478 echo $ECHO_N "checking whether EnumerateLoadedModules() accepts new decl... $ECHO_C" >&6; }
19479   cat >conftest.$ac_ext <<_ACEOF
19480 #include <windows.h>
19481 #include <imagehlp.h>
19482 extern void foo(PENUMLOADED_MODULES_CALLBACK);
19483 extern void foo(BOOL(CALLBACK*)(PCSTR,ULONG_PTR,ULONG,PVOID));
19484 _ACEOF
19485 rm -f conftest.$ac_objext
19486 if { (ac_try="$ac_compile"
19487 case "(($ac_try" in
19488   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19489   *) ac_try_echo=$ac_try;;
19490 esac
19491 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19492   (eval "$ac_compile") 2>conftest.er1
19493   ac_status=$?
19494   grep -v '^ *+' conftest.er1 >conftest.err
19495   rm -f conftest.er1
19496   cat conftest.err >&5
19497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19498   (exit $ac_status); } &&
19499          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19500   { (case "(($ac_try" in
19501   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19502   *) ac_try_echo=$ac_try;;
19503 esac
19504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19505   (eval "$ac_try") 2>&5
19506   ac_status=$?
19507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19508   (exit $ac_status); }; } &&
19509          { ac_try='test -s conftest.$ac_objext'
19510   { (case "(($ac_try" in
19511   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19512   *) ac_try_echo=$ac_try;;
19513 esac
19514 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19515   (eval "$ac_try") 2>&5
19516   ac_status=$?
19517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19518   (exit $ac_status); }; }; then
19519
19520   { echo "$as_me:$LINENO: result: yes" >&5
19521 echo "${ECHO_T}yes" >&6; }
19522   llvm_cv_win32_elmcb_pcstr="PCSTR"
19523
19524 else
19525   echo "$as_me: failed program was:" >&5
19526 sed 's/^/| /' conftest.$ac_ext >&5
19527
19528
19529   { echo "$as_me:$LINENO: result: no" >&5
19530 echo "${ECHO_T}no" >&6; }
19531   llvm_cv_win32_elmcb_pcstr="PSTR"
19532
19533 fi
19534
19535 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19536
19537 cat >>confdefs.h <<_ACEOF
19538 #define WIN32_ELMCB_PCSTR $llvm_cv_win32_elmcb_pcstr
19539 _ACEOF
19540
19541 fi
19542
19543
19544 { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
19545 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
19546 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
19547   echo $ECHO_N "(cached) $ECHO_C" >&6
19548 else
19549   ac_ext=cpp
19550 ac_cpp='$CXXCPP $CPPFLAGS'
19551 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19552 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19553 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19554
19555    cat >conftest.$ac_ext <<_ACEOF
19556 /* confdefs.h.  */
19557 _ACEOF
19558 cat confdefs.h >>conftest.$ac_ext
19559 cat >>conftest.$ac_ext <<_ACEOF
19560 /* end confdefs.h.  */
19561 #include <math.h>
19562 int
19563 main ()
19564 {
19565 float f; isnan(f);
19566   ;
19567   return 0;
19568 }
19569 _ACEOF
19570 rm -f conftest.$ac_objext
19571 if { (ac_try="$ac_compile"
19572 case "(($ac_try" in
19573   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19574   *) ac_try_echo=$ac_try;;
19575 esac
19576 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19577   (eval "$ac_compile") 2>conftest.er1
19578   ac_status=$?
19579   grep -v '^ *+' conftest.er1 >conftest.err
19580   rm -f conftest.er1
19581   cat conftest.err >&5
19582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19583   (exit $ac_status); } &&
19584          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19585   { (case "(($ac_try" in
19586   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19587   *) ac_try_echo=$ac_try;;
19588 esac
19589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19590   (eval "$ac_try") 2>&5
19591   ac_status=$?
19592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19593   (exit $ac_status); }; } &&
19594          { ac_try='test -s conftest.$ac_objext'
19595   { (case "(($ac_try" in
19596   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19597   *) ac_try_echo=$ac_try;;
19598 esac
19599 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19600   (eval "$ac_try") 2>&5
19601   ac_status=$?
19602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19603   (exit $ac_status); }; }; then
19604   ac_cv_func_isnan_in_math_h=yes
19605 else
19606   echo "$as_me: failed program was:" >&5
19607 sed 's/^/| /' conftest.$ac_ext >&5
19608
19609         ac_cv_func_isnan_in_math_h=no
19610 fi
19611
19612 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19613   ac_ext=c
19614 ac_cpp='$CPP $CPPFLAGS'
19615 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19616 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19617 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19618
19619 fi
19620 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
19621 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
19622
19623
19624 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
19625
19626 cat >>confdefs.h <<\_ACEOF
19627 #define HAVE_ISNAN_IN_MATH_H 1
19628 _ACEOF
19629
19630 fi
19631
19632 { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
19633 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
19634 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
19635   echo $ECHO_N "(cached) $ECHO_C" >&6
19636 else
19637   ac_ext=cpp
19638 ac_cpp='$CXXCPP $CPPFLAGS'
19639 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19640 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19641 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19642
19643    cat >conftest.$ac_ext <<_ACEOF
19644 /* confdefs.h.  */
19645 _ACEOF
19646 cat confdefs.h >>conftest.$ac_ext
19647 cat >>conftest.$ac_ext <<_ACEOF
19648 /* end confdefs.h.  */
19649 #include <cmath>
19650 int
19651 main ()
19652 {
19653 float f; isnan(f);
19654   ;
19655   return 0;
19656 }
19657 _ACEOF
19658 rm -f conftest.$ac_objext
19659 if { (ac_try="$ac_compile"
19660 case "(($ac_try" in
19661   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19662   *) ac_try_echo=$ac_try;;
19663 esac
19664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19665   (eval "$ac_compile") 2>conftest.er1
19666   ac_status=$?
19667   grep -v '^ *+' conftest.er1 >conftest.err
19668   rm -f conftest.er1
19669   cat conftest.err >&5
19670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19671   (exit $ac_status); } &&
19672          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19673   { (case "(($ac_try" in
19674   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19675   *) ac_try_echo=$ac_try;;
19676 esac
19677 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19678   (eval "$ac_try") 2>&5
19679   ac_status=$?
19680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19681   (exit $ac_status); }; } &&
19682          { ac_try='test -s conftest.$ac_objext'
19683   { (case "(($ac_try" in
19684   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19685   *) ac_try_echo=$ac_try;;
19686 esac
19687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19688   (eval "$ac_try") 2>&5
19689   ac_status=$?
19690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19691   (exit $ac_status); }; }; then
19692   ac_cv_func_isnan_in_cmath=yes
19693 else
19694   echo "$as_me: failed program was:" >&5
19695 sed 's/^/| /' conftest.$ac_ext >&5
19696
19697         ac_cv_func_isnan_in_cmath=no
19698 fi
19699
19700 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19701   ac_ext=c
19702 ac_cpp='$CPP $CPPFLAGS'
19703 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19704 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19705 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19706
19707 fi
19708 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
19709 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
19710
19711 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
19712
19713 cat >>confdefs.h <<\_ACEOF
19714 #define HAVE_ISNAN_IN_CMATH 1
19715 _ACEOF
19716
19717 fi
19718
19719 { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
19720 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
19721 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
19722   echo $ECHO_N "(cached) $ECHO_C" >&6
19723 else
19724   ac_ext=cpp
19725 ac_cpp='$CXXCPP $CPPFLAGS'
19726 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19727 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19728 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19729
19730    cat >conftest.$ac_ext <<_ACEOF
19731 /* confdefs.h.  */
19732 _ACEOF
19733 cat confdefs.h >>conftest.$ac_ext
19734 cat >>conftest.$ac_ext <<_ACEOF
19735 /* end confdefs.h.  */
19736 #include <cmath>
19737 int
19738 main ()
19739 {
19740 float f; std::isnan(f);
19741   ;
19742   return 0;
19743 }
19744 _ACEOF
19745 rm -f conftest.$ac_objext
19746 if { (ac_try="$ac_compile"
19747 case "(($ac_try" in
19748   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19749   *) ac_try_echo=$ac_try;;
19750 esac
19751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19752   (eval "$ac_compile") 2>conftest.er1
19753   ac_status=$?
19754   grep -v '^ *+' conftest.er1 >conftest.err
19755   rm -f conftest.er1
19756   cat conftest.err >&5
19757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19758   (exit $ac_status); } &&
19759          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19760   { (case "(($ac_try" in
19761   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19762   *) ac_try_echo=$ac_try;;
19763 esac
19764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19765   (eval "$ac_try") 2>&5
19766   ac_status=$?
19767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19768   (exit $ac_status); }; } &&
19769          { ac_try='test -s conftest.$ac_objext'
19770   { (case "(($ac_try" in
19771   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19772   *) ac_try_echo=$ac_try;;
19773 esac
19774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19775   (eval "$ac_try") 2>&5
19776   ac_status=$?
19777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19778   (exit $ac_status); }; }; then
19779   ac_cv_func_std_isnan_in_cmath=yes
19780 else
19781   echo "$as_me: failed program was:" >&5
19782 sed 's/^/| /' conftest.$ac_ext >&5
19783
19784         ac_cv_func_std_isnan_in_cmath=no
19785 fi
19786
19787 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19788   ac_ext=c
19789 ac_cpp='$CPP $CPPFLAGS'
19790 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19791 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19792 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19793
19794 fi
19795 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
19796 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
19797
19798 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
19799
19800 cat >>confdefs.h <<\_ACEOF
19801 #define HAVE_STD_ISNAN_IN_CMATH 1
19802 _ACEOF
19803
19804 fi
19805
19806
19807 { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
19808 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
19809 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
19810   echo $ECHO_N "(cached) $ECHO_C" >&6
19811 else
19812   ac_ext=cpp
19813 ac_cpp='$CXXCPP $CPPFLAGS'
19814 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19815 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19816 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19817
19818    cat >conftest.$ac_ext <<_ACEOF
19819 /* confdefs.h.  */
19820 _ACEOF
19821 cat confdefs.h >>conftest.$ac_ext
19822 cat >>conftest.$ac_ext <<_ACEOF
19823 /* end confdefs.h.  */
19824 #include <math.h>
19825 int
19826 main ()
19827 {
19828 float f; isinf(f);
19829   ;
19830   return 0;
19831 }
19832 _ACEOF
19833 rm -f conftest.$ac_objext
19834 if { (ac_try="$ac_compile"
19835 case "(($ac_try" in
19836   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19837   *) ac_try_echo=$ac_try;;
19838 esac
19839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19840   (eval "$ac_compile") 2>conftest.er1
19841   ac_status=$?
19842   grep -v '^ *+' conftest.er1 >conftest.err
19843   rm -f conftest.er1
19844   cat conftest.err >&5
19845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19846   (exit $ac_status); } &&
19847          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19848   { (case "(($ac_try" in
19849   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19850   *) ac_try_echo=$ac_try;;
19851 esac
19852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19853   (eval "$ac_try") 2>&5
19854   ac_status=$?
19855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19856   (exit $ac_status); }; } &&
19857          { ac_try='test -s conftest.$ac_objext'
19858   { (case "(($ac_try" in
19859   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19860   *) ac_try_echo=$ac_try;;
19861 esac
19862 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19863   (eval "$ac_try") 2>&5
19864   ac_status=$?
19865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19866   (exit $ac_status); }; }; then
19867   ac_cv_func_isinf_in_math_h=yes
19868 else
19869   echo "$as_me: failed program was:" >&5
19870 sed 's/^/| /' conftest.$ac_ext >&5
19871
19872         ac_cv_func_isinf_in_math_h=no
19873 fi
19874
19875 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19876   ac_ext=c
19877 ac_cpp='$CPP $CPPFLAGS'
19878 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19879 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19880 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19881
19882 fi
19883 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
19884 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
19885
19886 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
19887
19888 cat >>confdefs.h <<\_ACEOF
19889 #define HAVE_ISINF_IN_MATH_H 1
19890 _ACEOF
19891
19892 fi
19893
19894 { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
19895 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
19896 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
19897   echo $ECHO_N "(cached) $ECHO_C" >&6
19898 else
19899   ac_ext=cpp
19900 ac_cpp='$CXXCPP $CPPFLAGS'
19901 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19902 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19903 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19904
19905    cat >conftest.$ac_ext <<_ACEOF
19906 /* confdefs.h.  */
19907 _ACEOF
19908 cat confdefs.h >>conftest.$ac_ext
19909 cat >>conftest.$ac_ext <<_ACEOF
19910 /* end confdefs.h.  */
19911 #include <cmath>
19912 int
19913 main ()
19914 {
19915 float f; isinf(f);
19916   ;
19917   return 0;
19918 }
19919 _ACEOF
19920 rm -f conftest.$ac_objext
19921 if { (ac_try="$ac_compile"
19922 case "(($ac_try" in
19923   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19924   *) ac_try_echo=$ac_try;;
19925 esac
19926 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19927   (eval "$ac_compile") 2>conftest.er1
19928   ac_status=$?
19929   grep -v '^ *+' conftest.er1 >conftest.err
19930   rm -f conftest.er1
19931   cat conftest.err >&5
19932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19933   (exit $ac_status); } &&
19934          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19935   { (case "(($ac_try" in
19936   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19937   *) ac_try_echo=$ac_try;;
19938 esac
19939 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19940   (eval "$ac_try") 2>&5
19941   ac_status=$?
19942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19943   (exit $ac_status); }; } &&
19944          { ac_try='test -s conftest.$ac_objext'
19945   { (case "(($ac_try" in
19946   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19947   *) ac_try_echo=$ac_try;;
19948 esac
19949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19950   (eval "$ac_try") 2>&5
19951   ac_status=$?
19952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19953   (exit $ac_status); }; }; then
19954   ac_cv_func_isinf_in_cmath=yes
19955 else
19956   echo "$as_me: failed program was:" >&5
19957 sed 's/^/| /' conftest.$ac_ext >&5
19958
19959         ac_cv_func_isinf_in_cmath=no
19960 fi
19961
19962 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19963   ac_ext=c
19964 ac_cpp='$CPP $CPPFLAGS'
19965 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19966 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19967 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19968
19969 fi
19970 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
19971 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
19972
19973 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
19974
19975 cat >>confdefs.h <<\_ACEOF
19976 #define HAVE_ISINF_IN_CMATH 1
19977 _ACEOF
19978
19979 fi
19980
19981 { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
19982 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
19983 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
19984   echo $ECHO_N "(cached) $ECHO_C" >&6
19985 else
19986   ac_ext=cpp
19987 ac_cpp='$CXXCPP $CPPFLAGS'
19988 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19989 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19990 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19991
19992    cat >conftest.$ac_ext <<_ACEOF
19993 /* confdefs.h.  */
19994 _ACEOF
19995 cat confdefs.h >>conftest.$ac_ext
19996 cat >>conftest.$ac_ext <<_ACEOF
19997 /* end confdefs.h.  */
19998 #include <cmath>
19999 int
20000 main ()
20001 {
20002 float f; std::isinf(f);
20003   ;
20004   return 0;
20005 }
20006 _ACEOF
20007 rm -f conftest.$ac_objext
20008 if { (ac_try="$ac_compile"
20009 case "(($ac_try" in
20010   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20011   *) ac_try_echo=$ac_try;;
20012 esac
20013 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20014   (eval "$ac_compile") 2>conftest.er1
20015   ac_status=$?
20016   grep -v '^ *+' conftest.er1 >conftest.err
20017   rm -f conftest.er1
20018   cat conftest.err >&5
20019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20020   (exit $ac_status); } &&
20021          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20022   { (case "(($ac_try" in
20023   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20024   *) ac_try_echo=$ac_try;;
20025 esac
20026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20027   (eval "$ac_try") 2>&5
20028   ac_status=$?
20029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20030   (exit $ac_status); }; } &&
20031          { ac_try='test -s conftest.$ac_objext'
20032   { (case "(($ac_try" in
20033   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20034   *) ac_try_echo=$ac_try;;
20035 esac
20036 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20037   (eval "$ac_try") 2>&5
20038   ac_status=$?
20039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20040   (exit $ac_status); }; }; then
20041   ac_cv_func_std_isinf_in_cmath=yes
20042 else
20043   echo "$as_me: failed program was:" >&5
20044 sed 's/^/| /' conftest.$ac_ext >&5
20045
20046         ac_cv_func_std_isinf_in_cmath=no
20047 fi
20048
20049 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20050   ac_ext=c
20051 ac_cpp='$CPP $CPPFLAGS'
20052 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20053 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20054 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20055
20056 fi
20057 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
20058 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
20059
20060 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
20061
20062 cat >>confdefs.h <<\_ACEOF
20063 #define HAVE_STD_ISINF_IN_CMATH 1
20064 _ACEOF
20065
20066 fi
20067
20068 { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
20069 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
20070 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
20071   echo $ECHO_N "(cached) $ECHO_C" >&6
20072 else
20073   ac_ext=cpp
20074 ac_cpp='$CXXCPP $CPPFLAGS'
20075 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20076 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20077 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20078
20079    cat >conftest.$ac_ext <<_ACEOF
20080 /* confdefs.h.  */
20081 _ACEOF
20082 cat confdefs.h >>conftest.$ac_ext
20083 cat >>conftest.$ac_ext <<_ACEOF
20084 /* end confdefs.h.  */
20085 #include <ieeefp.h>
20086 int
20087 main ()
20088 {
20089 float f; finite(f);
20090   ;
20091   return 0;
20092 }
20093 _ACEOF
20094 rm -f conftest.$ac_objext
20095 if { (ac_try="$ac_compile"
20096 case "(($ac_try" in
20097   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20098   *) ac_try_echo=$ac_try;;
20099 esac
20100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20101   (eval "$ac_compile") 2>conftest.er1
20102   ac_status=$?
20103   grep -v '^ *+' conftest.er1 >conftest.err
20104   rm -f conftest.er1
20105   cat conftest.err >&5
20106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20107   (exit $ac_status); } &&
20108          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20109   { (case "(($ac_try" in
20110   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20111   *) ac_try_echo=$ac_try;;
20112 esac
20113 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20114   (eval "$ac_try") 2>&5
20115   ac_status=$?
20116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20117   (exit $ac_status); }; } &&
20118          { ac_try='test -s conftest.$ac_objext'
20119   { (case "(($ac_try" in
20120   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20121   *) ac_try_echo=$ac_try;;
20122 esac
20123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20124   (eval "$ac_try") 2>&5
20125   ac_status=$?
20126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20127   (exit $ac_status); }; }; then
20128   ac_cv_func_finite_in_ieeefp_h=yes
20129 else
20130   echo "$as_me: failed program was:" >&5
20131 sed 's/^/| /' conftest.$ac_ext >&5
20132
20133         ac_cv_func_finite_in_ieeefp_h=no
20134 fi
20135
20136 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20137   ac_ext=c
20138 ac_cpp='$CPP $CPPFLAGS'
20139 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20140 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20141 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20142
20143 fi
20144 { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
20145 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
20146
20147 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
20148
20149 cat >>confdefs.h <<\_ACEOF
20150 #define HAVE_FINITE_IN_IEEEFP_H 1
20151 _ACEOF
20152
20153 fi
20154
20155
20156
20157 if test "$llvm_cv_platform_type" = "Unix" ; then
20158
20159
20160 for ac_header in stdlib.h unistd.h
20161 do
20162 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20163 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20164   { echo "$as_me:$LINENO: checking for $ac_header" >&5
20165 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20166 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20167   echo $ECHO_N "(cached) $ECHO_C" >&6
20168 fi
20169 ac_res=`eval echo '${'$as_ac_Header'}'`
20170                { echo "$as_me:$LINENO: result: $ac_res" >&5
20171 echo "${ECHO_T}$ac_res" >&6; }
20172 else
20173   # Is the header compilable?
20174 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20175 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20176 cat >conftest.$ac_ext <<_ACEOF
20177 /* confdefs.h.  */
20178 _ACEOF
20179 cat confdefs.h >>conftest.$ac_ext
20180 cat >>conftest.$ac_ext <<_ACEOF
20181 /* end confdefs.h.  */
20182 $ac_includes_default
20183 #include <$ac_header>
20184 _ACEOF
20185 rm -f conftest.$ac_objext
20186 if { (ac_try="$ac_compile"
20187 case "(($ac_try" in
20188   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20189   *) ac_try_echo=$ac_try;;
20190 esac
20191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20192   (eval "$ac_compile") 2>conftest.er1
20193   ac_status=$?
20194   grep -v '^ *+' conftest.er1 >conftest.err
20195   rm -f conftest.er1
20196   cat conftest.err >&5
20197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20198   (exit $ac_status); } &&
20199          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20200   { (case "(($ac_try" in
20201   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20202   *) ac_try_echo=$ac_try;;
20203 esac
20204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20205   (eval "$ac_try") 2>&5
20206   ac_status=$?
20207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20208   (exit $ac_status); }; } &&
20209          { ac_try='test -s conftest.$ac_objext'
20210   { (case "(($ac_try" in
20211   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20212   *) ac_try_echo=$ac_try;;
20213 esac
20214 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20215   (eval "$ac_try") 2>&5
20216   ac_status=$?
20217   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20218   (exit $ac_status); }; }; then
20219   ac_header_compiler=yes
20220 else
20221   echo "$as_me: failed program was:" >&5
20222 sed 's/^/| /' conftest.$ac_ext >&5
20223
20224         ac_header_compiler=no
20225 fi
20226
20227 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20228 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20229 echo "${ECHO_T}$ac_header_compiler" >&6; }
20230
20231 # Is the header present?
20232 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20233 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20234 cat >conftest.$ac_ext <<_ACEOF
20235 /* confdefs.h.  */
20236 _ACEOF
20237 cat confdefs.h >>conftest.$ac_ext
20238 cat >>conftest.$ac_ext <<_ACEOF
20239 /* end confdefs.h.  */
20240 #include <$ac_header>
20241 _ACEOF
20242 if { (ac_try="$ac_cpp conftest.$ac_ext"
20243 case "(($ac_try" in
20244   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20245   *) ac_try_echo=$ac_try;;
20246 esac
20247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20248   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20249   ac_status=$?
20250   grep -v '^ *+' conftest.er1 >conftest.err
20251   rm -f conftest.er1
20252   cat conftest.err >&5
20253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20254   (exit $ac_status); } >/dev/null; then
20255   if test -s conftest.err; then
20256     ac_cpp_err=$ac_c_preproc_warn_flag
20257     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20258   else
20259     ac_cpp_err=
20260   fi
20261 else
20262   ac_cpp_err=yes
20263 fi
20264 if test -z "$ac_cpp_err"; then
20265   ac_header_preproc=yes
20266 else
20267   echo "$as_me: failed program was:" >&5
20268 sed 's/^/| /' conftest.$ac_ext >&5
20269
20270   ac_header_preproc=no
20271 fi
20272
20273 rm -f conftest.err conftest.$ac_ext
20274 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20275 echo "${ECHO_T}$ac_header_preproc" >&6; }
20276
20277 # So?  What about this header?
20278 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20279   yes:no: )
20280     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20281 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20282     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20283 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20284     ac_header_preproc=yes
20285     ;;
20286   no:yes:* )
20287     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20288 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20289     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20290 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20291     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20292 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20293     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20294 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20295     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20296 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20297     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20298 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20299     ( cat <<\_ASBOX
20300 ## ------------------------------------ ##
20301 ## Report this to http://llvm.org/bugs/ ##
20302 ## ------------------------------------ ##
20303 _ASBOX
20304      ) | sed "s/^/$as_me: WARNING:     /" >&2
20305     ;;
20306 esac
20307 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20308 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20309 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20310   echo $ECHO_N "(cached) $ECHO_C" >&6
20311 else
20312   eval "$as_ac_Header=\$ac_header_preproc"
20313 fi
20314 ac_res=`eval echo '${'$as_ac_Header'}'`
20315                { echo "$as_me:$LINENO: result: $ac_res" >&5
20316 echo "${ECHO_T}$ac_res" >&6; }
20317
20318 fi
20319 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20320   cat >>confdefs.h <<_ACEOF
20321 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20322 _ACEOF
20323
20324 fi
20325
20326 done
20327
20328
20329 for ac_func in getpagesize
20330 do
20331 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20332 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20333 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20334 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20335   echo $ECHO_N "(cached) $ECHO_C" >&6
20336 else
20337   cat >conftest.$ac_ext <<_ACEOF
20338 /* confdefs.h.  */
20339 _ACEOF
20340 cat confdefs.h >>conftest.$ac_ext
20341 cat >>conftest.$ac_ext <<_ACEOF
20342 /* end confdefs.h.  */
20343 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20344    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20345 #define $ac_func innocuous_$ac_func
20346
20347 /* System header to define __stub macros and hopefully few prototypes,
20348     which can conflict with char $ac_func (); below.
20349     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20350     <limits.h> exists even on freestanding compilers.  */
20351
20352 #ifdef __STDC__
20353 # include <limits.h>
20354 #else
20355 # include <assert.h>
20356 #endif
20357
20358 #undef $ac_func
20359
20360 /* Override any GCC internal prototype to avoid an error.
20361    Use char because int might match the return type of a GCC
20362    builtin and then its argument prototype would still apply.  */
20363 #ifdef __cplusplus
20364 extern "C"
20365 #endif
20366 char $ac_func ();
20367 /* The GNU C library defines this for functions which it implements
20368     to always fail with ENOSYS.  Some functions are actually named
20369     something starting with __ and the normal name is an alias.  */
20370 #if defined __stub_$ac_func || defined __stub___$ac_func
20371 choke me
20372 #endif
20373
20374 int
20375 main ()
20376 {
20377 return $ac_func ();
20378   ;
20379   return 0;
20380 }
20381 _ACEOF
20382 rm -f conftest.$ac_objext conftest$ac_exeext
20383 if { (ac_try="$ac_link"
20384 case "(($ac_try" in
20385   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20386   *) ac_try_echo=$ac_try;;
20387 esac
20388 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20389   (eval "$ac_link") 2>conftest.er1
20390   ac_status=$?
20391   grep -v '^ *+' conftest.er1 >conftest.err
20392   rm -f conftest.er1
20393   cat conftest.err >&5
20394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20395   (exit $ac_status); } &&
20396          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20397   { (case "(($ac_try" in
20398   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20399   *) ac_try_echo=$ac_try;;
20400 esac
20401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20402   (eval "$ac_try") 2>&5
20403   ac_status=$?
20404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20405   (exit $ac_status); }; } &&
20406          { ac_try='test -s conftest$ac_exeext'
20407   { (case "(($ac_try" in
20408   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20409   *) ac_try_echo=$ac_try;;
20410 esac
20411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20412   (eval "$ac_try") 2>&5
20413   ac_status=$?
20414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20415   (exit $ac_status); }; }; then
20416   eval "$as_ac_var=yes"
20417 else
20418   echo "$as_me: failed program was:" >&5
20419 sed 's/^/| /' conftest.$ac_ext >&5
20420
20421         eval "$as_ac_var=no"
20422 fi
20423
20424 rm -f core conftest.err conftest.$ac_objext \
20425       conftest$ac_exeext conftest.$ac_ext
20426 fi
20427 ac_res=`eval echo '${'$as_ac_var'}'`
20428                { echo "$as_me:$LINENO: result: $ac_res" >&5
20429 echo "${ECHO_T}$ac_res" >&6; }
20430 if test `eval echo '${'$as_ac_var'}'` = yes; then
20431   cat >>confdefs.h <<_ACEOF
20432 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20433 _ACEOF
20434
20435 fi
20436 done
20437
20438 { echo "$as_me:$LINENO: checking for working mmap" >&5
20439 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
20440 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
20441   echo $ECHO_N "(cached) $ECHO_C" >&6
20442 else
20443   if test "$cross_compiling" = yes; then
20444   ac_cv_func_mmap_fixed_mapped=no
20445 else
20446   cat >conftest.$ac_ext <<_ACEOF
20447 /* confdefs.h.  */
20448 _ACEOF
20449 cat confdefs.h >>conftest.$ac_ext
20450 cat >>conftest.$ac_ext <<_ACEOF
20451 /* end confdefs.h.  */
20452 $ac_includes_default
20453 /* malloc might have been renamed as rpl_malloc. */
20454 #undef malloc
20455
20456 /* Thanks to Mike Haertel and Jim Avera for this test.
20457    Here is a matrix of mmap possibilities:
20458         mmap private not fixed
20459         mmap private fixed at somewhere currently unmapped
20460         mmap private fixed at somewhere already mapped
20461         mmap shared not fixed
20462         mmap shared fixed at somewhere currently unmapped
20463         mmap shared fixed at somewhere already mapped
20464    For private mappings, we should verify that changes cannot be read()
20465    back from the file, nor mmap's back from the file at a different
20466    address.  (There have been systems where private was not correctly
20467    implemented like the infamous i386 svr4.0, and systems where the
20468    VM page cache was not coherent with the file system buffer cache
20469    like early versions of FreeBSD and possibly contemporary NetBSD.)
20470    For shared mappings, we should conversely verify that changes get
20471    propagated back to all the places they're supposed to be.
20472
20473    Grep wants private fixed already mapped.
20474    The main things grep needs to know about mmap are:
20475    * does it exist and is it safe to write into the mmap'd area
20476    * how to use it (BSD variants)  */
20477
20478 #include <fcntl.h>
20479 #include <sys/mman.h>
20480
20481 #if !STDC_HEADERS && !HAVE_STDLIB_H
20482 char *malloc ();
20483 #endif
20484
20485 /* This mess was copied from the GNU getpagesize.h.  */
20486 #if !HAVE_GETPAGESIZE
20487 /* Assume that all systems that can run configure have sys/param.h.  */
20488 # if !HAVE_SYS_PARAM_H
20489 #  define HAVE_SYS_PARAM_H 1
20490 # endif
20491
20492 # ifdef _SC_PAGESIZE
20493 #  define getpagesize() sysconf(_SC_PAGESIZE)
20494 # else /* no _SC_PAGESIZE */
20495 #  if HAVE_SYS_PARAM_H
20496 #   include <sys/param.h>
20497 #   ifdef EXEC_PAGESIZE
20498 #    define getpagesize() EXEC_PAGESIZE
20499 #   else /* no EXEC_PAGESIZE */
20500 #    ifdef NBPG
20501 #     define getpagesize() NBPG * CLSIZE
20502 #     ifndef CLSIZE
20503 #      define CLSIZE 1
20504 #     endif /* no CLSIZE */
20505 #    else /* no NBPG */
20506 #     ifdef NBPC
20507 #      define getpagesize() NBPC
20508 #     else /* no NBPC */
20509 #      ifdef PAGESIZE
20510 #       define getpagesize() PAGESIZE
20511 #      endif /* PAGESIZE */
20512 #     endif /* no NBPC */
20513 #    endif /* no NBPG */
20514 #   endif /* no EXEC_PAGESIZE */
20515 #  else /* no HAVE_SYS_PARAM_H */
20516 #   define getpagesize() 8192   /* punt totally */
20517 #  endif /* no HAVE_SYS_PARAM_H */
20518 # endif /* no _SC_PAGESIZE */
20519
20520 #endif /* no HAVE_GETPAGESIZE */
20521
20522 int
20523 main ()
20524 {
20525   char *data, *data2, *data3;
20526   int i, pagesize;
20527   int fd;
20528
20529   pagesize = getpagesize ();
20530
20531   /* First, make a file with some known garbage in it. */
20532   data = (char *) malloc (pagesize);
20533   if (!data)
20534     return 1;
20535   for (i = 0; i < pagesize; ++i)
20536     *(data + i) = rand ();
20537   umask (0);
20538   fd = creat ("conftest.mmap", 0600);
20539   if (fd < 0)
20540     return 1;
20541   if (write (fd, data, pagesize) != pagesize)
20542     return 1;
20543   close (fd);
20544
20545   /* Next, try to mmap the file at a fixed address which already has
20546      something else allocated at it.  If we can, also make sure that
20547      we see the same garbage.  */
20548   fd = open ("conftest.mmap", O_RDWR);
20549   if (fd < 0)
20550     return 1;
20551   data2 = (char *) malloc (2 * pagesize);
20552   if (!data2)
20553     return 1;
20554   data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
20555   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
20556                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
20557     return 1;
20558   for (i = 0; i < pagesize; ++i)
20559     if (*(data + i) != *(data2 + i))
20560       return 1;
20561
20562   /* Finally, make sure that changes to the mapped area do not
20563      percolate back to the file as seen by read().  (This is a bug on
20564      some variants of i386 svr4.0.)  */
20565   for (i = 0; i < pagesize; ++i)
20566     *(data2 + i) = *(data2 + i) + 1;
20567   data3 = (char *) malloc (pagesize);
20568   if (!data3)
20569     return 1;
20570   if (read (fd, data3, pagesize) != pagesize)
20571     return 1;
20572   for (i = 0; i < pagesize; ++i)
20573     if (*(data + i) != *(data3 + i))
20574       return 1;
20575   close (fd);
20576   return 0;
20577 }
20578 _ACEOF
20579 rm -f conftest$ac_exeext
20580 if { (ac_try="$ac_link"
20581 case "(($ac_try" in
20582   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20583   *) ac_try_echo=$ac_try;;
20584 esac
20585 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20586   (eval "$ac_link") 2>&5
20587   ac_status=$?
20588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20589   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20590   { (case "(($ac_try" in
20591   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20592   *) ac_try_echo=$ac_try;;
20593 esac
20594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20595   (eval "$ac_try") 2>&5
20596   ac_status=$?
20597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20598   (exit $ac_status); }; }; then
20599   ac_cv_func_mmap_fixed_mapped=yes
20600 else
20601   echo "$as_me: program exited with status $ac_status" >&5
20602 echo "$as_me: failed program was:" >&5
20603 sed 's/^/| /' conftest.$ac_ext >&5
20604
20605 ( exit $ac_status )
20606 ac_cv_func_mmap_fixed_mapped=no
20607 fi
20608 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20609 fi
20610
20611
20612 fi
20613 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
20614 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
20615 if test $ac_cv_func_mmap_fixed_mapped = yes; then
20616
20617 cat >>confdefs.h <<\_ACEOF
20618 #define HAVE_MMAP 1
20619 _ACEOF
20620
20621 fi
20622 rm -f conftest.mmap
20623
20624   { echo "$as_me:$LINENO: checking for mmap of files" >&5
20625 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
20626 if test "${ac_cv_func_mmap_file+set}" = set; then
20627   echo $ECHO_N "(cached) $ECHO_C" >&6
20628 else
20629    ac_ext=c
20630 ac_cpp='$CPP $CPPFLAGS'
20631 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20632 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20633 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20634
20635   if test "$cross_compiling" = yes; then
20636   ac_cv_func_mmap_file=no
20637 else
20638   cat >conftest.$ac_ext <<_ACEOF
20639
20640     /* confdefs.h.  */
20641 _ACEOF
20642 cat confdefs.h >>conftest.$ac_ext
20643 cat >>conftest.$ac_ext <<_ACEOF
20644 /* end confdefs.h.  */
20645
20646 #include <sys/types.h>
20647 #include <sys/mman.h>
20648 #include <fcntl.h>
20649
20650 int
20651 main ()
20652 {
20653
20654   int fd;
20655   fd = creat ("foo",0777);
20656   fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
20657   unlink ("foo");
20658   return (fd != (int) MAP_FAILED);
20659   ;
20660   return 0;
20661 }
20662 _ACEOF
20663 rm -f conftest$ac_exeext
20664 if { (ac_try="$ac_link"
20665 case "(($ac_try" in
20666   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20667   *) ac_try_echo=$ac_try;;
20668 esac
20669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20670   (eval "$ac_link") 2>&5
20671   ac_status=$?
20672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20673   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20674   { (case "(($ac_try" in
20675   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20676   *) ac_try_echo=$ac_try;;
20677 esac
20678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20679   (eval "$ac_try") 2>&5
20680   ac_status=$?
20681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20682   (exit $ac_status); }; }; then
20683   ac_cv_func_mmap_file=yes
20684 else
20685   echo "$as_me: program exited with status $ac_status" >&5
20686 echo "$as_me: failed program was:" >&5
20687 sed 's/^/| /' conftest.$ac_ext >&5
20688
20689 ( exit $ac_status )
20690 ac_cv_func_mmap_file=no
20691 fi
20692 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20693 fi
20694
20695
20696   ac_ext=c
20697 ac_cpp='$CPP $CPPFLAGS'
20698 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20699 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20700 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20701
20702
20703 fi
20704 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
20705 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
20706 if test "$ac_cv_func_mmap_file" = yes; then
20707
20708 cat >>confdefs.h <<\_ACEOF
20709 #define HAVE_MMAP_FILE
20710 _ACEOF
20711
20712    MMAP_FILE=yes
20713
20714 fi
20715
20716   { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
20717 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
20718 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
20719   echo $ECHO_N "(cached) $ECHO_C" >&6
20720 else
20721   if test "$llvm_cv_os_type" = "Interix" ; then
20722    ac_cv_need_dev_zero_for_mmap=yes
20723  else
20724    ac_cv_need_dev_zero_for_mmap=no
20725  fi
20726
20727 fi
20728 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
20729 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
20730 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
20731
20732 cat >>confdefs.h <<\_ACEOF
20733 #define NEED_DEV_ZERO_FOR_MMAP 1
20734 _ACEOF
20735
20736 fi
20737
20738   if test "$ac_cv_func_mmap_fixed_mapped" = "no"
20739   then
20740     { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
20741 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
20742   fi
20743   if test "$ac_cv_func_mmap_file" = "no"
20744   then
20745     { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
20746 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
20747   fi
20748 fi
20749
20750 { echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
20751 echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
20752 ac_ext=cpp
20753 ac_cpp='$CXXCPP $CPPFLAGS'
20754 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20755 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20756 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20757
20758 cat >conftest.$ac_ext <<_ACEOF
20759 /* confdefs.h.  */
20760 _ACEOF
20761 cat confdefs.h >>conftest.$ac_ext
20762 cat >>conftest.$ac_ext <<_ACEOF
20763 /* end confdefs.h.  */
20764 int main() {
20765         volatile unsigned long val = 1;
20766         __sync_synchronize();
20767         __sync_val_compare_and_swap(&val, 1, 0);
20768         __sync_add_and_fetch(&val, 1);
20769         __sync_sub_and_fetch(&val, 1);
20770         return 0;
20771       }
20772
20773 _ACEOF
20774 rm -f conftest.$ac_objext conftest$ac_exeext
20775 if { (ac_try="$ac_link"
20776 case "(($ac_try" in
20777   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20778   *) ac_try_echo=$ac_try;;
20779 esac
20780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20781   (eval "$ac_link") 2>conftest.er1
20782   ac_status=$?
20783   grep -v '^ *+' conftest.er1 >conftest.err
20784   rm -f conftest.er1
20785   cat conftest.err >&5
20786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20787   (exit $ac_status); } &&
20788          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20789   { (case "(($ac_try" in
20790   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20791   *) ac_try_echo=$ac_try;;
20792 esac
20793 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20794   (eval "$ac_try") 2>&5
20795   ac_status=$?
20796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20797   (exit $ac_status); }; } &&
20798          { ac_try='test -s conftest$ac_exeext'
20799   { (case "(($ac_try" in
20800   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20801   *) ac_try_echo=$ac_try;;
20802 esac
20803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20804   (eval "$ac_try") 2>&5
20805   ac_status=$?
20806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20807   (exit $ac_status); }; }; then
20808   ac_ext=c
20809 ac_cpp='$CPP $CPPFLAGS'
20810 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20811 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20812 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20813
20814   { echo "$as_me:$LINENO: result: yes" >&5
20815 echo "${ECHO_T}yes" >&6; }
20816
20817 cat >>confdefs.h <<\_ACEOF
20818 #define LLVM_HAS_ATOMICS 1
20819 _ACEOF
20820
20821 else
20822   echo "$as_me: failed program was:" >&5
20823 sed 's/^/| /' conftest.$ac_ext >&5
20824
20825         { echo "$as_me:$LINENO: result: no" >&5
20826 echo "${ECHO_T}no" >&6; }
20827
20828 cat >>confdefs.h <<\_ACEOF
20829 #define LLVM_HAS_ATOMICS 0
20830 _ACEOF
20831
20832   { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
20833 echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
20834 fi
20835
20836 rm -f core conftest.err conftest.$ac_objext \
20837       conftest$ac_exeext conftest.$ac_ext
20838
20839
20840 if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
20841   { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
20842 echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
20843 if test "${llvm_cv_linux_mixed+set}" = set; then
20844   echo $ECHO_N "(cached) $ECHO_C" >&6
20845 else
20846    ac_ext=c
20847 ac_cpp='$CPP $CPPFLAGS'
20848 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20849 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20850 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20851
20852   cat >conftest.$ac_ext <<_ACEOF
20853 /* confdefs.h.  */
20854 _ACEOF
20855 cat confdefs.h >>conftest.$ac_ext
20856 cat >>conftest.$ac_ext <<_ACEOF
20857 /* end confdefs.h.  */
20858 #ifndef __x86_64__
20859        error: Not x86-64 even if uname says so!
20860       #endif
20861
20862 int
20863 main ()
20864 {
20865
20866   ;
20867   return 0;
20868 }
20869 _ACEOF
20870 rm -f conftest.$ac_objext
20871 if { (ac_try="$ac_compile"
20872 case "(($ac_try" in
20873   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20874   *) ac_try_echo=$ac_try;;
20875 esac
20876 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20877   (eval "$ac_compile") 2>conftest.er1
20878   ac_status=$?
20879   grep -v '^ *+' conftest.er1 >conftest.err
20880   rm -f conftest.er1
20881   cat conftest.err >&5
20882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20883   (exit $ac_status); } &&
20884          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20885   { (case "(($ac_try" in
20886   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20887   *) ac_try_echo=$ac_try;;
20888 esac
20889 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20890   (eval "$ac_try") 2>&5
20891   ac_status=$?
20892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20893   (exit $ac_status); }; } &&
20894          { ac_try='test -s conftest.$ac_objext'
20895   { (case "(($ac_try" in
20896   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20897   *) ac_try_echo=$ac_try;;
20898 esac
20899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20900   (eval "$ac_try") 2>&5
20901   ac_status=$?
20902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20903   (exit $ac_status); }; }; then
20904   llvm_cv_linux_mixed=no
20905 else
20906   echo "$as_me: failed program was:" >&5
20907 sed 's/^/| /' conftest.$ac_ext >&5
20908
20909         llvm_cv_linux_mixed=yes
20910 fi
20911
20912 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20913   ac_ext=c
20914 ac_cpp='$CPP $CPPFLAGS'
20915 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20916 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20917 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20918
20919
20920 fi
20921 { echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
20922 echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
20923
20924   if test "$llvm_cv_linux_mixed" = "yes"; then
20925     llvm_cv_target_arch="x86"
20926     ARCH="x86"
20927   fi
20928 fi
20929
20930
20931 for ac_func in __dso_handle
20932 do
20933 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20934 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20935 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20936 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20937   echo $ECHO_N "(cached) $ECHO_C" >&6
20938 else
20939   cat >conftest.$ac_ext <<_ACEOF
20940 /* confdefs.h.  */
20941 _ACEOF
20942 cat confdefs.h >>conftest.$ac_ext
20943 cat >>conftest.$ac_ext <<_ACEOF
20944 /* end confdefs.h.  */
20945 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20946    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20947 #define $ac_func innocuous_$ac_func
20948
20949 /* System header to define __stub macros and hopefully few prototypes,
20950     which can conflict with char $ac_func (); below.
20951     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20952     <limits.h> exists even on freestanding compilers.  */
20953
20954 #ifdef __STDC__
20955 # include <limits.h>
20956 #else
20957 # include <assert.h>
20958 #endif
20959
20960 #undef $ac_func
20961
20962 /* Override any GCC internal prototype to avoid an error.
20963    Use char because int might match the return type of a GCC
20964    builtin and then its argument prototype would still apply.  */
20965 #ifdef __cplusplus
20966 extern "C"
20967 #endif
20968 char $ac_func ();
20969 /* The GNU C library defines this for functions which it implements
20970     to always fail with ENOSYS.  Some functions are actually named
20971     something starting with __ and the normal name is an alias.  */
20972 #if defined __stub_$ac_func || defined __stub___$ac_func
20973 choke me
20974 #endif
20975
20976 int
20977 main ()
20978 {
20979 return $ac_func ();
20980   ;
20981   return 0;
20982 }
20983 _ACEOF
20984 rm -f conftest.$ac_objext conftest$ac_exeext
20985 if { (ac_try="$ac_link"
20986 case "(($ac_try" in
20987   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20988   *) ac_try_echo=$ac_try;;
20989 esac
20990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20991   (eval "$ac_link") 2>conftest.er1
20992   ac_status=$?
20993   grep -v '^ *+' conftest.er1 >conftest.err
20994   rm -f conftest.er1
20995   cat conftest.err >&5
20996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20997   (exit $ac_status); } &&
20998          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20999   { (case "(($ac_try" in
21000   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21001   *) ac_try_echo=$ac_try;;
21002 esac
21003 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21004   (eval "$ac_try") 2>&5
21005   ac_status=$?
21006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21007   (exit $ac_status); }; } &&
21008          { ac_try='test -s conftest$ac_exeext'
21009   { (case "(($ac_try" in
21010   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21011   *) ac_try_echo=$ac_try;;
21012 esac
21013 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21014   (eval "$ac_try") 2>&5
21015   ac_status=$?
21016   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21017   (exit $ac_status); }; }; then
21018   eval "$as_ac_var=yes"
21019 else
21020   echo "$as_me: failed program was:" >&5
21021 sed 's/^/| /' conftest.$ac_ext >&5
21022
21023         eval "$as_ac_var=no"
21024 fi
21025
21026 rm -f core conftest.err conftest.$ac_objext \
21027       conftest$ac_exeext conftest.$ac_ext
21028 fi
21029 ac_res=`eval echo '${'$as_ac_var'}'`
21030                { echo "$as_me:$LINENO: result: $ac_res" >&5
21031 echo "${ECHO_T}$ac_res" >&6; }
21032 if test `eval echo '${'$as_ac_var'}'` = yes; then
21033   cat >>confdefs.h <<_ACEOF
21034 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21035 _ACEOF
21036
21037 fi
21038 done
21039
21040
21041 SHLIBEXT=$libltdl_cv_shlibext
21042
21043
21044 SHLIBPATH_VAR=$libltdl_cv_shlibpath_var
21045
21046
21047 if test "${prefix}" = "NONE" ; then
21048   prefix="/usr/local"
21049 fi
21050 eval LLVM_PREFIX="${prefix}";
21051 eval LLVM_BINDIR="${prefix}/bin";
21052 eval LLVM_LIBDIR="${prefix}/lib";
21053 eval LLVM_DATADIR="${prefix}/share/llvm";
21054 eval LLVM_DOCSDIR="${prefix}/share/doc/llvm";
21055 eval LLVM_ETCDIR="${prefix}/etc/llvm";
21056 eval LLVM_INCLUDEDIR="${prefix}/include";
21057 eval LLVM_INFODIR="${prefix}/info";
21058 eval LLVM_MANDIR="${prefix}/man";
21059 LLVM_CONFIGTIME=`date`
21060
21061
21062
21063
21064
21065
21066
21067
21068
21069
21070
21071 if test "${ENABLE_TIMESTAMPS}" = "0"; then
21072   LLVM_CONFIGTIME="(timestamp not enabled)"
21073 fi
21074
21075
21076 cat >>confdefs.h <<_ACEOF
21077 #define LLVM_PREFIX "$LLVM_PREFIX"
21078 _ACEOF
21079
21080
21081 cat >>confdefs.h <<_ACEOF
21082 #define LLVM_BINDIR "$LLVM_BINDIR"
21083 _ACEOF
21084
21085
21086 cat >>confdefs.h <<_ACEOF
21087 #define LLVM_LIBDIR "$LLVM_LIBDIR"
21088 _ACEOF
21089
21090
21091 cat >>confdefs.h <<_ACEOF
21092 #define LLVM_DATADIR "$LLVM_DATADIR"
21093 _ACEOF
21094
21095
21096 cat >>confdefs.h <<_ACEOF
21097 #define LLVM_DOCSDIR "$LLVM_DOCSDIR"
21098 _ACEOF
21099
21100
21101 cat >>confdefs.h <<_ACEOF
21102 #define LLVM_ETCDIR "$LLVM_ETCDIR"
21103 _ACEOF
21104
21105
21106 cat >>confdefs.h <<_ACEOF
21107 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
21108 _ACEOF
21109
21110
21111 cat >>confdefs.h <<_ACEOF
21112 #define LLVM_INFODIR "$LLVM_INFODIR"
21113 _ACEOF
21114
21115
21116 cat >>confdefs.h <<_ACEOF
21117 #define LLVM_MANDIR "$LLVM_MANDIR"
21118 _ACEOF
21119
21120
21121 cat >>confdefs.h <<_ACEOF
21122 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
21123 _ACEOF
21124
21125
21126 cat >>confdefs.h <<_ACEOF
21127 #define LLVM_DEFAULT_TARGET_TRIPLE "$target"
21128 _ACEOF
21129
21130
21131 if test "$BINDINGS_TO_BUILD" = auto ; then
21132   BINDINGS_TO_BUILD=""
21133   if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
21134     BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
21135   fi
21136 fi
21137 BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
21138
21139
21140 ALL_BINDINGS=ocaml
21141
21142
21143 binding_prereqs_failed=0
21144 for a_binding in $BINDINGS_TO_BUILD ; do
21145   case "$a_binding" in
21146   ocaml)
21147     if test "x$OCAMLC" = x ; then
21148       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
21149 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
21150       binding_prereqs_failed=1
21151     fi
21152     if test "x$OCAMLDEP" = x ; then
21153       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
21154 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
21155       binding_prereqs_failed=1
21156     fi
21157     if test "x$OCAMLOPT" = x ; then
21158       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
21159 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
21160           fi
21161     if test "x$with_ocaml_libdir" != xauto ; then
21162       OCAML_LIBDIR=$with_ocaml_libdir
21163
21164     else
21165       ocaml_stdlib="`"$OCAMLC" -where`"
21166       if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
21167       then
21168         # ocaml stdlib is beneath our prefix; use stdlib
21169         OCAML_LIBDIR=$ocaml_stdlib
21170
21171       else
21172         # ocaml stdlib is outside our prefix; use libdir/ocaml
21173         OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
21174
21175       fi
21176     fi
21177     ;;
21178   esac
21179 done
21180 if test "$binding_prereqs_failed" = 1 ; then
21181   { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
21182 echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
21183    { (exit 1); exit 1; }; }
21184 fi
21185
21186 { echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
21187 echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
21188 if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
21189   echo $ECHO_N "(cached) $ECHO_C" >&6
21190 else
21191    ac_ext=cpp
21192 ac_cpp='$CXXCPP $CPPFLAGS'
21193 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21194 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21195 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21196
21197   oldcxxflags="$CXXFLAGS"
21198   CXXFLAGS="$CXXFLAGS -O0 -fvisibility-inlines-hidden -Werror"
21199   cat >conftest.$ac_ext <<_ACEOF
21200 /* confdefs.h.  */
21201 _ACEOF
21202 cat confdefs.h >>conftest.$ac_ext
21203 cat >>conftest.$ac_ext <<_ACEOF
21204 /* end confdefs.h.  */
21205 template <typename T> struct X { void __attribute__((noinline)) f() {} };
21206 int
21207 main ()
21208 {
21209 X<int>().f();
21210   ;
21211   return 0;
21212 }
21213 _ACEOF
21214 rm -f conftest.$ac_objext
21215 if { (ac_try="$ac_compile"
21216 case "(($ac_try" in
21217   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21218   *) ac_try_echo=$ac_try;;
21219 esac
21220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21221   (eval "$ac_compile") 2>conftest.er1
21222   ac_status=$?
21223   grep -v '^ *+' conftest.er1 >conftest.err
21224   rm -f conftest.er1
21225   cat conftest.err >&5
21226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21227   (exit $ac_status); } &&
21228          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21229   { (case "(($ac_try" in
21230   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21231   *) ac_try_echo=$ac_try;;
21232 esac
21233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21234   (eval "$ac_try") 2>&5
21235   ac_status=$?
21236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21237   (exit $ac_status); }; } &&
21238          { ac_try='test -s conftest.$ac_objext'
21239   { (case "(($ac_try" in
21240   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21241   *) ac_try_echo=$ac_try;;
21242 esac
21243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21244   (eval "$ac_try") 2>&5
21245   ac_status=$?
21246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21247   (exit $ac_status); }; }; then
21248   llvm_cv_cxx_visibility_inlines_hidden=yes
21249 else
21250   echo "$as_me: failed program was:" >&5
21251 sed 's/^/| /' conftest.$ac_ext >&5
21252
21253         llvm_cv_cxx_visibility_inlines_hidden=no
21254 fi
21255
21256 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21257   CXXFLAGS="$oldcxxflags"
21258   ac_ext=c
21259 ac_cpp='$CPP $CPPFLAGS'
21260 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21261 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21262 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21263
21264
21265 fi
21266 { echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
21267 echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
21268 if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
21269   ENABLE_VISIBILITY_INLINES_HIDDEN=1
21270
21271 else
21272   ENABLE_VISIBILITY_INLINES_HIDDEN=0
21273
21274 fi
21275
21276
21277 if test "$llvm_cv_link_use_r" = "yes" ; then
21278   RPATH="-Wl,-R"
21279 else
21280   RPATH="-Wl,-rpath"
21281 fi
21282
21283
21284 if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
21285   RDYNAMIC="-Wl,-export-dynamic"
21286 else
21287   RDYNAMIC=""
21288 fi
21289
21290
21291
21292 ac_config_headers="$ac_config_headers include/llvm/Config/config.h include/llvm/Config/llvm-config.h"
21293
21294
21295
21296
21297
21298
21299 ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
21300
21301 ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
21302
21303 ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
21304
21305 ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def"
21306
21307 ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
21308
21309
21310 ac_config_files="$ac_config_files Makefile.config"
21311
21312
21313 ac_config_files="$ac_config_files llvm.spec"
21314
21315
21316 ac_config_files="$ac_config_files docs/doxygen.cfg"
21317
21318
21319 if test "${clang_src_root}" = ""; then
21320   clang_src_root="$srcdir/tools/clang"
21321 fi
21322 if test -f ${clang_src_root}/README.txt; then
21323     configh="include/clang/Config/config.h"
21324   doxy="docs/doxygen.cfg"
21325   ac_config_headers="$ac_config_headers tools/clang/${configh}:${clang_src_root}/${configh}.in"
21326
21327   ac_config_files="$ac_config_files tools/clang/${doxy}:${clang_src_root}/${doxy}.in"
21328
21329 fi
21330
21331 ac_config_files="$ac_config_files bindings/ocaml/llvm/META.llvm"
21332
21333
21334 ac_config_commands="$ac_config_commands setup"
21335
21336 ac_config_commands="$ac_config_commands Makefile"
21337
21338
21339 ac_config_commands="$ac_config_commands Makefile.common"
21340
21341
21342 ac_config_commands="$ac_config_commands examples/Makefile"
21343
21344
21345 ac_config_commands="$ac_config_commands lib/Makefile"
21346
21347
21348 ac_config_commands="$ac_config_commands runtime/Makefile"
21349
21350
21351 ac_config_commands="$ac_config_commands test/Makefile"
21352
21353
21354 ac_config_commands="$ac_config_commands test/Makefile.tests"
21355
21356
21357 ac_config_commands="$ac_config_commands unittests/Makefile"
21358
21359
21360 ac_config_commands="$ac_config_commands tools/Makefile"
21361
21362
21363 ac_config_commands="$ac_config_commands utils/Makefile"
21364
21365
21366 ac_config_commands="$ac_config_commands projects/Makefile"
21367
21368
21369 ac_config_commands="$ac_config_commands bindings/Makefile"
21370
21371
21372 ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
21373
21374
21375
21376 cat >confcache <<\_ACEOF
21377 # This file is a shell script that caches the results of configure
21378 # tests run on this system so they can be shared between configure
21379 # scripts and configure runs, see configure's option --config-cache.
21380 # It is not useful on other systems.  If it contains results you don't
21381 # want to keep, you may remove or edit it.
21382 #
21383 # config.status only pays attention to the cache file if you give it
21384 # the --recheck option to rerun configure.
21385 #
21386 # `ac_cv_env_foo' variables (set or unset) will be overridden when
21387 # loading this file, other *unset* `ac_cv_foo' will be assigned the
21388 # following values.
21389
21390 _ACEOF
21391
21392 # The following way of writing the cache mishandles newlines in values,
21393 # but we know of no workaround that is simple, portable, and efficient.
21394 # So, we kill variables containing newlines.
21395 # Ultrix sh set writes to stderr and can't be redirected directly,
21396 # and sets the high bit in the cache file unless we assign to the vars.
21397 (
21398   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
21399     eval ac_val=\$$ac_var
21400     case $ac_val in #(
21401     *${as_nl}*)
21402       case $ac_var in #(
21403       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
21404 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
21405       esac
21406       case $ac_var in #(
21407       _ | IFS | as_nl) ;; #(
21408       *) $as_unset $ac_var ;;
21409       esac ;;
21410     esac
21411   done
21412
21413   (set) 2>&1 |
21414     case $as_nl`(ac_space=' '; set) 2>&1` in #(
21415     *${as_nl}ac_space=\ *)
21416       # `set' does not quote correctly, so add quotes (double-quote
21417       # substitution turns \\\\ into \\, and sed turns \\ into \).
21418       sed -n \
21419         "s/'/'\\\\''/g;
21420           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21421       ;; #(
21422     *)
21423       # `set' quotes correctly as required by POSIX, so do not add quotes.
21424       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
21425       ;;
21426     esac |
21427     sort
21428 ) |
21429   sed '
21430      /^ac_cv_env_/b end
21431      t clear
21432      :clear
21433      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21434      t end
21435      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21436      :end' >>confcache
21437 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
21438   if test -w "$cache_file"; then
21439     test "x$cache_file" != "x/dev/null" &&
21440       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
21441 echo "$as_me: updating cache $cache_file" >&6;}
21442     cat confcache >$cache_file
21443   else
21444     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
21445 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
21446   fi
21447 fi
21448 rm -f confcache
21449
21450 test "x$prefix" = xNONE && prefix=$ac_default_prefix
21451 # Let make expand exec_prefix.
21452 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21453
21454 DEFS=-DHAVE_CONFIG_H
21455
21456 ac_libobjs=
21457 ac_ltlibobjs=
21458 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21459   # 1. Remove the extension, and $U if already installed.
21460   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
21461   ac_i=`echo "$ac_i" | sed "$ac_script"`
21462   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
21463   #    will be set to the directory where LIBOBJS objects are built.
21464   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21465   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
21466 done
21467 LIBOBJS=$ac_libobjs
21468
21469 LTLIBOBJS=$ac_ltlibobjs
21470
21471
21472 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
21473   { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
21474 Usually this means the macro was only invoked conditionally." >&5
21475 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
21476 Usually this means the macro was only invoked conditionally." >&2;}
21477    { (exit 1); exit 1; }; }
21478 fi
21479 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
21480   { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21481 Usually this means the macro was only invoked conditionally." >&5
21482 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21483 Usually this means the macro was only invoked conditionally." >&2;}
21484    { (exit 1); exit 1; }; }
21485 fi
21486
21487 : ${CONFIG_STATUS=./config.status}
21488 ac_clean_files_save=$ac_clean_files
21489 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21490 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21491 echo "$as_me: creating $CONFIG_STATUS" >&6;}
21492 cat >$CONFIG_STATUS <<_ACEOF
21493 #! $SHELL
21494 # Generated by $as_me.
21495 # Run this file to recreate the current configuration.
21496 # Compiler output produced by configure, useful for debugging
21497 # configure, is in config.log if it exists.
21498
21499 debug=false
21500 ac_cs_recheck=false
21501 ac_cs_silent=false
21502 SHELL=\${CONFIG_SHELL-$SHELL}
21503 _ACEOF
21504
21505 cat >>$CONFIG_STATUS <<\_ACEOF
21506 ## --------------------- ##
21507 ## M4sh Initialization.  ##
21508 ## --------------------- ##
21509
21510 # Be Bourne compatible
21511 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21512   emulate sh
21513   NULLCMD=:
21514   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21515   # is contrary to our usage.  Disable this feature.
21516   alias -g '${1+"$@"}'='"$@"'
21517   setopt NO_GLOB_SUBST
21518 else
21519   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
21520 fi
21521 BIN_SH=xpg4; export BIN_SH # for Tru64
21522 DUALCASE=1; export DUALCASE # for MKS sh
21523
21524
21525 # PATH needs CR
21526 # Avoid depending upon Character Ranges.
21527 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21528 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21529 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21530 as_cr_digits='0123456789'
21531 as_cr_alnum=$as_cr_Letters$as_cr_digits
21532
21533 # The user is always right.
21534 if test "${PATH_SEPARATOR+set}" != set; then
21535   echo "#! /bin/sh" >conf$$.sh
21536   echo  "exit 0"   >>conf$$.sh
21537   chmod +x conf$$.sh
21538   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21539     PATH_SEPARATOR=';'
21540   else
21541     PATH_SEPARATOR=:
21542   fi
21543   rm -f conf$$.sh
21544 fi
21545
21546 # Support unset when possible.
21547 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21548   as_unset=unset
21549 else
21550   as_unset=false
21551 fi
21552
21553
21554 # IFS
21555 # We need space, tab and new line, in precisely that order.  Quoting is
21556 # there to prevent editors from complaining about space-tab.
21557 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
21558 # splitting by setting IFS to empty value.)
21559 as_nl='
21560 '
21561 IFS=" ""        $as_nl"
21562
21563 # Find who we are.  Look in the path if we contain no directory separator.
21564 case $0 in
21565   *[\\/]* ) as_myself=$0 ;;
21566   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21567 for as_dir in $PATH
21568 do
21569   IFS=$as_save_IFS
21570   test -z "$as_dir" && as_dir=.
21571   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21572 done
21573 IFS=$as_save_IFS
21574
21575      ;;
21576 esac
21577 # We did not find ourselves, most probably we were run as `sh COMMAND'
21578 # in which case we are not to be found in the path.
21579 if test "x$as_myself" = x; then
21580   as_myself=$0
21581 fi
21582 if test ! -f "$as_myself"; then
21583   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21584   { (exit 1); exit 1; }
21585 fi
21586
21587 # Work around bugs in pre-3.0 UWIN ksh.
21588 for as_var in ENV MAIL MAILPATH
21589 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21590 done
21591 PS1='$ '
21592 PS2='> '
21593 PS4='+ '
21594
21595 # NLS nuisances.
21596 for as_var in \
21597   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21598   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21599   LC_TELEPHONE LC_TIME
21600 do
21601   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21602     eval $as_var=C; export $as_var
21603   else
21604     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21605   fi
21606 done
21607
21608 # Required to use basename.
21609 if expr a : '\(a\)' >/dev/null 2>&1 &&
21610    test "X`expr 00001 : '.*\(...\)'`" = X001; then
21611   as_expr=expr
21612 else
21613   as_expr=false
21614 fi
21615
21616 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21617   as_basename=basename
21618 else
21619   as_basename=false
21620 fi
21621
21622
21623 # Name of the executable.
21624 as_me=`$as_basename -- "$0" ||
21625 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21626          X"$0" : 'X\(//\)$' \| \
21627          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
21628 echo X/"$0" |
21629     sed '/^.*\/\([^/][^/]*\)\/*$/{
21630             s//\1/
21631             q
21632           }
21633           /^X\/\(\/\/\)$/{
21634             s//\1/
21635             q
21636           }
21637           /^X\/\(\/\).*/{
21638             s//\1/
21639             q
21640           }
21641           s/.*/./; q'`
21642
21643 # CDPATH.
21644 $as_unset CDPATH
21645
21646
21647
21648   as_lineno_1=$LINENO
21649   as_lineno_2=$LINENO
21650   test "x$as_lineno_1" != "x$as_lineno_2" &&
21651   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
21652
21653   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21654   # uniformly replaced by the line number.  The first 'sed' inserts a
21655   # line-number line after each line using $LINENO; the second 'sed'
21656   # does the real work.  The second script uses 'N' to pair each
21657   # line-number line with the line containing $LINENO, and appends
21658   # trailing '-' during substitution so that $LINENO is not a special
21659   # case at line end.
21660   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21661   # scripts with optimization help from Paolo Bonzini.  Blame Lee
21662   # E. McMahon (1931-1989) for sed's syntax.  :-)
21663   sed -n '
21664     p
21665     /[$]LINENO/=
21666   ' <$as_myself |
21667     sed '
21668       s/[$]LINENO.*/&-/
21669       t lineno
21670       b
21671       :lineno
21672       N
21673       :loop
21674       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
21675       t loop
21676       s/-\n.*//
21677     ' >$as_me.lineno &&
21678   chmod +x "$as_me.lineno" ||
21679     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
21680    { (exit 1); exit 1; }; }
21681
21682   # Don't try to exec as it changes $[0], causing all sort of problems
21683   # (the dirname of $[0] is not the place where we might find the
21684   # original and so on.  Autoconf is especially sensitive to this).
21685   . "./$as_me.lineno"
21686   # Exit status is that of the last command.
21687   exit
21688 }
21689
21690
21691 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21692   as_dirname=dirname
21693 else
21694   as_dirname=false
21695 fi
21696
21697 ECHO_C= ECHO_N= ECHO_T=
21698 case `echo -n x` in
21699 -n*)
21700   case `echo 'x\c'` in
21701   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
21702   *)   ECHO_C='\c';;
21703   esac;;
21704 *)
21705   ECHO_N='-n';;
21706 esac
21707
21708 if expr a : '\(a\)' >/dev/null 2>&1 &&
21709    test "X`expr 00001 : '.*\(...\)'`" = X001; then
21710   as_expr=expr
21711 else
21712   as_expr=false
21713 fi
21714
21715 rm -f conf$$ conf$$.exe conf$$.file
21716 if test -d conf$$.dir; then
21717   rm -f conf$$.dir/conf$$.file
21718 else
21719   rm -f conf$$.dir
21720   mkdir conf$$.dir
21721 fi
21722 echo >conf$$.file
21723 if ln -s conf$$.file conf$$ 2>/dev/null; then
21724   as_ln_s='ln -s'
21725   # ... but there are two gotchas:
21726   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21727   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21728   # In both cases, we have to default to `cp -p'.
21729   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
21730     as_ln_s='cp -p'
21731 elif ln conf$$.file conf$$ 2>/dev/null; then
21732   as_ln_s=ln
21733 else
21734   as_ln_s='cp -p'
21735 fi
21736 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21737 rmdir conf$$.dir 2>/dev/null
21738
21739 if mkdir -p . 2>/dev/null; then
21740   as_mkdir_p=:
21741 else
21742   test -d ./-p && rmdir ./-p
21743   as_mkdir_p=false
21744 fi
21745
21746 # Find out whether ``test -x'' works.  Don't use a zero-byte file, as
21747 # systems may use methods other than mode bits to determine executability.
21748 cat >conf$$.file <<_ASEOF
21749 #! /bin/sh
21750 exit 0
21751 _ASEOF
21752 chmod +x conf$$.file
21753 if test -x conf$$.file >/dev/null 2>&1; then
21754   as_executable_p="test -x"
21755 else
21756   as_executable_p=:
21757 fi
21758 rm -f conf$$.file
21759
21760 # Sed expression to map a string onto a valid CPP name.
21761 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21762
21763 # Sed expression to map a string onto a valid variable name.
21764 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21765
21766
21767 exec 6>&1
21768
21769 # Save the log message, to keep $[0] and so on meaningful, and to
21770 # report actual input values of CONFIG_FILES etc. instead of their
21771 # values after options handling.
21772 ac_log="
21773 This file was extended by LLVM $as_me 3.1svn, which was
21774 generated by GNU Autoconf 2.60.  Invocation command line was
21775
21776   CONFIG_FILES    = $CONFIG_FILES
21777   CONFIG_HEADERS  = $CONFIG_HEADERS
21778   CONFIG_LINKS    = $CONFIG_LINKS
21779   CONFIG_COMMANDS = $CONFIG_COMMANDS
21780   $ $0 $@
21781
21782 on `(hostname || uname -n) 2>/dev/null | sed 1q`
21783 "
21784
21785 _ACEOF
21786
21787 cat >>$CONFIG_STATUS <<_ACEOF
21788 # Files that config.status was made for.
21789 config_files="$ac_config_files"
21790 config_headers="$ac_config_headers"
21791 config_commands="$ac_config_commands"
21792
21793 _ACEOF
21794
21795 cat >>$CONFIG_STATUS <<\_ACEOF
21796 ac_cs_usage="\
21797 \`$as_me' instantiates files from templates according to the
21798 current configuration.
21799
21800 Usage: $0 [OPTIONS] [FILE]...
21801
21802   -h, --help       print this help, then exit
21803   -V, --version    print version number, then exit
21804   -q, --quiet      do not print progress messages
21805   -d, --debug      don't remove temporary files
21806       --recheck    update $as_me by reconfiguring in the same conditions
21807   --file=FILE[:TEMPLATE]
21808                    instantiate the configuration file FILE
21809   --header=FILE[:TEMPLATE]
21810                    instantiate the configuration header FILE
21811
21812 Configuration files:
21813 $config_files
21814
21815 Configuration headers:
21816 $config_headers
21817
21818 Configuration commands:
21819 $config_commands
21820
21821 Report bugs to <bug-autoconf@gnu.org>."
21822
21823 _ACEOF
21824 cat >>$CONFIG_STATUS <<_ACEOF
21825 ac_cs_version="\\
21826 LLVM config.status 3.1svn
21827 configured by $0, generated by GNU Autoconf 2.60,
21828   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
21829
21830 Copyright (C) 2006 Free Software Foundation, Inc.
21831 This config.status script is free software; the Free Software Foundation
21832 gives unlimited permission to copy, distribute and modify it."
21833
21834 ac_pwd='$ac_pwd'
21835 srcdir='$srcdir'
21836 INSTALL='$INSTALL'
21837 _ACEOF
21838
21839 cat >>$CONFIG_STATUS <<\_ACEOF
21840 # If no file are specified by the user, then we need to provide default
21841 # value.  By we need to know if files were specified by the user.
21842 ac_need_defaults=:
21843 while test $# != 0
21844 do
21845   case $1 in
21846   --*=*)
21847     ac_option=`expr "X$1" : 'X\([^=]*\)='`
21848     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
21849     ac_shift=:
21850     ;;
21851   *)
21852     ac_option=$1
21853     ac_optarg=$2
21854     ac_shift=shift
21855     ;;
21856   esac
21857
21858   case $ac_option in
21859   # Handling of the options.
21860   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21861     ac_cs_recheck=: ;;
21862   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
21863     echo "$ac_cs_version"; exit ;;
21864   --debug | --debu | --deb | --de | --d | -d )
21865     debug=: ;;
21866   --file | --fil | --fi | --f )
21867     $ac_shift
21868     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
21869     ac_need_defaults=false;;
21870   --header | --heade | --head | --hea )
21871     $ac_shift
21872     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
21873     ac_need_defaults=false;;
21874   --he | --h)
21875     # Conflict between --help and --header
21876     { echo "$as_me: error: ambiguous option: $1
21877 Try \`$0 --help' for more information." >&2
21878    { (exit 1); exit 1; }; };;
21879   --help | --hel | -h )
21880     echo "$ac_cs_usage"; exit ;;
21881   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21882   | -silent | --silent | --silen | --sile | --sil | --si | --s)
21883     ac_cs_silent=: ;;
21884
21885   # This is an error.
21886   -*) { echo "$as_me: error: unrecognized option: $1
21887 Try \`$0 --help' for more information." >&2
21888    { (exit 1); exit 1; }; } ;;
21889
21890   *) ac_config_targets="$ac_config_targets $1"
21891      ac_need_defaults=false ;;
21892
21893   esac
21894   shift
21895 done
21896
21897 ac_configure_extra_args=
21898
21899 if $ac_cs_silent; then
21900   exec 6>/dev/null
21901   ac_configure_extra_args="$ac_configure_extra_args --silent"
21902 fi
21903
21904 _ACEOF
21905 cat >>$CONFIG_STATUS <<_ACEOF
21906 if \$ac_cs_recheck; then
21907   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21908   CONFIG_SHELL=$SHELL
21909   export CONFIG_SHELL
21910   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21911 fi
21912
21913 _ACEOF
21914 cat >>$CONFIG_STATUS <<\_ACEOF
21915 exec 5>>config.log
21916 {
21917   echo
21918   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21919 ## Running $as_me. ##
21920 _ASBOX
21921   echo "$ac_log"
21922 } >&5
21923
21924 _ACEOF
21925 cat >>$CONFIG_STATUS <<_ACEOF
21926 #
21927 # INIT-COMMANDS
21928 #
21929 llvm_src="${srcdir}"
21930
21931 _ACEOF
21932
21933 cat >>$CONFIG_STATUS <<\_ACEOF
21934
21935 # Handling of arguments.
21936 for ac_config_target in $ac_config_targets
21937 do
21938   case $ac_config_target in
21939     "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
21940     "include/llvm/Config/llvm-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/llvm-config.h" ;;
21941     "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
21942     "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
21943     "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
21944     "include/llvm/Config/Disassemblers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Disassemblers.def" ;;
21945     "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
21946     "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
21947     "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
21948     "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
21949     "tools/clang/${configh}") CONFIG_HEADERS="$CONFIG_HEADERS tools/clang/${configh}:${clang_src_root}/${configh}.in" ;;
21950     "tools/clang/${doxy}") CONFIG_FILES="$CONFIG_FILES tools/clang/${doxy}:${clang_src_root}/${doxy}.in" ;;
21951     "bindings/ocaml/llvm/META.llvm") CONFIG_FILES="$CONFIG_FILES bindings/ocaml/llvm/META.llvm" ;;
21952     "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
21953     "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
21954     "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
21955     "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
21956     "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
21957     "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
21958     "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
21959     "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
21960     "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
21961     "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
21962     "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
21963     "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
21964     "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
21965     "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
21966
21967   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21968 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21969    { (exit 1); exit 1; }; };;
21970   esac
21971 done
21972
21973
21974 # If the user did not use the arguments to specify the items to instantiate,
21975 # then the envvar interface is used.  Set only those that are not.
21976 # We use the long form for the default assignment because of an extremely
21977 # bizarre bug on SunOS 4.1.3.
21978 if $ac_need_defaults; then
21979   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21980   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
21981   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21982 fi
21983
21984 # Have a temporary directory for convenience.  Make it in the build tree
21985 # simply because there is no reason against having it here, and in addition,
21986 # creating and moving files from /tmp can sometimes cause problems.
21987 # Hook for its removal unless debugging.
21988 # Note that there is a small window in which the directory will not be cleaned:
21989 # after its creation but before its name has been assigned to `$tmp'.
21990 $debug ||
21991 {
21992   tmp=
21993   trap 'exit_status=$?
21994   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
21995 ' 0
21996   trap '{ (exit 1); exit 1; }' 1 2 13 15
21997 }
21998 # Create a (secure) tmp directory for tmp files.
21999
22000 {
22001   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
22002   test -n "$tmp" && test -d "$tmp"
22003 }  ||
22004 {
22005   tmp=./conf$$-$RANDOM
22006   (umask 077 && mkdir "$tmp")
22007 } ||
22008 {
22009    echo "$me: cannot create a temporary directory in ." >&2
22010    { (exit 1); exit 1; }
22011 }
22012
22013 #
22014 # Set up the sed scripts for CONFIG_FILES section.
22015 #
22016
22017 # No need to generate the scripts if there are no CONFIG_FILES.
22018 # This happens for instance when ./config.status config.h
22019 if test -n "$CONFIG_FILES"; then
22020
22021 _ACEOF
22022
22023
22024
22025 ac_delim='%!_!# '
22026 for ac_last_try in false false false false false :; do
22027   cat >conf$$subs.sed <<_ACEOF
22028 SHELL!$SHELL$ac_delim
22029 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
22030 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
22031 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
22032 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
22033 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
22034 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
22035 exec_prefix!$exec_prefix$ac_delim
22036 prefix!$prefix$ac_delim
22037 program_transform_name!$program_transform_name$ac_delim
22038 bindir!$bindir$ac_delim
22039 sbindir!$sbindir$ac_delim
22040 libexecdir!$libexecdir$ac_delim
22041 datarootdir!$datarootdir$ac_delim
22042 datadir!$datadir$ac_delim
22043 sysconfdir!$sysconfdir$ac_delim
22044 sharedstatedir!$sharedstatedir$ac_delim
22045 localstatedir!$localstatedir$ac_delim
22046 includedir!$includedir$ac_delim
22047 oldincludedir!$oldincludedir$ac_delim
22048 docdir!$docdir$ac_delim
22049 infodir!$infodir$ac_delim
22050 htmldir!$htmldir$ac_delim
22051 dvidir!$dvidir$ac_delim
22052 pdfdir!$pdfdir$ac_delim
22053 psdir!$psdir$ac_delim
22054 libdir!$libdir$ac_delim
22055 localedir!$localedir$ac_delim
22056 mandir!$mandir$ac_delim
22057 DEFS!$DEFS$ac_delim
22058 ECHO_C!$ECHO_C$ac_delim
22059 ECHO_N!$ECHO_N$ac_delim
22060 ECHO_T!$ECHO_T$ac_delim
22061 LIBS!$LIBS$ac_delim
22062 build_alias!$build_alias$ac_delim
22063 host_alias!$host_alias$ac_delim
22064 target_alias!$target_alias$ac_delim
22065 LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
22066 CC!$CC$ac_delim
22067 CFLAGS!$CFLAGS$ac_delim
22068 LDFLAGS!$LDFLAGS$ac_delim
22069 CPPFLAGS!$CPPFLAGS$ac_delim
22070 ac_ct_CC!$ac_ct_CC$ac_delim
22071 EXEEXT!$EXEEXT$ac_delim
22072 OBJEXT!$OBJEXT$ac_delim
22073 CXX!$CXX$ac_delim
22074 CXXFLAGS!$CXXFLAGS$ac_delim
22075 ac_ct_CXX!$ac_ct_CXX$ac_delim
22076 CPP!$CPP$ac_delim
22077 subdirs!$subdirs$ac_delim
22078 ENABLE_POLLY!$ENABLE_POLLY$ac_delim
22079 LLVM_HAS_POLLY!$LLVM_HAS_POLLY$ac_delim
22080 build!$build$ac_delim
22081 build_cpu!$build_cpu$ac_delim
22082 build_vendor!$build_vendor$ac_delim
22083 build_os!$build_os$ac_delim
22084 host!$host$ac_delim
22085 host_cpu!$host_cpu$ac_delim
22086 host_vendor!$host_vendor$ac_delim
22087 host_os!$host_os$ac_delim
22088 target!$target$ac_delim
22089 target_cpu!$target_cpu$ac_delim
22090 target_vendor!$target_vendor$ac_delim
22091 target_os!$target_os$ac_delim
22092 OS!$OS$ac_delim
22093 HOST_OS!$HOST_OS$ac_delim
22094 TARGET_OS!$TARGET_OS$ac_delim
22095 LINKALL!$LINKALL$ac_delim
22096 NOLINKALL!$NOLINKALL$ac_delim
22097 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
22098 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
22099 ARCH!$ARCH$ac_delim
22100 ENDIAN!$ENDIAN$ac_delim
22101 GREP!$GREP$ac_delim
22102 EGREP!$EGREP$ac_delim
22103 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
22104 BUILD_CC!$BUILD_CC$ac_delim
22105 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
22106 BUILD_CXX!$BUILD_CXX$ac_delim
22107 CVSBUILD!$CVSBUILD$ac_delim
22108 ENABLE_LIBCPP!$ENABLE_LIBCPP$ac_delim
22109 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
22110 ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
22111 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
22112 ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
22113 EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
22114 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
22115 DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
22116 JIT!$JIT$ac_delim
22117 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
22118 ENABLE_DOCS!$ENABLE_DOCS$ac_delim
22119 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
22120 LLVM_ENABLE_THREADS!$LLVM_ENABLE_THREADS$ac_delim
22121 ENABLE_PTHREADS!$ENABLE_PTHREADS$ac_delim
22122 ENABLE_PIC!$ENABLE_PIC$ac_delim
22123 ENABLE_SHARED!$ENABLE_SHARED$ac_delim
22124 ENABLE_EMBED_STDCXX!$ENABLE_EMBED_STDCXX$ac_delim
22125 _ACEOF
22126
22127   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
22128     break
22129   elif $ac_last_try; then
22130     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22131 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22132    { (exit 1); exit 1; }; }
22133   else
22134     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22135   fi
22136 done
22137
22138 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
22139 if test -n "$ac_eof"; then
22140   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
22141   ac_eof=`expr $ac_eof + 1`
22142 fi
22143
22144 cat >>$CONFIG_STATUS <<_ACEOF
22145 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
22146 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22147 _ACEOF
22148 sed '
22149 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22150 s/^/s,@/; s/!/@,|#_!!_#|/
22151 :n
22152 t n
22153 s/'"$ac_delim"'$/,g/; t
22154 s/$/\\/; p
22155 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22156 ' >>$CONFIG_STATUS <conf$$subs.sed
22157 rm -f conf$$subs.sed
22158 cat >>$CONFIG_STATUS <<_ACEOF
22159 CEOF$ac_eof
22160 _ACEOF
22161
22162
22163 ac_delim='%!_!# '
22164 for ac_last_try in false false false false false :; do
22165   cat >conf$$subs.sed <<_ACEOF
22166 ENABLE_TIMESTAMPS!$ENABLE_TIMESTAMPS$ac_delim
22167 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
22168 LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
22169 LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
22170 LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
22171 LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
22172 OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
22173 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
22174 EXTRA_LD_OPTIONS!$EXTRA_LD_OPTIONS$ac_delim
22175 CLANG_SRC_ROOT!$CLANG_SRC_ROOT$ac_delim
22176 BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
22177 INTERNAL_PREFIX!$INTERNAL_PREFIX$ac_delim
22178 NM!$NM$ac_delim
22179 ifGNUmake!$ifGNUmake$ac_delim
22180 LN_S!$LN_S$ac_delim
22181 CMP!$CMP$ac_delim
22182 CP!$CP$ac_delim
22183 DATE!$DATE$ac_delim
22184 FIND!$FIND$ac_delim
22185 MKDIR!$MKDIR$ac_delim
22186 MV!$MV$ac_delim
22187 RANLIB!$RANLIB$ac_delim
22188 AR!$AR$ac_delim
22189 RM!$RM$ac_delim
22190 SED!$SED$ac_delim
22191 TAR!$TAR$ac_delim
22192 BINPWD!$BINPWD$ac_delim
22193 GRAPHVIZ!$GRAPHVIZ$ac_delim
22194 DOT!$DOT$ac_delim
22195 FDP!$FDP$ac_delim
22196 NEATO!$NEATO$ac_delim
22197 TWOPI!$TWOPI$ac_delim
22198 CIRCO!$CIRCO$ac_delim
22199 GV!$GV$ac_delim
22200 DOTTY!$DOTTY$ac_delim
22201 XDOT_PY!$XDOT_PY$ac_delim
22202 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
22203 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
22204 INSTALL_DATA!$INSTALL_DATA$ac_delim
22205 BZIP2!$BZIP2$ac_delim
22206 CAT!$CAT$ac_delim
22207 DOXYGEN!$DOXYGEN$ac_delim
22208 GROFF!$GROFF$ac_delim
22209 GZIPBIN!$GZIPBIN$ac_delim
22210 POD2HTML!$POD2HTML$ac_delim
22211 POD2MAN!$POD2MAN$ac_delim
22212 PDFROFF!$PDFROFF$ac_delim
22213 RUNTEST!$RUNTEST$ac_delim
22214 TCLSH!$TCLSH$ac_delim
22215 ZIP!$ZIP$ac_delim
22216 OCAMLC!$OCAMLC$ac_delim
22217 OCAMLOPT!$OCAMLOPT$ac_delim
22218 OCAMLDEP!$OCAMLDEP$ac_delim
22219 OCAMLDOC!$OCAMLDOC$ac_delim
22220 GAS!$GAS$ac_delim
22221 HAVE_LINK_VERSION_SCRIPT!$HAVE_LINK_VERSION_SCRIPT$ac_delim
22222 INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
22223 INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
22224 CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
22225 CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
22226 LIBADD_DL!$LIBADD_DL$ac_delim
22227 NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
22228 NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
22229 COVERED_SWITCH_DEFAULT!$COVERED_SWITCH_DEFAULT$ac_delim
22230 USE_UDIS86!$USE_UDIS86$ac_delim
22231 USE_OPROFILE!$USE_OPROFILE$ac_delim
22232 USE_INTEL_JITEVENTS!$USE_INTEL_JITEVENTS$ac_delim
22233 INTEL_JITEVENTS_INCDIR!$INTEL_JITEVENTS_INCDIR$ac_delim
22234 INTEL_JITEVENTS_LIBDIR!$INTEL_JITEVENTS_LIBDIR$ac_delim
22235 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
22236 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
22237 MMAP_FILE!$MMAP_FILE$ac_delim
22238 SHLIBEXT!$SHLIBEXT$ac_delim
22239 SHLIBPATH_VAR!$SHLIBPATH_VAR$ac_delim
22240 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
22241 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
22242 LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
22243 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
22244 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
22245 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
22246 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
22247 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
22248 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
22249 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
22250 BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
22251 ALL_BINDINGS!$ALL_BINDINGS$ac_delim
22252 OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
22253 ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
22254 RPATH!$RPATH$ac_delim
22255 RDYNAMIC!$RDYNAMIC$ac_delim
22256 LIBOBJS!$LIBOBJS$ac_delim
22257 LTLIBOBJS!$LTLIBOBJS$ac_delim
22258 _ACEOF
22259
22260   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 92; then
22261     break
22262   elif $ac_last_try; then
22263     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22264 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22265    { (exit 1); exit 1; }; }
22266   else
22267     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22268   fi
22269 done
22270
22271 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
22272 if test -n "$ac_eof"; then
22273   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
22274   ac_eof=`expr $ac_eof + 1`
22275 fi
22276
22277 cat >>$CONFIG_STATUS <<_ACEOF
22278 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
22279 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
22280 _ACEOF
22281 sed '
22282 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22283 s/^/s,@/; s/!/@,|#_!!_#|/
22284 :n
22285 t n
22286 s/'"$ac_delim"'$/,g/; t
22287 s/$/\\/; p
22288 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22289 ' >>$CONFIG_STATUS <conf$$subs.sed
22290 rm -f conf$$subs.sed
22291 cat >>$CONFIG_STATUS <<_ACEOF
22292 :end
22293 s/|#_!!_#|//g
22294 CEOF$ac_eof
22295 _ACEOF
22296
22297
22298 # VPATH may cause trouble with some makes, so we remove $(srcdir),
22299 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22300 # trailing colons and then remove the whole line if VPATH becomes empty
22301 # (actually we leave an empty line to preserve line numbers).
22302 if test "x$srcdir" = x.; then
22303   ac_vpsub='/^[  ]*VPATH[        ]*=/{
22304 s/:*\$(srcdir):*/:/
22305 s/:*\${srcdir}:*/:/
22306 s/:*@srcdir@:*/:/
22307 s/^\([^=]*=[     ]*\):*/\1/
22308 s/:*$//
22309 s/^[^=]*=[       ]*$//
22310 }'
22311 fi
22312
22313 cat >>$CONFIG_STATUS <<\_ACEOF
22314 fi # test -n "$CONFIG_FILES"
22315
22316
22317 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
22318 do
22319   case $ac_tag in
22320   :[FHLC]) ac_mode=$ac_tag; continue;;
22321   esac
22322   case $ac_mode$ac_tag in
22323   :[FHL]*:*);;
22324   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
22325 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
22326    { (exit 1); exit 1; }; };;
22327   :[FH]-) ac_tag=-:-;;
22328   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
22329   esac
22330   ac_save_IFS=$IFS
22331   IFS=:
22332   set x $ac_tag
22333   IFS=$ac_save_IFS
22334   shift
22335   ac_file=$1
22336   shift
22337
22338   case $ac_mode in
22339   :L) ac_source=$1;;
22340   :[FH])
22341     ac_file_inputs=
22342     for ac_f
22343     do
22344       case $ac_f in
22345       -) ac_f="$tmp/stdin";;
22346       *) # Look for the file first in the build tree, then in the source tree
22347          # (if the path is not absolute).  The absolute path cannot be DOS-style,
22348          # because $ac_f cannot contain `:'.
22349          test -f "$ac_f" ||
22350            case $ac_f in
22351            [\\/$]*) false;;
22352            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
22353            esac ||
22354            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
22355 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
22356    { (exit 1); exit 1; }; };;
22357       esac
22358       ac_file_inputs="$ac_file_inputs $ac_f"
22359     done
22360
22361     # Let's still pretend it is `configure' which instantiates (i.e., don't
22362     # use $as_me), people would be surprised to read:
22363     #    /* config.h.  Generated by config.status.  */
22364     configure_input="Generated from "`IFS=:
22365           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
22366     if test x"$ac_file" != x-; then
22367       configure_input="$ac_file.  $configure_input"
22368       { echo "$as_me:$LINENO: creating $ac_file" >&5
22369 echo "$as_me: creating $ac_file" >&6;}
22370     fi
22371
22372     case $ac_tag in
22373     *:-:* | *:-) cat >"$tmp/stdin";;
22374     esac
22375     ;;
22376   esac
22377
22378   ac_dir=`$as_dirname -- "$ac_file" ||
22379 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22380          X"$ac_file" : 'X\(//\)[^/]' \| \
22381          X"$ac_file" : 'X\(//\)$' \| \
22382          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
22383 echo X"$ac_file" |
22384     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22385             s//\1/
22386             q
22387           }
22388           /^X\(\/\/\)[^/].*/{
22389             s//\1/
22390             q
22391           }
22392           /^X\(\/\/\)$/{
22393             s//\1/
22394             q
22395           }
22396           /^X\(\/\).*/{
22397             s//\1/
22398             q
22399           }
22400           s/.*/./; q'`
22401   { as_dir="$ac_dir"
22402   case $as_dir in #(
22403   -*) as_dir=./$as_dir;;
22404   esac
22405   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22406     as_dirs=
22407     while :; do
22408       case $as_dir in #(
22409       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22410       *) as_qdir=$as_dir;;
22411       esac
22412       as_dirs="'$as_qdir' $as_dirs"
22413       as_dir=`$as_dirname -- "$as_dir" ||
22414 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22415          X"$as_dir" : 'X\(//\)[^/]' \| \
22416          X"$as_dir" : 'X\(//\)$' \| \
22417          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22418 echo X"$as_dir" |
22419     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22420             s//\1/
22421             q
22422           }
22423           /^X\(\/\/\)[^/].*/{
22424             s//\1/
22425             q
22426           }
22427           /^X\(\/\/\)$/{
22428             s//\1/
22429             q
22430           }
22431           /^X\(\/\).*/{
22432             s//\1/
22433             q
22434           }
22435           s/.*/./; q'`
22436       test -d "$as_dir" && break
22437     done
22438     test -z "$as_dirs" || eval "mkdir $as_dirs"
22439   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22440 echo "$as_me: error: cannot create directory $as_dir" >&2;}
22441    { (exit 1); exit 1; }; }; }
22442   ac_builddir=.
22443
22444 case "$ac_dir" in
22445 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22446 *)
22447   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22448   # A ".." for each directory in $ac_dir_suffix.
22449   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
22450   case $ac_top_builddir_sub in
22451   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22452   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22453   esac ;;
22454 esac
22455 ac_abs_top_builddir=$ac_pwd
22456 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22457 # for backward compatibility:
22458 ac_top_builddir=$ac_top_build_prefix
22459
22460 case $srcdir in
22461   .)  # We are building in place.
22462     ac_srcdir=.
22463     ac_top_srcdir=$ac_top_builddir_sub
22464     ac_abs_top_srcdir=$ac_pwd ;;
22465   [\\/]* | ?:[\\/]* )  # Absolute name.
22466     ac_srcdir=$srcdir$ac_dir_suffix;
22467     ac_top_srcdir=$srcdir
22468     ac_abs_top_srcdir=$srcdir ;;
22469   *) # Relative name.
22470     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22471     ac_top_srcdir=$ac_top_build_prefix$srcdir
22472     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22473 esac
22474 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22475
22476
22477   case $ac_mode in
22478   :F)
22479   #
22480   # CONFIG_FILE
22481   #
22482
22483   case $INSTALL in
22484   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22485   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
22486   esac
22487 _ACEOF
22488
22489 cat >>$CONFIG_STATUS <<\_ACEOF
22490 # If the template does not know about datarootdir, expand it.
22491 # FIXME: This hack should be removed a few years after 2.60.
22492 ac_datarootdir_hack=; ac_datarootdir_seen=
22493
22494 case `sed -n '/datarootdir/ {
22495   p
22496   q
22497 }
22498 /@datadir@/p
22499 /@docdir@/p
22500 /@infodir@/p
22501 /@localedir@/p
22502 /@mandir@/p
22503 ' $ac_file_inputs` in
22504 *datarootdir*) ac_datarootdir_seen=yes;;
22505 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
22506   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22507 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
22508 _ACEOF
22509 cat >>$CONFIG_STATUS <<_ACEOF
22510   ac_datarootdir_hack='
22511   s&@datadir@&$datadir&g
22512   s&@docdir@&$docdir&g
22513   s&@infodir@&$infodir&g
22514   s&@localedir@&$localedir&g
22515   s&@mandir@&$mandir&g
22516     s&\\\${datarootdir}&$datarootdir&g' ;;
22517 esac
22518 _ACEOF
22519
22520 # Neutralize VPATH when `$srcdir' = `.'.
22521 # Shell code in configure.ac might set extrasub.
22522 # FIXME: do we really want to maintain this feature?
22523 cat >>$CONFIG_STATUS <<_ACEOF
22524   sed "$ac_vpsub
22525 $extrasub
22526 _ACEOF
22527 cat >>$CONFIG_STATUS <<\_ACEOF
22528 :t
22529 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22530 s&@configure_input@&$configure_input&;t t
22531 s&@top_builddir@&$ac_top_builddir_sub&;t t
22532 s&@srcdir@&$ac_srcdir&;t t
22533 s&@abs_srcdir@&$ac_abs_srcdir&;t t
22534 s&@top_srcdir@&$ac_top_srcdir&;t t
22535 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22536 s&@builddir@&$ac_builddir&;t t
22537 s&@abs_builddir@&$ac_abs_builddir&;t t
22538 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22539 s&@INSTALL@&$ac_INSTALL&;t t
22540 $ac_datarootdir_hack
22541 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
22542
22543 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22544   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
22545   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
22546   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22547 which seems to be undefined.  Please make sure it is defined." >&5
22548 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22549 which seems to be undefined.  Please make sure it is defined." >&2;}
22550
22551   rm -f "$tmp/stdin"
22552   case $ac_file in
22553   -) cat "$tmp/out"; rm -f "$tmp/out";;
22554   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
22555   esac
22556  ;;
22557   :H)
22558   #
22559   # CONFIG_HEADER
22560   #
22561 _ACEOF
22562
22563 # Transform confdefs.h into a sed script `conftest.defines', that
22564 # substitutes the proper values into config.h.in to produce config.h.
22565 rm -f conftest.defines conftest.tail
22566 # First, append a space to every undef/define line, to ease matching.
22567 echo 's/$/ /' >conftest.defines
22568 # Then, protect against being on the right side of a sed subst, or in
22569 # an unquoted here document, in config.status.  If some macros were
22570 # called several times there might be several #defines for the same
22571 # symbol, which is useless.  But do not sort them, since the last
22572 # AC_DEFINE must be honored.
22573 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
22574 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
22575 # NAME is the cpp macro being defined, VALUE is the value it is being given.
22576 # PARAMS is the parameter list in the macro definition--in most cases, it's
22577 # just an empty string.
22578 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
22579 ac_dB='\\)[      (].*,\\1define\\2'
22580 ac_dC=' '
22581 ac_dD=' ,'
22582
22583 uniq confdefs.h |
22584   sed -n '
22585         t rset
22586         :rset
22587         s/^[     ]*#[    ]*define[       ][      ]*//
22588         t ok
22589         d
22590         :ok
22591         s/[\\&,]/\\&/g
22592         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
22593         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
22594   ' >>conftest.defines
22595
22596 # Remove the space that was appended to ease matching.
22597 # Then replace #undef with comments.  This is necessary, for
22598 # example, in the case of _POSIX_SOURCE, which is predefined and required
22599 # on some systems where configure will not decide to define it.
22600 # (The regexp can be short, since the line contains either #define or #undef.)
22601 echo 's/ $//
22602 s,^[     #]*u.*,/* & */,' >>conftest.defines
22603
22604 # Break up conftest.defines:
22605 ac_max_sed_lines=50
22606
22607 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
22608 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
22609 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
22610 # et cetera.
22611 ac_in='$ac_file_inputs'
22612 ac_out='"$tmp/out1"'
22613 ac_nxt='"$tmp/out2"'
22614
22615 while :
22616 do
22617   # Write a here document:
22618     cat >>$CONFIG_STATUS <<_ACEOF
22619     # First, check the format of the line:
22620     cat >"\$tmp/defines.sed" <<\\CEOF
22621 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
22622 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
22623 b
22624 :def
22625 _ACEOF
22626   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
22627   echo 'CEOF
22628     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
22629   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
22630   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
22631   grep . conftest.tail >/dev/null || break
22632   rm -f conftest.defines
22633   mv conftest.tail conftest.defines
22634 done
22635 rm -f conftest.defines conftest.tail
22636
22637 echo "ac_result=$ac_in" >>$CONFIG_STATUS
22638 cat >>$CONFIG_STATUS <<\_ACEOF
22639   if test x"$ac_file" != x-; then
22640     echo "/* $configure_input  */" >"$tmp/config.h"
22641     cat "$ac_result" >>"$tmp/config.h"
22642     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
22643       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22644 echo "$as_me: $ac_file is unchanged" >&6;}
22645     else
22646       rm -f $ac_file
22647       mv "$tmp/config.h" $ac_file
22648     fi
22649   else
22650     echo "/* $configure_input  */"
22651     cat "$ac_result"
22652   fi
22653   rm -f "$tmp/out12"
22654  ;;
22655
22656   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
22657 echo "$as_me: executing $ac_file commands" >&6;}
22658  ;;
22659   esac
22660
22661
22662   case $ac_file$ac_mode in
22663     "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
22664    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
22665     "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
22666    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;;
22667     "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
22668    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;;
22669     "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
22670    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
22671     "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
22672    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
22673     "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
22674    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;;
22675     "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
22676    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
22677     "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
22678    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
22679     "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
22680    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
22681     "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
22682    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;;
22683     "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
22684    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;;
22685     "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
22686    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
22687     "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
22688    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
22689
22690   esac
22691 done # for ac_tag
22692
22693
22694 { (exit 0); exit 0; }
22695 _ACEOF
22696 chmod +x $CONFIG_STATUS
22697 ac_clean_files=$ac_clean_files_save
22698
22699
22700 # configure is writing to config.log, and then calls config.status.
22701 # config.status does its own redirection, appending to config.log.
22702 # Unfortunately, on DOS this fails, as config.log is still kept open
22703 # by configure, so config.status won't be able to write to it; its
22704 # output is simply discarded.  So we exec the FD to /dev/null,
22705 # effectively closing config.log, so it can be properly (re)opened and
22706 # appended to by config.status.  When coming back to configure, we
22707 # need to make the FD available again.
22708 if test "$no_create" != yes; then
22709   ac_cs_success=:
22710   ac_config_status_args=
22711   test "$silent" = yes &&
22712     ac_config_status_args="$ac_config_status_args --quiet"
22713   exec 5>/dev/null
22714   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22715   exec 5>>config.log
22716   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22717   # would make configure fail if this is the last instruction.
22718   $ac_cs_success || { (exit 1); exit 1; }
22719 fi
22720
22721 #
22722 # CONFIG_SUBDIRS section.
22723 #
22724 if test "$no_recursion" != yes; then
22725
22726   # Remove --cache-file and --srcdir arguments so they do not pile up.
22727   ac_sub_configure_args=
22728   ac_prev=
22729   eval "set x $ac_configure_args"
22730   shift
22731   for ac_arg
22732   do
22733     if test -n "$ac_prev"; then
22734       ac_prev=
22735       continue
22736     fi
22737     case $ac_arg in
22738     -cache-file | --cache-file | --cache-fil | --cache-fi \
22739     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
22740       ac_prev=cache_file ;;
22741     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
22742     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
22743     | --c=*)
22744       ;;
22745     --config-cache | -C)
22746       ;;
22747     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
22748       ac_prev=srcdir ;;
22749     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
22750       ;;
22751     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
22752       ac_prev=prefix ;;
22753     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
22754       ;;
22755     *)
22756       case $ac_arg in
22757       *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
22758       esac
22759       ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
22760     esac
22761   done
22762
22763   # Always prepend --prefix to ensure using the same prefix
22764   # in subdir configurations.
22765   ac_arg="--prefix=$prefix"
22766   case $ac_arg in
22767   *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
22768   esac
22769   ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
22770
22771   ac_popdir=`pwd`
22772   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
22773
22774     # Do not complain, so a configure script can configure whichever
22775     # parts of a large source tree are present.
22776     test -d "$srcdir/$ac_dir" || continue
22777
22778     ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
22779     echo "$as_me:$LINENO: $ac_msg" >&5
22780     echo "$ac_msg" >&6
22781     { as_dir="$ac_dir"
22782   case $as_dir in #(
22783   -*) as_dir=./$as_dir;;
22784   esac
22785   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22786     as_dirs=
22787     while :; do
22788       case $as_dir in #(
22789       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22790       *) as_qdir=$as_dir;;
22791       esac
22792       as_dirs="'$as_qdir' $as_dirs"
22793       as_dir=`$as_dirname -- "$as_dir" ||
22794 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22795          X"$as_dir" : 'X\(//\)[^/]' \| \
22796          X"$as_dir" : 'X\(//\)$' \| \
22797          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22798 echo X"$as_dir" |
22799     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22800             s//\1/
22801             q
22802           }
22803           /^X\(\/\/\)[^/].*/{
22804             s//\1/
22805             q
22806           }
22807           /^X\(\/\/\)$/{
22808             s//\1/
22809             q
22810           }
22811           /^X\(\/\).*/{
22812             s//\1/
22813             q
22814           }
22815           s/.*/./; q'`
22816       test -d "$as_dir" && break
22817     done
22818     test -z "$as_dirs" || eval "mkdir $as_dirs"
22819   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22820 echo "$as_me: error: cannot create directory $as_dir" >&2;}
22821    { (exit 1); exit 1; }; }; }
22822     ac_builddir=.
22823
22824 case "$ac_dir" in
22825 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22826 *)
22827   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22828   # A ".." for each directory in $ac_dir_suffix.
22829   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
22830   case $ac_top_builddir_sub in
22831   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22832   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22833   esac ;;
22834 esac
22835 ac_abs_top_builddir=$ac_pwd
22836 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22837 # for backward compatibility:
22838 ac_top_builddir=$ac_top_build_prefix
22839
22840 case $srcdir in
22841   .)  # We are building in place.
22842     ac_srcdir=.
22843     ac_top_srcdir=$ac_top_builddir_sub
22844     ac_abs_top_srcdir=$ac_pwd ;;
22845   [\\/]* | ?:[\\/]* )  # Absolute name.
22846     ac_srcdir=$srcdir$ac_dir_suffix;
22847     ac_top_srcdir=$srcdir
22848     ac_abs_top_srcdir=$srcdir ;;
22849   *) # Relative name.
22850     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22851     ac_top_srcdir=$ac_top_build_prefix$srcdir
22852     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22853 esac
22854 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22855
22856
22857     cd "$ac_dir"
22858
22859     # Check for guested configure; otherwise get Cygnus style configure.
22860     if test -f "$ac_srcdir/configure.gnu"; then
22861       ac_sub_configure=$ac_srcdir/configure.gnu
22862     elif test -f "$ac_srcdir/configure"; then
22863       ac_sub_configure=$ac_srcdir/configure
22864     elif test -f "$ac_srcdir/configure.in"; then
22865       # This should be Cygnus configure.
22866       ac_sub_configure=$ac_aux_dir/configure
22867     else
22868       { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
22869 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
22870       ac_sub_configure=
22871     fi
22872
22873     # The recursion is here.
22874     if test -n "$ac_sub_configure"; then
22875       # Make the cache file name correct relative to the subdirectory.
22876       case $cache_file in
22877       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
22878       *) # Relative name.
22879         ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
22880       esac
22881
22882       { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
22883 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
22884       # The eval makes quoting arguments work.
22885       eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
22886            --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
22887         { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
22888 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
22889    { (exit 1); exit 1; }; }
22890     fi
22891
22892     cd "$ac_popdir"
22893   done
22894 fi
22895