Remove extraneous ';'.
[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.2svn.
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.2svn'
565 PACKAGE_STRING='LLVM 3.2svn'
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 PDFROFF
747 RUNTEST
748 TCLSH
749 ZIP
750 OCAMLC
751 OCAMLOPT
752 OCAMLDEP
753 OCAMLDOC
754 GAS
755 HAVE_LINK_VERSION_SCRIPT
756 INSTALL_LTDL_TRUE
757 INSTALL_LTDL_FALSE
758 CONVENIENCE_LTDL_TRUE
759 CONVENIENCE_LTDL_FALSE
760 LIBADD_DL
761 NO_VARIADIC_MACROS
762 NO_MISSING_FIELD_INITIALIZERS
763 COVERED_SWITCH_DEFAULT
764 USE_UDIS86
765 USE_OPROFILE
766 USE_INTEL_JITEVENTS
767 INTEL_JITEVENTS_INCDIR
768 INTEL_JITEVENTS_LIBDIR
769 HAVE_PTHREAD
770 HUGE_VAL_SANITY
771 MMAP_FILE
772 SHLIBEXT
773 SHLIBPATH_VAR
774 LLVM_PREFIX
775 LLVM_BINDIR
776 LLVM_LIBDIR
777 LLVM_DATADIR
778 LLVM_DOCSDIR
779 LLVM_ETCDIR
780 LLVM_INCLUDEDIR
781 LLVM_INFODIR
782 LLVM_MANDIR
783 LLVM_CONFIGTIME
784 BINDINGS_TO_BUILD
785 ALL_BINDINGS
786 OCAML_LIBDIR
787 ENABLE_VISIBILITY_INLINES_HIDDEN
788 RPATH
789 RDYNAMIC
790 LIBOBJS
791 LTLIBOBJS'
792 ac_subst_files=''
793       ac_precious_vars='build_alias
794 host_alias
795 target_alias
796 CC
797 CFLAGS
798 LDFLAGS
799 CPPFLAGS
800 CXX
801 CXXFLAGS
802 CCC
803 CPP'
804 ac_subdirs_all='projects/llvm-gcc
805 projects/test-suite
806 projects/llvm-test
807 projects/poolalloc
808 projects/llvm-poolalloc
809 projects/sample
810 projects/privbracket
811 projects/llvm-stacker
812 projects/llvm-reopt
813 projects/llvm-java
814 projects/llvm-tv
815 projects/safecode
816 projects/llvm-kernel
817 tools/polly'
818
819 # Initialize some variables set by options.
820 ac_init_help=
821 ac_init_version=false
822 # The variables have the same names as the options, with
823 # dashes changed to underlines.
824 cache_file=/dev/null
825 exec_prefix=NONE
826 no_create=
827 no_recursion=
828 prefix=NONE
829 program_prefix=NONE
830 program_suffix=NONE
831 program_transform_name=s,x,x,
832 silent=
833 site=
834 srcdir=
835 verbose=
836 x_includes=NONE
837 x_libraries=NONE
838
839 # Installation directory options.
840 # These are left unexpanded so users can "make install exec_prefix=/foo"
841 # and all the variables that are supposed to be based on exec_prefix
842 # by default will actually change.
843 # Use braces instead of parens because sh, perl, etc. also accept them.
844 # (The list follows the same order as the GNU Coding Standards.)
845 bindir='${exec_prefix}/bin'
846 sbindir='${exec_prefix}/sbin'
847 libexecdir='${exec_prefix}/libexec'
848 datarootdir='${prefix}/share'
849 datadir='${datarootdir}'
850 sysconfdir='${prefix}/etc'
851 sharedstatedir='${prefix}/com'
852 localstatedir='${prefix}/var'
853 includedir='${prefix}/include'
854 oldincludedir='/usr/include'
855 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
856 infodir='${datarootdir}/info'
857 htmldir='${docdir}'
858 dvidir='${docdir}'
859 pdfdir='${docdir}'
860 psdir='${docdir}'
861 libdir='${exec_prefix}/lib'
862 localedir='${datarootdir}/locale'
863 mandir='${datarootdir}/man'
864
865 ac_prev=
866 ac_dashdash=
867 for ac_option
868 do
869   # If the previous option needs an argument, assign it.
870   if test -n "$ac_prev"; then
871     eval $ac_prev=\$ac_option
872     ac_prev=
873     continue
874   fi
875
876   case $ac_option in
877   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
878   *)    ac_optarg=yes ;;
879   esac
880
881   # Accept the important Cygnus configure options, so we can diagnose typos.
882
883   case $ac_dashdash$ac_option in
884   --)
885     ac_dashdash=yes ;;
886
887   -bindir | --bindir | --bindi | --bind | --bin | --bi)
888     ac_prev=bindir ;;
889   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
890     bindir=$ac_optarg ;;
891
892   -build | --build | --buil | --bui | --bu)
893     ac_prev=build_alias ;;
894   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
895     build_alias=$ac_optarg ;;
896
897   -cache-file | --cache-file | --cache-fil | --cache-fi \
898   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
899     ac_prev=cache_file ;;
900   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
901   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
902     cache_file=$ac_optarg ;;
903
904   --config-cache | -C)
905     cache_file=config.cache ;;
906
907   -datadir | --datadir | --datadi | --datad)
908     ac_prev=datadir ;;
909   -datadir=* | --datadir=* | --datadi=* | --datad=*)
910     datadir=$ac_optarg ;;
911
912   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
913   | --dataroo | --dataro | --datar)
914     ac_prev=datarootdir ;;
915   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
916   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
917     datarootdir=$ac_optarg ;;
918
919   -disable-* | --disable-*)
920     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
921     # Reject names that are not valid shell variable names.
922     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
923       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
924    { (exit 1); exit 1; }; }
925     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
926     eval enable_$ac_feature=no ;;
927
928   -docdir | --docdir | --docdi | --doc | --do)
929     ac_prev=docdir ;;
930   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
931     docdir=$ac_optarg ;;
932
933   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
934     ac_prev=dvidir ;;
935   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
936     dvidir=$ac_optarg ;;
937
938   -enable-* | --enable-*)
939     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
940     # Reject names that are not valid shell variable names.
941     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
942       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
943    { (exit 1); exit 1; }; }
944     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
945     eval enable_$ac_feature=\$ac_optarg ;;
946
947   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
948   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
949   | --exec | --exe | --ex)
950     ac_prev=exec_prefix ;;
951   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
952   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
953   | --exec=* | --exe=* | --ex=*)
954     exec_prefix=$ac_optarg ;;
955
956   -gas | --gas | --ga | --g)
957     # Obsolete; use --with-gas.
958     with_gas=yes ;;
959
960   -help | --help | --hel | --he | -h)
961     ac_init_help=long ;;
962   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
963     ac_init_help=recursive ;;
964   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
965     ac_init_help=short ;;
966
967   -host | --host | --hos | --ho)
968     ac_prev=host_alias ;;
969   -host=* | --host=* | --hos=* | --ho=*)
970     host_alias=$ac_optarg ;;
971
972   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
973     ac_prev=htmldir ;;
974   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
975   | --ht=*)
976     htmldir=$ac_optarg ;;
977
978   -includedir | --includedir | --includedi | --included | --include \
979   | --includ | --inclu | --incl | --inc)
980     ac_prev=includedir ;;
981   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
982   | --includ=* | --inclu=* | --incl=* | --inc=*)
983     includedir=$ac_optarg ;;
984
985   -infodir | --infodir | --infodi | --infod | --info | --inf)
986     ac_prev=infodir ;;
987   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
988     infodir=$ac_optarg ;;
989
990   -libdir | --libdir | --libdi | --libd)
991     ac_prev=libdir ;;
992   -libdir=* | --libdir=* | --libdi=* | --libd=*)
993     libdir=$ac_optarg ;;
994
995   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
996   | --libexe | --libex | --libe)
997     ac_prev=libexecdir ;;
998   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
999   | --libexe=* | --libex=* | --libe=*)
1000     libexecdir=$ac_optarg ;;
1001
1002   -localedir | --localedir | --localedi | --localed | --locale)
1003     ac_prev=localedir ;;
1004   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1005     localedir=$ac_optarg ;;
1006
1007   -localstatedir | --localstatedir | --localstatedi | --localstated \
1008   | --localstate | --localstat | --localsta | --localst | --locals)
1009     ac_prev=localstatedir ;;
1010   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1011   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1012     localstatedir=$ac_optarg ;;
1013
1014   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1015     ac_prev=mandir ;;
1016   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1017     mandir=$ac_optarg ;;
1018
1019   -nfp | --nfp | --nf)
1020     # Obsolete; use --without-fp.
1021     with_fp=no ;;
1022
1023   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1024   | --no-cr | --no-c | -n)
1025     no_create=yes ;;
1026
1027   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1028   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1029     no_recursion=yes ;;
1030
1031   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1032   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1033   | --oldin | --oldi | --old | --ol | --o)
1034     ac_prev=oldincludedir ;;
1035   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1036   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1037   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1038     oldincludedir=$ac_optarg ;;
1039
1040   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1041     ac_prev=prefix ;;
1042   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1043     prefix=$ac_optarg ;;
1044
1045   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1046   | --program-pre | --program-pr | --program-p)
1047     ac_prev=program_prefix ;;
1048   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1049   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1050     program_prefix=$ac_optarg ;;
1051
1052   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1053   | --program-suf | --program-su | --program-s)
1054     ac_prev=program_suffix ;;
1055   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1056   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1057     program_suffix=$ac_optarg ;;
1058
1059   -program-transform-name | --program-transform-name \
1060   | --program-transform-nam | --program-transform-na \
1061   | --program-transform-n | --program-transform- \
1062   | --program-transform | --program-transfor \
1063   | --program-transfo | --program-transf \
1064   | --program-trans | --program-tran \
1065   | --progr-tra | --program-tr | --program-t)
1066     ac_prev=program_transform_name ;;
1067   -program-transform-name=* | --program-transform-name=* \
1068   | --program-transform-nam=* | --program-transform-na=* \
1069   | --program-transform-n=* | --program-transform-=* \
1070   | --program-transform=* | --program-transfor=* \
1071   | --program-transfo=* | --program-transf=* \
1072   | --program-trans=* | --program-tran=* \
1073   | --progr-tra=* | --program-tr=* | --program-t=*)
1074     program_transform_name=$ac_optarg ;;
1075
1076   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1077     ac_prev=pdfdir ;;
1078   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1079     pdfdir=$ac_optarg ;;
1080
1081   -psdir | --psdir | --psdi | --psd | --ps)
1082     ac_prev=psdir ;;
1083   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1084     psdir=$ac_optarg ;;
1085
1086   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1087   | -silent | --silent | --silen | --sile | --sil)
1088     silent=yes ;;
1089
1090   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1091     ac_prev=sbindir ;;
1092   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1093   | --sbi=* | --sb=*)
1094     sbindir=$ac_optarg ;;
1095
1096   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1097   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1098   | --sharedst | --shareds | --shared | --share | --shar \
1099   | --sha | --sh)
1100     ac_prev=sharedstatedir ;;
1101   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1102   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1103   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1104   | --sha=* | --sh=*)
1105     sharedstatedir=$ac_optarg ;;
1106
1107   -site | --site | --sit)
1108     ac_prev=site ;;
1109   -site=* | --site=* | --sit=*)
1110     site=$ac_optarg ;;
1111
1112   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1113     ac_prev=srcdir ;;
1114   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1115     srcdir=$ac_optarg ;;
1116
1117   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1118   | --syscon | --sysco | --sysc | --sys | --sy)
1119     ac_prev=sysconfdir ;;
1120   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1121   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1122     sysconfdir=$ac_optarg ;;
1123
1124   -target | --target | --targe | --targ | --tar | --ta | --t)
1125     ac_prev=target_alias ;;
1126   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1127     target_alias=$ac_optarg ;;
1128
1129   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1130     verbose=yes ;;
1131
1132   -version | --version | --versio | --versi | --vers | -V)
1133     ac_init_version=: ;;
1134
1135   -with-* | --with-*)
1136     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1137     # Reject names that are not valid shell variable names.
1138     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1139       { echo "$as_me: error: invalid package name: $ac_package" >&2
1140    { (exit 1); exit 1; }; }
1141     ac_package=`echo $ac_package| sed 's/-/_/g'`
1142     eval with_$ac_package=\$ac_optarg ;;
1143
1144   -without-* | --without-*)
1145     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1146     # Reject names that are not valid shell variable names.
1147     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1148       { echo "$as_me: error: invalid package name: $ac_package" >&2
1149    { (exit 1); exit 1; }; }
1150     ac_package=`echo $ac_package | sed 's/-/_/g'`
1151     eval with_$ac_package=no ;;
1152
1153   --x)
1154     # Obsolete; use --with-x.
1155     with_x=yes ;;
1156
1157   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1158   | --x-incl | --x-inc | --x-in | --x-i)
1159     ac_prev=x_includes ;;
1160   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1161   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1162     x_includes=$ac_optarg ;;
1163
1164   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1165   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1166     ac_prev=x_libraries ;;
1167   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1168   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1169     x_libraries=$ac_optarg ;;
1170
1171   -*) { echo "$as_me: error: unrecognized option: $ac_option
1172 Try \`$0 --help' for more information." >&2
1173    { (exit 1); exit 1; }; }
1174     ;;
1175
1176   *=*)
1177     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1178     # Reject names that are not valid shell variable names.
1179     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1180       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1181    { (exit 1); exit 1; }; }
1182     eval $ac_envvar=\$ac_optarg
1183     export $ac_envvar ;;
1184
1185   *)
1186     # FIXME: should be removed in autoconf 3.0.
1187     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1188     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1189       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1190     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1191     ;;
1192
1193   esac
1194 done
1195
1196 if test -n "$ac_prev"; then
1197   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1198   { echo "$as_me: error: missing argument to $ac_option" >&2
1199    { (exit 1); exit 1; }; }
1200 fi
1201
1202 # Be sure to have absolute directory names.
1203 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1204                 datadir sysconfdir sharedstatedir localstatedir includedir \
1205                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1206                 libdir localedir mandir
1207 do
1208   eval ac_val=\$$ac_var
1209   case $ac_val in
1210     [\\/$]* | ?:[\\/]* )  continue;;
1211     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1212   esac
1213   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1214    { (exit 1); exit 1; }; }
1215 done
1216
1217 # There might be people who depend on the old broken behavior: `$host'
1218 # used to hold the argument of --host etc.
1219 # FIXME: To remove some day.
1220 build=$build_alias
1221 host=$host_alias
1222 target=$target_alias
1223
1224 # FIXME: To remove some day.
1225 if test "x$host_alias" != x; then
1226   if test "x$build_alias" = x; then
1227     cross_compiling=maybe
1228     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1229     If a cross compiler is detected then cross compile mode will be used." >&2
1230   elif test "x$build_alias" != "x$host_alias"; then
1231     cross_compiling=yes
1232   fi
1233 fi
1234
1235 ac_tool_prefix=
1236 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1237
1238 test "$silent" = yes && exec 6>/dev/null
1239
1240
1241 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1242 ac_ls_di=`ls -di .` &&
1243 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1244   { echo "$as_me: error: Working directory cannot be determined" >&2
1245    { (exit 1); exit 1; }; }
1246 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1247   { echo "$as_me: error: pwd does not report name of working directory" >&2
1248    { (exit 1); exit 1; }; }
1249
1250
1251 # Find the source files, if location was not specified.
1252 if test -z "$srcdir"; then
1253   ac_srcdir_defaulted=yes
1254   # Try the directory containing this script, then the parent directory.
1255   ac_confdir=`$as_dirname -- "$0" ||
1256 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1257          X"$0" : 'X\(//\)[^/]' \| \
1258          X"$0" : 'X\(//\)$' \| \
1259          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1260 echo X"$0" |
1261     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1262             s//\1/
1263             q
1264           }
1265           /^X\(\/\/\)[^/].*/{
1266             s//\1/
1267             q
1268           }
1269           /^X\(\/\/\)$/{
1270             s//\1/
1271             q
1272           }
1273           /^X\(\/\).*/{
1274             s//\1/
1275             q
1276           }
1277           s/.*/./; q'`
1278   srcdir=$ac_confdir
1279   if test ! -r "$srcdir/$ac_unique_file"; then
1280     srcdir=..
1281   fi
1282 else
1283   ac_srcdir_defaulted=no
1284 fi
1285 if test ! -r "$srcdir/$ac_unique_file"; then
1286   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1287   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1288    { (exit 1); exit 1; }; }
1289 fi
1290 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1291 ac_abs_confdir=`(
1292         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1293    { (exit 1); exit 1; }; }
1294         pwd)`
1295 # When building in place, set srcdir=.
1296 if test "$ac_abs_confdir" = "$ac_pwd"; then
1297   srcdir=.
1298 fi
1299 # Remove unnecessary trailing slashes from srcdir.
1300 # Double slashes in file names in object file debugging info
1301 # mess up M-x gdb in Emacs.
1302 case $srcdir in
1303 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1304 esac
1305 for ac_var in $ac_precious_vars; do
1306   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1307   eval ac_env_${ac_var}_value=\$${ac_var}
1308   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1309   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1310 done
1311
1312 #
1313 # Report the --help message.
1314 #
1315 if test "$ac_init_help" = "long"; then
1316   # Omit some internal or obsolete options to make the list less imposing.
1317   # This message is too long to be a string in the A/UX 3.1 sh.
1318   cat <<_ACEOF
1319 \`configure' configures LLVM 3.2svn to adapt to many kinds of systems.
1320
1321 Usage: $0 [OPTION]... [VAR=VALUE]...
1322
1323 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1324 VAR=VALUE.  See below for descriptions of some of the useful variables.
1325
1326 Defaults for the options are specified in brackets.
1327
1328 Configuration:
1329   -h, --help              display this help and exit
1330       --help=short        display options specific to this package
1331       --help=recursive    display the short help of all the included packages
1332   -V, --version           display version information and exit
1333   -q, --quiet, --silent   do not print \`checking...' messages
1334       --cache-file=FILE   cache test results in FILE [disabled]
1335   -C, --config-cache      alias for \`--cache-file=config.cache'
1336   -n, --no-create         do not create output files
1337       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1338
1339 Installation directories:
1340   --prefix=PREFIX         install architecture-independent files in PREFIX
1341                           [$ac_default_prefix]
1342   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1343                           [PREFIX]
1344
1345 By default, \`make install' will install all the files in
1346 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1347 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1348 for instance \`--prefix=\$HOME'.
1349
1350 For better control, use the options below.
1351
1352 Fine tuning of the installation directories:
1353   --bindir=DIR           user executables [EPREFIX/bin]
1354   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1355   --libexecdir=DIR       program executables [EPREFIX/libexec]
1356   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1357   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1358   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1359   --libdir=DIR           object code libraries [EPREFIX/lib]
1360   --includedir=DIR       C header files [PREFIX/include]
1361   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1362   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1363   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1364   --infodir=DIR          info documentation [DATAROOTDIR/info]
1365   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1366   --mandir=DIR           man documentation [DATAROOTDIR/man]
1367   --docdir=DIR           documentation root [DATAROOTDIR/doc/llvm]
1368   --htmldir=DIR          html documentation [DOCDIR]
1369   --dvidir=DIR           dvi documentation [DOCDIR]
1370   --pdfdir=DIR           pdf documentation [DOCDIR]
1371   --psdir=DIR            ps documentation [DOCDIR]
1372 _ACEOF
1373
1374   cat <<\_ACEOF
1375
1376 System types:
1377   --build=BUILD     configure for building on BUILD [guessed]
1378   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1379   --target=TARGET   configure for building compilers for TARGET [HOST]
1380 _ACEOF
1381 fi
1382
1383 if test -n "$ac_init_help"; then
1384   case $ac_init_help in
1385      short | recursive ) echo "Configuration of LLVM 3.2svn:";;
1386    esac
1387   cat <<\_ACEOF
1388
1389 Optional Features:
1390   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1391   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1392   --enable-polly          Use polly if available (default is YES)
1393   --enable-libcpp         Use libc++ if available (default is NO)
1394   --enable-optimized      Compile with optimizations enabled (default is NO)
1395   --enable-profiling      Compile with profiling enabled (default is NO)
1396   --enable-assertions     Compile with assertion checks enabled (default is
1397                           YES)
1398   --enable-expensive-checks
1399                           Compile with expensive debug checks enabled (default
1400                           is NO)
1401   --enable-debug-runtime  Build runtime libs with debug symbols (default is
1402                           NO)
1403   --enable-debug-symbols  Build compiler with debug symbols (default is NO if
1404                           optimization is on and YES if it's off)
1405   --enable-jit            Enable Just In Time Compiling (default is YES)
1406   --enable-docs           Build documents (default is YES)
1407   --enable-doxygen        Build doxygen documentation (default is NO)
1408   --enable-threads        Use threads if available (default is YES)
1409   --enable-pthreads       Use pthreads if available (default is YES)
1410   --enable-pic            Build LLVM with Position Independent Code (default
1411                           is YES)
1412   --enable-shared         Build a shared library and link tools against it
1413                           (default is NO)
1414   --enable-embed-stdcxx   Build a shared library with embedded libstdc++ for
1415                           Win32 DLL (default is NO)
1416   --enable-timestamps     Enable embedding timestamp information in build
1417                           (default is YES)
1418   --enable-targets        Build specific host targets: all or
1419                           target1,target2,... Valid targets are: host, x86,
1420                           x86_64, sparc, powerpc, arm, mips, spu, hexagon,
1421                           xcore, msp430, ptx, nvptx, and cpp (default=all)
1422   --enable-bindings       Build specific language bindings:
1423                           all,auto,none,{binding-name} (default=auto)
1424   --enable-libffi         Check for the presence of libffi (default is NO)
1425   --enable-ltdl-install   install libltdl
1426
1427 Optional Packages:
1428   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1429   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1430   --with-optimize-option  Select the compiler options to use for optimized
1431                           builds
1432   --with-extra-options    Specify additional options to compile LLVM with
1433   --with-extra-ld-options Specify additional options to link LLVM with
1434   --with-ocaml-libdir     Specify install location for ocaml bindings (default
1435                           is stdlib)
1436   --with-clang-srcdir     Directory to the out-of-tree Clang source
1437   --with-clang-resource-dir
1438                           Relative directory from the Clang binary for
1439                           resource files
1440   --with-c-include-dirs   Colon separated list of directories clang will
1441                           search for headers
1442   --with-gcc-toolchain    Directory where gcc is installed.
1443   --with-default-sysroot  Add --sysroot=<path> to all compiler invocations.
1444   --with-binutils-include Specify path to binutils/include/ containing
1445                           plugin-api.h file for gold plugin.
1446   --with-bug-report-url   Specify the URL where bug reports should be
1447                           submitted (default=http://llvm.org/bugs/)
1448   --with-internal-prefix  Installation directory for internal files
1449   --with-tclinclude       directory where tcl headers are
1450   --with-udis86=<path>    Use udis86 external x86 disassembler library
1451   --with-oprofile=<prefix>
1452                           Tell OProfile >= 0.9.4 how to symbolize JIT output
1453   --with-intel-jitevents=<vtune-amplifier-dir>
1454                           Specify location of run-time support library for
1455                           Intel JIT API
1456                           (default=/opt/intel/vtune_amplifier_xe_2011)
1457
1458 Some influential environment variables:
1459   CC          C compiler command
1460   CFLAGS      C compiler flags
1461   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1462               nonstandard directory <lib dir>
1463   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1464               you have headers in a nonstandard directory <include dir>
1465   CXX         C++ compiler command
1466   CXXFLAGS    C++ compiler flags
1467   CPP         C preprocessor
1468
1469 Use these variables to override the choices made by `configure' or to help
1470 it to find libraries and programs with nonstandard names/locations.
1471
1472 Report bugs to <http://llvm.org/bugs/>.
1473 _ACEOF
1474 ac_status=$?
1475 fi
1476
1477 if test "$ac_init_help" = "recursive"; then
1478   # If there are subdirs, report their specific --help.
1479   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1480     test -d "$ac_dir" || continue
1481     ac_builddir=.
1482
1483 case "$ac_dir" in
1484 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1485 *)
1486   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1487   # A ".." for each directory in $ac_dir_suffix.
1488   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1489   case $ac_top_builddir_sub in
1490   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1491   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1492   esac ;;
1493 esac
1494 ac_abs_top_builddir=$ac_pwd
1495 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1496 # for backward compatibility:
1497 ac_top_builddir=$ac_top_build_prefix
1498
1499 case $srcdir in
1500   .)  # We are building in place.
1501     ac_srcdir=.
1502     ac_top_srcdir=$ac_top_builddir_sub
1503     ac_abs_top_srcdir=$ac_pwd ;;
1504   [\\/]* | ?:[\\/]* )  # Absolute name.
1505     ac_srcdir=$srcdir$ac_dir_suffix;
1506     ac_top_srcdir=$srcdir
1507     ac_abs_top_srcdir=$srcdir ;;
1508   *) # Relative name.
1509     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1510     ac_top_srcdir=$ac_top_build_prefix$srcdir
1511     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1512 esac
1513 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1514
1515     cd "$ac_dir" || { ac_status=$?; continue; }
1516     # Check for guested configure.
1517     if test -f "$ac_srcdir/configure.gnu"; then
1518       echo &&
1519       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1520     elif test -f "$ac_srcdir/configure"; then
1521       echo &&
1522       $SHELL "$ac_srcdir/configure" --help=recursive
1523     else
1524       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1525     fi || ac_status=$?
1526     cd "$ac_pwd" || { ac_status=$?; break; }
1527   done
1528 fi
1529
1530 test -n "$ac_init_help" && exit $ac_status
1531 if $ac_init_version; then
1532   cat <<\_ACEOF
1533 LLVM configure 3.2svn
1534 generated by GNU Autoconf 2.60
1535
1536 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1537 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1538 This configure script is free software; the Free Software Foundation
1539 gives unlimited permission to copy, distribute and modify it.
1540
1541 Copyright (c) 2003-2012 University of Illinois at Urbana-Champaign.
1542 _ACEOF
1543   exit
1544 fi
1545 cat >config.log <<_ACEOF
1546 This file contains any messages produced by compilers while
1547 running configure, to aid debugging if configure makes a mistake.
1548
1549 It was created by LLVM $as_me 3.2svn, which was
1550 generated by GNU Autoconf 2.60.  Invocation command line was
1551
1552   $ $0 $@
1553
1554 _ACEOF
1555 exec 5>>config.log
1556 {
1557 cat <<_ASUNAME
1558 ## --------- ##
1559 ## Platform. ##
1560 ## --------- ##
1561
1562 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1563 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1564 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1565 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1566 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1567
1568 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1569 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1570
1571 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1572 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1573 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1574 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1575 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1576 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1577 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1578
1579 _ASUNAME
1580
1581 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1582 for as_dir in $PATH
1583 do
1584   IFS=$as_save_IFS
1585   test -z "$as_dir" && as_dir=.
1586   echo "PATH: $as_dir"
1587 done
1588 IFS=$as_save_IFS
1589
1590 } >&5
1591
1592 cat >&5 <<_ACEOF
1593
1594
1595 ## ----------- ##
1596 ## Core tests. ##
1597 ## ----------- ##
1598
1599 _ACEOF
1600
1601
1602 # Keep a trace of the command line.
1603 # Strip out --no-create and --no-recursion so they do not pile up.
1604 # Strip out --silent because we don't want to record it for future runs.
1605 # Also quote any args containing shell meta-characters.
1606 # Make two passes to allow for proper duplicate-argument suppression.
1607 ac_configure_args=
1608 ac_configure_args0=
1609 ac_configure_args1=
1610 ac_must_keep_next=false
1611 for ac_pass in 1 2
1612 do
1613   for ac_arg
1614   do
1615     case $ac_arg in
1616     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1617     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1618     | -silent | --silent | --silen | --sile | --sil)
1619       continue ;;
1620     *\'*)
1621       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1622     esac
1623     case $ac_pass in
1624     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1625     2)
1626       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1627       if test $ac_must_keep_next = true; then
1628         ac_must_keep_next=false # Got value, back to normal.
1629       else
1630         case $ac_arg in
1631           *=* | --config-cache | -C | -disable-* | --disable-* \
1632           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1633           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1634           | -with-* | --with-* | -without-* | --without-* | --x)
1635             case "$ac_configure_args0 " in
1636               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1637             esac
1638             ;;
1639           -* ) ac_must_keep_next=true ;;
1640         esac
1641       fi
1642       ac_configure_args="$ac_configure_args '$ac_arg'"
1643       ;;
1644     esac
1645   done
1646 done
1647 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1648 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1649
1650 # When interrupted or exit'd, cleanup temporary files, and complete
1651 # config.log.  We remove comments because anyway the quotes in there
1652 # would cause problems or look ugly.
1653 # WARNING: Use '\'' to represent an apostrophe within the trap.
1654 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1655 trap 'exit_status=$?
1656   # Save into config.log some information that might help in debugging.
1657   {
1658     echo
1659
1660     cat <<\_ASBOX
1661 ## ---------------- ##
1662 ## Cache variables. ##
1663 ## ---------------- ##
1664 _ASBOX
1665     echo
1666     # The following way of writing the cache mishandles newlines in values,
1667 (
1668   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1669     eval ac_val=\$$ac_var
1670     case $ac_val in #(
1671     *${as_nl}*)
1672       case $ac_var in #(
1673       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1674 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1675       esac
1676       case $ac_var in #(
1677       _ | IFS | as_nl) ;; #(
1678       *) $as_unset $ac_var ;;
1679       esac ;;
1680     esac
1681   done
1682   (set) 2>&1 |
1683     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1684     *${as_nl}ac_space=\ *)
1685       sed -n \
1686         "s/'\''/'\''\\\\'\'''\''/g;
1687           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1688       ;; #(
1689     *)
1690       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1691       ;;
1692     esac |
1693     sort
1694 )
1695     echo
1696
1697     cat <<\_ASBOX
1698 ## ----------------- ##
1699 ## Output variables. ##
1700 ## ----------------- ##
1701 _ASBOX
1702     echo
1703     for ac_var in $ac_subst_vars
1704     do
1705       eval ac_val=\$$ac_var
1706       case $ac_val in
1707       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1708       esac
1709       echo "$ac_var='\''$ac_val'\''"
1710     done | sort
1711     echo
1712
1713     if test -n "$ac_subst_files"; then
1714       cat <<\_ASBOX
1715 ## ------------------- ##
1716 ## File substitutions. ##
1717 ## ------------------- ##
1718 _ASBOX
1719       echo
1720       for ac_var in $ac_subst_files
1721       do
1722         eval ac_val=\$$ac_var
1723         case $ac_val in
1724         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1725         esac
1726         echo "$ac_var='\''$ac_val'\''"
1727       done | sort
1728       echo
1729     fi
1730
1731     if test -s confdefs.h; then
1732       cat <<\_ASBOX
1733 ## ----------- ##
1734 ## confdefs.h. ##
1735 ## ----------- ##
1736 _ASBOX
1737       echo
1738       cat confdefs.h
1739       echo
1740     fi
1741     test "$ac_signal" != 0 &&
1742       echo "$as_me: caught signal $ac_signal"
1743     echo "$as_me: exit $exit_status"
1744   } >&5
1745   rm -f core *.core core.conftest.* &&
1746     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1747     exit $exit_status
1748 ' 0
1749 for ac_signal in 1 2 13 15; do
1750   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1751 done
1752 ac_signal=0
1753
1754 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1755 rm -f -r conftest* confdefs.h
1756
1757 # Predefined preprocessor variables.
1758
1759 cat >>confdefs.h <<_ACEOF
1760 #define PACKAGE_NAME "$PACKAGE_NAME"
1761 _ACEOF
1762
1763
1764 cat >>confdefs.h <<_ACEOF
1765 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1766 _ACEOF
1767
1768
1769 cat >>confdefs.h <<_ACEOF
1770 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1771 _ACEOF
1772
1773
1774 cat >>confdefs.h <<_ACEOF
1775 #define PACKAGE_STRING "$PACKAGE_STRING"
1776 _ACEOF
1777
1778
1779 cat >>confdefs.h <<_ACEOF
1780 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1781 _ACEOF
1782
1783
1784 # Let the site file select an alternate cache file if it wants to.
1785 # Prefer explicitly selected file to automatically selected ones.
1786 if test -n "$CONFIG_SITE"; then
1787   set x "$CONFIG_SITE"
1788 elif test "x$prefix" != xNONE; then
1789   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1790 else
1791   set x "$ac_default_prefix/share/config.site" \
1792         "$ac_default_prefix/etc/config.site"
1793 fi
1794 shift
1795 for ac_site_file
1796 do
1797   if test -r "$ac_site_file"; then
1798     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1799 echo "$as_me: loading site script $ac_site_file" >&6;}
1800     sed 's/^/| /' "$ac_site_file" >&5
1801     . "$ac_site_file"
1802   fi
1803 done
1804
1805 if test -r "$cache_file"; then
1806   # Some versions of bash will fail to source /dev/null (special
1807   # files actually), so we avoid doing that.
1808   if test -f "$cache_file"; then
1809     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1810 echo "$as_me: loading cache $cache_file" >&6;}
1811     case $cache_file in
1812       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1813       *)                      . "./$cache_file";;
1814     esac
1815   fi
1816 else
1817   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1818 echo "$as_me: creating cache $cache_file" >&6;}
1819   >$cache_file
1820 fi
1821
1822 # Check that the precious variables saved in the cache have kept the same
1823 # value.
1824 ac_cache_corrupted=false
1825 for ac_var in $ac_precious_vars; do
1826   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1827   eval ac_new_set=\$ac_env_${ac_var}_set
1828   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1829   eval ac_new_val=\$ac_env_${ac_var}_value
1830   case $ac_old_set,$ac_new_set in
1831     set,)
1832       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1833 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1834       ac_cache_corrupted=: ;;
1835     ,set)
1836       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1837 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1838       ac_cache_corrupted=: ;;
1839     ,);;
1840     *)
1841       if test "x$ac_old_val" != "x$ac_new_val"; then
1842         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1843 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1844         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1845 echo "$as_me:   former value:  $ac_old_val" >&2;}
1846         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1847 echo "$as_me:   current value: $ac_new_val" >&2;}
1848         ac_cache_corrupted=:
1849       fi;;
1850   esac
1851   # Pass precious variables to config.status.
1852   if test "$ac_new_set" = set; then
1853     case $ac_new_val in
1854     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1855     *) ac_arg=$ac_var=$ac_new_val ;;
1856     esac
1857     case " $ac_configure_args " in
1858       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1859       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1860     esac
1861   fi
1862 done
1863 if $ac_cache_corrupted; then
1864   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1865 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1866   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1867 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1868    { (exit 1); exit 1; }; }
1869 fi
1870
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 ac_ext=c
1896 ac_cpp='$CPP $CPPFLAGS'
1897 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1898 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1899 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1900
1901
1902
1903 cat >>confdefs.h <<\_ACEOF
1904 #define LLVM_VERSION_MAJOR 3
1905 _ACEOF
1906
1907
1908 cat >>confdefs.h <<\_ACEOF
1909 #define LLVM_VERSION_MINOR 2
1910 _ACEOF
1911
1912
1913 LLVM_COPYRIGHT="Copyright (c) 2003-2012 University of Illinois at Urbana-Champaign."
1914
1915
1916
1917
1918
1919
1920
1921 ac_aux_dir=
1922 for ac_dir in autoconf "$srcdir"/autoconf; do
1923   if test -f "$ac_dir/install-sh"; then
1924     ac_aux_dir=$ac_dir
1925     ac_install_sh="$ac_aux_dir/install-sh -c"
1926     break
1927   elif test -f "$ac_dir/install.sh"; then
1928     ac_aux_dir=$ac_dir
1929     ac_install_sh="$ac_aux_dir/install.sh -c"
1930     break
1931   elif test -f "$ac_dir/shtool"; then
1932     ac_aux_dir=$ac_dir
1933     ac_install_sh="$ac_aux_dir/shtool install -c"
1934     break
1935   fi
1936 done
1937 if test -z "$ac_aux_dir"; then
1938   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
1939 echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
1940    { (exit 1); exit 1; }; }
1941 fi
1942
1943 # These three variables are undocumented and unsupported,
1944 # and are intended to be withdrawn in a future Autoconf release.
1945 # They can cause serious problems if a builder's source tree is in a directory
1946 # whose full name contains unusual characters.
1947 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
1948 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
1949 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
1950
1951
1952
1953 if test ${srcdir} != "." ; then
1954   if test -f ${srcdir}/include/llvm/Config/config.h ; then
1955     { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
1956 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1957    { (exit 1); exit 1; }; }
1958   fi
1959 fi
1960
1961 ac_ext=c
1962 ac_cpp='$CPP $CPPFLAGS'
1963 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1964 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1965 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1966 if test -n "$ac_tool_prefix"; then
1967   for ac_prog in clang llvm-gcc gcc
1968   do
1969     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1970 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1971 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1972 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1973 if test "${ac_cv_prog_CC+set}" = set; then
1974   echo $ECHO_N "(cached) $ECHO_C" >&6
1975 else
1976   if test -n "$CC"; then
1977   ac_cv_prog_CC="$CC" # Let the user override the test.
1978 else
1979 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1980 for as_dir in $PATH
1981 do
1982   IFS=$as_save_IFS
1983   test -z "$as_dir" && as_dir=.
1984   for ac_exec_ext in '' $ac_executable_extensions; do
1985   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
1986     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1987     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1988     break 2
1989   fi
1990 done
1991 done
1992 IFS=$as_save_IFS
1993
1994 fi
1995 fi
1996 CC=$ac_cv_prog_CC
1997 if test -n "$CC"; then
1998   { echo "$as_me:$LINENO: result: $CC" >&5
1999 echo "${ECHO_T}$CC" >&6; }
2000 else
2001   { echo "$as_me:$LINENO: result: no" >&5
2002 echo "${ECHO_T}no" >&6; }
2003 fi
2004
2005
2006     test -n "$CC" && break
2007   done
2008 fi
2009 if test -z "$CC"; then
2010   ac_ct_CC=$CC
2011   for ac_prog in clang llvm-gcc gcc
2012 do
2013   # Extract the first word of "$ac_prog", so it can be a program name with args.
2014 set dummy $ac_prog; ac_word=$2
2015 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2016 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2017 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2018   echo $ECHO_N "(cached) $ECHO_C" >&6
2019 else
2020   if test -n "$ac_ct_CC"; then
2021   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2022 else
2023 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2024 for as_dir in $PATH
2025 do
2026   IFS=$as_save_IFS
2027   test -z "$as_dir" && as_dir=.
2028   for ac_exec_ext in '' $ac_executable_extensions; do
2029   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2030     ac_cv_prog_ac_ct_CC="$ac_prog"
2031     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2032     break 2
2033   fi
2034 done
2035 done
2036 IFS=$as_save_IFS
2037
2038 fi
2039 fi
2040 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2041 if test -n "$ac_ct_CC"; then
2042   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2043 echo "${ECHO_T}$ac_ct_CC" >&6; }
2044 else
2045   { echo "$as_me:$LINENO: result: no" >&5
2046 echo "${ECHO_T}no" >&6; }
2047 fi
2048
2049
2050   test -n "$ac_ct_CC" && break
2051 done
2052
2053   if test "x$ac_ct_CC" = x; then
2054     CC=""
2055   else
2056     case $cross_compiling:$ac_tool_warned in
2057 yes:)
2058 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2059 whose name does not start with the host triplet.  If you think this
2060 configuration is useful to you, please write to autoconf@gnu.org." >&5
2061 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2062 whose name does not start with the host triplet.  If you think this
2063 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2064 ac_tool_warned=yes ;;
2065 esac
2066     CC=$ac_ct_CC
2067   fi
2068 fi
2069
2070
2071 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2072 See \`config.log' for more details." >&5
2073 echo "$as_me: error: no acceptable C compiler found in \$PATH
2074 See \`config.log' for more details." >&2;}
2075    { (exit 1); exit 1; }; }
2076
2077 # Provide some information about the compiler.
2078 echo "$as_me:$LINENO: checking for C compiler version" >&5
2079 ac_compiler=`set X $ac_compile; echo $2`
2080 { (ac_try="$ac_compiler --version >&5"
2081 case "(($ac_try" in
2082   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2083   *) ac_try_echo=$ac_try;;
2084 esac
2085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2086   (eval "$ac_compiler --version >&5") 2>&5
2087   ac_status=$?
2088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2089   (exit $ac_status); }
2090 { (ac_try="$ac_compiler -v >&5"
2091 case "(($ac_try" in
2092   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2093   *) ac_try_echo=$ac_try;;
2094 esac
2095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2096   (eval "$ac_compiler -v >&5") 2>&5
2097   ac_status=$?
2098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2099   (exit $ac_status); }
2100 { (ac_try="$ac_compiler -V >&5"
2101 case "(($ac_try" in
2102   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2103   *) ac_try_echo=$ac_try;;
2104 esac
2105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2106   (eval "$ac_compiler -V >&5") 2>&5
2107   ac_status=$?
2108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2109   (exit $ac_status); }
2110
2111 cat >conftest.$ac_ext <<_ACEOF
2112 /* confdefs.h.  */
2113 _ACEOF
2114 cat confdefs.h >>conftest.$ac_ext
2115 cat >>conftest.$ac_ext <<_ACEOF
2116 /* end confdefs.h.  */
2117
2118 int
2119 main ()
2120 {
2121
2122   ;
2123   return 0;
2124 }
2125 _ACEOF
2126 ac_clean_files_save=$ac_clean_files
2127 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2128 # Try to create an executable without -o first, disregard a.out.
2129 # It will help us diagnose broken compilers, and finding out an intuition
2130 # of exeext.
2131 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2132 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2133 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2134 #
2135 # List of possible output files, starting from the most likely.
2136 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2137 # only as a last resort.  b.out is created by i960 compilers.
2138 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2139 #
2140 # The IRIX 6 linker writes into existing files which may not be
2141 # executable, retaining their permissions.  Remove them first so a
2142 # subsequent execution test works.
2143 ac_rmfiles=
2144 for ac_file in $ac_files
2145 do
2146   case $ac_file in
2147     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2148     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2149   esac
2150 done
2151 rm -f $ac_rmfiles
2152
2153 if { (ac_try="$ac_link_default"
2154 case "(($ac_try" in
2155   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2156   *) ac_try_echo=$ac_try;;
2157 esac
2158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2159   (eval "$ac_link_default") 2>&5
2160   ac_status=$?
2161   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2162   (exit $ac_status); }; then
2163   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2164 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2165 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2166 # so that the user can short-circuit this test for compilers unknown to
2167 # Autoconf.
2168 for ac_file in $ac_files
2169 do
2170   test -f "$ac_file" || continue
2171   case $ac_file in
2172     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2173         ;;
2174     [ab].out )
2175         # We found the default executable, but exeext='' is most
2176         # certainly right.
2177         break;;
2178     *.* )
2179         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2180         then :; else
2181            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2182         fi
2183         # We set ac_cv_exeext here because the later test for it is not
2184         # safe: cross compilers may not add the suffix if given an `-o'
2185         # argument, so we may need to know it at that point already.
2186         # Even if this section looks crufty: it has the advantage of
2187         # actually working.
2188         break;;
2189     * )
2190         break;;
2191   esac
2192 done
2193 test "$ac_cv_exeext" = no && ac_cv_exeext=
2194
2195 else
2196   echo "$as_me: failed program was:" >&5
2197 sed 's/^/| /' conftest.$ac_ext >&5
2198
2199 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2200 See \`config.log' for more details." >&5
2201 echo "$as_me: error: C compiler cannot create executables
2202 See \`config.log' for more details." >&2;}
2203    { (exit 77); exit 77; }; }
2204 fi
2205
2206 ac_exeext=$ac_cv_exeext
2207 { echo "$as_me:$LINENO: result: $ac_file" >&5
2208 echo "${ECHO_T}$ac_file" >&6; }
2209
2210 # Check that the compiler produces executables we can run.  If not, either
2211 # the compiler is broken, or we cross compile.
2212 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2213 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2214 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2215 # If not cross compiling, check that we can run a simple program.
2216 if test "$cross_compiling" != yes; then
2217   if { ac_try='./$ac_file'
2218   { (case "(($ac_try" in
2219   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2220   *) ac_try_echo=$ac_try;;
2221 esac
2222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2223   (eval "$ac_try") 2>&5
2224   ac_status=$?
2225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2226   (exit $ac_status); }; }; then
2227     cross_compiling=no
2228   else
2229     if test "$cross_compiling" = maybe; then
2230         cross_compiling=yes
2231     else
2232         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2233 If you meant to cross compile, use \`--host'.
2234 See \`config.log' for more details." >&5
2235 echo "$as_me: error: cannot run C compiled programs.
2236 If you meant to cross compile, use \`--host'.
2237 See \`config.log' for more details." >&2;}
2238    { (exit 1); exit 1; }; }
2239     fi
2240   fi
2241 fi
2242 { echo "$as_me:$LINENO: result: yes" >&5
2243 echo "${ECHO_T}yes" >&6; }
2244
2245 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2246 ac_clean_files=$ac_clean_files_save
2247 # Check that the compiler produces executables we can run.  If not, either
2248 # the compiler is broken, or we cross compile.
2249 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2250 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2251 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2252 echo "${ECHO_T}$cross_compiling" >&6; }
2253
2254 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2255 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2256 if { (ac_try="$ac_link"
2257 case "(($ac_try" in
2258   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2259   *) ac_try_echo=$ac_try;;
2260 esac
2261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2262   (eval "$ac_link") 2>&5
2263   ac_status=$?
2264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2265   (exit $ac_status); }; then
2266   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2267 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2268 # work properly (i.e., refer to `conftest.exe'), while it won't with
2269 # `rm'.
2270 for ac_file in conftest.exe conftest conftest.*; do
2271   test -f "$ac_file" || continue
2272   case $ac_file in
2273     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2274     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2275           break;;
2276     * ) break;;
2277   esac
2278 done
2279 else
2280   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2281 See \`config.log' for more details." >&5
2282 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2283 See \`config.log' for more details." >&2;}
2284    { (exit 1); exit 1; }; }
2285 fi
2286
2287 rm -f conftest$ac_cv_exeext
2288 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2289 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2290
2291 rm -f conftest.$ac_ext
2292 EXEEXT=$ac_cv_exeext
2293 ac_exeext=$EXEEXT
2294 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2295 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2296 if test "${ac_cv_objext+set}" = set; then
2297   echo $ECHO_N "(cached) $ECHO_C" >&6
2298 else
2299   cat >conftest.$ac_ext <<_ACEOF
2300 /* confdefs.h.  */
2301 _ACEOF
2302 cat confdefs.h >>conftest.$ac_ext
2303 cat >>conftest.$ac_ext <<_ACEOF
2304 /* end confdefs.h.  */
2305
2306 int
2307 main ()
2308 {
2309
2310   ;
2311   return 0;
2312 }
2313 _ACEOF
2314 rm -f conftest.o conftest.obj
2315 if { (ac_try="$ac_compile"
2316 case "(($ac_try" in
2317   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2318   *) ac_try_echo=$ac_try;;
2319 esac
2320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2321   (eval "$ac_compile") 2>&5
2322   ac_status=$?
2323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2324   (exit $ac_status); }; then
2325   for ac_file in conftest.o conftest.obj conftest.*; do
2326   test -f "$ac_file" || continue;
2327   case $ac_file in
2328     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2329     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2330        break;;
2331   esac
2332 done
2333 else
2334   echo "$as_me: failed program was:" >&5
2335 sed 's/^/| /' conftest.$ac_ext >&5
2336
2337 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2338 See \`config.log' for more details." >&5
2339 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2340 See \`config.log' for more details." >&2;}
2341    { (exit 1); exit 1; }; }
2342 fi
2343
2344 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2345 fi
2346 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2347 echo "${ECHO_T}$ac_cv_objext" >&6; }
2348 OBJEXT=$ac_cv_objext
2349 ac_objext=$OBJEXT
2350 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2351 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2352 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2353   echo $ECHO_N "(cached) $ECHO_C" >&6
2354 else
2355   cat >conftest.$ac_ext <<_ACEOF
2356 /* confdefs.h.  */
2357 _ACEOF
2358 cat confdefs.h >>conftest.$ac_ext
2359 cat >>conftest.$ac_ext <<_ACEOF
2360 /* end confdefs.h.  */
2361
2362 int
2363 main ()
2364 {
2365 #ifndef __GNUC__
2366        choke me
2367 #endif
2368
2369   ;
2370   return 0;
2371 }
2372 _ACEOF
2373 rm -f conftest.$ac_objext
2374 if { (ac_try="$ac_compile"
2375 case "(($ac_try" in
2376   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2377   *) ac_try_echo=$ac_try;;
2378 esac
2379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2380   (eval "$ac_compile") 2>conftest.er1
2381   ac_status=$?
2382   grep -v '^ *+' conftest.er1 >conftest.err
2383   rm -f conftest.er1
2384   cat conftest.err >&5
2385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2386   (exit $ac_status); } &&
2387          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2388   { (case "(($ac_try" in
2389   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2390   *) ac_try_echo=$ac_try;;
2391 esac
2392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2393   (eval "$ac_try") 2>&5
2394   ac_status=$?
2395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2396   (exit $ac_status); }; } &&
2397          { ac_try='test -s conftest.$ac_objext'
2398   { (case "(($ac_try" in
2399   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2400   *) ac_try_echo=$ac_try;;
2401 esac
2402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2403   (eval "$ac_try") 2>&5
2404   ac_status=$?
2405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2406   (exit $ac_status); }; }; then
2407   ac_compiler_gnu=yes
2408 else
2409   echo "$as_me: failed program was:" >&5
2410 sed 's/^/| /' conftest.$ac_ext >&5
2411
2412         ac_compiler_gnu=no
2413 fi
2414
2415 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2416 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2417
2418 fi
2419 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2420 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2421 GCC=`test $ac_compiler_gnu = yes && echo yes`
2422 ac_test_CFLAGS=${CFLAGS+set}
2423 ac_save_CFLAGS=$CFLAGS
2424 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2425 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2426 if test "${ac_cv_prog_cc_g+set}" = set; then
2427   echo $ECHO_N "(cached) $ECHO_C" >&6
2428 else
2429   ac_save_c_werror_flag=$ac_c_werror_flag
2430    ac_c_werror_flag=yes
2431    ac_cv_prog_cc_g=no
2432    CFLAGS="-g"
2433    cat >conftest.$ac_ext <<_ACEOF
2434 /* confdefs.h.  */
2435 _ACEOF
2436 cat confdefs.h >>conftest.$ac_ext
2437 cat >>conftest.$ac_ext <<_ACEOF
2438 /* end confdefs.h.  */
2439
2440 int
2441 main ()
2442 {
2443
2444   ;
2445   return 0;
2446 }
2447 _ACEOF
2448 rm -f conftest.$ac_objext
2449 if { (ac_try="$ac_compile"
2450 case "(($ac_try" in
2451   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2452   *) ac_try_echo=$ac_try;;
2453 esac
2454 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2455   (eval "$ac_compile") 2>conftest.er1
2456   ac_status=$?
2457   grep -v '^ *+' conftest.er1 >conftest.err
2458   rm -f conftest.er1
2459   cat conftest.err >&5
2460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2461   (exit $ac_status); } &&
2462          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2463   { (case "(($ac_try" in
2464   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2465   *) ac_try_echo=$ac_try;;
2466 esac
2467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2468   (eval "$ac_try") 2>&5
2469   ac_status=$?
2470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2471   (exit $ac_status); }; } &&
2472          { ac_try='test -s conftest.$ac_objext'
2473   { (case "(($ac_try" in
2474   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2475   *) ac_try_echo=$ac_try;;
2476 esac
2477 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2478   (eval "$ac_try") 2>&5
2479   ac_status=$?
2480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2481   (exit $ac_status); }; }; then
2482   ac_cv_prog_cc_g=yes
2483 else
2484   echo "$as_me: failed program was:" >&5
2485 sed 's/^/| /' conftest.$ac_ext >&5
2486
2487         CFLAGS=""
2488       cat >conftest.$ac_ext <<_ACEOF
2489 /* confdefs.h.  */
2490 _ACEOF
2491 cat confdefs.h >>conftest.$ac_ext
2492 cat >>conftest.$ac_ext <<_ACEOF
2493 /* end confdefs.h.  */
2494
2495 int
2496 main ()
2497 {
2498
2499   ;
2500   return 0;
2501 }
2502 _ACEOF
2503 rm -f conftest.$ac_objext
2504 if { (ac_try="$ac_compile"
2505 case "(($ac_try" in
2506   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2507   *) ac_try_echo=$ac_try;;
2508 esac
2509 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2510   (eval "$ac_compile") 2>conftest.er1
2511   ac_status=$?
2512   grep -v '^ *+' conftest.er1 >conftest.err
2513   rm -f conftest.er1
2514   cat conftest.err >&5
2515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2516   (exit $ac_status); } &&
2517          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2518   { (case "(($ac_try" in
2519   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2520   *) ac_try_echo=$ac_try;;
2521 esac
2522 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2523   (eval "$ac_try") 2>&5
2524   ac_status=$?
2525   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2526   (exit $ac_status); }; } &&
2527          { ac_try='test -s conftest.$ac_objext'
2528   { (case "(($ac_try" in
2529   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2530   *) ac_try_echo=$ac_try;;
2531 esac
2532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2533   (eval "$ac_try") 2>&5
2534   ac_status=$?
2535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2536   (exit $ac_status); }; }; then
2537   :
2538 else
2539   echo "$as_me: failed program was:" >&5
2540 sed 's/^/| /' conftest.$ac_ext >&5
2541
2542         ac_c_werror_flag=$ac_save_c_werror_flag
2543          CFLAGS="-g"
2544          cat >conftest.$ac_ext <<_ACEOF
2545 /* confdefs.h.  */
2546 _ACEOF
2547 cat confdefs.h >>conftest.$ac_ext
2548 cat >>conftest.$ac_ext <<_ACEOF
2549 /* end confdefs.h.  */
2550
2551 int
2552 main ()
2553 {
2554
2555   ;
2556   return 0;
2557 }
2558 _ACEOF
2559 rm -f conftest.$ac_objext
2560 if { (ac_try="$ac_compile"
2561 case "(($ac_try" in
2562   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2563   *) ac_try_echo=$ac_try;;
2564 esac
2565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2566   (eval "$ac_compile") 2>conftest.er1
2567   ac_status=$?
2568   grep -v '^ *+' conftest.er1 >conftest.err
2569   rm -f conftest.er1
2570   cat conftest.err >&5
2571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2572   (exit $ac_status); } &&
2573          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2574   { (case "(($ac_try" in
2575   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2576   *) ac_try_echo=$ac_try;;
2577 esac
2578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2579   (eval "$ac_try") 2>&5
2580   ac_status=$?
2581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2582   (exit $ac_status); }; } &&
2583          { ac_try='test -s conftest.$ac_objext'
2584   { (case "(($ac_try" in
2585   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2586   *) ac_try_echo=$ac_try;;
2587 esac
2588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2589   (eval "$ac_try") 2>&5
2590   ac_status=$?
2591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2592   (exit $ac_status); }; }; then
2593   ac_cv_prog_cc_g=yes
2594 else
2595   echo "$as_me: failed program was:" >&5
2596 sed 's/^/| /' conftest.$ac_ext >&5
2597
2598
2599 fi
2600
2601 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2602 fi
2603
2604 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2605 fi
2606
2607 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2608    ac_c_werror_flag=$ac_save_c_werror_flag
2609 fi
2610 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2611 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2612 if test "$ac_test_CFLAGS" = set; then
2613   CFLAGS=$ac_save_CFLAGS
2614 elif test $ac_cv_prog_cc_g = yes; then
2615   if test "$GCC" = yes; then
2616     CFLAGS="-g -O2"
2617   else
2618     CFLAGS="-g"
2619   fi
2620 else
2621   if test "$GCC" = yes; then
2622     CFLAGS="-O2"
2623   else
2624     CFLAGS=
2625   fi
2626 fi
2627 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2628 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2629 if test "${ac_cv_prog_cc_c89+set}" = set; then
2630   echo $ECHO_N "(cached) $ECHO_C" >&6
2631 else
2632   ac_cv_prog_cc_c89=no
2633 ac_save_CC=$CC
2634 cat >conftest.$ac_ext <<_ACEOF
2635 /* confdefs.h.  */
2636 _ACEOF
2637 cat confdefs.h >>conftest.$ac_ext
2638 cat >>conftest.$ac_ext <<_ACEOF
2639 /* end confdefs.h.  */
2640 #include <stdarg.h>
2641 #include <stdio.h>
2642 #include <sys/types.h>
2643 #include <sys/stat.h>
2644 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2645 struct buf { int x; };
2646 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2647 static char *e (p, i)
2648      char **p;
2649      int i;
2650 {
2651   return p[i];
2652 }
2653 static char *f (char * (*g) (char **, int), char **p, ...)
2654 {
2655   char *s;
2656   va_list v;
2657   va_start (v,p);
2658   s = g (p, va_arg (v,int));
2659   va_end (v);
2660   return s;
2661 }
2662
2663 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2664    function prototypes and stuff, but not '\xHH' hex character constants.
2665    These don't provoke an error unfortunately, instead are silently treated
2666    as 'x'.  The following induces an error, until -std is added to get
2667    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2668    array size at least.  It's necessary to write '\x00'==0 to get something
2669    that's true only with -std.  */
2670 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2671
2672 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2673    inside strings and character constants.  */
2674 #define FOO(x) 'x'
2675 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2676
2677 int test (int i, double x);
2678 struct s1 {int (*f) (int a);};
2679 struct s2 {int (*f) (double a);};
2680 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2681 int argc;
2682 char **argv;
2683 int
2684 main ()
2685 {
2686 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2687   ;
2688   return 0;
2689 }
2690 _ACEOF
2691 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2692         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2693 do
2694   CC="$ac_save_CC $ac_arg"
2695   rm -f conftest.$ac_objext
2696 if { (ac_try="$ac_compile"
2697 case "(($ac_try" in
2698   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2699   *) ac_try_echo=$ac_try;;
2700 esac
2701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2702   (eval "$ac_compile") 2>conftest.er1
2703   ac_status=$?
2704   grep -v '^ *+' conftest.er1 >conftest.err
2705   rm -f conftest.er1
2706   cat conftest.err >&5
2707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2708   (exit $ac_status); } &&
2709          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2710   { (case "(($ac_try" in
2711   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2712   *) ac_try_echo=$ac_try;;
2713 esac
2714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2715   (eval "$ac_try") 2>&5
2716   ac_status=$?
2717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2718   (exit $ac_status); }; } &&
2719          { ac_try='test -s conftest.$ac_objext'
2720   { (case "(($ac_try" in
2721   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2722   *) ac_try_echo=$ac_try;;
2723 esac
2724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2725   (eval "$ac_try") 2>&5
2726   ac_status=$?
2727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2728   (exit $ac_status); }; }; then
2729   ac_cv_prog_cc_c89=$ac_arg
2730 else
2731   echo "$as_me: failed program was:" >&5
2732 sed 's/^/| /' conftest.$ac_ext >&5
2733
2734
2735 fi
2736
2737 rm -f core conftest.err conftest.$ac_objext
2738   test "x$ac_cv_prog_cc_c89" != "xno" && break
2739 done
2740 rm -f conftest.$ac_ext
2741 CC=$ac_save_CC
2742
2743 fi
2744 # AC_CACHE_VAL
2745 case "x$ac_cv_prog_cc_c89" in
2746   x)
2747     { echo "$as_me:$LINENO: result: none needed" >&5
2748 echo "${ECHO_T}none needed" >&6; } ;;
2749   xno)
2750     { echo "$as_me:$LINENO: result: unsupported" >&5
2751 echo "${ECHO_T}unsupported" >&6; } ;;
2752   *)
2753     CC="$CC $ac_cv_prog_cc_c89"
2754     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2755 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2756 esac
2757
2758
2759 ac_ext=c
2760 ac_cpp='$CPP $CPPFLAGS'
2761 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2762 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2763 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2764
2765 ac_ext=cpp
2766 ac_cpp='$CXXCPP $CPPFLAGS'
2767 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2768 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2769 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2770 if test -z "$CXX"; then
2771   if test -n "$CCC"; then
2772     CXX=$CCC
2773   else
2774     if test -n "$ac_tool_prefix"; then
2775   for ac_prog in clang++ llvm-g++ g++
2776   do
2777     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2778 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2779 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2780 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2781 if test "${ac_cv_prog_CXX+set}" = set; then
2782   echo $ECHO_N "(cached) $ECHO_C" >&6
2783 else
2784   if test -n "$CXX"; then
2785   ac_cv_prog_CXX="$CXX" # Let the user override the test.
2786 else
2787 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2788 for as_dir in $PATH
2789 do
2790   IFS=$as_save_IFS
2791   test -z "$as_dir" && as_dir=.
2792   for ac_exec_ext in '' $ac_executable_extensions; do
2793   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2794     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2795     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2796     break 2
2797   fi
2798 done
2799 done
2800 IFS=$as_save_IFS
2801
2802 fi
2803 fi
2804 CXX=$ac_cv_prog_CXX
2805 if test -n "$CXX"; then
2806   { echo "$as_me:$LINENO: result: $CXX" >&5
2807 echo "${ECHO_T}$CXX" >&6; }
2808 else
2809   { echo "$as_me:$LINENO: result: no" >&5
2810 echo "${ECHO_T}no" >&6; }
2811 fi
2812
2813
2814     test -n "$CXX" && break
2815   done
2816 fi
2817 if test -z "$CXX"; then
2818   ac_ct_CXX=$CXX
2819   for ac_prog in clang++ llvm-g++ g++
2820 do
2821   # Extract the first word of "$ac_prog", so it can be a program name with args.
2822 set dummy $ac_prog; ac_word=$2
2823 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2824 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2825 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2826   echo $ECHO_N "(cached) $ECHO_C" >&6
2827 else
2828   if test -n "$ac_ct_CXX"; then
2829   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2830 else
2831 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2832 for as_dir in $PATH
2833 do
2834   IFS=$as_save_IFS
2835   test -z "$as_dir" && as_dir=.
2836   for ac_exec_ext in '' $ac_executable_extensions; do
2837   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2838     ac_cv_prog_ac_ct_CXX="$ac_prog"
2839     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2840     break 2
2841   fi
2842 done
2843 done
2844 IFS=$as_save_IFS
2845
2846 fi
2847 fi
2848 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2849 if test -n "$ac_ct_CXX"; then
2850   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2851 echo "${ECHO_T}$ac_ct_CXX" >&6; }
2852 else
2853   { echo "$as_me:$LINENO: result: no" >&5
2854 echo "${ECHO_T}no" >&6; }
2855 fi
2856
2857
2858   test -n "$ac_ct_CXX" && break
2859 done
2860
2861   if test "x$ac_ct_CXX" = x; then
2862     CXX="g++"
2863   else
2864     case $cross_compiling:$ac_tool_warned in
2865 yes:)
2866 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2867 whose name does not start with the host triplet.  If you think this
2868 configuration is useful to you, please write to autoconf@gnu.org." >&5
2869 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2870 whose name does not start with the host triplet.  If you think this
2871 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2872 ac_tool_warned=yes ;;
2873 esac
2874     CXX=$ac_ct_CXX
2875   fi
2876 fi
2877
2878   fi
2879 fi
2880 # Provide some information about the compiler.
2881 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
2882 ac_compiler=`set X $ac_compile; echo $2`
2883 { (ac_try="$ac_compiler --version >&5"
2884 case "(($ac_try" in
2885   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2886   *) ac_try_echo=$ac_try;;
2887 esac
2888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2889   (eval "$ac_compiler --version >&5") 2>&5
2890   ac_status=$?
2891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2892   (exit $ac_status); }
2893 { (ac_try="$ac_compiler -v >&5"
2894 case "(($ac_try" in
2895   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2896   *) ac_try_echo=$ac_try;;
2897 esac
2898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2899   (eval "$ac_compiler -v >&5") 2>&5
2900   ac_status=$?
2901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2902   (exit $ac_status); }
2903 { (ac_try="$ac_compiler -V >&5"
2904 case "(($ac_try" in
2905   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2906   *) ac_try_echo=$ac_try;;
2907 esac
2908 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2909   (eval "$ac_compiler -V >&5") 2>&5
2910   ac_status=$?
2911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2912   (exit $ac_status); }
2913
2914 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2915 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
2916 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2917   echo $ECHO_N "(cached) $ECHO_C" >&6
2918 else
2919   cat >conftest.$ac_ext <<_ACEOF
2920 /* confdefs.h.  */
2921 _ACEOF
2922 cat confdefs.h >>conftest.$ac_ext
2923 cat >>conftest.$ac_ext <<_ACEOF
2924 /* end confdefs.h.  */
2925
2926 int
2927 main ()
2928 {
2929 #ifndef __GNUC__
2930        choke me
2931 #endif
2932
2933   ;
2934   return 0;
2935 }
2936 _ACEOF
2937 rm -f conftest.$ac_objext
2938 if { (ac_try="$ac_compile"
2939 case "(($ac_try" in
2940   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2941   *) ac_try_echo=$ac_try;;
2942 esac
2943 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2944   (eval "$ac_compile") 2>conftest.er1
2945   ac_status=$?
2946   grep -v '^ *+' conftest.er1 >conftest.err
2947   rm -f conftest.er1
2948   cat conftest.err >&5
2949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2950   (exit $ac_status); } &&
2951          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2952   { (case "(($ac_try" in
2953   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2954   *) ac_try_echo=$ac_try;;
2955 esac
2956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2957   (eval "$ac_try") 2>&5
2958   ac_status=$?
2959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2960   (exit $ac_status); }; } &&
2961          { ac_try='test -s conftest.$ac_objext'
2962   { (case "(($ac_try" in
2963   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2964   *) ac_try_echo=$ac_try;;
2965 esac
2966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2967   (eval "$ac_try") 2>&5
2968   ac_status=$?
2969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2970   (exit $ac_status); }; }; then
2971   ac_compiler_gnu=yes
2972 else
2973   echo "$as_me: failed program was:" >&5
2974 sed 's/^/| /' conftest.$ac_ext >&5
2975
2976         ac_compiler_gnu=no
2977 fi
2978
2979 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2980 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2981
2982 fi
2983 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2984 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
2985 GXX=`test $ac_compiler_gnu = yes && echo yes`
2986 ac_test_CXXFLAGS=${CXXFLAGS+set}
2987 ac_save_CXXFLAGS=$CXXFLAGS
2988 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2989 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
2990 if test "${ac_cv_prog_cxx_g+set}" = set; then
2991   echo $ECHO_N "(cached) $ECHO_C" >&6
2992 else
2993   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
2994    ac_cxx_werror_flag=yes
2995    ac_cv_prog_cxx_g=no
2996    CXXFLAGS="-g"
2997    cat >conftest.$ac_ext <<_ACEOF
2998 /* confdefs.h.  */
2999 _ACEOF
3000 cat confdefs.h >>conftest.$ac_ext
3001 cat >>conftest.$ac_ext <<_ACEOF
3002 /* end confdefs.h.  */
3003
3004 int
3005 main ()
3006 {
3007
3008   ;
3009   return 0;
3010 }
3011 _ACEOF
3012 rm -f conftest.$ac_objext
3013 if { (ac_try="$ac_compile"
3014 case "(($ac_try" in
3015   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3016   *) ac_try_echo=$ac_try;;
3017 esac
3018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3019   (eval "$ac_compile") 2>conftest.er1
3020   ac_status=$?
3021   grep -v '^ *+' conftest.er1 >conftest.err
3022   rm -f conftest.er1
3023   cat conftest.err >&5
3024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3025   (exit $ac_status); } &&
3026          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3027   { (case "(($ac_try" in
3028   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3029   *) ac_try_echo=$ac_try;;
3030 esac
3031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3032   (eval "$ac_try") 2>&5
3033   ac_status=$?
3034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3035   (exit $ac_status); }; } &&
3036          { ac_try='test -s conftest.$ac_objext'
3037   { (case "(($ac_try" in
3038   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3039   *) ac_try_echo=$ac_try;;
3040 esac
3041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3042   (eval "$ac_try") 2>&5
3043   ac_status=$?
3044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3045   (exit $ac_status); }; }; then
3046   ac_cv_prog_cxx_g=yes
3047 else
3048   echo "$as_me: failed program was:" >&5
3049 sed 's/^/| /' conftest.$ac_ext >&5
3050
3051         CXXFLAGS=""
3052       cat >conftest.$ac_ext <<_ACEOF
3053 /* confdefs.h.  */
3054 _ACEOF
3055 cat confdefs.h >>conftest.$ac_ext
3056 cat >>conftest.$ac_ext <<_ACEOF
3057 /* end confdefs.h.  */
3058
3059 int
3060 main ()
3061 {
3062
3063   ;
3064   return 0;
3065 }
3066 _ACEOF
3067 rm -f conftest.$ac_objext
3068 if { (ac_try="$ac_compile"
3069 case "(($ac_try" in
3070   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3071   *) ac_try_echo=$ac_try;;
3072 esac
3073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3074   (eval "$ac_compile") 2>conftest.er1
3075   ac_status=$?
3076   grep -v '^ *+' conftest.er1 >conftest.err
3077   rm -f conftest.er1
3078   cat conftest.err >&5
3079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3080   (exit $ac_status); } &&
3081          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3082   { (case "(($ac_try" in
3083   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3084   *) ac_try_echo=$ac_try;;
3085 esac
3086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3087   (eval "$ac_try") 2>&5
3088   ac_status=$?
3089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3090   (exit $ac_status); }; } &&
3091          { ac_try='test -s conftest.$ac_objext'
3092   { (case "(($ac_try" in
3093   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3094   *) ac_try_echo=$ac_try;;
3095 esac
3096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3097   (eval "$ac_try") 2>&5
3098   ac_status=$?
3099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3100   (exit $ac_status); }; }; then
3101   :
3102 else
3103   echo "$as_me: failed program was:" >&5
3104 sed 's/^/| /' conftest.$ac_ext >&5
3105
3106         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3107          CXXFLAGS="-g"
3108          cat >conftest.$ac_ext <<_ACEOF
3109 /* confdefs.h.  */
3110 _ACEOF
3111 cat confdefs.h >>conftest.$ac_ext
3112 cat >>conftest.$ac_ext <<_ACEOF
3113 /* end confdefs.h.  */
3114
3115 int
3116 main ()
3117 {
3118
3119   ;
3120   return 0;
3121 }
3122 _ACEOF
3123 rm -f conftest.$ac_objext
3124 if { (ac_try="$ac_compile"
3125 case "(($ac_try" in
3126   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3127   *) ac_try_echo=$ac_try;;
3128 esac
3129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3130   (eval "$ac_compile") 2>conftest.er1
3131   ac_status=$?
3132   grep -v '^ *+' conftest.er1 >conftest.err
3133   rm -f conftest.er1
3134   cat conftest.err >&5
3135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3136   (exit $ac_status); } &&
3137          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3138   { (case "(($ac_try" in
3139   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3140   *) ac_try_echo=$ac_try;;
3141 esac
3142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3143   (eval "$ac_try") 2>&5
3144   ac_status=$?
3145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3146   (exit $ac_status); }; } &&
3147          { ac_try='test -s conftest.$ac_objext'
3148   { (case "(($ac_try" in
3149   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3150   *) ac_try_echo=$ac_try;;
3151 esac
3152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3153   (eval "$ac_try") 2>&5
3154   ac_status=$?
3155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3156   (exit $ac_status); }; }; then
3157   ac_cv_prog_cxx_g=yes
3158 else
3159   echo "$as_me: failed program was:" >&5
3160 sed 's/^/| /' conftest.$ac_ext >&5
3161
3162
3163 fi
3164
3165 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3166 fi
3167
3168 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3169 fi
3170
3171 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3172    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3173 fi
3174 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3175 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3176 if test "$ac_test_CXXFLAGS" = set; then
3177   CXXFLAGS=$ac_save_CXXFLAGS
3178 elif test $ac_cv_prog_cxx_g = yes; then
3179   if test "$GXX" = yes; then
3180     CXXFLAGS="-g -O2"
3181   else
3182     CXXFLAGS="-g"
3183   fi
3184 else
3185   if test "$GXX" = yes; then
3186     CXXFLAGS="-O2"
3187   else
3188     CXXFLAGS=
3189   fi
3190 fi
3191 ac_ext=c
3192 ac_cpp='$CPP $CPPFLAGS'
3193 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3194 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3195 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3196
3197 ac_ext=c
3198 ac_cpp='$CPP $CPPFLAGS'
3199 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3200 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3201 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3202 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3203 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3204 # On Suns, sometimes $CPP names a directory.
3205 if test -n "$CPP" && test -d "$CPP"; then
3206   CPP=
3207 fi
3208 if test -z "$CPP"; then
3209   if test "${ac_cv_prog_CPP+set}" = set; then
3210   echo $ECHO_N "(cached) $ECHO_C" >&6
3211 else
3212       # Double quotes because CPP needs to be expanded
3213     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3214     do
3215       ac_preproc_ok=false
3216 for ac_c_preproc_warn_flag in '' yes
3217 do
3218   # Use a header file that comes with gcc, so configuring glibc
3219   # with a fresh cross-compiler works.
3220   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3221   # <limits.h> exists even on freestanding compilers.
3222   # On the NeXT, cc -E runs the code through the compiler's parser,
3223   # not just through cpp. "Syntax error" is here to catch this case.
3224   cat >conftest.$ac_ext <<_ACEOF
3225 /* confdefs.h.  */
3226 _ACEOF
3227 cat confdefs.h >>conftest.$ac_ext
3228 cat >>conftest.$ac_ext <<_ACEOF
3229 /* end confdefs.h.  */
3230 #ifdef __STDC__
3231 # include <limits.h>
3232 #else
3233 # include <assert.h>
3234 #endif
3235                      Syntax error
3236 _ACEOF
3237 if { (ac_try="$ac_cpp conftest.$ac_ext"
3238 case "(($ac_try" in
3239   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3240   *) ac_try_echo=$ac_try;;
3241 esac
3242 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3243   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3244   ac_status=$?
3245   grep -v '^ *+' conftest.er1 >conftest.err
3246   rm -f conftest.er1
3247   cat conftest.err >&5
3248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3249   (exit $ac_status); } >/dev/null; then
3250   if test -s conftest.err; then
3251     ac_cpp_err=$ac_c_preproc_warn_flag
3252     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3253   else
3254     ac_cpp_err=
3255   fi
3256 else
3257   ac_cpp_err=yes
3258 fi
3259 if test -z "$ac_cpp_err"; then
3260   :
3261 else
3262   echo "$as_me: failed program was:" >&5
3263 sed 's/^/| /' conftest.$ac_ext >&5
3264
3265   # Broken: fails on valid input.
3266 continue
3267 fi
3268
3269 rm -f conftest.err conftest.$ac_ext
3270
3271   # OK, works on sane cases.  Now check whether nonexistent headers
3272   # can be detected and how.
3273   cat >conftest.$ac_ext <<_ACEOF
3274 /* confdefs.h.  */
3275 _ACEOF
3276 cat confdefs.h >>conftest.$ac_ext
3277 cat >>conftest.$ac_ext <<_ACEOF
3278 /* end confdefs.h.  */
3279 #include <ac_nonexistent.h>
3280 _ACEOF
3281 if { (ac_try="$ac_cpp conftest.$ac_ext"
3282 case "(($ac_try" in
3283   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3284   *) ac_try_echo=$ac_try;;
3285 esac
3286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3287   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3288   ac_status=$?
3289   grep -v '^ *+' conftest.er1 >conftest.err
3290   rm -f conftest.er1
3291   cat conftest.err >&5
3292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3293   (exit $ac_status); } >/dev/null; then
3294   if test -s conftest.err; then
3295     ac_cpp_err=$ac_c_preproc_warn_flag
3296     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3297   else
3298     ac_cpp_err=
3299   fi
3300 else
3301   ac_cpp_err=yes
3302 fi
3303 if test -z "$ac_cpp_err"; then
3304   # Broken: success on invalid input.
3305 continue
3306 else
3307   echo "$as_me: failed program was:" >&5
3308 sed 's/^/| /' conftest.$ac_ext >&5
3309
3310   # Passes both tests.
3311 ac_preproc_ok=:
3312 break
3313 fi
3314
3315 rm -f conftest.err conftest.$ac_ext
3316
3317 done
3318 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3319 rm -f conftest.err conftest.$ac_ext
3320 if $ac_preproc_ok; then
3321   break
3322 fi
3323
3324     done
3325     ac_cv_prog_CPP=$CPP
3326
3327 fi
3328   CPP=$ac_cv_prog_CPP
3329 else
3330   ac_cv_prog_CPP=$CPP
3331 fi
3332 { echo "$as_me:$LINENO: result: $CPP" >&5
3333 echo "${ECHO_T}$CPP" >&6; }
3334 ac_preproc_ok=false
3335 for ac_c_preproc_warn_flag in '' yes
3336 do
3337   # Use a header file that comes with gcc, so configuring glibc
3338   # with a fresh cross-compiler works.
3339   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3340   # <limits.h> exists even on freestanding compilers.
3341   # On the NeXT, cc -E runs the code through the compiler's parser,
3342   # not just through cpp. "Syntax error" is here to catch this case.
3343   cat >conftest.$ac_ext <<_ACEOF
3344 /* confdefs.h.  */
3345 _ACEOF
3346 cat confdefs.h >>conftest.$ac_ext
3347 cat >>conftest.$ac_ext <<_ACEOF
3348 /* end confdefs.h.  */
3349 #ifdef __STDC__
3350 # include <limits.h>
3351 #else
3352 # include <assert.h>
3353 #endif
3354                      Syntax error
3355 _ACEOF
3356 if { (ac_try="$ac_cpp conftest.$ac_ext"
3357 case "(($ac_try" in
3358   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3359   *) ac_try_echo=$ac_try;;
3360 esac
3361 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3362   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3363   ac_status=$?
3364   grep -v '^ *+' conftest.er1 >conftest.err
3365   rm -f conftest.er1
3366   cat conftest.err >&5
3367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3368   (exit $ac_status); } >/dev/null; then
3369   if test -s conftest.err; then
3370     ac_cpp_err=$ac_c_preproc_warn_flag
3371     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3372   else
3373     ac_cpp_err=
3374   fi
3375 else
3376   ac_cpp_err=yes
3377 fi
3378 if test -z "$ac_cpp_err"; then
3379   :
3380 else
3381   echo "$as_me: failed program was:" >&5
3382 sed 's/^/| /' conftest.$ac_ext >&5
3383
3384   # Broken: fails on valid input.
3385 continue
3386 fi
3387
3388 rm -f conftest.err conftest.$ac_ext
3389
3390   # OK, works on sane cases.  Now check whether nonexistent headers
3391   # can be detected and how.
3392   cat >conftest.$ac_ext <<_ACEOF
3393 /* confdefs.h.  */
3394 _ACEOF
3395 cat confdefs.h >>conftest.$ac_ext
3396 cat >>conftest.$ac_ext <<_ACEOF
3397 /* end confdefs.h.  */
3398 #include <ac_nonexistent.h>
3399 _ACEOF
3400 if { (ac_try="$ac_cpp conftest.$ac_ext"
3401 case "(($ac_try" in
3402   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3403   *) ac_try_echo=$ac_try;;
3404 esac
3405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3406   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3407   ac_status=$?
3408   grep -v '^ *+' conftest.er1 >conftest.err
3409   rm -f conftest.er1
3410   cat conftest.err >&5
3411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3412   (exit $ac_status); } >/dev/null; then
3413   if test -s conftest.err; then
3414     ac_cpp_err=$ac_c_preproc_warn_flag
3415     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3416   else
3417     ac_cpp_err=
3418   fi
3419 else
3420   ac_cpp_err=yes
3421 fi
3422 if test -z "$ac_cpp_err"; then
3423   # Broken: success on invalid input.
3424 continue
3425 else
3426   echo "$as_me: failed program was:" >&5
3427 sed 's/^/| /' conftest.$ac_ext >&5
3428
3429   # Passes both tests.
3430 ac_preproc_ok=:
3431 break
3432 fi
3433
3434 rm -f conftest.err conftest.$ac_ext
3435
3436 done
3437 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3438 rm -f conftest.err conftest.$ac_ext
3439 if $ac_preproc_ok; then
3440   :
3441 else
3442   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3443 See \`config.log' for more details." >&5
3444 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3445 See \`config.log' for more details." >&2;}
3446    { (exit 1); exit 1; }; }
3447 fi
3448
3449 ac_ext=c
3450 ac_cpp='$CPP $CPPFLAGS'
3451 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3452 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3453 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3454
3455
3456
3457
3458 if test -d ${srcdir}/projects/llvm-gcc ; then
3459   subdirs="$subdirs projects/llvm-gcc"
3460
3461 fi
3462
3463 if test -d ${srcdir}/projects/test-suite ; then
3464   subdirs="$subdirs projects/test-suite"
3465
3466 fi
3467
3468 if test -d ${srcdir}/projects/llvm-test ; then
3469   subdirs="$subdirs projects/llvm-test"
3470
3471 fi
3472
3473 if test -d ${srcdir}/projects/poolalloc ; then
3474   subdirs="$subdirs projects/poolalloc"
3475
3476 fi
3477
3478 if test -d ${srcdir}/projects/llvm-poolalloc ; then
3479   subdirs="$subdirs projects/llvm-poolalloc"
3480
3481 fi
3482
3483 for i in `ls ${srcdir}/projects`
3484 do
3485   if test -d ${srcdir}/projects/${i} ; then
3486     case ${i} in
3487       sample)       subdirs="$subdirs projects/sample"
3488     ;;
3489       privbracket)  subdirs="$subdirs projects/privbracket"
3490  ;;
3491       llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
3492  ;;
3493       llvm-reopt)   subdirs="$subdirs projects/llvm-reopt"
3494 ;;
3495       llvm-java)    subdirs="$subdirs projects/llvm-java"
3496  ;;
3497       llvm-tv)      subdirs="$subdirs projects/llvm-tv"
3498    ;;
3499       safecode)     subdirs="$subdirs projects/safecode"
3500  ;;
3501       llvm-kernel)  subdirs="$subdirs projects/llvm-kernel"
3502  ;;
3503       compiler-rt)       ;;
3504       llvm-gcc)       ;;
3505       test-suite)     ;;
3506       llvm-test)      ;;
3507       poolalloc)      ;;
3508       llvm-poolalloc) ;;
3509       *)
3510         { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
3511 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
3512         ;;
3513     esac
3514   fi
3515 done
3516
3517 # Check whether --enable-polly was given.
3518 if test "${enable_polly+set}" = set; then
3519   enableval=$enable_polly;
3520 else
3521   enableval=default
3522 fi
3523
3524 case "$enableval" in
3525   yes) ENABLE_POLLY=1
3526  ;;
3527   no)  ENABLE_POLLY=0
3528  ;;
3529   default) ENABLE_POLLY=1
3530  ;;
3531   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&5
3532 echo "$as_me: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&2;}
3533    { (exit 1); exit 1; }; } ;;
3534 esac
3535
3536
3537 if (test -d ${srcdir}/tools/polly) && (test $ENABLE_POLLY -eq 1) ; then
3538   LLVM_HAS_POLLY=1
3539
3540   subdirs="$subdirs tools/polly"
3541
3542 fi
3543
3544
3545 # Make sure we can run config.sub.
3546 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3547   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3548 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3549    { (exit 1); exit 1; }; }
3550
3551 { echo "$as_me:$LINENO: checking build system type" >&5
3552 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3553 if test "${ac_cv_build+set}" = set; then
3554   echo $ECHO_N "(cached) $ECHO_C" >&6
3555 else
3556   ac_build_alias=$build_alias
3557 test "x$ac_build_alias" = x &&
3558   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3559 test "x$ac_build_alias" = x &&
3560   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3561 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3562    { (exit 1); exit 1; }; }
3563 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3564   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3565 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3566    { (exit 1); exit 1; }; }
3567
3568 fi
3569 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3570 echo "${ECHO_T}$ac_cv_build" >&6; }
3571 case $ac_cv_build in
3572 *-*-*) ;;
3573 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3574 echo "$as_me: error: invalid value of canonical build" >&2;}
3575    { (exit 1); exit 1; }; };;
3576 esac
3577 build=$ac_cv_build
3578 ac_save_IFS=$IFS; IFS='-'
3579 set x $ac_cv_build
3580 shift
3581 build_cpu=$1
3582 build_vendor=$2
3583 shift; shift
3584 # Remember, the first character of IFS is used to create $*,
3585 # except with old shells:
3586 build_os=$*
3587 IFS=$ac_save_IFS
3588 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3589
3590
3591 { echo "$as_me:$LINENO: checking host system type" >&5
3592 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3593 if test "${ac_cv_host+set}" = set; then
3594   echo $ECHO_N "(cached) $ECHO_C" >&6
3595 else
3596   if test "x$host_alias" = x; then
3597   ac_cv_host=$ac_cv_build
3598 else
3599   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3600     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3601 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3602    { (exit 1); exit 1; }; }
3603 fi
3604
3605 fi
3606 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3607 echo "${ECHO_T}$ac_cv_host" >&6; }
3608 case $ac_cv_host in
3609 *-*-*) ;;
3610 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3611 echo "$as_me: error: invalid value of canonical host" >&2;}
3612    { (exit 1); exit 1; }; };;
3613 esac
3614 host=$ac_cv_host
3615 ac_save_IFS=$IFS; IFS='-'
3616 set x $ac_cv_host
3617 shift
3618 host_cpu=$1
3619 host_vendor=$2
3620 shift; shift
3621 # Remember, the first character of IFS is used to create $*,
3622 # except with old shells:
3623 host_os=$*
3624 IFS=$ac_save_IFS
3625 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3626
3627
3628 { echo "$as_me:$LINENO: checking target system type" >&5
3629 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
3630 if test "${ac_cv_target+set}" = set; then
3631   echo $ECHO_N "(cached) $ECHO_C" >&6
3632 else
3633   if test "x$target_alias" = x; then
3634   ac_cv_target=$ac_cv_host
3635 else
3636   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3637     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
3638 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
3639    { (exit 1); exit 1; }; }
3640 fi
3641
3642 fi
3643 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
3644 echo "${ECHO_T}$ac_cv_target" >&6; }
3645 case $ac_cv_target in
3646 *-*-*) ;;
3647 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
3648 echo "$as_me: error: invalid value of canonical target" >&2;}
3649    { (exit 1); exit 1; }; };;
3650 esac
3651 target=$ac_cv_target
3652 ac_save_IFS=$IFS; IFS='-'
3653 set x $ac_cv_target
3654 shift
3655 target_cpu=$1
3656 target_vendor=$2
3657 shift; shift
3658 # Remember, the first character of IFS is used to create $*,
3659 # except with old shells:
3660 target_os=$*
3661 IFS=$ac_save_IFS
3662 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3663
3664
3665 # The aliases save the names the user supplied, while $host etc.
3666 # will get canonicalized.
3667 test -n "$target_alias" &&
3668   test "$program_prefix$program_suffix$program_transform_name" = \
3669     NONENONEs,x,x, &&
3670   program_prefix=${target_alias}-
3671
3672 { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
3673 echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
3674 if test "${llvm_cv_os_type+set}" = set; then
3675   echo $ECHO_N "(cached) $ECHO_C" >&6
3676 else
3677   case $host in
3678   *-*-aix*)
3679     llvm_cv_link_all_option="-Wl,--whole-archive"
3680     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3681     llvm_cv_os_type="AIX"
3682     llvm_cv_platform_type="Unix" ;;
3683   *-*-irix*)
3684     llvm_cv_link_all_option="-Wl,--whole-archive"
3685     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3686     llvm_cv_os_type="IRIX"
3687     llvm_cv_platform_type="Unix" ;;
3688   *-*-cygwin*)
3689     llvm_cv_link_all_option="-Wl,--whole-archive"
3690     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3691     llvm_cv_os_type="Cygwin"
3692     llvm_cv_platform_type="Unix" ;;
3693   *-*-darwin*)
3694     llvm_cv_link_all_option="-Wl,-all_load"
3695     llvm_cv_no_link_all_option="-Wl,-noall_load"
3696     llvm_cv_os_type="Darwin"
3697     llvm_cv_platform_type="Unix" ;;
3698   *-*-minix*)
3699     llvm_cv_link_all_option="-Wl,-all_load"
3700     llvm_cv_no_link_all_option="-Wl,-noall_load"
3701     llvm_cv_os_type="Minix"
3702     llvm_cv_platform_type="Unix" ;;
3703   *-*-freebsd* | *-*-kfreebsd-gnu)
3704     llvm_cv_link_all_option="-Wl,--whole-archive"
3705     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3706     llvm_cv_os_type="FreeBSD"
3707     llvm_cv_platform_type="Unix" ;;
3708   *-*-openbsd*)
3709     llvm_cv_link_all_option="-Wl,--whole-archive"
3710     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3711     llvm_cv_os_type="OpenBSD"
3712     llvm_cv_platform_type="Unix" ;;
3713   *-*-netbsd*)
3714     llvm_cv_link_all_option="-Wl,--whole-archive"
3715     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3716     llvm_cv_os_type="NetBSD"
3717     llvm_cv_platform_type="Unix" ;;
3718   *-*-dragonfly*)
3719     llvm_cv_link_all_option="-Wl,--whole-archive"
3720     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3721     llvm_cv_os_type="DragonFly"
3722     llvm_cv_platform_type="Unix" ;;
3723   *-*-hpux*)
3724     llvm_cv_link_all_option="-Wl,--whole-archive"
3725     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3726     llvm_cv_os_type="HP-UX"
3727     llvm_cv_platform_type="Unix" ;;
3728   *-*-interix*)
3729     llvm_cv_link_all_option="-Wl,--whole-archive"
3730     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3731     llvm_cv_os_type="Interix"
3732     llvm_cv_platform_type="Unix" ;;
3733   *-*-linux*)
3734     llvm_cv_link_all_option="-Wl,--whole-archive"
3735     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3736     llvm_cv_os_type="Linux"
3737     llvm_cv_platform_type="Unix" ;;
3738   *-*-gnu*)
3739     llvm_cv_link_all_option="-Wl,--whole-archive"
3740     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3741     llvm_cv_os_type="GNU"
3742     llvm_cv_platform_type="Unix" ;;
3743   *-*-solaris*)
3744     llvm_cv_link_all_option="-Wl,-z,allextract"
3745     llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
3746     llvm_cv_os_type="SunOS"
3747     llvm_cv_platform_type="Unix" ;;
3748   *-*-auroraux*)
3749     llvm_cv_link_all_option="-Wl,-z,allextract"
3750     llvm_cv_link_all_option="-Wl,-z,defaultextract"
3751     llvm_cv_os_type="AuroraUX"
3752     llvm_cv_platform_type="Unix" ;;
3753   *-*-win32*)
3754     llvm_cv_link_all_option="-Wl,--whole-archive"
3755     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3756     llvm_cv_os_type="Win32"
3757     llvm_cv_platform_type="Win32" ;;
3758   *-*-mingw*)
3759     llvm_cv_link_all_option="-Wl,--whole-archive"
3760     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3761     llvm_cv_os_type="MingW"
3762     llvm_cv_platform_type="Win32" ;;
3763   *-*-haiku*)
3764     llvm_cv_link_all_option="-Wl,--whole-archive"
3765     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3766     llvm_cv_os_type="Haiku"
3767     llvm_cv_platform_type="Unix" ;;
3768   *-unknown-eabi*)
3769     llvm_cv_link_all_option="-Wl,--whole-archive"
3770     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3771     llvm_cv_os_type="Freestanding"
3772     llvm_cv_platform_type="Unix" ;;
3773   *-unknown-elf*)
3774     llvm_cv_link_all_option="-Wl,--whole-archive"
3775     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3776     llvm_cv_os_type="Freestanding"
3777     llvm_cv_platform_type="Unix" ;;
3778   *)
3779     llvm_cv_link_all_option=""
3780     llvm_cv_no_link_all_option=""
3781     llvm_cv_os_type="Unknown"
3782     llvm_cv_platform_type="Unknown" ;;
3783 esac
3784 fi
3785 { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
3786 echo "${ECHO_T}$llvm_cv_os_type" >&6; }
3787
3788 { echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
3789 echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
3790 if test "${llvm_cv_target_os_type+set}" = set; then
3791   echo $ECHO_N "(cached) $ECHO_C" >&6
3792 else
3793   case $target in
3794   *-*-aix*)
3795     llvm_cv_target_os_type="AIX" ;;
3796   *-*-irix*)
3797     llvm_cv_target_os_type="IRIX" ;;
3798   *-*-cygwin*)
3799     llvm_cv_target_os_type="Cygwin" ;;
3800   *-*-darwin*)
3801     llvm_cv_target_os_type="Darwin" ;;
3802   *-*-minix*)
3803     llvm_cv_target_os_type="Minix" ;;
3804   *-*-freebsd* | *-*-kfreebsd-gnu)
3805     llvm_cv_target_os_type="FreeBSD" ;;
3806   *-*-openbsd*)
3807     llvm_cv_target_os_type="OpenBSD" ;;
3808   *-*-netbsd*)
3809     llvm_cv_target_os_type="NetBSD" ;;
3810   *-*-dragonfly*)
3811     llvm_cv_target_os_type="DragonFly" ;;
3812   *-*-hpux*)
3813     llvm_cv_target_os_type="HP-UX" ;;
3814   *-*-interix*)
3815     llvm_cv_target_os_type="Interix" ;;
3816   *-*-linux*)
3817     llvm_cv_target_os_type="Linux" ;;
3818   *-*-gnu*)
3819     llvm_cv_target_os_type="GNU" ;;
3820   *-*-solaris*)
3821     llvm_cv_target_os_type="SunOS" ;;
3822   *-*-auroraux*)
3823     llvm_cv_target_os_type="AuroraUX" ;;
3824   *-*-win32*)
3825     llvm_cv_target_os_type="Win32" ;;
3826   *-*-mingw*)
3827     llvm_cv_target_os_type="MingW" ;;
3828   *-*-haiku*)
3829     llvm_cv_target_os_type="Haiku" ;;
3830   *-*-rtems*)
3831     llvm_cv_target_os_type="RTEMS" ;;
3832   *-*-nacl*)
3833     llvm_cv_target_os_type="NativeClient" ;;
3834   *-unknown-eabi*)
3835     llvm_cv_target_os_type="Freestanding" ;;
3836   *)
3837     llvm_cv_target_os_type="Unknown" ;;
3838 esac
3839 fi
3840 { echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
3841 echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
3842
3843 if test "$llvm_cv_os_type" = "Unknown" ; then
3844   { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
3845 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
3846    { (exit 1); exit 1; }; }
3847 fi
3848
3849 OS=$llvm_cv_os_type
3850
3851 HOST_OS=$llvm_cv_os_type
3852
3853 TARGET_OS=$llvm_cv_target_os_type
3854
3855
3856 LINKALL=$llvm_cv_link_all_option
3857
3858 NOLINKALL=$llvm_cv_no_link_all_option
3859
3860
3861 case $llvm_cv_platform_type in
3862   Unix)
3863
3864 cat >>confdefs.h <<\_ACEOF
3865 #define LLVM_ON_UNIX 1
3866 _ACEOF
3867
3868     LLVM_ON_UNIX=1
3869
3870     LLVM_ON_WIN32=0
3871
3872     ;;
3873   Win32)
3874
3875 cat >>confdefs.h <<\_ACEOF
3876 #define LLVM_ON_WIN32 1
3877 _ACEOF
3878
3879     LLVM_ON_UNIX=0
3880
3881     LLVM_ON_WIN32=1
3882
3883     ;;
3884 esac
3885
3886 { echo "$as_me:$LINENO: checking target architecture" >&5
3887 echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
3888 if test "${llvm_cv_target_arch+set}" = set; then
3889   echo $ECHO_N "(cached) $ECHO_C" >&6
3890 else
3891   case $target in
3892   i?86-*)                 llvm_cv_target_arch="x86" ;;
3893   amd64-* | x86_64-*)     llvm_cv_target_arch="x86_64" ;;
3894   sparc*-*)               llvm_cv_target_arch="Sparc" ;;
3895   powerpc*-*)             llvm_cv_target_arch="PowerPC" ;;
3896   arm*-*)                 llvm_cv_target_arch="ARM" ;;
3897   mips-*)                 llvm_cv_target_arch="Mips" ;;
3898   mipsel-*)               llvm_cv_target_arch="Mips" ;;
3899   xcore-*)                llvm_cv_target_arch="XCore" ;;
3900   msp430-*)               llvm_cv_target_arch="MSP430" ;;
3901   hexagon-*)              llvm_cv_target_arch="Hexagon" ;;
3902   mblaze-*)               llvm_cv_target_arch="MBlaze" ;;
3903   ptx-*)                  llvm_cv_target_arch="PTX" ;;
3904   nvptx-*)                llvm_cv_target_arch="NVPTX" ;;
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     NVPTX)       TARGET_HAS_JIT=0
5129  ;;
5130     *)           TARGET_HAS_JIT=0
5131  ;;
5132   esac
5133 fi
5134
5135 # Check whether --enable-docs was given.
5136 if test "${enable_docs+set}" = set; then
5137   enableval=$enable_docs;
5138 else
5139   enableval=default
5140 fi
5141
5142 case "$enableval" in
5143   yes) ENABLE_DOCS=1
5144  ;;
5145   no)  ENABLE_DOCS=0
5146  ;;
5147   default) ENABLE_DOCS=1
5148  ;;
5149   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&5
5150 echo "$as_me: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&2;}
5151    { (exit 1); exit 1; }; } ;;
5152 esac
5153
5154 # Check whether --enable-doxygen was given.
5155 if test "${enable_doxygen+set}" = set; then
5156   enableval=$enable_doxygen;
5157 else
5158   enableval=default
5159 fi
5160
5161 case "$enableval" in
5162   yes) ENABLE_DOXYGEN=1
5163  ;;
5164   no)  ENABLE_DOXYGEN=0
5165  ;;
5166   default) ENABLE_DOXYGEN=0
5167  ;;
5168   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
5169 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
5170    { (exit 1); exit 1; }; } ;;
5171 esac
5172
5173 # Check whether --enable-threads was given.
5174 if test "${enable_threads+set}" = set; then
5175   enableval=$enable_threads;
5176 else
5177   enableval=default
5178 fi
5179
5180 case "$enableval" in
5181   yes) LLVM_ENABLE_THREADS=1
5182  ;;
5183   no)  LLVM_ENABLE_THREADS=0
5184  ;;
5185   default) LLVM_ENABLE_THREADS=1
5186  ;;
5187   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
5188 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
5189    { (exit 1); exit 1; }; } ;;
5190 esac
5191
5192 cat >>confdefs.h <<_ACEOF
5193 #define LLVM_ENABLE_THREADS $LLVM_ENABLE_THREADS
5194 _ACEOF
5195
5196
5197 # Check whether --enable-pthreads was given.
5198 if test "${enable_pthreads+set}" = set; then
5199   enableval=$enable_pthreads;
5200 else
5201   enableval=default
5202 fi
5203
5204 case "$enableval" in
5205   yes) ENABLE_PTHREADS=1
5206  ;;
5207   no)  ENABLE_PTHREADS=0
5208  ;;
5209   default) ENABLE_PTHREADS=1
5210  ;;
5211   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&5
5212 echo "$as_me: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&2;}
5213    { (exit 1); exit 1; }; } ;;
5214 esac
5215
5216 # Check whether --enable-pic was given.
5217 if test "${enable_pic+set}" = set; then
5218   enableval=$enable_pic;
5219 else
5220   enableval=default
5221 fi
5222
5223 case "$enableval" in
5224   yes) ENABLE_PIC=1
5225  ;;
5226   no)  ENABLE_PIC=0
5227  ;;
5228   default) ENABLE_PIC=1
5229  ;;
5230   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
5231 echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
5232    { (exit 1); exit 1; }; } ;;
5233 esac
5234
5235 cat >>confdefs.h <<_ACEOF
5236 #define ENABLE_PIC $ENABLE_PIC
5237 _ACEOF
5238
5239
5240 # Check whether --enable-shared was given.
5241 if test "${enable_shared+set}" = set; then
5242   enableval=$enable_shared;
5243 else
5244   enableval=default
5245 fi
5246
5247 case "$enableval" in
5248   yes) ENABLE_SHARED=1
5249  ;;
5250   no)  ENABLE_SHARED=0
5251  ;;
5252   default) ENABLE_SHARED=0
5253  ;;
5254   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5
5255 echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;}
5256    { (exit 1); exit 1; }; } ;;
5257 esac
5258
5259 # Check whether --enable-embed-stdcxx was given.
5260 if test "${enable_embed_stdcxx+set}" = set; then
5261   enableval=$enable_embed_stdcxx;
5262 else
5263   enableval=default
5264 fi
5265
5266 case "$enableval" in
5267   yes) ENABLE_EMBED_STDCXX=1
5268  ;;
5269   no)  ENABLE_EMBED_STDCXX=0
5270  ;;
5271   default) ENABLE_EMBED_STDCXX=0
5272  ;;
5273   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&5
5274 echo "$as_me: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&2;}
5275    { (exit 1); exit 1; }; } ;;
5276 esac
5277
5278 # Check whether --enable-timestamps was given.
5279 if test "${enable_timestamps+set}" = set; then
5280   enableval=$enable_timestamps;
5281 else
5282   enableval=default
5283 fi
5284
5285 case "$enableval" in
5286   yes) ENABLE_TIMESTAMPS=1
5287  ;;
5288   no)  ENABLE_TIMESTAMPS=0
5289  ;;
5290   default) ENABLE_TIMESTAMPS=1
5291  ;;
5292   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&5
5293 echo "$as_me: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&2;}
5294    { (exit 1); exit 1; }; } ;;
5295 esac
5296
5297 cat >>confdefs.h <<_ACEOF
5298 #define ENABLE_TIMESTAMPS $ENABLE_TIMESTAMPS
5299 _ACEOF
5300
5301
5302 TARGETS_TO_BUILD=""
5303 # Check whether --enable-targets was given.
5304 if test "${enable_targets+set}" = set; then
5305   enableval=$enable_targets;
5306 else
5307   enableval=all
5308 fi
5309
5310 if test "$enableval" = host-only ; then
5311   enableval=host
5312 fi
5313 case "$enableval" in
5314   all) TARGETS_TO_BUILD="X86 Sparc PowerPC ARM Mips CellSPU XCore MSP430 CppBackend MBlaze PTX NVPTX Hexagon" ;;
5315   *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
5316       case "$a_target" in
5317         x86)      TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5318         x86_64)   TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5319         sparc)    TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5320         powerpc)  TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5321         arm)      TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5322         mips)     TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5323         mipsel)   TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5324         spu)      TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
5325         xcore)    TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5326         msp430)   TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5327         cpp)      TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
5328         hexagon)  TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
5329         mblaze)   TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
5330         ptx)      TARGETS_TO_BUILD="PTX $TARGETS_TO_BUILD" ;;
5331         nvptx)    TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
5332         host) case "$llvm_cv_target_arch" in
5333             x86)         TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5334             x86_64)      TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5335             Sparc)       TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5336             PowerPC)     TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5337             ARM)         TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5338             Mips)        TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5339             MBlaze)      TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
5340             CellSPU|SPU) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
5341             XCore)       TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5342             MSP430)      TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5343             Hexagon)     TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
5344             PTX)         TARGETS_TO_BUILD="PTX $TARGETS_TO_BUILD" ;;
5345             NVPTX)       TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
5346             *)       { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
5347 echo "$as_me: error: Can not set target to build" >&2;}
5348    { (exit 1); exit 1; }; } ;;
5349           esac ;;
5350         *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
5351 echo "$as_me: error: Unrecognized target $a_target" >&2;}
5352    { (exit 1); exit 1; }; } ;;
5353       esac
5354   done
5355   ;;
5356 esac
5357 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
5358
5359
5360 for a_target in $TARGETS_TO_BUILD; do
5361   if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
5362
5363 cat >>confdefs.h <<_ACEOF
5364 #define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCH
5365 _ACEOF
5366
5367     LLVM_NATIVE_TARGET="LLVMInitialize${LLVM_NATIVE_ARCH}Target"
5368     LLVM_NATIVE_TARGETINFO="LLVMInitialize${LLVM_NATIVE_ARCH}TargetInfo"
5369     LLVM_NATIVE_TARGETMC="LLVMInitialize${LLVM_NATIVE_ARCH}TargetMC"
5370     LLVM_NATIVE_ASMPRINTER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmPrinter"
5371     if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5372       LLVM_NATIVE_ASMPARSER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmParser"
5373     fi
5374     if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5375       LLVM_NATIVE_DISASSEMBLER="LLVMInitialize${LLVM_NATIVE_ARCH}Disassembler"
5376     fi
5377
5378 cat >>confdefs.h <<_ACEOF
5379 #define LLVM_NATIVE_TARGET $LLVM_NATIVE_TARGET
5380 _ACEOF
5381
5382
5383 cat >>confdefs.h <<_ACEOF
5384 #define LLVM_NATIVE_TARGETINFO $LLVM_NATIVE_TARGETINFO
5385 _ACEOF
5386
5387
5388 cat >>confdefs.h <<_ACEOF
5389 #define LLVM_NATIVE_TARGETMC $LLVM_NATIVE_TARGETMC
5390 _ACEOF
5391
5392
5393 cat >>confdefs.h <<_ACEOF
5394 #define LLVM_NATIVE_ASMPRINTER $LLVM_NATIVE_ASMPRINTER
5395 _ACEOF
5396
5397     if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5398
5399 cat >>confdefs.h <<_ACEOF
5400 #define LLVM_NATIVE_ASMPARSER $LLVM_NATIVE_ASMPARSER
5401 _ACEOF
5402
5403     fi
5404     if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5405
5406 cat >>confdefs.h <<_ACEOF
5407 #define LLVM_NATIVE_DISASSEMBLER $LLVM_NATIVE_DISASSEMBLER
5408 _ACEOF
5409
5410     fi
5411   fi
5412 done
5413
5414 LLVM_ENUM_TARGETS=""
5415 LLVM_ENUM_ASM_PRINTERS=""
5416 LLVM_ENUM_ASM_PARSERS=""
5417 LLVM_ENUM_DISASSEMBLERS=""
5418 for target_to_build in $TARGETS_TO_BUILD; do
5419   LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
5420   if test -f ${srcdir}/lib/Target/${target_to_build}/*AsmPrinter.cpp ; then
5421     LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5422   fi
5423   if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5424     LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5425   fi
5426   if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
5427     LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
5428   fi
5429 done
5430
5431
5432
5433
5434
5435
5436 # Check whether --with-optimize-option was given.
5437 if test "${with_optimize_option+set}" = set; then
5438   withval=$with_optimize_option;
5439 else
5440   withval=default
5441 fi
5442
5443 { echo "$as_me:$LINENO: checking optimization flags" >&5
5444 echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
5445 case "$withval" in
5446   default)
5447     case "$llvm_cv_os_type" in
5448     FreeBSD) optimize_option=-O2 ;;
5449     MingW) optimize_option=-O2 ;;
5450     *)     optimize_option=-O3 ;;
5451     esac ;;
5452   *) optimize_option="$withval" ;;
5453 esac
5454 OPTIMIZE_OPTION=$optimize_option
5455
5456 { echo "$as_me:$LINENO: result: $optimize_option" >&5
5457 echo "${ECHO_T}$optimize_option" >&6; }
5458
5459
5460 # Check whether --with-extra-options was given.
5461 if test "${with_extra_options+set}" = set; then
5462   withval=$with_extra_options;
5463 else
5464   withval=default
5465 fi
5466
5467 case "$withval" in
5468   default) EXTRA_OPTIONS= ;;
5469   *) EXTRA_OPTIONS=$withval ;;
5470 esac
5471 EXTRA_OPTIONS=$EXTRA_OPTIONS
5472
5473
5474
5475 # Check whether --with-extra-ld-options was given.
5476 if test "${with_extra_ld_options+set}" = set; then
5477   withval=$with_extra_ld_options;
5478 else
5479   withval=default
5480 fi
5481
5482 case "$withval" in
5483   default) EXTRA_LD_OPTIONS= ;;
5484   *) EXTRA_LD_OPTIONS=$withval ;;
5485 esac
5486 EXTRA_LD_OPTIONS=$EXTRA_LD_OPTIONS
5487
5488
5489 # Check whether --enable-bindings was given.
5490 if test "${enable_bindings+set}" = set; then
5491   enableval=$enable_bindings;
5492 else
5493   enableval=default
5494 fi
5495
5496 BINDINGS_TO_BUILD=""
5497 case "$enableval" in
5498   yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
5499   all ) BINDINGS_TO_BUILD="ocaml" ;;
5500   none | no) BINDINGS_TO_BUILD="" ;;
5501   *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5502       case "$a_binding" in
5503         ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5504         *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5505 echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5506    { (exit 1); exit 1; }; } ;;
5507       esac
5508   done
5509   ;;
5510 esac
5511
5512
5513 # Check whether --with-ocaml-libdir was given.
5514 if test "${with_ocaml_libdir+set}" = set; then
5515   withval=$with_ocaml_libdir;
5516 else
5517   withval=auto
5518 fi
5519
5520 case "$withval" in
5521   auto) with_ocaml_libdir="$withval" ;;
5522   /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5523   *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5524 echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5525    { (exit 1); exit 1; }; } ;;
5526 esac
5527
5528
5529 # Check whether --with-clang-srcdir was given.
5530 if test "${with_clang_srcdir+set}" = set; then
5531   withval=$with_clang_srcdir;
5532 else
5533   withval="-"
5534 fi
5535
5536 case "$withval" in
5537   -) clang_src_root="" ;;
5538   /* | [A-Za-z]:[\\/]*) clang_src_root="$withval" ;;
5539   *) clang_src_root="$ac_pwd/$withval" ;;
5540 esac
5541 CLANG_SRC_ROOT=$clang_src_root
5542
5543
5544
5545 # Check whether --with-clang-resource-dir was given.
5546 if test "${with_clang_resource_dir+set}" = set; then
5547   withval=$with_clang_resource_dir;
5548 else
5549   withval=""
5550 fi
5551
5552
5553 cat >>confdefs.h <<_ACEOF
5554 #define CLANG_RESOURCE_DIR "$withval"
5555 _ACEOF
5556
5557
5558
5559 # Check whether --with-c-include-dirs was given.
5560 if test "${with_c_include_dirs+set}" = set; then
5561   withval=$with_c_include_dirs;
5562 else
5563   withval=""
5564 fi
5565
5566
5567 cat >>confdefs.h <<_ACEOF
5568 #define C_INCLUDE_DIRS "$withval"
5569 _ACEOF
5570
5571
5572 # Clang normally uses the system c++ headers and libraries. With this option,
5573 # clang will use the ones provided by a gcc installation instead. This option should
5574 # be passed the same value that was used with --prefix when configuring gcc.
5575
5576 # Check whether --with-gcc-toolchain was given.
5577 if test "${with_gcc_toolchain+set}" = set; then
5578   withval=$with_gcc_toolchain;
5579 else
5580   withval=""
5581 fi
5582
5583
5584 cat >>confdefs.h <<_ACEOF
5585 #define GCC_INSTALL_PREFIX "$withval"
5586 _ACEOF
5587
5588
5589
5590 # Check whether --with-default-sysroot was given.
5591 if test "${with_default_sysroot+set}" = set; then
5592   withval=$with_default_sysroot;
5593 else
5594   withval=""
5595 fi
5596
5597
5598 cat >>confdefs.h <<_ACEOF
5599 #define DEFAULT_SYSROOT "$withval"
5600 _ACEOF
5601
5602
5603
5604 # Check whether --with-binutils-include was given.
5605 if test "${with_binutils_include+set}" = set; then
5606   withval=$with_binutils_include;
5607 else
5608   withval=default
5609 fi
5610
5611 case "$withval" in
5612   default) WITH_BINUTILS_INCDIR=default ;;
5613   /* | [A-Za-z]:[\\/]*)      WITH_BINUTILS_INCDIR=$withval ;;
5614   *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5615 echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5616    { (exit 1); exit 1; }; } ;;
5617 esac
5618 if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5619   BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5620
5621   if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5622      echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5623      { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5624 echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5625    { (exit 1); exit 1; }; };
5626   fi
5627 fi
5628
5629
5630 # Check whether --with-bug-report-url was given.
5631 if test "${with_bug_report_url+set}" = set; then
5632   withval=$with_bug_report_url;
5633 else
5634   withval="http://llvm.org/bugs/"
5635 fi
5636
5637
5638 cat >>confdefs.h <<_ACEOF
5639 #define BUG_REPORT_URL "$withval"
5640 _ACEOF
5641
5642
5643 # Check whether --enable-libffi was given.
5644 if test "${enable_libffi+set}" = set; then
5645   enableval=$enable_libffi; case "$enableval" in
5646     yes) llvm_cv_enable_libffi="yes" ;;
5647     no)  llvm_cv_enable_libffi="no"  ;;
5648     *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
5649 echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5650    { (exit 1); exit 1; }; } ;;
5651   esac
5652 else
5653   llvm_cv_enable_libffi=no
5654 fi
5655
5656
5657
5658 # Check whether --with-internal-prefix was given.
5659 if test "${with_internal_prefix+set}" = set; then
5660   withval=$with_internal_prefix;
5661 else
5662   withval=""
5663 fi
5664
5665 INTERNAL_PREFIX=$withval
5666
5667
5668
5669 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5670 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
5671 if test "${lt_cv_path_NM+set}" = set; then
5672   echo $ECHO_N "(cached) $ECHO_C" >&6
5673 else
5674   if test -n "$NM"; then
5675   # Let the user override the test.
5676   lt_cv_path_NM="$NM"
5677 else
5678   lt_nm_to_check="${ac_tool_prefix}nm"
5679   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5680     lt_nm_to_check="$lt_nm_to_check nm"
5681   fi
5682   for lt_tmp_nm in $lt_nm_to_check; do
5683     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5684     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5685       IFS="$lt_save_ifs"
5686       test -z "$ac_dir" && ac_dir=.
5687       tmp_nm="$ac_dir/$lt_tmp_nm"
5688       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5689         # Check to see if the nm accepts a BSD-compat flag.
5690         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5691         #   nm: unknown option "B" ignored
5692         # Tru64's nm complains that /dev/null is an invalid object file
5693         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5694         */dev/null* | *'Invalid file or object type'*)
5695           lt_cv_path_NM="$tmp_nm -B"
5696           break
5697           ;;
5698         *)
5699           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5700           */dev/null*)
5701             lt_cv_path_NM="$tmp_nm -p"
5702             break
5703             ;;
5704           *)
5705             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5706             continue # so that we can try to find one that supports BSD flags
5707             ;;
5708           esac
5709           ;;
5710         esac
5711       fi
5712     done
5713     IFS="$lt_save_ifs"
5714   done
5715   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5716 fi
5717 fi
5718 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5719 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
5720 NM="$lt_cv_path_NM"
5721
5722
5723
5724 { echo "$as_me:$LINENO: checking for GNU make" >&5
5725 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
5726 if test "${llvm_cv_gnu_make_command+set}" = set; then
5727   echo $ECHO_N "(cached) $ECHO_C" >&6
5728 else
5729   llvm_cv_gnu_make_command=''
5730  for a in "$MAKE" make gmake gnumake ; do
5731   if test -z "$a" ; then continue ; fi ;
5732   if  ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
5733   then
5734    llvm_cv_gnu_make_command=$a ;
5735    break;
5736   fi
5737  done
5738 fi
5739 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
5740 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
5741  if test "x$llvm_cv_gnu_make_command" != "x"  ; then
5742    ifGNUmake='' ;
5743  else
5744    ifGNUmake='#' ;
5745    { echo "$as_me:$LINENO: result: \"Not found\"" >&5
5746 echo "${ECHO_T}\"Not found\"" >&6; };
5747  fi
5748
5749
5750 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
5751 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
5752 LN_S=$as_ln_s
5753 if test "$LN_S" = "ln -s"; then
5754   { echo "$as_me:$LINENO: result: yes" >&5
5755 echo "${ECHO_T}yes" >&6; }
5756 else
5757   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5758 echo "${ECHO_T}no, using $LN_S" >&6; }
5759 fi
5760
5761 # Extract the first word of "cmp", so it can be a program name with args.
5762 set dummy cmp; ac_word=$2
5763 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5764 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5765 if test "${ac_cv_path_CMP+set}" = set; then
5766   echo $ECHO_N "(cached) $ECHO_C" >&6
5767 else
5768   case $CMP in
5769   [\\/]* | ?:[\\/]*)
5770   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
5771   ;;
5772   *)
5773   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5774 for as_dir in $PATH
5775 do
5776   IFS=$as_save_IFS
5777   test -z "$as_dir" && as_dir=.
5778   for ac_exec_ext in '' $ac_executable_extensions; do
5779   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5780     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
5781     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5782     break 2
5783   fi
5784 done
5785 done
5786 IFS=$as_save_IFS
5787
5788   test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
5789   ;;
5790 esac
5791 fi
5792 CMP=$ac_cv_path_CMP
5793 if test -n "$CMP"; then
5794   { echo "$as_me:$LINENO: result: $CMP" >&5
5795 echo "${ECHO_T}$CMP" >&6; }
5796 else
5797   { echo "$as_me:$LINENO: result: no" >&5
5798 echo "${ECHO_T}no" >&6; }
5799 fi
5800
5801
5802 # Extract the first word of "cp", so it can be a program name with args.
5803 set dummy cp; ac_word=$2
5804 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5805 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5806 if test "${ac_cv_path_CP+set}" = set; then
5807   echo $ECHO_N "(cached) $ECHO_C" >&6
5808 else
5809   case $CP in
5810   [\\/]* | ?:[\\/]*)
5811   ac_cv_path_CP="$CP" # Let the user override the test with a path.
5812   ;;
5813   *)
5814   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5815 for as_dir in $PATH
5816 do
5817   IFS=$as_save_IFS
5818   test -z "$as_dir" && as_dir=.
5819   for ac_exec_ext in '' $ac_executable_extensions; do
5820   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5821     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
5822     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5823     break 2
5824   fi
5825 done
5826 done
5827 IFS=$as_save_IFS
5828
5829   test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
5830   ;;
5831 esac
5832 fi
5833 CP=$ac_cv_path_CP
5834 if test -n "$CP"; then
5835   { echo "$as_me:$LINENO: result: $CP" >&5
5836 echo "${ECHO_T}$CP" >&6; }
5837 else
5838   { echo "$as_me:$LINENO: result: no" >&5
5839 echo "${ECHO_T}no" >&6; }
5840 fi
5841
5842
5843 # Extract the first word of "date", so it can be a program name with args.
5844 set dummy date; ac_word=$2
5845 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5846 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5847 if test "${ac_cv_path_DATE+set}" = set; then
5848   echo $ECHO_N "(cached) $ECHO_C" >&6
5849 else
5850   case $DATE in
5851   [\\/]* | ?:[\\/]*)
5852   ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
5853   ;;
5854   *)
5855   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5856 for as_dir in $PATH
5857 do
5858   IFS=$as_save_IFS
5859   test -z "$as_dir" && as_dir=.
5860   for ac_exec_ext in '' $ac_executable_extensions; do
5861   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5862     ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
5863     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5864     break 2
5865   fi
5866 done
5867 done
5868 IFS=$as_save_IFS
5869
5870   test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
5871   ;;
5872 esac
5873 fi
5874 DATE=$ac_cv_path_DATE
5875 if test -n "$DATE"; then
5876   { echo "$as_me:$LINENO: result: $DATE" >&5
5877 echo "${ECHO_T}$DATE" >&6; }
5878 else
5879   { echo "$as_me:$LINENO: result: no" >&5
5880 echo "${ECHO_T}no" >&6; }
5881 fi
5882
5883
5884 # Extract the first word of "find", so it can be a program name with args.
5885 set dummy find; ac_word=$2
5886 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5887 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5888 if test "${ac_cv_path_FIND+set}" = set; then
5889   echo $ECHO_N "(cached) $ECHO_C" >&6
5890 else
5891   case $FIND in
5892   [\\/]* | ?:[\\/]*)
5893   ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
5894   ;;
5895   *)
5896   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5897 for as_dir in $PATH
5898 do
5899   IFS=$as_save_IFS
5900   test -z "$as_dir" && as_dir=.
5901   for ac_exec_ext in '' $ac_executable_extensions; do
5902   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5903     ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
5904     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5905     break 2
5906   fi
5907 done
5908 done
5909 IFS=$as_save_IFS
5910
5911   test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
5912   ;;
5913 esac
5914 fi
5915 FIND=$ac_cv_path_FIND
5916 if test -n "$FIND"; then
5917   { echo "$as_me:$LINENO: result: $FIND" >&5
5918 echo "${ECHO_T}$FIND" >&6; }
5919 else
5920   { echo "$as_me:$LINENO: result: no" >&5
5921 echo "${ECHO_T}no" >&6; }
5922 fi
5923
5924
5925 # Extract the first word of "grep", so it can be a program name with args.
5926 set dummy grep; ac_word=$2
5927 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5928 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5929 if test "${ac_cv_path_GREP+set}" = set; then
5930   echo $ECHO_N "(cached) $ECHO_C" >&6
5931 else
5932   case $GREP in
5933   [\\/]* | ?:[\\/]*)
5934   ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
5935   ;;
5936   *)
5937   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5938 for as_dir in $PATH
5939 do
5940   IFS=$as_save_IFS
5941   test -z "$as_dir" && as_dir=.
5942   for ac_exec_ext in '' $ac_executable_extensions; do
5943   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5944     ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
5945     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5946     break 2
5947   fi
5948 done
5949 done
5950 IFS=$as_save_IFS
5951
5952   test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
5953   ;;
5954 esac
5955 fi
5956 GREP=$ac_cv_path_GREP
5957 if test -n "$GREP"; then
5958   { echo "$as_me:$LINENO: result: $GREP" >&5
5959 echo "${ECHO_T}$GREP" >&6; }
5960 else
5961   { echo "$as_me:$LINENO: result: no" >&5
5962 echo "${ECHO_T}no" >&6; }
5963 fi
5964
5965
5966 # Extract the first word of "mkdir", so it can be a program name with args.
5967 set dummy mkdir; ac_word=$2
5968 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5969 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5970 if test "${ac_cv_path_MKDIR+set}" = set; then
5971   echo $ECHO_N "(cached) $ECHO_C" >&6
5972 else
5973   case $MKDIR in
5974   [\\/]* | ?:[\\/]*)
5975   ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
5976   ;;
5977   *)
5978   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5979 for as_dir in $PATH
5980 do
5981   IFS=$as_save_IFS
5982   test -z "$as_dir" && as_dir=.
5983   for ac_exec_ext in '' $ac_executable_extensions; do
5984   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5985     ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
5986     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5987     break 2
5988   fi
5989 done
5990 done
5991 IFS=$as_save_IFS
5992
5993   test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
5994   ;;
5995 esac
5996 fi
5997 MKDIR=$ac_cv_path_MKDIR
5998 if test -n "$MKDIR"; then
5999   { echo "$as_me:$LINENO: result: $MKDIR" >&5
6000 echo "${ECHO_T}$MKDIR" >&6; }
6001 else
6002   { echo "$as_me:$LINENO: result: no" >&5
6003 echo "${ECHO_T}no" >&6; }
6004 fi
6005
6006
6007 # Extract the first word of "mv", so it can be a program name with args.
6008 set dummy mv; ac_word=$2
6009 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6010 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6011 if test "${ac_cv_path_MV+set}" = set; then
6012   echo $ECHO_N "(cached) $ECHO_C" >&6
6013 else
6014   case $MV in
6015   [\\/]* | ?:[\\/]*)
6016   ac_cv_path_MV="$MV" # Let the user override the test with a path.
6017   ;;
6018   *)
6019   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6020 for as_dir in $PATH
6021 do
6022   IFS=$as_save_IFS
6023   test -z "$as_dir" && as_dir=.
6024   for ac_exec_ext in '' $ac_executable_extensions; do
6025   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6026     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
6027     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6028     break 2
6029   fi
6030 done
6031 done
6032 IFS=$as_save_IFS
6033
6034   test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6035   ;;
6036 esac
6037 fi
6038 MV=$ac_cv_path_MV
6039 if test -n "$MV"; then
6040   { echo "$as_me:$LINENO: result: $MV" >&5
6041 echo "${ECHO_T}$MV" >&6; }
6042 else
6043   { echo "$as_me:$LINENO: result: no" >&5
6044 echo "${ECHO_T}no" >&6; }
6045 fi
6046
6047
6048 if test -n "$ac_tool_prefix"; then
6049   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6050 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6051 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6052 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6053 if test "${ac_cv_prog_RANLIB+set}" = set; then
6054   echo $ECHO_N "(cached) $ECHO_C" >&6
6055 else
6056   if test -n "$RANLIB"; then
6057   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6058 else
6059 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6060 for as_dir in $PATH
6061 do
6062   IFS=$as_save_IFS
6063   test -z "$as_dir" && as_dir=.
6064   for ac_exec_ext in '' $ac_executable_extensions; do
6065   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6066     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6067     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6068     break 2
6069   fi
6070 done
6071 done
6072 IFS=$as_save_IFS
6073
6074 fi
6075 fi
6076 RANLIB=$ac_cv_prog_RANLIB
6077 if test -n "$RANLIB"; then
6078   { echo "$as_me:$LINENO: result: $RANLIB" >&5
6079 echo "${ECHO_T}$RANLIB" >&6; }
6080 else
6081   { echo "$as_me:$LINENO: result: no" >&5
6082 echo "${ECHO_T}no" >&6; }
6083 fi
6084
6085
6086 fi
6087 if test -z "$ac_cv_prog_RANLIB"; then
6088   ac_ct_RANLIB=$RANLIB
6089   # Extract the first word of "ranlib", so it can be a program name with args.
6090 set dummy ranlib; ac_word=$2
6091 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6092 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6093 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6094   echo $ECHO_N "(cached) $ECHO_C" >&6
6095 else
6096   if test -n "$ac_ct_RANLIB"; then
6097   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6098 else
6099 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6100 for as_dir in $PATH
6101 do
6102   IFS=$as_save_IFS
6103   test -z "$as_dir" && as_dir=.
6104   for ac_exec_ext in '' $ac_executable_extensions; do
6105   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6106     ac_cv_prog_ac_ct_RANLIB="ranlib"
6107     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6108     break 2
6109   fi
6110 done
6111 done
6112 IFS=$as_save_IFS
6113
6114 fi
6115 fi
6116 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6117 if test -n "$ac_ct_RANLIB"; then
6118   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6119 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6120 else
6121   { echo "$as_me:$LINENO: result: no" >&5
6122 echo "${ECHO_T}no" >&6; }
6123 fi
6124
6125   if test "x$ac_ct_RANLIB" = x; then
6126     RANLIB=":"
6127   else
6128     case $cross_compiling:$ac_tool_warned in
6129 yes:)
6130 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6131 whose name does not start with the host triplet.  If you think this
6132 configuration is useful to you, please write to autoconf@gnu.org." >&5
6133 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6134 whose name does not start with the host triplet.  If you think this
6135 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6136 ac_tool_warned=yes ;;
6137 esac
6138     RANLIB=$ac_ct_RANLIB
6139   fi
6140 else
6141   RANLIB="$ac_cv_prog_RANLIB"
6142 fi
6143
6144 if test -n "$ac_tool_prefix"; then
6145   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6146 set dummy ${ac_tool_prefix}ar; ac_word=$2
6147 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6148 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6149 if test "${ac_cv_prog_AR+set}" = set; then
6150   echo $ECHO_N "(cached) $ECHO_C" >&6
6151 else
6152   if test -n "$AR"; then
6153   ac_cv_prog_AR="$AR" # Let the user override the test.
6154 else
6155 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6156 for as_dir in $PATH
6157 do
6158   IFS=$as_save_IFS
6159   test -z "$as_dir" && as_dir=.
6160   for ac_exec_ext in '' $ac_executable_extensions; do
6161   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6162     ac_cv_prog_AR="${ac_tool_prefix}ar"
6163     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6164     break 2
6165   fi
6166 done
6167 done
6168 IFS=$as_save_IFS
6169
6170 fi
6171 fi
6172 AR=$ac_cv_prog_AR
6173 if test -n "$AR"; then
6174   { echo "$as_me:$LINENO: result: $AR" >&5
6175 echo "${ECHO_T}$AR" >&6; }
6176 else
6177   { echo "$as_me:$LINENO: result: no" >&5
6178 echo "${ECHO_T}no" >&6; }
6179 fi
6180
6181
6182 fi
6183 if test -z "$ac_cv_prog_AR"; then
6184   ac_ct_AR=$AR
6185   # Extract the first word of "ar", so it can be a program name with args.
6186 set dummy ar; ac_word=$2
6187 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6188 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6189 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6190   echo $ECHO_N "(cached) $ECHO_C" >&6
6191 else
6192   if test -n "$ac_ct_AR"; then
6193   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6194 else
6195 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6196 for as_dir in $PATH
6197 do
6198   IFS=$as_save_IFS
6199   test -z "$as_dir" && as_dir=.
6200   for ac_exec_ext in '' $ac_executable_extensions; do
6201   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6202     ac_cv_prog_ac_ct_AR="ar"
6203     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6204     break 2
6205   fi
6206 done
6207 done
6208 IFS=$as_save_IFS
6209
6210 fi
6211 fi
6212 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6213 if test -n "$ac_ct_AR"; then
6214   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6215 echo "${ECHO_T}$ac_ct_AR" >&6; }
6216 else
6217   { echo "$as_me:$LINENO: result: no" >&5
6218 echo "${ECHO_T}no" >&6; }
6219 fi
6220
6221   if test "x$ac_ct_AR" = x; then
6222     AR="false"
6223   else
6224     case $cross_compiling:$ac_tool_warned in
6225 yes:)
6226 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6227 whose name does not start with the host triplet.  If you think this
6228 configuration is useful to you, please write to autoconf@gnu.org." >&5
6229 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6230 whose name does not start with the host triplet.  If you think this
6231 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6232 ac_tool_warned=yes ;;
6233 esac
6234     AR=$ac_ct_AR
6235   fi
6236 else
6237   AR="$ac_cv_prog_AR"
6238 fi
6239
6240 # Extract the first word of "rm", so it can be a program name with args.
6241 set dummy rm; ac_word=$2
6242 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6243 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6244 if test "${ac_cv_path_RM+set}" = set; then
6245   echo $ECHO_N "(cached) $ECHO_C" >&6
6246 else
6247   case $RM in
6248   [\\/]* | ?:[\\/]*)
6249   ac_cv_path_RM="$RM" # Let the user override the test with a path.
6250   ;;
6251   *)
6252   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6253 for as_dir in $PATH
6254 do
6255   IFS=$as_save_IFS
6256   test -z "$as_dir" && as_dir=.
6257   for ac_exec_ext in '' $ac_executable_extensions; do
6258   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6259     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
6260     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6261     break 2
6262   fi
6263 done
6264 done
6265 IFS=$as_save_IFS
6266
6267   test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
6268   ;;
6269 esac
6270 fi
6271 RM=$ac_cv_path_RM
6272 if test -n "$RM"; then
6273   { echo "$as_me:$LINENO: result: $RM" >&5
6274 echo "${ECHO_T}$RM" >&6; }
6275 else
6276   { echo "$as_me:$LINENO: result: no" >&5
6277 echo "${ECHO_T}no" >&6; }
6278 fi
6279
6280
6281 # Extract the first word of "sed", so it can be a program name with args.
6282 set dummy sed; ac_word=$2
6283 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6284 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6285 if test "${ac_cv_path_SED+set}" = set; then
6286   echo $ECHO_N "(cached) $ECHO_C" >&6
6287 else
6288   case $SED in
6289   [\\/]* | ?:[\\/]*)
6290   ac_cv_path_SED="$SED" # Let the user override the test with a path.
6291   ;;
6292   *)
6293   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6294 for as_dir in $PATH
6295 do
6296   IFS=$as_save_IFS
6297   test -z "$as_dir" && as_dir=.
6298   for ac_exec_ext in '' $ac_executable_extensions; do
6299   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6300     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
6301     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6302     break 2
6303   fi
6304 done
6305 done
6306 IFS=$as_save_IFS
6307
6308   test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
6309   ;;
6310 esac
6311 fi
6312 SED=$ac_cv_path_SED
6313 if test -n "$SED"; then
6314   { echo "$as_me:$LINENO: result: $SED" >&5
6315 echo "${ECHO_T}$SED" >&6; }
6316 else
6317   { echo "$as_me:$LINENO: result: no" >&5
6318 echo "${ECHO_T}no" >&6; }
6319 fi
6320
6321
6322 # Extract the first word of "tar", so it can be a program name with args.
6323 set dummy tar; ac_word=$2
6324 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6325 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6326 if test "${ac_cv_path_TAR+set}" = set; then
6327   echo $ECHO_N "(cached) $ECHO_C" >&6
6328 else
6329   case $TAR in
6330   [\\/]* | ?:[\\/]*)
6331   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6332   ;;
6333   *)
6334   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6335 for as_dir in $PATH
6336 do
6337   IFS=$as_save_IFS
6338   test -z "$as_dir" && as_dir=.
6339   for ac_exec_ext in '' $ac_executable_extensions; do
6340   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6341     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
6342     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6343     break 2
6344   fi
6345 done
6346 done
6347 IFS=$as_save_IFS
6348
6349   test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
6350   ;;
6351 esac
6352 fi
6353 TAR=$ac_cv_path_TAR
6354 if test -n "$TAR"; then
6355   { echo "$as_me:$LINENO: result: $TAR" >&5
6356 echo "${ECHO_T}$TAR" >&6; }
6357 else
6358   { echo "$as_me:$LINENO: result: no" >&5
6359 echo "${ECHO_T}no" >&6; }
6360 fi
6361
6362
6363 # Extract the first word of "pwd", so it can be a program name with args.
6364 set dummy pwd; ac_word=$2
6365 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6366 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6367 if test "${ac_cv_path_BINPWD+set}" = set; then
6368   echo $ECHO_N "(cached) $ECHO_C" >&6
6369 else
6370   case $BINPWD in
6371   [\\/]* | ?:[\\/]*)
6372   ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
6373   ;;
6374   *)
6375   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6376 for as_dir in $PATH
6377 do
6378   IFS=$as_save_IFS
6379   test -z "$as_dir" && as_dir=.
6380   for ac_exec_ext in '' $ac_executable_extensions; do
6381   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6382     ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
6383     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6384     break 2
6385   fi
6386 done
6387 done
6388 IFS=$as_save_IFS
6389
6390   test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
6391   ;;
6392 esac
6393 fi
6394 BINPWD=$ac_cv_path_BINPWD
6395 if test -n "$BINPWD"; then
6396   { echo "$as_me:$LINENO: result: $BINPWD" >&5
6397 echo "${ECHO_T}$BINPWD" >&6; }
6398 else
6399   { echo "$as_me:$LINENO: result: no" >&5
6400 echo "${ECHO_T}no" >&6; }
6401 fi
6402
6403
6404
6405 # Extract the first word of "Graphviz", so it can be a program name with args.
6406 set dummy Graphviz; ac_word=$2
6407 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6408 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6409 if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
6410   echo $ECHO_N "(cached) $ECHO_C" >&6
6411 else
6412   case $GRAPHVIZ in
6413   [\\/]* | ?:[\\/]*)
6414   ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
6415   ;;
6416   *)
6417   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6418 for as_dir in $PATH
6419 do
6420   IFS=$as_save_IFS
6421   test -z "$as_dir" && as_dir=.
6422   for ac_exec_ext in '' $ac_executable_extensions; do
6423   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6424     ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
6425     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6426     break 2
6427   fi
6428 done
6429 done
6430 IFS=$as_save_IFS
6431
6432   test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
6433   ;;
6434 esac
6435 fi
6436 GRAPHVIZ=$ac_cv_path_GRAPHVIZ
6437 if test -n "$GRAPHVIZ"; then
6438   { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
6439 echo "${ECHO_T}$GRAPHVIZ" >&6; }
6440 else
6441   { echo "$as_me:$LINENO: result: no" >&5
6442 echo "${ECHO_T}no" >&6; }
6443 fi
6444
6445
6446 if test "$GRAPHVIZ" != "echo Graphviz" ; then
6447
6448 cat >>confdefs.h <<\_ACEOF
6449 #define HAVE_GRAPHVIZ 1
6450 _ACEOF
6451
6452     if test "$llvm_cv_os_type" = "MingW" ; then
6453     GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6454   fi
6455
6456 cat >>confdefs.h <<_ACEOF
6457 #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
6458 _ACEOF
6459
6460 fi
6461 # Extract the first word of "dot", so it can be a program name with args.
6462 set dummy dot; ac_word=$2
6463 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6464 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6465 if test "${ac_cv_path_DOT+set}" = set; then
6466   echo $ECHO_N "(cached) $ECHO_C" >&6
6467 else
6468   case $DOT in
6469   [\\/]* | ?:[\\/]*)
6470   ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
6471   ;;
6472   *)
6473   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6474 for as_dir in $PATH
6475 do
6476   IFS=$as_save_IFS
6477   test -z "$as_dir" && as_dir=.
6478   for ac_exec_ext in '' $ac_executable_extensions; do
6479   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6480     ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
6481     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6482     break 2
6483   fi
6484 done
6485 done
6486 IFS=$as_save_IFS
6487
6488   test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
6489   ;;
6490 esac
6491 fi
6492 DOT=$ac_cv_path_DOT
6493 if test -n "$DOT"; then
6494   { echo "$as_me:$LINENO: result: $DOT" >&5
6495 echo "${ECHO_T}$DOT" >&6; }
6496 else
6497   { echo "$as_me:$LINENO: result: no" >&5
6498 echo "${ECHO_T}no" >&6; }
6499 fi
6500
6501
6502 if test "$DOT" != "echo dot" ; then
6503
6504 cat >>confdefs.h <<\_ACEOF
6505 #define HAVE_DOT 1
6506 _ACEOF
6507
6508     if test "$llvm_cv_os_type" = "MingW" ; then
6509     DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6510   fi
6511
6512 cat >>confdefs.h <<_ACEOF
6513 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
6514 _ACEOF
6515
6516 fi
6517 # Extract the first word of "fdp", so it can be a program name with args.
6518 set dummy fdp; ac_word=$2
6519 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6520 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6521 if test "${ac_cv_path_FDP+set}" = set; then
6522   echo $ECHO_N "(cached) $ECHO_C" >&6
6523 else
6524   case $FDP in
6525   [\\/]* | ?:[\\/]*)
6526   ac_cv_path_FDP="$FDP" # Let the user override the test with a path.
6527   ;;
6528   *)
6529   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6530 for as_dir in $PATH
6531 do
6532   IFS=$as_save_IFS
6533   test -z "$as_dir" && as_dir=.
6534   for ac_exec_ext in '' $ac_executable_extensions; do
6535   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6536     ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext"
6537     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6538     break 2
6539   fi
6540 done
6541 done
6542 IFS=$as_save_IFS
6543
6544   test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp"
6545   ;;
6546 esac
6547 fi
6548 FDP=$ac_cv_path_FDP
6549 if test -n "$FDP"; then
6550   { echo "$as_me:$LINENO: result: $FDP" >&5
6551 echo "${ECHO_T}$FDP" >&6; }
6552 else
6553   { echo "$as_me:$LINENO: result: no" >&5
6554 echo "${ECHO_T}no" >&6; }
6555 fi
6556
6557
6558 if test "$FDP" != "echo fdp" ; then
6559
6560 cat >>confdefs.h <<\_ACEOF
6561 #define HAVE_FDP 1
6562 _ACEOF
6563
6564     if test "$llvm_cv_os_type" = "MingW" ; then
6565     FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6566   fi
6567
6568 cat >>confdefs.h <<_ACEOF
6569 #define LLVM_PATH_FDP "$FDP${EXEEXT}"
6570 _ACEOF
6571
6572 fi
6573 # Extract the first word of "neato", so it can be a program name with args.
6574 set dummy neato; ac_word=$2
6575 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6576 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6577 if test "${ac_cv_path_NEATO+set}" = set; then
6578   echo $ECHO_N "(cached) $ECHO_C" >&6
6579 else
6580   case $NEATO in
6581   [\\/]* | ?:[\\/]*)
6582   ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path.
6583   ;;
6584   *)
6585   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6586 for as_dir in $PATH
6587 do
6588   IFS=$as_save_IFS
6589   test -z "$as_dir" && as_dir=.
6590   for ac_exec_ext in '' $ac_executable_extensions; do
6591   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6592     ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext"
6593     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6594     break 2
6595   fi
6596 done
6597 done
6598 IFS=$as_save_IFS
6599
6600   test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato"
6601   ;;
6602 esac
6603 fi
6604 NEATO=$ac_cv_path_NEATO
6605 if test -n "$NEATO"; then
6606   { echo "$as_me:$LINENO: result: $NEATO" >&5
6607 echo "${ECHO_T}$NEATO" >&6; }
6608 else
6609   { echo "$as_me:$LINENO: result: no" >&5
6610 echo "${ECHO_T}no" >&6; }
6611 fi
6612
6613
6614 if test "$NEATO" != "echo neato" ; then
6615
6616 cat >>confdefs.h <<\_ACEOF
6617 #define HAVE_NEATO 1
6618 _ACEOF
6619
6620     if test "$llvm_cv_os_type" = "MingW" ; then
6621     NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6622   fi
6623
6624 cat >>confdefs.h <<_ACEOF
6625 #define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
6626 _ACEOF
6627
6628 fi
6629 # Extract the first word of "twopi", so it can be a program name with args.
6630 set dummy twopi; ac_word=$2
6631 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6632 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6633 if test "${ac_cv_path_TWOPI+set}" = set; then
6634   echo $ECHO_N "(cached) $ECHO_C" >&6
6635 else
6636   case $TWOPI in
6637   [\\/]* | ?:[\\/]*)
6638   ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path.
6639   ;;
6640   *)
6641   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6642 for as_dir in $PATH
6643 do
6644   IFS=$as_save_IFS
6645   test -z "$as_dir" && as_dir=.
6646   for ac_exec_ext in '' $ac_executable_extensions; do
6647   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6648     ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext"
6649     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6650     break 2
6651   fi
6652 done
6653 done
6654 IFS=$as_save_IFS
6655
6656   test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi"
6657   ;;
6658 esac
6659 fi
6660 TWOPI=$ac_cv_path_TWOPI
6661 if test -n "$TWOPI"; then
6662   { echo "$as_me:$LINENO: result: $TWOPI" >&5
6663 echo "${ECHO_T}$TWOPI" >&6; }
6664 else
6665   { echo "$as_me:$LINENO: result: no" >&5
6666 echo "${ECHO_T}no" >&6; }
6667 fi
6668
6669
6670 if test "$TWOPI" != "echo twopi" ; then
6671
6672 cat >>confdefs.h <<\_ACEOF
6673 #define HAVE_TWOPI 1
6674 _ACEOF
6675
6676     if test "$llvm_cv_os_type" = "MingW" ; then
6677     TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6678   fi
6679
6680 cat >>confdefs.h <<_ACEOF
6681 #define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
6682 _ACEOF
6683
6684 fi
6685 # Extract the first word of "circo", so it can be a program name with args.
6686 set dummy circo; ac_word=$2
6687 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6688 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6689 if test "${ac_cv_path_CIRCO+set}" = set; then
6690   echo $ECHO_N "(cached) $ECHO_C" >&6
6691 else
6692   case $CIRCO in
6693   [\\/]* | ?:[\\/]*)
6694   ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path.
6695   ;;
6696   *)
6697   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6698 for as_dir in $PATH
6699 do
6700   IFS=$as_save_IFS
6701   test -z "$as_dir" && as_dir=.
6702   for ac_exec_ext in '' $ac_executable_extensions; do
6703   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6704     ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext"
6705     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6706     break 2
6707   fi
6708 done
6709 done
6710 IFS=$as_save_IFS
6711
6712   test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo"
6713   ;;
6714 esac
6715 fi
6716 CIRCO=$ac_cv_path_CIRCO
6717 if test -n "$CIRCO"; then
6718   { echo "$as_me:$LINENO: result: $CIRCO" >&5
6719 echo "${ECHO_T}$CIRCO" >&6; }
6720 else
6721   { echo "$as_me:$LINENO: result: no" >&5
6722 echo "${ECHO_T}no" >&6; }
6723 fi
6724
6725
6726 if test "$CIRCO" != "echo circo" ; then
6727
6728 cat >>confdefs.h <<\_ACEOF
6729 #define HAVE_CIRCO 1
6730 _ACEOF
6731
6732     if test "$llvm_cv_os_type" = "MingW" ; then
6733     CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6734   fi
6735
6736 cat >>confdefs.h <<_ACEOF
6737 #define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
6738 _ACEOF
6739
6740 fi
6741 for ac_prog in gv gsview32
6742 do
6743   # Extract the first word of "$ac_prog", so it can be a program name with args.
6744 set dummy $ac_prog; ac_word=$2
6745 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6746 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6747 if test "${ac_cv_path_GV+set}" = set; then
6748   echo $ECHO_N "(cached) $ECHO_C" >&6
6749 else
6750   case $GV in
6751   [\\/]* | ?:[\\/]*)
6752   ac_cv_path_GV="$GV" # Let the user override the test with a path.
6753   ;;
6754   *)
6755   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6756 for as_dir in $PATH
6757 do
6758   IFS=$as_save_IFS
6759   test -z "$as_dir" && as_dir=.
6760   for ac_exec_ext in '' $ac_executable_extensions; do
6761   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6762     ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
6763     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6764     break 2
6765   fi
6766 done
6767 done
6768 IFS=$as_save_IFS
6769
6770   ;;
6771 esac
6772 fi
6773 GV=$ac_cv_path_GV
6774 if test -n "$GV"; then
6775   { echo "$as_me:$LINENO: result: $GV" >&5
6776 echo "${ECHO_T}$GV" >&6; }
6777 else
6778   { echo "$as_me:$LINENO: result: no" >&5
6779 echo "${ECHO_T}no" >&6; }
6780 fi
6781
6782
6783   test -n "$GV" && break
6784 done
6785 test -n "$GV" || GV="echo gv"
6786
6787 if test "$GV" != "echo gv" ; then
6788
6789 cat >>confdefs.h <<\_ACEOF
6790 #define HAVE_GV 1
6791 _ACEOF
6792
6793     if test "$llvm_cv_os_type" = "MingW" ; then
6794     GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6795   fi
6796
6797 cat >>confdefs.h <<_ACEOF
6798 #define LLVM_PATH_GV "$GV${EXEEXT}"
6799 _ACEOF
6800
6801 fi
6802 # Extract the first word of "dotty", so it can be a program name with args.
6803 set dummy dotty; ac_word=$2
6804 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6805 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6806 if test "${ac_cv_path_DOTTY+set}" = set; then
6807   echo $ECHO_N "(cached) $ECHO_C" >&6
6808 else
6809   case $DOTTY in
6810   [\\/]* | ?:[\\/]*)
6811   ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
6812   ;;
6813   *)
6814   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6815 for as_dir in $PATH
6816 do
6817   IFS=$as_save_IFS
6818   test -z "$as_dir" && as_dir=.
6819   for ac_exec_ext in '' $ac_executable_extensions; do
6820   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6821     ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
6822     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6823     break 2
6824   fi
6825 done
6826 done
6827 IFS=$as_save_IFS
6828
6829   test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
6830   ;;
6831 esac
6832 fi
6833 DOTTY=$ac_cv_path_DOTTY
6834 if test -n "$DOTTY"; then
6835   { echo "$as_me:$LINENO: result: $DOTTY" >&5
6836 echo "${ECHO_T}$DOTTY" >&6; }
6837 else
6838   { echo "$as_me:$LINENO: result: no" >&5
6839 echo "${ECHO_T}no" >&6; }
6840 fi
6841
6842
6843 if test "$DOTTY" != "echo dotty" ; then
6844
6845 cat >>confdefs.h <<\_ACEOF
6846 #define HAVE_DOTTY 1
6847 _ACEOF
6848
6849     if test "$llvm_cv_os_type" = "MingW" ; then
6850     DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6851   fi
6852
6853 cat >>confdefs.h <<_ACEOF
6854 #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
6855 _ACEOF
6856
6857 fi
6858 # Extract the first word of "xdot.py", so it can be a program name with args.
6859 set dummy xdot.py; ac_word=$2
6860 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6861 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6862 if test "${ac_cv_path_XDOT_PY+set}" = set; then
6863   echo $ECHO_N "(cached) $ECHO_C" >&6
6864 else
6865   case $XDOT_PY in
6866   [\\/]* | ?:[\\/]*)
6867   ac_cv_path_XDOT_PY="$XDOT_PY" # Let the user override the test with a path.
6868   ;;
6869   *)
6870   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6871 for as_dir in $PATH
6872 do
6873   IFS=$as_save_IFS
6874   test -z "$as_dir" && as_dir=.
6875   for ac_exec_ext in '' $ac_executable_extensions; do
6876   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6877     ac_cv_path_XDOT_PY="$as_dir/$ac_word$ac_exec_ext"
6878     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6879     break 2
6880   fi
6881 done
6882 done
6883 IFS=$as_save_IFS
6884
6885   test -z "$ac_cv_path_XDOT_PY" && ac_cv_path_XDOT_PY="echo xdot.py"
6886   ;;
6887 esac
6888 fi
6889 XDOT_PY=$ac_cv_path_XDOT_PY
6890 if test -n "$XDOT_PY"; then
6891   { echo "$as_me:$LINENO: result: $XDOT_PY" >&5
6892 echo "${ECHO_T}$XDOT_PY" >&6; }
6893 else
6894   { echo "$as_me:$LINENO: result: no" >&5
6895 echo "${ECHO_T}no" >&6; }
6896 fi
6897
6898
6899 if test "$XDOT_PY" != "echo xdot.py" ; then
6900
6901 cat >>confdefs.h <<\_ACEOF
6902 #define HAVE_XDOT_PY 1
6903 _ACEOF
6904
6905     if test "$llvm_cv_os_type" = "MingW" ; then
6906     XDOT_PY=`echo $XDOT_PY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6907   fi
6908
6909 cat >>confdefs.h <<_ACEOF
6910 #define LLVM_PATH_XDOT_PY "$XDOT_PY${EXEEXT}"
6911 _ACEOF
6912
6913 fi
6914
6915 # Find a good install program.  We prefer a C program (faster),
6916 # so one script is as good as another.  But avoid the broken or
6917 # incompatible versions:
6918 # SysV /etc/install, /usr/sbin/install
6919 # SunOS /usr/etc/install
6920 # IRIX /sbin/install
6921 # AIX /bin/install
6922 # AmigaOS /C/install, which installs bootblocks on floppy discs
6923 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6924 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
6925 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6926 # OS/2's system install, which has a completely different semantic
6927 # ./install, which can be erroneously created by make from ./install.sh.
6928 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
6929 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
6930 if test -z "$INSTALL"; then
6931 if test "${ac_cv_path_install+set}" = set; then
6932   echo $ECHO_N "(cached) $ECHO_C" >&6
6933 else
6934   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6935 for as_dir in $PATH
6936 do
6937   IFS=$as_save_IFS
6938   test -z "$as_dir" && as_dir=.
6939   # Account for people who put trailing slashes in PATH elements.
6940 case $as_dir/ in
6941   ./ | .// | /cC/* | \
6942   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
6943   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
6944   /usr/ucb/* ) ;;
6945   *)
6946     # OSF1 and SCO ODT 3.0 have their own names for install.
6947     # Don't use installbsd from OSF since it installs stuff as root
6948     # by default.
6949     for ac_prog in ginstall scoinst install; do
6950       for ac_exec_ext in '' $ac_executable_extensions; do
6951         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
6952           if test $ac_prog = install &&
6953             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6954             # AIX install.  It has an incompatible calling convention.
6955             :
6956           elif test $ac_prog = install &&
6957             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6958             # program-specific install script used by HP pwplus--don't use.
6959             :
6960           else
6961             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
6962             break 3
6963           fi
6964         fi
6965       done
6966     done
6967     ;;
6968 esac
6969 done
6970 IFS=$as_save_IFS
6971
6972
6973 fi
6974   if test "${ac_cv_path_install+set}" = set; then
6975     INSTALL=$ac_cv_path_install
6976   else
6977     # As a last resort, use the slow shell script.  Don't cache a
6978     # value for INSTALL within a source directory, because that will
6979     # break other packages using the cache if that directory is
6980     # removed, or if the value is a relative name.
6981     INSTALL=$ac_install_sh
6982   fi
6983 fi
6984 { echo "$as_me:$LINENO: result: $INSTALL" >&5
6985 echo "${ECHO_T}$INSTALL" >&6; }
6986
6987 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6988 # It thinks the first close brace ends the variable substitution.
6989 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
6990
6991 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
6992
6993 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
6994
6995 case "$INSTALL" in
6996  [\\/$]* | ?:[\\/]* ) ;;
6997  *)  INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
6998 esac
6999
7000 # Extract the first word of "bzip2", so it can be a program name with args.
7001 set dummy bzip2; ac_word=$2
7002 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7003 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7004 if test "${ac_cv_path_BZIP2+set}" = set; then
7005   echo $ECHO_N "(cached) $ECHO_C" >&6
7006 else
7007   case $BZIP2 in
7008   [\\/]* | ?:[\\/]*)
7009   ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7010   ;;
7011   *)
7012   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7013 for as_dir in $PATH
7014 do
7015   IFS=$as_save_IFS
7016   test -z "$as_dir" && as_dir=.
7017   for ac_exec_ext in '' $ac_executable_extensions; do
7018   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7019     ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
7020     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7021     break 2
7022   fi
7023 done
7024 done
7025 IFS=$as_save_IFS
7026
7027   ;;
7028 esac
7029 fi
7030 BZIP2=$ac_cv_path_BZIP2
7031 if test -n "$BZIP2"; then
7032   { echo "$as_me:$LINENO: result: $BZIP2" >&5
7033 echo "${ECHO_T}$BZIP2" >&6; }
7034 else
7035   { echo "$as_me:$LINENO: result: no" >&5
7036 echo "${ECHO_T}no" >&6; }
7037 fi
7038
7039
7040 # Extract the first word of "cat", so it can be a program name with args.
7041 set dummy cat; ac_word=$2
7042 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7043 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7044 if test "${ac_cv_path_CAT+set}" = set; then
7045   echo $ECHO_N "(cached) $ECHO_C" >&6
7046 else
7047   case $CAT in
7048   [\\/]* | ?:[\\/]*)
7049   ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
7050   ;;
7051   *)
7052   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7053 for as_dir in $PATH
7054 do
7055   IFS=$as_save_IFS
7056   test -z "$as_dir" && as_dir=.
7057   for ac_exec_ext in '' $ac_executable_extensions; do
7058   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7059     ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
7060     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7061     break 2
7062   fi
7063 done
7064 done
7065 IFS=$as_save_IFS
7066
7067   ;;
7068 esac
7069 fi
7070 CAT=$ac_cv_path_CAT
7071 if test -n "$CAT"; then
7072   { echo "$as_me:$LINENO: result: $CAT" >&5
7073 echo "${ECHO_T}$CAT" >&6; }
7074 else
7075   { echo "$as_me:$LINENO: result: no" >&5
7076 echo "${ECHO_T}no" >&6; }
7077 fi
7078
7079
7080 # Extract the first word of "doxygen", so it can be a program name with args.
7081 set dummy doxygen; ac_word=$2
7082 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7083 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7084 if test "${ac_cv_path_DOXYGEN+set}" = set; then
7085   echo $ECHO_N "(cached) $ECHO_C" >&6
7086 else
7087   case $DOXYGEN in
7088   [\\/]* | ?:[\\/]*)
7089   ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7090   ;;
7091   *)
7092   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7093 for as_dir in $PATH
7094 do
7095   IFS=$as_save_IFS
7096   test -z "$as_dir" && as_dir=.
7097   for ac_exec_ext in '' $ac_executable_extensions; do
7098   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7099     ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
7100     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7101     break 2
7102   fi
7103 done
7104 done
7105 IFS=$as_save_IFS
7106
7107   ;;
7108 esac
7109 fi
7110 DOXYGEN=$ac_cv_path_DOXYGEN
7111 if test -n "$DOXYGEN"; then
7112   { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7113 echo "${ECHO_T}$DOXYGEN" >&6; }
7114 else
7115   { echo "$as_me:$LINENO: result: no" >&5
7116 echo "${ECHO_T}no" >&6; }
7117 fi
7118
7119
7120 # Extract the first word of "groff", so it can be a program name with args.
7121 set dummy groff; ac_word=$2
7122 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7123 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7124 if test "${ac_cv_path_GROFF+set}" = set; then
7125   echo $ECHO_N "(cached) $ECHO_C" >&6
7126 else
7127   case $GROFF in
7128   [\\/]* | ?:[\\/]*)
7129   ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7130   ;;
7131   *)
7132   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7133 for as_dir in $PATH
7134 do
7135   IFS=$as_save_IFS
7136   test -z "$as_dir" && as_dir=.
7137   for ac_exec_ext in '' $ac_executable_extensions; do
7138   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7139     ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7140     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7141     break 2
7142   fi
7143 done
7144 done
7145 IFS=$as_save_IFS
7146
7147   ;;
7148 esac
7149 fi
7150 GROFF=$ac_cv_path_GROFF
7151 if test -n "$GROFF"; then
7152   { echo "$as_me:$LINENO: result: $GROFF" >&5
7153 echo "${ECHO_T}$GROFF" >&6; }
7154 else
7155   { echo "$as_me:$LINENO: result: no" >&5
7156 echo "${ECHO_T}no" >&6; }
7157 fi
7158
7159
7160 # Extract the first word of "gzip", so it can be a program name with args.
7161 set dummy gzip; ac_word=$2
7162 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7163 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7164 if test "${ac_cv_path_GZIPBIN+set}" = set; then
7165   echo $ECHO_N "(cached) $ECHO_C" >&6
7166 else
7167   case $GZIPBIN in
7168   [\\/]* | ?:[\\/]*)
7169   ac_cv_path_GZIPBIN="$GZIPBIN" # Let the user override the test with a path.
7170   ;;
7171   *)
7172   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7173 for as_dir in $PATH
7174 do
7175   IFS=$as_save_IFS
7176   test -z "$as_dir" && as_dir=.
7177   for ac_exec_ext in '' $ac_executable_extensions; do
7178   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7179     ac_cv_path_GZIPBIN="$as_dir/$ac_word$ac_exec_ext"
7180     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7181     break 2
7182   fi
7183 done
7184 done
7185 IFS=$as_save_IFS
7186
7187   ;;
7188 esac
7189 fi
7190 GZIPBIN=$ac_cv_path_GZIPBIN
7191 if test -n "$GZIPBIN"; then
7192   { echo "$as_me:$LINENO: result: $GZIPBIN" >&5
7193 echo "${ECHO_T}$GZIPBIN" >&6; }
7194 else
7195   { echo "$as_me:$LINENO: result: no" >&5
7196 echo "${ECHO_T}no" >&6; }
7197 fi
7198
7199
7200 # Extract the first word of "pdfroff", so it can be a program name with args.
7201 set dummy pdfroff; ac_word=$2
7202 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7203 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7204 if test "${ac_cv_path_PDFROFF+set}" = set; then
7205   echo $ECHO_N "(cached) $ECHO_C" >&6
7206 else
7207   case $PDFROFF in
7208   [\\/]* | ?:[\\/]*)
7209   ac_cv_path_PDFROFF="$PDFROFF" # Let the user override the test with a path.
7210   ;;
7211   *)
7212   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7213 for as_dir in $PATH
7214 do
7215   IFS=$as_save_IFS
7216   test -z "$as_dir" && as_dir=.
7217   for ac_exec_ext in '' $ac_executable_extensions; do
7218   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7219     ac_cv_path_PDFROFF="$as_dir/$ac_word$ac_exec_ext"
7220     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7221     break 2
7222   fi
7223 done
7224 done
7225 IFS=$as_save_IFS
7226
7227   ;;
7228 esac
7229 fi
7230 PDFROFF=$ac_cv_path_PDFROFF
7231 if test -n "$PDFROFF"; then
7232   { echo "$as_me:$LINENO: result: $PDFROFF" >&5
7233 echo "${ECHO_T}$PDFROFF" >&6; }
7234 else
7235   { echo "$as_me:$LINENO: result: no" >&5
7236 echo "${ECHO_T}no" >&6; }
7237 fi
7238
7239
7240 # Extract the first word of "runtest", so it can be a program name with args.
7241 set dummy runtest; ac_word=$2
7242 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7243 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7244 if test "${ac_cv_path_RUNTEST+set}" = set; then
7245   echo $ECHO_N "(cached) $ECHO_C" >&6
7246 else
7247   case $RUNTEST in
7248   [\\/]* | ?:[\\/]*)
7249   ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
7250   ;;
7251   *)
7252   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7253 for as_dir in $PATH
7254 do
7255   IFS=$as_save_IFS
7256   test -z "$as_dir" && as_dir=.
7257   for ac_exec_ext in '' $ac_executable_extensions; do
7258   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7259     ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
7260     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7261     break 2
7262   fi
7263 done
7264 done
7265 IFS=$as_save_IFS
7266
7267   ;;
7268 esac
7269 fi
7270 RUNTEST=$ac_cv_path_RUNTEST
7271 if test -n "$RUNTEST"; then
7272   { echo "$as_me:$LINENO: result: $RUNTEST" >&5
7273 echo "${ECHO_T}$RUNTEST" >&6; }
7274 else
7275   { echo "$as_me:$LINENO: result: no" >&5
7276 echo "${ECHO_T}no" >&6; }
7277 fi
7278
7279
7280
7281 no_itcl=true
7282 { echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
7283 echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
7284
7285 # Check whether --with-tclinclude was given.
7286 if test "${with_tclinclude+set}" = set; then
7287   withval=$with_tclinclude; with_tclinclude=${withval}
7288 else
7289   with_tclinclude=''
7290 fi
7291
7292 if test "${ac_cv_path_tclsh+set}" = set; then
7293   echo $ECHO_N "(cached) $ECHO_C" >&6
7294 else
7295
7296 if test x"${with_tclinclude}" != x ; then
7297   if test -f ${with_tclinclude}/tclsh ; then
7298     ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
7299   elif test -f ${with_tclinclude}/src/tclsh ; then
7300     ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
7301   else
7302     { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
7303 echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
7304    { (exit 1); exit 1; }; }
7305   fi
7306 fi
7307 fi
7308
7309
7310 if test x"${ac_cv_path_tclsh}" = x ; then
7311   { echo "$as_me:$LINENO: result: none" >&5
7312 echo "${ECHO_T}none" >&6; }
7313   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
7314 do
7315   # Extract the first word of "$ac_prog", so it can be a program name with args.
7316 set dummy $ac_prog; ac_word=$2
7317 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7318 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7319 if test "${ac_cv_path_TCLSH+set}" = set; then
7320   echo $ECHO_N "(cached) $ECHO_C" >&6
7321 else
7322   case $TCLSH in
7323   [\\/]* | ?:[\\/]*)
7324   ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
7325   ;;
7326   *)
7327   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7328 for as_dir in $PATH
7329 do
7330   IFS=$as_save_IFS
7331   test -z "$as_dir" && as_dir=.
7332   for ac_exec_ext in '' $ac_executable_extensions; do
7333   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7334     ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
7335     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7336     break 2
7337   fi
7338 done
7339 done
7340 IFS=$as_save_IFS
7341
7342   ;;
7343 esac
7344 fi
7345 TCLSH=$ac_cv_path_TCLSH
7346 if test -n "$TCLSH"; then
7347   { echo "$as_me:$LINENO: result: $TCLSH" >&5
7348 echo "${ECHO_T}$TCLSH" >&6; }
7349 else
7350   { echo "$as_me:$LINENO: result: no" >&5
7351 echo "${ECHO_T}no" >&6; }
7352 fi
7353
7354
7355   test -n "$TCLSH" && break
7356 done
7357
7358   if test x"${TCLSH}" = x ; then
7359     ac_cv_path_tclsh='';
7360   else
7361     ac_cv_path_tclsh="${TCLSH}";
7362   fi
7363 else
7364   { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
7365 echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
7366   TCLSH="${ac_cv_path_tclsh}"
7367
7368 fi
7369
7370 # Extract the first word of "zip", so it can be a program name with args.
7371 set dummy zip; ac_word=$2
7372 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7373 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7374 if test "${ac_cv_path_ZIP+set}" = set; then
7375   echo $ECHO_N "(cached) $ECHO_C" >&6
7376 else
7377   case $ZIP in
7378   [\\/]* | ?:[\\/]*)
7379   ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
7380   ;;
7381   *)
7382   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7383 for as_dir in $PATH
7384 do
7385   IFS=$as_save_IFS
7386   test -z "$as_dir" && as_dir=.
7387   for ac_exec_ext in '' $ac_executable_extensions; do
7388   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7389     ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
7390     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7391     break 2
7392   fi
7393 done
7394 done
7395 IFS=$as_save_IFS
7396
7397   ;;
7398 esac
7399 fi
7400 ZIP=$ac_cv_path_ZIP
7401 if test -n "$ZIP"; then
7402   { echo "$as_me:$LINENO: result: $ZIP" >&5
7403 echo "${ECHO_T}$ZIP" >&6; }
7404 else
7405   { echo "$as_me:$LINENO: result: no" >&5
7406 echo "${ECHO_T}no" >&6; }
7407 fi
7408
7409
7410 for ac_prog in ocamlc
7411 do
7412   # Extract the first word of "$ac_prog", so it can be a program name with args.
7413 set dummy $ac_prog; ac_word=$2
7414 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7415 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7416 if test "${ac_cv_path_OCAMLC+set}" = set; then
7417   echo $ECHO_N "(cached) $ECHO_C" >&6
7418 else
7419   case $OCAMLC in
7420   [\\/]* | ?:[\\/]*)
7421   ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
7422   ;;
7423   *)
7424   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7425 for as_dir in $PATH
7426 do
7427   IFS=$as_save_IFS
7428   test -z "$as_dir" && as_dir=.
7429   for ac_exec_ext in '' $ac_executable_extensions; do
7430   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7431     ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
7432     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7433     break 2
7434   fi
7435 done
7436 done
7437 IFS=$as_save_IFS
7438
7439   ;;
7440 esac
7441 fi
7442 OCAMLC=$ac_cv_path_OCAMLC
7443 if test -n "$OCAMLC"; then
7444   { echo "$as_me:$LINENO: result: $OCAMLC" >&5
7445 echo "${ECHO_T}$OCAMLC" >&6; }
7446 else
7447   { echo "$as_me:$LINENO: result: no" >&5
7448 echo "${ECHO_T}no" >&6; }
7449 fi
7450
7451
7452   test -n "$OCAMLC" && break
7453 done
7454
7455 for ac_prog in ocamlopt
7456 do
7457   # Extract the first word of "$ac_prog", so it can be a program name with args.
7458 set dummy $ac_prog; ac_word=$2
7459 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7460 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7461 if test "${ac_cv_path_OCAMLOPT+set}" = set; then
7462   echo $ECHO_N "(cached) $ECHO_C" >&6
7463 else
7464   case $OCAMLOPT in
7465   [\\/]* | ?:[\\/]*)
7466   ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
7467   ;;
7468   *)
7469   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7470 for as_dir in $PATH
7471 do
7472   IFS=$as_save_IFS
7473   test -z "$as_dir" && as_dir=.
7474   for ac_exec_ext in '' $ac_executable_extensions; do
7475   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7476     ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
7477     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7478     break 2
7479   fi
7480 done
7481 done
7482 IFS=$as_save_IFS
7483
7484   ;;
7485 esac
7486 fi
7487 OCAMLOPT=$ac_cv_path_OCAMLOPT
7488 if test -n "$OCAMLOPT"; then
7489   { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
7490 echo "${ECHO_T}$OCAMLOPT" >&6; }
7491 else
7492   { echo "$as_me:$LINENO: result: no" >&5
7493 echo "${ECHO_T}no" >&6; }
7494 fi
7495
7496
7497   test -n "$OCAMLOPT" && break
7498 done
7499
7500 for ac_prog in ocamldep
7501 do
7502   # Extract the first word of "$ac_prog", so it can be a program name with args.
7503 set dummy $ac_prog; ac_word=$2
7504 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7505 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7506 if test "${ac_cv_path_OCAMLDEP+set}" = set; then
7507   echo $ECHO_N "(cached) $ECHO_C" >&6
7508 else
7509   case $OCAMLDEP in
7510   [\\/]* | ?:[\\/]*)
7511   ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
7512   ;;
7513   *)
7514   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7515 for as_dir in $PATH
7516 do
7517   IFS=$as_save_IFS
7518   test -z "$as_dir" && as_dir=.
7519   for ac_exec_ext in '' $ac_executable_extensions; do
7520   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7521     ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
7522     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7523     break 2
7524   fi
7525 done
7526 done
7527 IFS=$as_save_IFS
7528
7529   ;;
7530 esac
7531 fi
7532 OCAMLDEP=$ac_cv_path_OCAMLDEP
7533 if test -n "$OCAMLDEP"; then
7534   { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
7535 echo "${ECHO_T}$OCAMLDEP" >&6; }
7536 else
7537   { echo "$as_me:$LINENO: result: no" >&5
7538 echo "${ECHO_T}no" >&6; }
7539 fi
7540
7541
7542   test -n "$OCAMLDEP" && break
7543 done
7544
7545 for ac_prog in ocamldoc
7546 do
7547   # Extract the first word of "$ac_prog", so it can be a program name with args.
7548 set dummy $ac_prog; ac_word=$2
7549 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7550 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7551 if test "${ac_cv_path_OCAMLDOC+set}" = set; then
7552   echo $ECHO_N "(cached) $ECHO_C" >&6
7553 else
7554   case $OCAMLDOC in
7555   [\\/]* | ?:[\\/]*)
7556   ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
7557   ;;
7558   *)
7559   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7560 for as_dir in $PATH
7561 do
7562   IFS=$as_save_IFS
7563   test -z "$as_dir" && as_dir=.
7564   for ac_exec_ext in '' $ac_executable_extensions; do
7565   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7566     ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
7567     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7568     break 2
7569   fi
7570 done
7571 done
7572 IFS=$as_save_IFS
7573
7574   ;;
7575 esac
7576 fi
7577 OCAMLDOC=$ac_cv_path_OCAMLDOC
7578 if test -n "$OCAMLDOC"; then
7579   { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
7580 echo "${ECHO_T}$OCAMLDOC" >&6; }
7581 else
7582   { echo "$as_me:$LINENO: result: no" >&5
7583 echo "${ECHO_T}no" >&6; }
7584 fi
7585
7586
7587   test -n "$OCAMLDOC" && break
7588 done
7589
7590 for ac_prog in gas as
7591 do
7592   # Extract the first word of "$ac_prog", so it can be a program name with args.
7593 set dummy $ac_prog; ac_word=$2
7594 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7595 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7596 if test "${ac_cv_path_GAS+set}" = set; then
7597   echo $ECHO_N "(cached) $ECHO_C" >&6
7598 else
7599   case $GAS in
7600   [\\/]* | ?:[\\/]*)
7601   ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
7602   ;;
7603   *)
7604   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7605 for as_dir in $PATH
7606 do
7607   IFS=$as_save_IFS
7608   test -z "$as_dir" && as_dir=.
7609   for ac_exec_ext in '' $ac_executable_extensions; do
7610   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7611     ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
7612     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7613     break 2
7614   fi
7615 done
7616 done
7617 IFS=$as_save_IFS
7618
7619   ;;
7620 esac
7621 fi
7622 GAS=$ac_cv_path_GAS
7623 if test -n "$GAS"; then
7624   { echo "$as_me:$LINENO: result: $GAS" >&5
7625 echo "${ECHO_T}$GAS" >&6; }
7626 else
7627   { echo "$as_me:$LINENO: result: no" >&5
7628 echo "${ECHO_T}no" >&6; }
7629 fi
7630
7631
7632   test -n "$GAS" && break
7633 done
7634
7635
7636 { echo "$as_me:$LINENO: checking for linker version" >&5
7637 echo $ECHO_N "checking for linker version... $ECHO_C" >&6; }
7638 if test "${llvm_cv_link_version+set}" = set; then
7639   echo $ECHO_N "(cached) $ECHO_C" >&6
7640 else
7641
7642    version_string="$(ld -v 2>&1 | head -1)"
7643
7644    # Check for ld64.
7645    if (echo "$version_string" | grep -q "ld64"); then
7646      llvm_cv_link_version=$(echo "$version_string" | sed -e "s#.*ld64-\([^ ]*\)\( (.*)\)\{0,1\}#\1#")
7647    else
7648      llvm_cv_link_version=$(echo "$version_string" | sed -e "s#[^0-9]*\([0-9.]*\).*#\1#")
7649    fi
7650
7651 fi
7652 { echo "$as_me:$LINENO: result: $llvm_cv_link_version" >&5
7653 echo "${ECHO_T}$llvm_cv_link_version" >&6; }
7654
7655 cat >>confdefs.h <<_ACEOF
7656 #define HOST_LINK_VERSION "$llvm_cv_link_version"
7657 _ACEOF
7658
7659
7660
7661 { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
7662 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
7663 if test "${llvm_cv_link_use_r+set}" = set; then
7664   echo $ECHO_N "(cached) $ECHO_C" >&6
7665 else
7666    ac_ext=c
7667 ac_cpp='$CPP $CPPFLAGS'
7668 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7669 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7670 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7671
7672   oldcflags="$CFLAGS"
7673   CFLAGS="$CFLAGS -Wl,-R."
7674   cat >conftest.$ac_ext <<_ACEOF
7675 /* confdefs.h.  */
7676 _ACEOF
7677 cat confdefs.h >>conftest.$ac_ext
7678 cat >>conftest.$ac_ext <<_ACEOF
7679 /* end confdefs.h.  */
7680
7681 int
7682 main ()
7683 {
7684
7685   ;
7686   return 0;
7687 }
7688 _ACEOF
7689 rm -f conftest.$ac_objext conftest$ac_exeext
7690 if { (ac_try="$ac_link"
7691 case "(($ac_try" in
7692   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7693   *) ac_try_echo=$ac_try;;
7694 esac
7695 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7696   (eval "$ac_link") 2>conftest.er1
7697   ac_status=$?
7698   grep -v '^ *+' conftest.er1 >conftest.err
7699   rm -f conftest.er1
7700   cat conftest.err >&5
7701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7702   (exit $ac_status); } &&
7703          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7704   { (case "(($ac_try" in
7705   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7706   *) ac_try_echo=$ac_try;;
7707 esac
7708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7709   (eval "$ac_try") 2>&5
7710   ac_status=$?
7711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7712   (exit $ac_status); }; } &&
7713          { ac_try='test -s conftest$ac_exeext'
7714   { (case "(($ac_try" in
7715   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7716   *) ac_try_echo=$ac_try;;
7717 esac
7718 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7719   (eval "$ac_try") 2>&5
7720   ac_status=$?
7721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7722   (exit $ac_status); }; }; then
7723   llvm_cv_link_use_r=yes
7724 else
7725   echo "$as_me: failed program was:" >&5
7726 sed 's/^/| /' conftest.$ac_ext >&5
7727
7728         llvm_cv_link_use_r=no
7729 fi
7730
7731 rm -f core conftest.err conftest.$ac_objext \
7732       conftest$ac_exeext conftest.$ac_ext
7733   CFLAGS="$oldcflags"
7734   ac_ext=c
7735 ac_cpp='$CPP $CPPFLAGS'
7736 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7737 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7738 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7739
7740
7741 fi
7742 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
7743 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
7744 if test "$llvm_cv_link_use_r" = yes ; then
7745
7746 cat >>confdefs.h <<\_ACEOF
7747 #define HAVE_LINK_R 1
7748 _ACEOF
7749
7750   fi
7751
7752
7753 { echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5
7754 echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; }
7755 if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
7756   echo $ECHO_N "(cached) $ECHO_C" >&6
7757 else
7758    ac_ext=c
7759 ac_cpp='$CPP $CPPFLAGS'
7760 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7761 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7762 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7763
7764   oldcflags="$CFLAGS"
7765   CFLAGS="$CFLAGS -Wl,-export-dynamic"
7766   cat >conftest.$ac_ext <<_ACEOF
7767 /* confdefs.h.  */
7768 _ACEOF
7769 cat confdefs.h >>conftest.$ac_ext
7770 cat >>conftest.$ac_ext <<_ACEOF
7771 /* end confdefs.h.  */
7772
7773 int
7774 main ()
7775 {
7776
7777   ;
7778   return 0;
7779 }
7780 _ACEOF
7781 rm -f conftest.$ac_objext conftest$ac_exeext
7782 if { (ac_try="$ac_link"
7783 case "(($ac_try" in
7784   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7785   *) ac_try_echo=$ac_try;;
7786 esac
7787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7788   (eval "$ac_link") 2>conftest.er1
7789   ac_status=$?
7790   grep -v '^ *+' conftest.er1 >conftest.err
7791   rm -f conftest.er1
7792   cat conftest.err >&5
7793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7794   (exit $ac_status); } &&
7795          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7796   { (case "(($ac_try" in
7797   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7798   *) ac_try_echo=$ac_try;;
7799 esac
7800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7801   (eval "$ac_try") 2>&5
7802   ac_status=$?
7803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7804   (exit $ac_status); }; } &&
7805          { ac_try='test -s conftest$ac_exeext'
7806   { (case "(($ac_try" in
7807   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7808   *) ac_try_echo=$ac_try;;
7809 esac
7810 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7811   (eval "$ac_try") 2>&5
7812   ac_status=$?
7813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7814   (exit $ac_status); }; }; then
7815   llvm_cv_link_use_export_dynamic=yes
7816 else
7817   echo "$as_me: failed program was:" >&5
7818 sed 's/^/| /' conftest.$ac_ext >&5
7819
7820         llvm_cv_link_use_export_dynamic=no
7821 fi
7822
7823 rm -f core conftest.err conftest.$ac_objext \
7824       conftest$ac_exeext conftest.$ac_ext
7825   CFLAGS="$oldcflags"
7826   ac_ext=c
7827 ac_cpp='$CPP $CPPFLAGS'
7828 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7829 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7830 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7831
7832
7833 fi
7834 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
7835 echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
7836 if test "$llvm_cv_link_use_export_dynamic" = yes ; then
7837
7838 cat >>confdefs.h <<\_ACEOF
7839 #define HAVE_LINK_EXPORT_DYNAMIC 1
7840 _ACEOF
7841
7842   fi
7843
7844
7845 { echo "$as_me:$LINENO: checking for compiler -Wl,--version-script option" >&5
7846 echo $ECHO_N "checking for compiler -Wl,--version-script option... $ECHO_C" >&6; }
7847 if test "${llvm_cv_link_use_version_script+set}" = set; then
7848   echo $ECHO_N "(cached) $ECHO_C" >&6
7849 else
7850    ac_ext=c
7851 ac_cpp='$CPP $CPPFLAGS'
7852 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7853 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7854 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7855
7856   oldcflags="$CFLAGS"
7857
7858   # The following code is from the autoconf manual,
7859   # "11.13: Limitations of Usual Tools".
7860   # Create a temporary directory $tmp in $TMPDIR (default /tmp).
7861   # Use mktemp if possible; otherwise fall back on mkdir,
7862   # with $RANDOM to make collisions less likely.
7863   : ${TMPDIR=/tmp}
7864   {
7865     tmp=`
7866       (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null
7867     ` &&
7868     test -n "$tmp" && test -d "$tmp"
7869   } || {
7870     tmp=$TMPDIR/foo$$-$RANDOM
7871     (umask 077 && mkdir "$tmp")
7872   } || exit $?
7873
7874   echo "{" > "$tmp/export.map"
7875   echo "  global: main;" >> "$tmp/export.map"
7876   echo "  local: *;" >> "$tmp/export.map"
7877   echo "};" >> "$tmp/export.map"
7878
7879   CFLAGS="$CFLAGS -Wl,--version-script=$tmp/export.map"
7880   cat >conftest.$ac_ext <<_ACEOF
7881 /* confdefs.h.  */
7882 _ACEOF
7883 cat confdefs.h >>conftest.$ac_ext
7884 cat >>conftest.$ac_ext <<_ACEOF
7885 /* end confdefs.h.  */
7886
7887 int
7888 main ()
7889 {
7890
7891   ;
7892   return 0;
7893 }
7894 _ACEOF
7895 rm -f conftest.$ac_objext conftest$ac_exeext
7896 if { (ac_try="$ac_link"
7897 case "(($ac_try" in
7898   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7899   *) ac_try_echo=$ac_try;;
7900 esac
7901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7902   (eval "$ac_link") 2>conftest.er1
7903   ac_status=$?
7904   grep -v '^ *+' conftest.er1 >conftest.err
7905   rm -f conftest.er1
7906   cat conftest.err >&5
7907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7908   (exit $ac_status); } &&
7909          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7910   { (case "(($ac_try" in
7911   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7912   *) ac_try_echo=$ac_try;;
7913 esac
7914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7915   (eval "$ac_try") 2>&5
7916   ac_status=$?
7917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7918   (exit $ac_status); }; } &&
7919          { ac_try='test -s conftest$ac_exeext'
7920   { (case "(($ac_try" in
7921   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7922   *) ac_try_echo=$ac_try;;
7923 esac
7924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7925   (eval "$ac_try") 2>&5
7926   ac_status=$?
7927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7928   (exit $ac_status); }; }; then
7929   llvm_cv_link_use_version_script=yes
7930 else
7931   echo "$as_me: failed program was:" >&5
7932 sed 's/^/| /' conftest.$ac_ext >&5
7933
7934         llvm_cv_link_use_version_script=no
7935 fi
7936
7937 rm -f core conftest.err conftest.$ac_objext \
7938       conftest$ac_exeext conftest.$ac_ext
7939   rm "$tmp/export.map"
7940   rmdir "$tmp"
7941   CFLAGS="$oldcflags"
7942   ac_ext=c
7943 ac_cpp='$CPP $CPPFLAGS'
7944 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7945 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7946 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7947
7948
7949 fi
7950 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_version_script" >&5
7951 echo "${ECHO_T}$llvm_cv_link_use_version_script" >&6; }
7952 if test "$llvm_cv_link_use_version_script" = yes ; then
7953   HAVE_LINK_VERSION_SCRIPT=1
7954
7955   fi
7956
7957
7958
7959
7960 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
7961 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
7962 if test "${ac_cv_c_const+set}" = set; then
7963   echo $ECHO_N "(cached) $ECHO_C" >&6
7964 else
7965   cat >conftest.$ac_ext <<_ACEOF
7966 /* confdefs.h.  */
7967 _ACEOF
7968 cat confdefs.h >>conftest.$ac_ext
7969 cat >>conftest.$ac_ext <<_ACEOF
7970 /* end confdefs.h.  */
7971
7972 int
7973 main ()
7974 {
7975 /* FIXME: Include the comments suggested by Paul. */
7976 #ifndef __cplusplus
7977   /* Ultrix mips cc rejects this.  */
7978   typedef int charset[2];
7979   const charset x;
7980   /* SunOS 4.1.1 cc rejects this.  */
7981   char const *const *ccp;
7982   char **p;
7983   /* NEC SVR4.0.2 mips cc rejects this.  */
7984   struct point {int x, y;};
7985   static struct point const zero = {0,0};
7986   /* AIX XL C 1.02.0.0 rejects this.
7987      It does not let you subtract one const X* pointer from another in
7988      an arm of an if-expression whose if-part is not a constant
7989      expression */
7990   const char *g = "string";
7991   ccp = &g + (g ? g-g : 0);
7992   /* HPUX 7.0 cc rejects these. */
7993   ++ccp;
7994   p = (char**) ccp;
7995   ccp = (char const *const *) p;
7996   { /* SCO 3.2v4 cc rejects this.  */
7997     char *t;
7998     char const *s = 0 ? (char *) 0 : (char const *) 0;
7999
8000     *t++ = 0;
8001     if (s) return 0;
8002   }
8003   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
8004     int x[] = {25, 17};
8005     const int *foo = &x[0];
8006     ++foo;
8007   }
8008   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8009     typedef const int *iptr;
8010     iptr p = 0;
8011     ++p;
8012   }
8013   { /* AIX XL C 1.02.0.0 rejects this saying
8014        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8015     struct s { int j; const int *ap[3]; };
8016     struct s *b; b->j = 5;
8017   }
8018   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8019     const int foo = 10;
8020     if (!foo) return 0;
8021   }
8022   return !x[0] && !zero.x;
8023 #endif
8024
8025   ;
8026   return 0;
8027 }
8028 _ACEOF
8029 rm -f conftest.$ac_objext
8030 if { (ac_try="$ac_compile"
8031 case "(($ac_try" in
8032   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8033   *) ac_try_echo=$ac_try;;
8034 esac
8035 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8036   (eval "$ac_compile") 2>conftest.er1
8037   ac_status=$?
8038   grep -v '^ *+' conftest.er1 >conftest.err
8039   rm -f conftest.er1
8040   cat conftest.err >&5
8041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8042   (exit $ac_status); } &&
8043          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8044   { (case "(($ac_try" in
8045   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8046   *) ac_try_echo=$ac_try;;
8047 esac
8048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8049   (eval "$ac_try") 2>&5
8050   ac_status=$?
8051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8052   (exit $ac_status); }; } &&
8053          { ac_try='test -s conftest.$ac_objext'
8054   { (case "(($ac_try" in
8055   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8056   *) ac_try_echo=$ac_try;;
8057 esac
8058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8059   (eval "$ac_try") 2>&5
8060   ac_status=$?
8061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8062   (exit $ac_status); }; }; then
8063   ac_cv_c_const=yes
8064 else
8065   echo "$as_me: failed program was:" >&5
8066 sed 's/^/| /' conftest.$ac_ext >&5
8067
8068         ac_cv_c_const=no
8069 fi
8070
8071 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8072 fi
8073 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8074 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8075 if test $ac_cv_c_const = no; then
8076
8077 cat >>confdefs.h <<\_ACEOF
8078 #define const
8079 _ACEOF
8080
8081 fi
8082
8083
8084
8085
8086
8087
8088 ac_header_dirent=no
8089 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8090   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8091 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8092 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8093 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8094   echo $ECHO_N "(cached) $ECHO_C" >&6
8095 else
8096   cat >conftest.$ac_ext <<_ACEOF
8097 /* confdefs.h.  */
8098 _ACEOF
8099 cat confdefs.h >>conftest.$ac_ext
8100 cat >>conftest.$ac_ext <<_ACEOF
8101 /* end confdefs.h.  */
8102 #include <sys/types.h>
8103 #include <$ac_hdr>
8104
8105 int
8106 main ()
8107 {
8108 if ((DIR *) 0)
8109 return 0;
8110   ;
8111   return 0;
8112 }
8113 _ACEOF
8114 rm -f conftest.$ac_objext
8115 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
8122   ac_status=$?
8123   grep -v '^ *+' conftest.er1 >conftest.err
8124   rm -f conftest.er1
8125   cat conftest.err >&5
8126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8127   (exit $ac_status); } &&
8128          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8129   { (case "(($ac_try" in
8130   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8131   *) ac_try_echo=$ac_try;;
8132 esac
8133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8134   (eval "$ac_try") 2>&5
8135   ac_status=$?
8136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8137   (exit $ac_status); }; } &&
8138          { ac_try='test -s conftest.$ac_objext'
8139   { (case "(($ac_try" in
8140   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8141   *) ac_try_echo=$ac_try;;
8142 esac
8143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8144   (eval "$ac_try") 2>&5
8145   ac_status=$?
8146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8147   (exit $ac_status); }; }; then
8148   eval "$as_ac_Header=yes"
8149 else
8150   echo "$as_me: failed program was:" >&5
8151 sed 's/^/| /' conftest.$ac_ext >&5
8152
8153         eval "$as_ac_Header=no"
8154 fi
8155
8156 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8157 fi
8158 ac_res=`eval echo '${'$as_ac_Header'}'`
8159                { echo "$as_me:$LINENO: result: $ac_res" >&5
8160 echo "${ECHO_T}$ac_res" >&6; }
8161 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8162   cat >>confdefs.h <<_ACEOF
8163 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8164 _ACEOF
8165
8166 ac_header_dirent=$ac_hdr; break
8167 fi
8168
8169 done
8170 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8171 if test $ac_header_dirent = dirent.h; then
8172   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8173 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8174 if test "${ac_cv_search_opendir+set}" = set; then
8175   echo $ECHO_N "(cached) $ECHO_C" >&6
8176 else
8177   ac_func_search_save_LIBS=$LIBS
8178 cat >conftest.$ac_ext <<_ACEOF
8179 /* confdefs.h.  */
8180 _ACEOF
8181 cat confdefs.h >>conftest.$ac_ext
8182 cat >>conftest.$ac_ext <<_ACEOF
8183 /* end confdefs.h.  */
8184
8185 /* Override any GCC internal prototype to avoid an error.
8186    Use char because int might match the return type of a GCC
8187    builtin and then its argument prototype would still apply.  */
8188 #ifdef __cplusplus
8189 extern "C"
8190 #endif
8191 char opendir ();
8192 int
8193 main ()
8194 {
8195 return opendir ();
8196   ;
8197   return 0;
8198 }
8199 _ACEOF
8200 for ac_lib in '' dir; do
8201   if test -z "$ac_lib"; then
8202     ac_res="none required"
8203   else
8204     ac_res=-l$ac_lib
8205     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8206   fi
8207   rm -f conftest.$ac_objext conftest$ac_exeext
8208 if { (ac_try="$ac_link"
8209 case "(($ac_try" in
8210   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8211   *) ac_try_echo=$ac_try;;
8212 esac
8213 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8214   (eval "$ac_link") 2>conftest.er1
8215   ac_status=$?
8216   grep -v '^ *+' conftest.er1 >conftest.err
8217   rm -f conftest.er1
8218   cat conftest.err >&5
8219   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8220   (exit $ac_status); } &&
8221          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8222   { (case "(($ac_try" in
8223   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8224   *) ac_try_echo=$ac_try;;
8225 esac
8226 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8227   (eval "$ac_try") 2>&5
8228   ac_status=$?
8229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8230   (exit $ac_status); }; } &&
8231          { ac_try='test -s conftest$ac_exeext'
8232   { (case "(($ac_try" in
8233   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8234   *) ac_try_echo=$ac_try;;
8235 esac
8236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8237   (eval "$ac_try") 2>&5
8238   ac_status=$?
8239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8240   (exit $ac_status); }; }; then
8241   ac_cv_search_opendir=$ac_res
8242 else
8243   echo "$as_me: failed program was:" >&5
8244 sed 's/^/| /' conftest.$ac_ext >&5
8245
8246
8247 fi
8248
8249 rm -f core conftest.err conftest.$ac_objext \
8250       conftest$ac_exeext
8251   if test "${ac_cv_search_opendir+set}" = set; then
8252   break
8253 fi
8254 done
8255 if test "${ac_cv_search_opendir+set}" = set; then
8256   :
8257 else
8258   ac_cv_search_opendir=no
8259 fi
8260 rm conftest.$ac_ext
8261 LIBS=$ac_func_search_save_LIBS
8262 fi
8263 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8264 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8265 ac_res=$ac_cv_search_opendir
8266 if test "$ac_res" != no; then
8267   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8268
8269 fi
8270
8271 else
8272   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8273 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8274 if test "${ac_cv_search_opendir+set}" = set; then
8275   echo $ECHO_N "(cached) $ECHO_C" >&6
8276 else
8277   ac_func_search_save_LIBS=$LIBS
8278 cat >conftest.$ac_ext <<_ACEOF
8279 /* confdefs.h.  */
8280 _ACEOF
8281 cat confdefs.h >>conftest.$ac_ext
8282 cat >>conftest.$ac_ext <<_ACEOF
8283 /* end confdefs.h.  */
8284
8285 /* Override any GCC internal prototype to avoid an error.
8286    Use char because int might match the return type of a GCC
8287    builtin and then its argument prototype would still apply.  */
8288 #ifdef __cplusplus
8289 extern "C"
8290 #endif
8291 char opendir ();
8292 int
8293 main ()
8294 {
8295 return opendir ();
8296   ;
8297   return 0;
8298 }
8299 _ACEOF
8300 for ac_lib in '' x; do
8301   if test -z "$ac_lib"; then
8302     ac_res="none required"
8303   else
8304     ac_res=-l$ac_lib
8305     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8306   fi
8307   rm -f conftest.$ac_objext conftest$ac_exeext
8308 if { (ac_try="$ac_link"
8309 case "(($ac_try" in
8310   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8311   *) ac_try_echo=$ac_try;;
8312 esac
8313 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8314   (eval "$ac_link") 2>conftest.er1
8315   ac_status=$?
8316   grep -v '^ *+' conftest.er1 >conftest.err
8317   rm -f conftest.er1
8318   cat conftest.err >&5
8319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8320   (exit $ac_status); } &&
8321          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8322   { (case "(($ac_try" in
8323   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8324   *) ac_try_echo=$ac_try;;
8325 esac
8326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8327   (eval "$ac_try") 2>&5
8328   ac_status=$?
8329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8330   (exit $ac_status); }; } &&
8331          { ac_try='test -s conftest$ac_exeext'
8332   { (case "(($ac_try" in
8333   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8334   *) ac_try_echo=$ac_try;;
8335 esac
8336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8337   (eval "$ac_try") 2>&5
8338   ac_status=$?
8339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8340   (exit $ac_status); }; }; then
8341   ac_cv_search_opendir=$ac_res
8342 else
8343   echo "$as_me: failed program was:" >&5
8344 sed 's/^/| /' conftest.$ac_ext >&5
8345
8346
8347 fi
8348
8349 rm -f core conftest.err conftest.$ac_objext \
8350       conftest$ac_exeext
8351   if test "${ac_cv_search_opendir+set}" = set; then
8352   break
8353 fi
8354 done
8355 if test "${ac_cv_search_opendir+set}" = set; then
8356   :
8357 else
8358   ac_cv_search_opendir=no
8359 fi
8360 rm conftest.$ac_ext
8361 LIBS=$ac_func_search_save_LIBS
8362 fi
8363 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8364 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8365 ac_res=$ac_cv_search_opendir
8366 if test "$ac_res" != no; then
8367   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8368
8369 fi
8370
8371 fi
8372
8373
8374 for ac_header in dlfcn.h
8375 do
8376 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8377 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8378   { echo "$as_me:$LINENO: checking for $ac_header" >&5
8379 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8380 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8381   echo $ECHO_N "(cached) $ECHO_C" >&6
8382 fi
8383 ac_res=`eval echo '${'$as_ac_Header'}'`
8384                { echo "$as_me:$LINENO: result: $ac_res" >&5
8385 echo "${ECHO_T}$ac_res" >&6; }
8386 else
8387   # Is the header compilable?
8388 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8389 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8390 cat >conftest.$ac_ext <<_ACEOF
8391 /* confdefs.h.  */
8392 _ACEOF
8393 cat confdefs.h >>conftest.$ac_ext
8394 cat >>conftest.$ac_ext <<_ACEOF
8395 /* end confdefs.h.  */
8396 $ac_includes_default
8397 #include <$ac_header>
8398 _ACEOF
8399 rm -f conftest.$ac_objext
8400 if { (ac_try="$ac_compile"
8401 case "(($ac_try" in
8402   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8403   *) ac_try_echo=$ac_try;;
8404 esac
8405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8406   (eval "$ac_compile") 2>conftest.er1
8407   ac_status=$?
8408   grep -v '^ *+' conftest.er1 >conftest.err
8409   rm -f conftest.er1
8410   cat conftest.err >&5
8411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8412   (exit $ac_status); } &&
8413          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8414   { (case "(($ac_try" in
8415   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8416   *) ac_try_echo=$ac_try;;
8417 esac
8418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8419   (eval "$ac_try") 2>&5
8420   ac_status=$?
8421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8422   (exit $ac_status); }; } &&
8423          { ac_try='test -s conftest.$ac_objext'
8424   { (case "(($ac_try" in
8425   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8426   *) ac_try_echo=$ac_try;;
8427 esac
8428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8429   (eval "$ac_try") 2>&5
8430   ac_status=$?
8431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8432   (exit $ac_status); }; }; then
8433   ac_header_compiler=yes
8434 else
8435   echo "$as_me: failed program was:" >&5
8436 sed 's/^/| /' conftest.$ac_ext >&5
8437
8438         ac_header_compiler=no
8439 fi
8440
8441 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8442 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8443 echo "${ECHO_T}$ac_header_compiler" >&6; }
8444
8445 # Is the header present?
8446 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8447 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8448 cat >conftest.$ac_ext <<_ACEOF
8449 /* confdefs.h.  */
8450 _ACEOF
8451 cat confdefs.h >>conftest.$ac_ext
8452 cat >>conftest.$ac_ext <<_ACEOF
8453 /* end confdefs.h.  */
8454 #include <$ac_header>
8455 _ACEOF
8456 if { (ac_try="$ac_cpp conftest.$ac_ext"
8457 case "(($ac_try" in
8458   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8459   *) ac_try_echo=$ac_try;;
8460 esac
8461 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8462   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8463   ac_status=$?
8464   grep -v '^ *+' conftest.er1 >conftest.err
8465   rm -f conftest.er1
8466   cat conftest.err >&5
8467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8468   (exit $ac_status); } >/dev/null; then
8469   if test -s conftest.err; then
8470     ac_cpp_err=$ac_c_preproc_warn_flag
8471     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8472   else
8473     ac_cpp_err=
8474   fi
8475 else
8476   ac_cpp_err=yes
8477 fi
8478 if test -z "$ac_cpp_err"; then
8479   ac_header_preproc=yes
8480 else
8481   echo "$as_me: failed program was:" >&5
8482 sed 's/^/| /' conftest.$ac_ext >&5
8483
8484   ac_header_preproc=no
8485 fi
8486
8487 rm -f conftest.err conftest.$ac_ext
8488 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8489 echo "${ECHO_T}$ac_header_preproc" >&6; }
8490
8491 # So?  What about this header?
8492 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8493   yes:no: )
8494     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8495 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8496     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8497 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8498     ac_header_preproc=yes
8499     ;;
8500   no:yes:* )
8501     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8502 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8503     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8504 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8505     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8506 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8507     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8508 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8509     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8510 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8511     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8512 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8513     ( cat <<\_ASBOX
8514 ## ------------------------------------ ##
8515 ## Report this to http://llvm.org/bugs/ ##
8516 ## ------------------------------------ ##
8517 _ASBOX
8518      ) | sed "s/^/$as_me: WARNING:     /" >&2
8519     ;;
8520 esac
8521 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8522 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8523 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8524   echo $ECHO_N "(cached) $ECHO_C" >&6
8525 else
8526   eval "$as_ac_Header=\$ac_header_preproc"
8527 fi
8528 ac_res=`eval echo '${'$as_ac_Header'}'`
8529                { echo "$as_me:$LINENO: result: $ac_res" >&5
8530 echo "${ECHO_T}$ac_res" >&6; }
8531
8532 fi
8533 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8534   cat >>confdefs.h <<_ACEOF
8535 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8536 _ACEOF
8537
8538 fi
8539
8540 done
8541
8542 # Check whether --enable-ltdl-install was given.
8543 if test "${enable_ltdl_install+set}" = set; then
8544   enableval=$enable_ltdl_install;
8545 fi
8546
8547
8548
8549
8550 if test x"${enable_ltdl_install-no}" != xno; then
8551   INSTALL_LTDL_TRUE=
8552   INSTALL_LTDL_FALSE='#'
8553 else
8554   INSTALL_LTDL_TRUE='#'
8555   INSTALL_LTDL_FALSE=
8556 fi
8557
8558
8559
8560 if test x"${enable_ltdl_convenience-no}" != xno; then
8561   CONVENIENCE_LTDL_TRUE=
8562   CONVENIENCE_LTDL_FALSE='#'
8563 else
8564   CONVENIENCE_LTDL_TRUE='#'
8565   CONVENIENCE_LTDL_FALSE=
8566 fi
8567
8568
8569 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8570 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8571 library_names_spec=
8572 libname_spec='lib$name'
8573 soname_spec=
8574 shrext_cmds=".so"
8575 postinstall_cmds=
8576 postuninstall_cmds=
8577 finish_cmds=
8578 finish_eval=
8579 shlibpath_var=
8580 shlibpath_overrides_runpath=unknown
8581 version_type=none
8582 dynamic_linker="$host_os ld.so"
8583 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8584 if test "$GCC" = yes; then
8585   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8586   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8587     # if the path contains ";" then we assume it to be the separator
8588     # otherwise default to the standard path separator (i.e. ":") - it is
8589     # assumed that no part of a normal pathname contains ";" but that should
8590     # okay in the real world where ";" in dirpaths is itself problematic.
8591     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8592   else
8593     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8594   fi
8595 else
8596   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8597 fi
8598 need_lib_prefix=unknown
8599 hardcode_into_libs=no
8600
8601 # when you set need_version to no, make sure it does not cause -set_version
8602 # flags to be left without arguments
8603 need_version=unknown
8604
8605 case $host_os in
8606 aix3*)
8607   version_type=linux
8608   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8609   shlibpath_var=LIBPATH
8610
8611   # AIX 3 has no versioning support, so we append a major version to the name.
8612   soname_spec='${libname}${release}${shared_ext}$major'
8613   ;;
8614
8615 aix4* | aix5*)
8616   version_type=linux
8617   need_lib_prefix=no
8618   need_version=no
8619   hardcode_into_libs=yes
8620   if test "$host_cpu" = ia64; then
8621     # AIX 5 supports IA64
8622     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8623     shlibpath_var=LD_LIBRARY_PATH
8624   else
8625     # With GCC up to 2.95.x, collect2 would create an import file
8626     # for dependence libraries.  The import file would start with
8627     # the line `#! .'.  This would cause the generated library to
8628     # depend on `.', always an invalid library.  This was fixed in
8629     # development snapshots of GCC prior to 3.0.
8630     case $host_os in
8631       aix4 | aix4.[01] | aix4.[01].*)
8632       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8633            echo ' yes '
8634            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8635         :
8636       else
8637         can_build_shared=no
8638       fi
8639       ;;
8640     esac
8641     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8642     # soname into executable. Probably we can add versioning support to
8643     # collect2, so additional links can be useful in future.
8644     if test "$aix_use_runtimelinking" = yes; then
8645       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8646       # instead of lib<name>.a to let people know that these are not
8647       # typical AIX shared libraries.
8648       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8649     else
8650       # We preserve .a as extension for shared libraries through AIX4.2
8651       # and later when we are not doing run time linking.
8652       library_names_spec='${libname}${release}.a $libname.a'
8653       soname_spec='${libname}${release}${shared_ext}$major'
8654     fi
8655     shlibpath_var=LIBPATH
8656   fi
8657   ;;
8658
8659 amigaos*)
8660   library_names_spec='$libname.ixlibrary $libname.a'
8661   # Create ${libname}_ixlibrary.a entries in /sys/libs.
8662   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'
8663   ;;
8664
8665 beos*)
8666   library_names_spec='${libname}${shared_ext}'
8667   dynamic_linker="$host_os ld.so"
8668   shlibpath_var=LIBRARY_PATH
8669   ;;
8670
8671 bsdi[45]*)
8672   version_type=linux
8673   need_version=no
8674   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8675   soname_spec='${libname}${release}${shared_ext}$major'
8676   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8677   shlibpath_var=LD_LIBRARY_PATH
8678   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8679   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8680   # the default ld.so.conf also contains /usr/contrib/lib and
8681   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8682   # libtool to hard-code these into programs
8683   ;;
8684
8685 cygwin* | mingw* | pw32*)
8686   version_type=windows
8687   shrext_cmds=".dll"
8688   need_version=no
8689   need_lib_prefix=no
8690
8691   case $GCC,$host_os in
8692   yes,cygwin* | yes,mingw* | yes,pw32*)
8693     library_names_spec='$libname.dll.a'
8694     # DLL is installed to $(libdir)/../bin by postinstall_cmds
8695     postinstall_cmds='base_file=`basename \${file}`~
8696       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8697       dldir=$destdir/`dirname \$dlpath`~
8698       test -d \$dldir || mkdir -p \$dldir~
8699       $install_prog $dir/$dlname \$dldir/$dlname~
8700       chmod a+x \$dldir/$dlname'
8701     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8702       dlpath=$dir/\$dldll~
8703        $rm \$dlpath'
8704     shlibpath_overrides_runpath=yes
8705
8706     case $host_os in
8707     cygwin*)
8708       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8709       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8710       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8711       ;;
8712     mingw*)
8713       # MinGW DLLs use traditional 'lib' prefix
8714       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8715       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8716       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8717         # It is most probably a Windows format PATH printed by
8718         # mingw gcc, but we are running on Cygwin. Gcc prints its search
8719         # path with ; separators, and with drive letters. We can handle the
8720         # drive letters (cygwin fileutils understands them), so leave them,
8721         # especially as we might pass files found there to a mingw objdump,
8722         # which wouldn't understand a cygwinified path. Ahh.
8723         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8724       else
8725         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8726       fi
8727       ;;
8728     pw32*)
8729       # pw32 DLLs use 'pw' prefix rather than 'lib'
8730       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8731       ;;
8732     esac
8733     ;;
8734
8735   *)
8736     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8737     ;;
8738   esac
8739   dynamic_linker='Win32 ld.exe'
8740   # FIXME: first we should search . and the directory the executable is in
8741   shlibpath_var=PATH
8742   ;;
8743
8744 darwin* | rhapsody*)
8745   dynamic_linker="$host_os dyld"
8746   version_type=darwin
8747   need_lib_prefix=no
8748   need_version=no
8749   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8750   soname_spec='${libname}${release}${major}$shared_ext'
8751   shlibpath_overrides_runpath=yes
8752   shlibpath_var=DYLD_LIBRARY_PATH
8753   shrext_cmds='.dylib'
8754   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8755   if test "$GCC" = yes; then
8756     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"`
8757   else
8758     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8759   fi
8760   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8761   ;;
8762
8763 dgux*)
8764   version_type=linux
8765   need_lib_prefix=no
8766   need_version=no
8767   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8768   soname_spec='${libname}${release}${shared_ext}$major'
8769   shlibpath_var=LD_LIBRARY_PATH
8770   ;;
8771
8772 freebsd1.*)
8773   dynamic_linker=no
8774   ;;
8775
8776 kfreebsd*-gnu)
8777   version_type=linux
8778   need_lib_prefix=no
8779   need_version=no
8780   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8781   soname_spec='${libname}${release}${shared_ext}$major'
8782   shlibpath_var=LD_LIBRARY_PATH
8783   shlibpath_overrides_runpath=no
8784   hardcode_into_libs=yes
8785   dynamic_linker='GNU ld.so'
8786   ;;
8787
8788 freebsd* | dragonfly*)
8789   # DragonFly does not have aout.  When/if they implement a new
8790   # versioning mechanism, adjust this.
8791   if test -x /usr/bin/objformat; then
8792     objformat=`/usr/bin/objformat`
8793   else
8794     case $host_os in
8795     freebsd[123].*) objformat=aout ;;
8796     *) objformat=elf ;;
8797     esac
8798   fi
8799   version_type=freebsd-$objformat
8800   case $version_type in
8801     freebsd-elf*)
8802       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8803       need_version=no
8804       need_lib_prefix=no
8805       ;;
8806     freebsd-*)
8807       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8808       need_version=yes
8809       ;;
8810   esac
8811   shlibpath_var=LD_LIBRARY_PATH
8812   case $host_os in
8813   freebsd2.*)
8814     shlibpath_overrides_runpath=yes
8815     ;;
8816   freebsd3.[01]* | freebsdelf3.[01]*)
8817     shlibpath_overrides_runpath=yes
8818     hardcode_into_libs=yes
8819     ;;
8820   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8821   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8822     shlibpath_overrides_runpath=no
8823     hardcode_into_libs=yes
8824     ;;
8825   freebsd*) # from 4.6 on
8826     shlibpath_overrides_runpath=yes
8827     hardcode_into_libs=yes
8828     ;;
8829   esac
8830   ;;
8831
8832 gnu*)
8833   version_type=linux
8834   need_lib_prefix=no
8835   need_version=no
8836   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8837   soname_spec='${libname}${release}${shared_ext}$major'
8838   shlibpath_var=LD_LIBRARY_PATH
8839   hardcode_into_libs=yes
8840   ;;
8841
8842 hpux9* | hpux10* | hpux11*)
8843   # Give a soname corresponding to the major version so that dld.sl refuses to
8844   # link against other versions.
8845   version_type=sunos
8846   need_lib_prefix=no
8847   need_version=no
8848   case $host_cpu in
8849   ia64*)
8850     shrext_cmds='.so'
8851     hardcode_into_libs=yes
8852     dynamic_linker="$host_os dld.so"
8853     shlibpath_var=LD_LIBRARY_PATH
8854     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8855     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8856     soname_spec='${libname}${release}${shared_ext}$major'
8857     if test "X$HPUX_IA64_MODE" = X32; then
8858       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8859     else
8860       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8861     fi
8862     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8863     ;;
8864    hppa*64*)
8865      shrext_cmds='.sl'
8866      hardcode_into_libs=yes
8867      dynamic_linker="$host_os dld.sl"
8868      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8869      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8870      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8871      soname_spec='${libname}${release}${shared_ext}$major'
8872      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8873      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8874      ;;
8875    *)
8876     shrext_cmds='.sl'
8877     dynamic_linker="$host_os dld.sl"
8878     shlibpath_var=SHLIB_PATH
8879     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8880     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8881     soname_spec='${libname}${release}${shared_ext}$major'
8882     ;;
8883   esac
8884   # HP-UX runs *really* slowly unless shared libraries are mode 555.
8885   postinstall_cmds='chmod 555 $lib'
8886   ;;
8887
8888 interix3*)
8889   version_type=linux
8890   need_lib_prefix=no
8891   need_version=no
8892   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8893   soname_spec='${libname}${release}${shared_ext}$major'
8894   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8895   shlibpath_var=LD_LIBRARY_PATH
8896   shlibpath_overrides_runpath=no
8897   hardcode_into_libs=yes
8898   ;;
8899
8900 irix5* | irix6* | nonstopux*)
8901   case $host_os in
8902     nonstopux*) version_type=nonstopux ;;
8903     *)
8904         if test "$lt_cv_prog_gnu_ld" = yes; then
8905                 version_type=linux
8906         else
8907                 version_type=irix
8908         fi ;;
8909   esac
8910   need_lib_prefix=no
8911   need_version=no
8912   soname_spec='${libname}${release}${shared_ext}$major'
8913   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8914   case $host_os in
8915   irix5* | nonstopux*)
8916     libsuff= shlibsuff=
8917     ;;
8918   *)
8919     case $LD in # libtool.m4 will add one of these switches to LD
8920     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8921       libsuff= shlibsuff= libmagic=32-bit;;
8922     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8923       libsuff=32 shlibsuff=N32 libmagic=N32;;
8924     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8925       libsuff=64 shlibsuff=64 libmagic=64-bit;;
8926     *) libsuff= shlibsuff= libmagic=never-match;;
8927     esac
8928     ;;
8929   esac
8930   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8931   shlibpath_overrides_runpath=no
8932   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8933   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8934   hardcode_into_libs=yes
8935   ;;
8936
8937 # No shared lib support for Linux oldld, aout, or coff.
8938 linux*oldld* | linux*aout* | linux*coff*)
8939   dynamic_linker=no
8940   ;;
8941
8942 # This must be Linux ELF.
8943 linux*)
8944   version_type=linux
8945   need_lib_prefix=no
8946   need_version=no
8947   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8948   soname_spec='${libname}${release}${shared_ext}$major'
8949   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8950   shlibpath_var=LD_LIBRARY_PATH
8951   shlibpath_overrides_runpath=no
8952   # This implies no fast_install, which is unacceptable.
8953   # Some rework will be needed to allow for fast_install
8954   # before this can be enabled.
8955   hardcode_into_libs=yes
8956
8957   # Append ld.so.conf contents to the search path
8958   if test -f /etc/ld.so.conf; then
8959     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' ' '`
8960     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8961   fi
8962
8963   # We used to test for /lib/ld.so.1 and disable shared libraries on
8964   # powerpc, because MkLinux only supported shared libraries with the
8965   # GNU dynamic linker.  Since this was broken with cross compilers,
8966   # most powerpc-linux boxes support dynamic linking these days and
8967   # people can always --disable-shared, the test was removed, and we
8968   # assume the GNU/Linux dynamic linker is in use.
8969   dynamic_linker='GNU/Linux ld.so'
8970   ;;
8971
8972 knetbsd*-gnu)
8973   version_type=linux
8974   need_lib_prefix=no
8975   need_version=no
8976   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8977   soname_spec='${libname}${release}${shared_ext}$major'
8978   shlibpath_var=LD_LIBRARY_PATH
8979   shlibpath_overrides_runpath=no
8980   hardcode_into_libs=yes
8981   dynamic_linker='GNU ld.so'
8982   ;;
8983
8984 netbsd*)
8985   version_type=sunos
8986   need_lib_prefix=no
8987   need_version=no
8988   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8989     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8990     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8991     dynamic_linker='NetBSD (a.out) ld.so'
8992   else
8993     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8994     soname_spec='${libname}${release}${shared_ext}$major'
8995     dynamic_linker='NetBSD ld.elf_so'
8996   fi
8997   shlibpath_var=LD_LIBRARY_PATH
8998   shlibpath_overrides_runpath=yes
8999   hardcode_into_libs=yes
9000   ;;
9001
9002 newsos6)
9003   version_type=linux
9004   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9005   shlibpath_var=LD_LIBRARY_PATH
9006   shlibpath_overrides_runpath=yes
9007   ;;
9008
9009 nto-qnx*)
9010   version_type=linux
9011   need_lib_prefix=no
9012   need_version=no
9013   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9014   soname_spec='${libname}${release}${shared_ext}$major'
9015   shlibpath_var=LD_LIBRARY_PATH
9016   shlibpath_overrides_runpath=yes
9017   ;;
9018
9019 openbsd*)
9020   version_type=sunos
9021   sys_lib_dlsearch_path_spec="/usr/lib"
9022   need_lib_prefix=no
9023   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9024   case $host_os in
9025     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9026     *)                         need_version=no  ;;
9027   esac
9028   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9029   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9030   shlibpath_var=LD_LIBRARY_PATH
9031   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9032     case $host_os in
9033       openbsd2.[89] | openbsd2.[89].*)
9034         shlibpath_overrides_runpath=no
9035         ;;
9036       *)
9037         shlibpath_overrides_runpath=yes
9038         ;;
9039       esac
9040   else
9041     shlibpath_overrides_runpath=yes
9042   fi
9043   ;;
9044
9045 os2*)
9046   libname_spec='$name'
9047   shrext_cmds=".dll"
9048   need_lib_prefix=no
9049   library_names_spec='$libname${shared_ext} $libname.a'
9050   dynamic_linker='OS/2 ld.exe'
9051   shlibpath_var=LIBPATH
9052   ;;
9053
9054 osf3* | osf4* | osf5*)
9055   version_type=osf
9056   need_lib_prefix=no
9057   need_version=no
9058   soname_spec='${libname}${release}${shared_ext}$major'
9059   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9060   shlibpath_var=LD_LIBRARY_PATH
9061   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9062   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9063   ;;
9064
9065 solaris*)
9066   version_type=linux
9067   need_lib_prefix=no
9068   need_version=no
9069   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9070   soname_spec='${libname}${release}${shared_ext}$major'
9071   shlibpath_var=LD_LIBRARY_PATH
9072   shlibpath_overrides_runpath=yes
9073   hardcode_into_libs=yes
9074   # ldd complains unless libraries are executable
9075   postinstall_cmds='chmod +x $lib'
9076   ;;
9077
9078 sunos4*)
9079   version_type=sunos
9080   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9081   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9082   shlibpath_var=LD_LIBRARY_PATH
9083   shlibpath_overrides_runpath=yes
9084   if test "$with_gnu_ld" = yes; then
9085     need_lib_prefix=no
9086   fi
9087   need_version=yes
9088   ;;
9089
9090 sysv4 | sysv4.3*)
9091   version_type=linux
9092   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9093   soname_spec='${libname}${release}${shared_ext}$major'
9094   shlibpath_var=LD_LIBRARY_PATH
9095   case $host_vendor in
9096     sni)
9097       shlibpath_overrides_runpath=no
9098       need_lib_prefix=no
9099       export_dynamic_flag_spec='${wl}-Blargedynsym'
9100       runpath_var=LD_RUN_PATH
9101       ;;
9102     siemens)
9103       need_lib_prefix=no
9104       ;;
9105     motorola)
9106       need_lib_prefix=no
9107       need_version=no
9108       shlibpath_overrides_runpath=no
9109       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9110       ;;
9111   esac
9112   ;;
9113
9114 sysv4*MP*)
9115   if test -d /usr/nec ;then
9116     version_type=linux
9117     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9118     soname_spec='$libname${shared_ext}.$major'
9119     shlibpath_var=LD_LIBRARY_PATH
9120   fi
9121   ;;
9122
9123 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9124   version_type=freebsd-elf
9125   need_lib_prefix=no
9126   need_version=no
9127   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9128   soname_spec='${libname}${release}${shared_ext}$major'
9129   shlibpath_var=LD_LIBRARY_PATH
9130   hardcode_into_libs=yes
9131   if test "$with_gnu_ld" = yes; then
9132     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9133     shlibpath_overrides_runpath=no
9134   else
9135     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9136     shlibpath_overrides_runpath=yes
9137     case $host_os in
9138       sco3.2v5*)
9139         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9140         ;;
9141     esac
9142   fi
9143   sys_lib_dlsearch_path_spec='/usr/lib'
9144   ;;
9145
9146 uts4*)
9147   version_type=linux
9148   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9149   soname_spec='${libname}${release}${shared_ext}$major'
9150   shlibpath_var=LD_LIBRARY_PATH
9151   ;;
9152
9153 *)
9154   dynamic_linker=no
9155   ;;
9156 esac
9157 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9158 echo "${ECHO_T}$dynamic_linker" >&6; }
9159 test "$dynamic_linker" = no && can_build_shared=no
9160
9161 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9162 if test "$GCC" = yes; then
9163   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9164 fi
9165
9166
9167 { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9168 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
9169 if test "${libltdl_cv_shlibext+set}" = set; then
9170   echo $ECHO_N "(cached) $ECHO_C" >&6
9171 else
9172
9173 module=yes
9174 eval libltdl_cv_shlibext=$shrext_cmds
9175
9176 fi
9177 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9178 echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
9179 if test -n "$libltdl_cv_shlibext"; then
9180
9181 cat >>confdefs.h <<_ACEOF
9182 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9183 _ACEOF
9184
9185 fi
9186
9187
9188 { echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
9189 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
9190 if test "${libltdl_cv_shlibpath_var+set}" = set; then
9191   echo $ECHO_N "(cached) $ECHO_C" >&6
9192 else
9193   libltdl_cv_shlibpath_var="$shlibpath_var"
9194 fi
9195 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
9196 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
9197 if test -n "$libltdl_cv_shlibpath_var"; then
9198
9199 cat >>confdefs.h <<_ACEOF
9200 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
9201 _ACEOF
9202
9203 fi
9204
9205
9206 { echo "$as_me:$LINENO: checking for the default library search path" >&5
9207 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
9208 if test "${libltdl_cv_sys_search_path+set}" = set; then
9209   echo $ECHO_N "(cached) $ECHO_C" >&6
9210 else
9211   libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9212 fi
9213 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9214 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
9215 if test -n "$libltdl_cv_sys_search_path"; then
9216   sys_search_path=
9217   for dir in $libltdl_cv_sys_search_path; do
9218     if test -z "$sys_search_path"; then
9219       sys_search_path="$dir"
9220     else
9221       sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9222     fi
9223   done
9224
9225 cat >>confdefs.h <<_ACEOF
9226 #define LTDL_SYSSEARCHPATH "$sys_search_path"
9227 _ACEOF
9228
9229 fi
9230
9231 { echo "$as_me:$LINENO: checking for objdir" >&5
9232 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9233 if test "${libltdl_cv_objdir+set}" = set; then
9234   echo $ECHO_N "(cached) $ECHO_C" >&6
9235 else
9236   libltdl_cv_objdir="$objdir"
9237   if test -n "$objdir"; then
9238     :
9239   else
9240     rm -f .libs 2>/dev/null
9241     mkdir .libs 2>/dev/null
9242     if test -d .libs; then
9243       libltdl_cv_objdir=.libs
9244     else
9245       # MS-DOS does not allow filenames that begin with a dot.
9246       libltdl_cv_objdir=_libs
9247     fi
9248   rmdir .libs 2>/dev/null
9249   fi
9250
9251 fi
9252 { echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9253 echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
9254
9255 cat >>confdefs.h <<_ACEOF
9256 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
9257 _ACEOF
9258
9259
9260
9261
9262
9263
9264 # Check for command to grab the raw symbol name followed by C symbol from nm.
9265 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9266 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
9267 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9268   echo $ECHO_N "(cached) $ECHO_C" >&6
9269 else
9270
9271 # These are sane defaults that work on at least a few old systems.
9272 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
9273
9274 # Character class describing NM global symbol codes.
9275 symcode='[BCDEGRST]'
9276
9277 # Regexp to match symbols that can be accessed directly from C.
9278 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9279
9280 # Transform an extracted symbol line into a proper C declaration
9281 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9282
9283 # Transform an extracted symbol line into symbol name and symbol address
9284 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'"
9285
9286 # Define system-specific variables.
9287 case $host_os in
9288 aix*)
9289   symcode='[BCDT]'
9290   ;;
9291 cygwin* | mingw* | pw32*)
9292   symcode='[ABCDGISTW]'
9293   ;;
9294 hpux*) # Its linker distinguishes data from code symbols
9295   if test "$host_cpu" = ia64; then
9296     symcode='[ABCDEGRST]'
9297   fi
9298   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9299   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'"
9300   ;;
9301 linux*)
9302   if test "$host_cpu" = ia64; then
9303     symcode='[ABCDGIRSTW]'
9304     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9305     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'"
9306   fi
9307   ;;
9308 irix* | nonstopux*)
9309   symcode='[BCDEGRST]'
9310   ;;
9311 osf*)
9312   symcode='[BCDEGQRST]'
9313   ;;
9314 solaris*)
9315   symcode='[BDRT]'
9316   ;;
9317 sco3.2v5*)
9318   symcode='[DT]'
9319   ;;
9320 sysv4.2uw2*)
9321   symcode='[DT]'
9322   ;;
9323 sysv5* | sco5v6* | unixware* | OpenUNIX*)
9324   symcode='[ABDT]'
9325   ;;
9326 sysv4)
9327   symcode='[DFNSTU]'
9328   ;;
9329 esac
9330
9331 # Handle CRLF in mingw tool chain
9332 opt_cr=
9333 case $build_os in
9334 mingw*)
9335   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9336   ;;
9337 esac
9338
9339 # If we're using GNU nm, then use its standard symbol codes.
9340 case `$NM -V 2>&1` in
9341 *GNU* | *'with BFD'*)
9342   symcode='[ABCDGIRSTW]' ;;
9343 esac
9344
9345 # Try without a prefix undercore, then with it.
9346 for ac_symprfx in "" "_"; do
9347
9348   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9349   symxfrm="\\1 $ac_symprfx\\2 \\2"
9350
9351   # Write the raw and C identifiers.
9352   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9353
9354   # Check to see that the pipe works correctly.
9355   pipe_works=no
9356
9357   rm -f conftest*
9358   cat > conftest.$ac_ext <<EOF
9359 #ifdef __cplusplus
9360 extern "C" {
9361 #endif
9362 char nm_test_var;
9363 void nm_test_func(){}
9364 #ifdef __cplusplus
9365 }
9366 #endif
9367 int main(){nm_test_var='a';nm_test_func();return(0);}
9368 EOF
9369
9370   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9371   (eval $ac_compile) 2>&5
9372   ac_status=$?
9373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9374   (exit $ac_status); }; then
9375     # Now try to grab the symbols.
9376     nlist=conftest.nm
9377     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
9378   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9379   ac_status=$?
9380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9381   (exit $ac_status); } && test -s "$nlist"; then
9382       # Try sorting and uniquifying the output.
9383       if sort "$nlist" | uniq > "$nlist"T; then
9384         mv -f "$nlist"T "$nlist"
9385       else
9386         rm -f "$nlist"T
9387       fi
9388
9389       # Make sure that we snagged all the symbols we need.
9390       if grep ' nm_test_var$' "$nlist" >/dev/null; then
9391         if grep ' nm_test_func$' "$nlist" >/dev/null; then
9392           cat <<EOF > conftest.$ac_ext
9393 #ifdef __cplusplus
9394 extern "C" {
9395 #endif
9396
9397 EOF
9398           # Now generate the symbol file.
9399           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9400
9401           cat <<EOF >> conftest.$ac_ext
9402 #if defined (__STDC__) && __STDC__
9403 # define lt_ptr_t void *
9404 #else
9405 # define lt_ptr_t char *
9406 # define const
9407 #endif
9408
9409 /* The mapping between symbol names and symbols. */
9410 const struct {
9411   const char *name;
9412   lt_ptr_t address;
9413 }
9414 lt_preloaded_symbols[] =
9415 {
9416 EOF
9417           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9418           cat <<\EOF >> conftest.$ac_ext
9419   {0, (lt_ptr_t) 0}
9420 };
9421
9422 #ifdef __cplusplus
9423 }
9424 #endif
9425 EOF
9426           # Now try linking the two files.
9427           mv conftest.$ac_objext conftstm.$ac_objext
9428           lt_save_LIBS="$LIBS"
9429           lt_save_CFLAGS="$CFLAGS"
9430           LIBS="conftstm.$ac_objext"
9431           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9432           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9433   (eval $ac_link) 2>&5
9434   ac_status=$?
9435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9436   (exit $ac_status); } && test -s conftest${ac_exeext}; then
9437             pipe_works=yes
9438           fi
9439           LIBS="$lt_save_LIBS"
9440           CFLAGS="$lt_save_CFLAGS"
9441         else
9442           echo "cannot find nm_test_func in $nlist" >&5
9443         fi
9444       else
9445         echo "cannot find nm_test_var in $nlist" >&5
9446       fi
9447     else
9448       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9449     fi
9450   else
9451     echo "$progname: failed program was:" >&5
9452     cat conftest.$ac_ext >&5
9453   fi
9454   rm -f conftest* conftst*
9455
9456   # Do not use the global_symbol_pipe unless it works.
9457   if test "$pipe_works" = yes; then
9458     break
9459   else
9460     lt_cv_sys_global_symbol_pipe=
9461   fi
9462 done
9463
9464 fi
9465
9466 if test -z "$lt_cv_sys_global_symbol_pipe"; then
9467   lt_cv_sys_global_symbol_to_cdecl=
9468 fi
9469 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9470   { echo "$as_me:$LINENO: result: failed" >&5
9471 echo "${ECHO_T}failed" >&6; }
9472 else
9473   { echo "$as_me:$LINENO: result: ok" >&5
9474 echo "${ECHO_T}ok" >&6; }
9475 fi
9476
9477
9478 { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
9479 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
9480 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
9481   echo $ECHO_N "(cached) $ECHO_C" >&6
9482 else
9483   if test -n "$lt_cv_sys_global_symbol_pipe"; then
9484     libltdl_cv_preloaded_symbols=yes
9485   else
9486     libltdl_cv_preloaded_symbols=no
9487   fi
9488
9489 fi
9490 { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
9491 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
9492 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
9493
9494 cat >>confdefs.h <<\_ACEOF
9495 #define HAVE_PRELOADED_SYMBOLS 1
9496 _ACEOF
9497
9498 fi
9499
9500 LIBADD_DL=
9501
9502 ac_ext=c
9503 ac_cpp='$CPP $CPPFLAGS'
9504 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9505 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9506 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9507
9508
9509 { echo "$as_me:$LINENO: checking for shl_load" >&5
9510 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9511 if test "${ac_cv_func_shl_load+set}" = set; then
9512   echo $ECHO_N "(cached) $ECHO_C" >&6
9513 else
9514   cat >conftest.$ac_ext <<_ACEOF
9515 /* confdefs.h.  */
9516 _ACEOF
9517 cat confdefs.h >>conftest.$ac_ext
9518 cat >>conftest.$ac_ext <<_ACEOF
9519 /* end confdefs.h.  */
9520 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9521    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9522 #define shl_load innocuous_shl_load
9523
9524 /* System header to define __stub macros and hopefully few prototypes,
9525     which can conflict with char shl_load (); below.
9526     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9527     <limits.h> exists even on freestanding compilers.  */
9528
9529 #ifdef __STDC__
9530 # include <limits.h>
9531 #else
9532 # include <assert.h>
9533 #endif
9534
9535 #undef shl_load
9536
9537 /* Override any GCC internal prototype to avoid an error.
9538    Use char because int might match the return type of a GCC
9539    builtin and then its argument prototype would still apply.  */
9540 #ifdef __cplusplus
9541 extern "C"
9542 #endif
9543 char shl_load ();
9544 /* The GNU C library defines this for functions which it implements
9545     to always fail with ENOSYS.  Some functions are actually named
9546     something starting with __ and the normal name is an alias.  */
9547 #if defined __stub_shl_load || defined __stub___shl_load
9548 choke me
9549 #endif
9550
9551 int
9552 main ()
9553 {
9554 return shl_load ();
9555   ;
9556   return 0;
9557 }
9558 _ACEOF
9559 rm -f conftest.$ac_objext conftest$ac_exeext
9560 if { (ac_try="$ac_link"
9561 case "(($ac_try" in
9562   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9563   *) ac_try_echo=$ac_try;;
9564 esac
9565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9566   (eval "$ac_link") 2>conftest.er1
9567   ac_status=$?
9568   grep -v '^ *+' conftest.er1 >conftest.err
9569   rm -f conftest.er1
9570   cat conftest.err >&5
9571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9572   (exit $ac_status); } &&
9573          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9574   { (case "(($ac_try" in
9575   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9576   *) ac_try_echo=$ac_try;;
9577 esac
9578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9579   (eval "$ac_try") 2>&5
9580   ac_status=$?
9581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9582   (exit $ac_status); }; } &&
9583          { ac_try='test -s conftest$ac_exeext'
9584   { (case "(($ac_try" in
9585   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9586   *) ac_try_echo=$ac_try;;
9587 esac
9588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9589   (eval "$ac_try") 2>&5
9590   ac_status=$?
9591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9592   (exit $ac_status); }; }; then
9593   ac_cv_func_shl_load=yes
9594 else
9595   echo "$as_me: failed program was:" >&5
9596 sed 's/^/| /' conftest.$ac_ext >&5
9597
9598         ac_cv_func_shl_load=no
9599 fi
9600
9601 rm -f core conftest.err conftest.$ac_objext \
9602       conftest$ac_exeext conftest.$ac_ext
9603 fi
9604 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9605 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9606 if test $ac_cv_func_shl_load = yes; then
9607
9608 cat >>confdefs.h <<\_ACEOF
9609 #define HAVE_SHL_LOAD 1
9610 _ACEOF
9611
9612 else
9613   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9614 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9615 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9616   echo $ECHO_N "(cached) $ECHO_C" >&6
9617 else
9618   ac_check_lib_save_LIBS=$LIBS
9619 LIBS="-ldld  $LIBS"
9620 cat >conftest.$ac_ext <<_ACEOF
9621 /* confdefs.h.  */
9622 _ACEOF
9623 cat confdefs.h >>conftest.$ac_ext
9624 cat >>conftest.$ac_ext <<_ACEOF
9625 /* end confdefs.h.  */
9626
9627 /* Override any GCC internal prototype to avoid an error.
9628    Use char because int might match the return type of a GCC
9629    builtin and then its argument prototype would still apply.  */
9630 #ifdef __cplusplus
9631 extern "C"
9632 #endif
9633 char shl_load ();
9634 int
9635 main ()
9636 {
9637 return shl_load ();
9638   ;
9639   return 0;
9640 }
9641 _ACEOF
9642 rm -f conftest.$ac_objext conftest$ac_exeext
9643 if { (ac_try="$ac_link"
9644 case "(($ac_try" in
9645   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9646   *) ac_try_echo=$ac_try;;
9647 esac
9648 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9649   (eval "$ac_link") 2>conftest.er1
9650   ac_status=$?
9651   grep -v '^ *+' conftest.er1 >conftest.err
9652   rm -f conftest.er1
9653   cat conftest.err >&5
9654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9655   (exit $ac_status); } &&
9656          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9657   { (case "(($ac_try" in
9658   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9659   *) ac_try_echo=$ac_try;;
9660 esac
9661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9662   (eval "$ac_try") 2>&5
9663   ac_status=$?
9664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9665   (exit $ac_status); }; } &&
9666          { ac_try='test -s conftest$ac_exeext'
9667   { (case "(($ac_try" in
9668   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9669   *) ac_try_echo=$ac_try;;
9670 esac
9671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9672   (eval "$ac_try") 2>&5
9673   ac_status=$?
9674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9675   (exit $ac_status); }; }; then
9676   ac_cv_lib_dld_shl_load=yes
9677 else
9678   echo "$as_me: failed program was:" >&5
9679 sed 's/^/| /' conftest.$ac_ext >&5
9680
9681         ac_cv_lib_dld_shl_load=no
9682 fi
9683
9684 rm -f core conftest.err conftest.$ac_objext \
9685       conftest$ac_exeext conftest.$ac_ext
9686 LIBS=$ac_check_lib_save_LIBS
9687 fi
9688 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9689 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9690 if test $ac_cv_lib_dld_shl_load = yes; then
9691
9692 cat >>confdefs.h <<\_ACEOF
9693 #define HAVE_SHL_LOAD 1
9694 _ACEOF
9695
9696         LIBADD_DL="$LIBADD_DL -ldld"
9697 else
9698   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9699 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9700 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9701   echo $ECHO_N "(cached) $ECHO_C" >&6
9702 else
9703   ac_check_lib_save_LIBS=$LIBS
9704 LIBS="-ldl  $LIBS"
9705 cat >conftest.$ac_ext <<_ACEOF
9706 /* confdefs.h.  */
9707 _ACEOF
9708 cat confdefs.h >>conftest.$ac_ext
9709 cat >>conftest.$ac_ext <<_ACEOF
9710 /* end confdefs.h.  */
9711
9712 /* Override any GCC internal prototype to avoid an error.
9713    Use char because int might match the return type of a GCC
9714    builtin and then its argument prototype would still apply.  */
9715 #ifdef __cplusplus
9716 extern "C"
9717 #endif
9718 char dlopen ();
9719 int
9720 main ()
9721 {
9722 return dlopen ();
9723   ;
9724   return 0;
9725 }
9726 _ACEOF
9727 rm -f conftest.$ac_objext conftest$ac_exeext
9728 if { (ac_try="$ac_link"
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_link") 2>conftest.er1
9735   ac_status=$?
9736   grep -v '^ *+' conftest.er1 >conftest.err
9737   rm -f conftest.er1
9738   cat conftest.err >&5
9739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9740   (exit $ac_status); } &&
9741          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9742   { (case "(($ac_try" in
9743   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9744   *) ac_try_echo=$ac_try;;
9745 esac
9746 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9747   (eval "$ac_try") 2>&5
9748   ac_status=$?
9749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9750   (exit $ac_status); }; } &&
9751          { ac_try='test -s conftest$ac_exeext'
9752   { (case "(($ac_try" in
9753   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9754   *) ac_try_echo=$ac_try;;
9755 esac
9756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9757   (eval "$ac_try") 2>&5
9758   ac_status=$?
9759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9760   (exit $ac_status); }; }; then
9761   ac_cv_lib_dl_dlopen=yes
9762 else
9763   echo "$as_me: failed program was:" >&5
9764 sed 's/^/| /' conftest.$ac_ext >&5
9765
9766         ac_cv_lib_dl_dlopen=no
9767 fi
9768
9769 rm -f core conftest.err conftest.$ac_objext \
9770       conftest$ac_exeext conftest.$ac_ext
9771 LIBS=$ac_check_lib_save_LIBS
9772 fi
9773 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9774 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9775 if test $ac_cv_lib_dl_dlopen = yes; then
9776
9777 cat >>confdefs.h <<\_ACEOF
9778 #define HAVE_LIBDL 1
9779 _ACEOF
9780
9781                 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
9782 else
9783   cat >conftest.$ac_ext <<_ACEOF
9784 /* confdefs.h.  */
9785 _ACEOF
9786 cat confdefs.h >>conftest.$ac_ext
9787 cat >>conftest.$ac_ext <<_ACEOF
9788 /* end confdefs.h.  */
9789 #if HAVE_DLFCN_H
9790 #  include <dlfcn.h>
9791 #endif
9792
9793 int
9794 main ()
9795 {
9796 dlopen(0, 0);
9797   ;
9798   return 0;
9799 }
9800 _ACEOF
9801 rm -f conftest.$ac_objext conftest$ac_exeext
9802 if { (ac_try="$ac_link"
9803 case "(($ac_try" in
9804   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9805   *) ac_try_echo=$ac_try;;
9806 esac
9807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9808   (eval "$ac_link") 2>conftest.er1
9809   ac_status=$?
9810   grep -v '^ *+' conftest.er1 >conftest.err
9811   rm -f conftest.er1
9812   cat conftest.err >&5
9813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9814   (exit $ac_status); } &&
9815          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9816   { (case "(($ac_try" in
9817   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9818   *) ac_try_echo=$ac_try;;
9819 esac
9820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9821   (eval "$ac_try") 2>&5
9822   ac_status=$?
9823   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9824   (exit $ac_status); }; } &&
9825          { ac_try='test -s conftest$ac_exeext'
9826   { (case "(($ac_try" in
9827   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9828   *) ac_try_echo=$ac_try;;
9829 esac
9830 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9831   (eval "$ac_try") 2>&5
9832   ac_status=$?
9833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9834   (exit $ac_status); }; }; then
9835
9836 cat >>confdefs.h <<\_ACEOF
9837 #define HAVE_LIBDL 1
9838 _ACEOF
9839  libltdl_cv_func_dlopen="yes"
9840 else
9841   echo "$as_me: failed program was:" >&5
9842 sed 's/^/| /' conftest.$ac_ext >&5
9843
9844         { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9845 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
9846 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9847   echo $ECHO_N "(cached) $ECHO_C" >&6
9848 else
9849   ac_check_lib_save_LIBS=$LIBS
9850 LIBS="-lsvld  $LIBS"
9851 cat >conftest.$ac_ext <<_ACEOF
9852 /* confdefs.h.  */
9853 _ACEOF
9854 cat confdefs.h >>conftest.$ac_ext
9855 cat >>conftest.$ac_ext <<_ACEOF
9856 /* end confdefs.h.  */
9857
9858 /* Override any GCC internal prototype to avoid an error.
9859    Use char because int might match the return type of a GCC
9860    builtin and then its argument prototype would still apply.  */
9861 #ifdef __cplusplus
9862 extern "C"
9863 #endif
9864 char dlopen ();
9865 int
9866 main ()
9867 {
9868 return dlopen ();
9869   ;
9870   return 0;
9871 }
9872 _ACEOF
9873 rm -f conftest.$ac_objext conftest$ac_exeext
9874 if { (ac_try="$ac_link"
9875 case "(($ac_try" in
9876   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9877   *) ac_try_echo=$ac_try;;
9878 esac
9879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9880   (eval "$ac_link") 2>conftest.er1
9881   ac_status=$?
9882   grep -v '^ *+' conftest.er1 >conftest.err
9883   rm -f conftest.er1
9884   cat conftest.err >&5
9885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9886   (exit $ac_status); } &&
9887          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
9897          { ac_try='test -s conftest$ac_exeext'
9898   { (case "(($ac_try" in
9899   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9900   *) ac_try_echo=$ac_try;;
9901 esac
9902 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9903   (eval "$ac_try") 2>&5
9904   ac_status=$?
9905   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9906   (exit $ac_status); }; }; then
9907   ac_cv_lib_svld_dlopen=yes
9908 else
9909   echo "$as_me: failed program was:" >&5
9910 sed 's/^/| /' conftest.$ac_ext >&5
9911
9912         ac_cv_lib_svld_dlopen=no
9913 fi
9914
9915 rm -f core conftest.err conftest.$ac_objext \
9916       conftest$ac_exeext conftest.$ac_ext
9917 LIBS=$ac_check_lib_save_LIBS
9918 fi
9919 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9920 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
9921 if test $ac_cv_lib_svld_dlopen = yes; then
9922
9923 cat >>confdefs.h <<\_ACEOF
9924 #define HAVE_LIBDL 1
9925 _ACEOF
9926
9927                     LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
9928 else
9929   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9930 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
9931 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9932   echo $ECHO_N "(cached) $ECHO_C" >&6
9933 else
9934   ac_check_lib_save_LIBS=$LIBS
9935 LIBS="-ldld  $LIBS"
9936 cat >conftest.$ac_ext <<_ACEOF
9937 /* confdefs.h.  */
9938 _ACEOF
9939 cat confdefs.h >>conftest.$ac_ext
9940 cat >>conftest.$ac_ext <<_ACEOF
9941 /* end confdefs.h.  */
9942
9943 /* Override any GCC internal prototype to avoid an error.
9944    Use char because int might match the return type of a GCC
9945    builtin and then its argument prototype would still apply.  */
9946 #ifdef __cplusplus
9947 extern "C"
9948 #endif
9949 char dld_link ();
9950 int
9951 main ()
9952 {
9953 return dld_link ();
9954   ;
9955   return 0;
9956 }
9957 _ACEOF
9958 rm -f conftest.$ac_objext conftest$ac_exeext
9959 if { (ac_try="$ac_link"
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_link") 2>conftest.er1
9966   ac_status=$?
9967   grep -v '^ *+' conftest.er1 >conftest.err
9968   rm -f conftest.er1
9969   cat conftest.err >&5
9970   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9971   (exit $ac_status); } &&
9972          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9973   { (case "(($ac_try" in
9974   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9975   *) ac_try_echo=$ac_try;;
9976 esac
9977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9978   (eval "$ac_try") 2>&5
9979   ac_status=$?
9980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9981   (exit $ac_status); }; } &&
9982          { ac_try='test -s conftest$ac_exeext'
9983   { (case "(($ac_try" in
9984   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9985   *) ac_try_echo=$ac_try;;
9986 esac
9987 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9988   (eval "$ac_try") 2>&5
9989   ac_status=$?
9990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9991   (exit $ac_status); }; }; then
9992   ac_cv_lib_dld_dld_link=yes
9993 else
9994   echo "$as_me: failed program was:" >&5
9995 sed 's/^/| /' conftest.$ac_ext >&5
9996
9997         ac_cv_lib_dld_dld_link=no
9998 fi
9999
10000 rm -f core conftest.err conftest.$ac_objext \
10001       conftest$ac_exeext conftest.$ac_ext
10002 LIBS=$ac_check_lib_save_LIBS
10003 fi
10004 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10005 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10006 if test $ac_cv_lib_dld_dld_link = yes; then
10007
10008 cat >>confdefs.h <<\_ACEOF
10009 #define HAVE_DLD 1
10010 _ACEOF
10011
10012                 LIBADD_DL="$LIBADD_DL -ldld"
10013 else
10014   { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
10015 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
10016 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
10017   echo $ECHO_N "(cached) $ECHO_C" >&6
10018 else
10019   cat >conftest.$ac_ext <<_ACEOF
10020 /* confdefs.h.  */
10021 _ACEOF
10022 cat confdefs.h >>conftest.$ac_ext
10023 cat >>conftest.$ac_ext <<_ACEOF
10024 /* end confdefs.h.  */
10025 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10026    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10027 #define _dyld_func_lookup innocuous__dyld_func_lookup
10028
10029 /* System header to define __stub macros and hopefully few prototypes,
10030     which can conflict with char _dyld_func_lookup (); below.
10031     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10032     <limits.h> exists even on freestanding compilers.  */
10033
10034 #ifdef __STDC__
10035 # include <limits.h>
10036 #else
10037 # include <assert.h>
10038 #endif
10039
10040 #undef _dyld_func_lookup
10041
10042 /* Override any GCC internal prototype to avoid an error.
10043    Use char because int might match the return type of a GCC
10044    builtin and then its argument prototype would still apply.  */
10045 #ifdef __cplusplus
10046 extern "C"
10047 #endif
10048 char _dyld_func_lookup ();
10049 /* The GNU C library defines this for functions which it implements
10050     to always fail with ENOSYS.  Some functions are actually named
10051     something starting with __ and the normal name is an alias.  */
10052 #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
10053 choke me
10054 #endif
10055
10056 int
10057 main ()
10058 {
10059 return _dyld_func_lookup ();
10060   ;
10061   return 0;
10062 }
10063 _ACEOF
10064 rm -f conftest.$ac_objext conftest$ac_exeext
10065 if { (ac_try="$ac_link"
10066 case "(($ac_try" in
10067   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10068   *) ac_try_echo=$ac_try;;
10069 esac
10070 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10071   (eval "$ac_link") 2>conftest.er1
10072   ac_status=$?
10073   grep -v '^ *+' conftest.er1 >conftest.err
10074   rm -f conftest.er1
10075   cat conftest.err >&5
10076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10077   (exit $ac_status); } &&
10078          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10079   { (case "(($ac_try" in
10080   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10081   *) ac_try_echo=$ac_try;;
10082 esac
10083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10084   (eval "$ac_try") 2>&5
10085   ac_status=$?
10086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10087   (exit $ac_status); }; } &&
10088          { ac_try='test -s conftest$ac_exeext'
10089   { (case "(($ac_try" in
10090   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10091   *) ac_try_echo=$ac_try;;
10092 esac
10093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10094   (eval "$ac_try") 2>&5
10095   ac_status=$?
10096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10097   (exit $ac_status); }; }; then
10098   ac_cv_func__dyld_func_lookup=yes
10099 else
10100   echo "$as_me: failed program was:" >&5
10101 sed 's/^/| /' conftest.$ac_ext >&5
10102
10103         ac_cv_func__dyld_func_lookup=no
10104 fi
10105
10106 rm -f core conftest.err conftest.$ac_objext \
10107       conftest$ac_exeext conftest.$ac_ext
10108 fi
10109 { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10110 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
10111 if test $ac_cv_func__dyld_func_lookup = yes; then
10112
10113 cat >>confdefs.h <<\_ACEOF
10114 #define HAVE_DYLD 1
10115 _ACEOF
10116
10117 fi
10118
10119
10120 fi
10121
10122
10123 fi
10124
10125
10126 fi
10127
10128 rm -f core conftest.err conftest.$ac_objext \
10129       conftest$ac_exeext conftest.$ac_ext
10130
10131 fi
10132
10133
10134 fi
10135
10136
10137 fi
10138
10139
10140 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10141 then
10142   lt_save_LIBS="$LIBS"
10143   LIBS="$LIBS $LIBADD_DL"
10144
10145 for ac_func in dlerror
10146 do
10147 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10148 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10149 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10150 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10151   echo $ECHO_N "(cached) $ECHO_C" >&6
10152 else
10153   cat >conftest.$ac_ext <<_ACEOF
10154 /* confdefs.h.  */
10155 _ACEOF
10156 cat confdefs.h >>conftest.$ac_ext
10157 cat >>conftest.$ac_ext <<_ACEOF
10158 /* end confdefs.h.  */
10159 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10160    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10161 #define $ac_func innocuous_$ac_func
10162
10163 /* System header to define __stub macros and hopefully few prototypes,
10164     which can conflict with char $ac_func (); below.
10165     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10166     <limits.h> exists even on freestanding compilers.  */
10167
10168 #ifdef __STDC__
10169 # include <limits.h>
10170 #else
10171 # include <assert.h>
10172 #endif
10173
10174 #undef $ac_func
10175
10176 /* Override any GCC internal prototype to avoid an error.
10177    Use char because int might match the return type of a GCC
10178    builtin and then its argument prototype would still apply.  */
10179 #ifdef __cplusplus
10180 extern "C"
10181 #endif
10182 char $ac_func ();
10183 /* The GNU C library defines this for functions which it implements
10184     to always fail with ENOSYS.  Some functions are actually named
10185     something starting with __ and the normal name is an alias.  */
10186 #if defined __stub_$ac_func || defined __stub___$ac_func
10187 choke me
10188 #endif
10189
10190 int
10191 main ()
10192 {
10193 return $ac_func ();
10194   ;
10195   return 0;
10196 }
10197 _ACEOF
10198 rm -f conftest.$ac_objext conftest$ac_exeext
10199 if { (ac_try="$ac_link"
10200 case "(($ac_try" in
10201   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10202   *) ac_try_echo=$ac_try;;
10203 esac
10204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10205   (eval "$ac_link") 2>conftest.er1
10206   ac_status=$?
10207   grep -v '^ *+' conftest.er1 >conftest.err
10208   rm -f conftest.er1
10209   cat conftest.err >&5
10210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10211   (exit $ac_status); } &&
10212          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10213   { (case "(($ac_try" in
10214   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10215   *) ac_try_echo=$ac_try;;
10216 esac
10217 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10218   (eval "$ac_try") 2>&5
10219   ac_status=$?
10220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10221   (exit $ac_status); }; } &&
10222          { ac_try='test -s conftest$ac_exeext'
10223   { (case "(($ac_try" in
10224   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10225   *) ac_try_echo=$ac_try;;
10226 esac
10227 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10228   (eval "$ac_try") 2>&5
10229   ac_status=$?
10230   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10231   (exit $ac_status); }; }; then
10232   eval "$as_ac_var=yes"
10233 else
10234   echo "$as_me: failed program was:" >&5
10235 sed 's/^/| /' conftest.$ac_ext >&5
10236
10237         eval "$as_ac_var=no"
10238 fi
10239
10240 rm -f core conftest.err conftest.$ac_objext \
10241       conftest$ac_exeext conftest.$ac_ext
10242 fi
10243 ac_res=`eval echo '${'$as_ac_var'}'`
10244                { echo "$as_me:$LINENO: result: $ac_res" >&5
10245 echo "${ECHO_T}$ac_res" >&6; }
10246 if test `eval echo '${'$as_ac_var'}'` = yes; then
10247   cat >>confdefs.h <<_ACEOF
10248 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10249 _ACEOF
10250
10251 fi
10252 done
10253
10254   LIBS="$lt_save_LIBS"
10255 fi
10256 ac_ext=c
10257 ac_cpp='$CPP $CPPFLAGS'
10258 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10259 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10260 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10261
10262
10263
10264 { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10265 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
10266 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10267   echo $ECHO_N "(cached) $ECHO_C" >&6
10268 else
10269   ac_cv_sys_symbol_underscore=no
10270   cat > conftest.$ac_ext <<EOF
10271 void nm_test_func(){}
10272 int main(){nm_test_func;return 0;}
10273 EOF
10274   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10275   (eval $ac_compile) 2>&5
10276   ac_status=$?
10277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10278   (exit $ac_status); }; then
10279     # Now try to grab the symbols.
10280     ac_nlist=conftest.nm
10281     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
10282   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10283   ac_status=$?
10284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10285   (exit $ac_status); } && test -s "$ac_nlist"; then
10286       # See whether the symbols have a leading underscore.
10287       if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10288         ac_cv_sys_symbol_underscore=yes
10289       else
10290         if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10291           :
10292         else
10293           echo "configure: cannot find nm_test_func in $ac_nlist" >&5
10294         fi
10295       fi
10296     else
10297       echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
10298     fi
10299   else
10300     echo "configure: failed program was:" >&5
10301     cat conftest.c >&5
10302   fi
10303   rm -rf conftest*
10304
10305 fi
10306 { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
10307 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
10308
10309
10310 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10311   if test x"$libltdl_cv_func_dlopen" = xyes ||
10312      test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
10313         { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
10314 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
10315 if test "${libltdl_cv_need_uscore+set}" = set; then
10316   echo $ECHO_N "(cached) $ECHO_C" >&6
10317 else
10318   libltdl_cv_need_uscore=unknown
10319           save_LIBS="$LIBS"
10320           LIBS="$LIBS $LIBADD_DL"
10321           if test "$cross_compiling" = yes; then :
10322   libltdl_cv_need_uscore=cross
10323 else
10324   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10325   lt_status=$lt_dlunknown
10326   cat > conftest.$ac_ext <<EOF
10327 #line 10327 "configure"
10328 #include "confdefs.h"
10329
10330 #if HAVE_DLFCN_H
10331 #include <dlfcn.h>
10332 #endif
10333
10334 #include <stdio.h>
10335
10336 #ifdef RTLD_GLOBAL
10337 #  define LT_DLGLOBAL           RTLD_GLOBAL
10338 #else
10339 #  ifdef DL_GLOBAL
10340 #    define LT_DLGLOBAL         DL_GLOBAL
10341 #  else
10342 #    define LT_DLGLOBAL         0
10343 #  endif
10344 #endif
10345
10346 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10347    find out it does not work in some platform. */
10348 #ifndef LT_DLLAZY_OR_NOW
10349 #  ifdef RTLD_LAZY
10350 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10351 #  else
10352 #    ifdef DL_LAZY
10353 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10354 #    else
10355 #      ifdef RTLD_NOW
10356 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10357 #      else
10358 #        ifdef DL_NOW
10359 #          define LT_DLLAZY_OR_NOW      DL_NOW
10360 #        else
10361 #          define LT_DLLAZY_OR_NOW      0
10362 #        endif
10363 #      endif
10364 #    endif
10365 #  endif
10366 #endif
10367
10368 #ifdef __cplusplus
10369 extern "C" void exit (int);
10370 #endif
10371
10372 void fnord() { int i=42;}
10373 int main ()
10374 {
10375   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10376   int status = $lt_dlunknown;
10377
10378   if (self)
10379     {
10380       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10381       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10382       /* dlclose (self); */
10383     }
10384   else
10385     puts (dlerror ());
10386
10387     exit (status);
10388 }
10389 EOF
10390   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10391   (eval $ac_link) 2>&5
10392   ac_status=$?
10393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10394   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10395     (./conftest; exit; ) >&5 2>/dev/null
10396     lt_status=$?
10397     case x$lt_status in
10398       x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
10399       x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
10400       x$lt_dlunknown|x*)  ;;
10401     esac
10402   else :
10403     # compilation failed
10404
10405   fi
10406 fi
10407 rm -fr conftest*
10408
10409           LIBS="$save_LIBS"
10410
10411 fi
10412 { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
10413 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
10414   fi
10415 fi
10416
10417 if test x"$libltdl_cv_need_uscore" = xyes; then
10418
10419 cat >>confdefs.h <<\_ACEOF
10420 #define NEED_USCORE 1
10421 _ACEOF
10422
10423 fi
10424
10425
10426 { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
10427 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
10428 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
10429   echo $ECHO_N "(cached) $ECHO_C" >&6
10430 else
10431   # PORTME does your system automatically load deplibs for dlopen?
10432   # or its logical equivalent (e.g. shl_load for HP-UX < 11)
10433   # For now, we just catch OSes we know something about -- in the
10434   # future, we'll try test this programmatically.
10435   libltdl_cv_sys_dlopen_deplibs=unknown
10436   case "$host_os" in
10437   aix3*|aix4.1.*|aix4.2.*)
10438     # Unknown whether this is true for these versions of AIX, but
10439     # we want this `case' here to explicitly catch those versions.
10440     libltdl_cv_sys_dlopen_deplibs=unknown
10441     ;;
10442   aix[45]*)
10443     libltdl_cv_sys_dlopen_deplibs=yes
10444     ;;
10445   darwin*)
10446     # Assuming the user has installed a libdl from somewhere, this is true
10447     # If you are looking for one http://www.opendarwin.org/projects/dlcompat
10448     libltdl_cv_sys_dlopen_deplibs=yes
10449     ;;
10450   gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
10451     # GNU and its variants, using gnu ld.so (Glibc)
10452     libltdl_cv_sys_dlopen_deplibs=yes
10453     ;;
10454   hpux10*|hpux11*)
10455     libltdl_cv_sys_dlopen_deplibs=yes
10456     ;;
10457   interix*)
10458     libltdl_cv_sys_dlopen_deplibs=yes
10459     ;;
10460   irix[12345]*|irix6.[01]*)
10461     # Catch all versions of IRIX before 6.2, and indicate that we don't
10462     # know how it worked for any of those versions.
10463     libltdl_cv_sys_dlopen_deplibs=unknown
10464     ;;
10465   irix*)
10466     # The case above catches anything before 6.2, and it's known that
10467     # at 6.2 and later dlopen does load deplibs.
10468     libltdl_cv_sys_dlopen_deplibs=yes
10469     ;;
10470   netbsd*)
10471     libltdl_cv_sys_dlopen_deplibs=yes
10472     ;;
10473   openbsd*)
10474     libltdl_cv_sys_dlopen_deplibs=yes
10475     ;;
10476   osf[1234]*)
10477     # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
10478     # it did *not* use an RPATH in a shared library to find objects the
10479     # library depends on, so we explicitly say `no'.
10480     libltdl_cv_sys_dlopen_deplibs=no
10481     ;;
10482   osf5.0|osf5.0a|osf5.1)
10483     # dlopen *does* load deplibs and with the right loader patch applied
10484     # it even uses RPATH in a shared library to search for shared objects
10485     # that the library depends on, but there's no easy way to know if that
10486     # patch is installed.  Since this is the case, all we can really
10487     # say is unknown -- it depends on the patch being installed.  If
10488     # it is, this changes to `yes'.  Without it, it would be `no'.
10489     libltdl_cv_sys_dlopen_deplibs=unknown
10490     ;;
10491   osf*)
10492     # the two cases above should catch all versions of osf <= 5.1.  Read
10493     # the comments above for what we know about them.
10494     # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
10495     # is used to find them so we can finally say `yes'.
10496     libltdl_cv_sys_dlopen_deplibs=yes
10497     ;;
10498   solaris*)
10499     libltdl_cv_sys_dlopen_deplibs=yes
10500     ;;
10501   sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10502     libltdl_cv_sys_dlopen_deplibs=yes
10503     ;;
10504   esac
10505
10506 fi
10507 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
10508 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
10509 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
10510
10511 cat >>confdefs.h <<\_ACEOF
10512 #define LTDL_DLOPEN_DEPLIBS 1
10513 _ACEOF
10514
10515 fi
10516
10517
10518 for ac_header in argz.h
10519 do
10520 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10521 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10522   { echo "$as_me:$LINENO: checking for $ac_header" >&5
10523 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10524 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10525   echo $ECHO_N "(cached) $ECHO_C" >&6
10526 fi
10527 ac_res=`eval echo '${'$as_ac_Header'}'`
10528                { echo "$as_me:$LINENO: result: $ac_res" >&5
10529 echo "${ECHO_T}$ac_res" >&6; }
10530 else
10531   # Is the header compilable?
10532 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10533 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10534 cat >conftest.$ac_ext <<_ACEOF
10535 /* confdefs.h.  */
10536 _ACEOF
10537 cat confdefs.h >>conftest.$ac_ext
10538 cat >>conftest.$ac_ext <<_ACEOF
10539 /* end confdefs.h.  */
10540 $ac_includes_default
10541 #include <$ac_header>
10542 _ACEOF
10543 rm -f conftest.$ac_objext
10544 if { (ac_try="$ac_compile"
10545 case "(($ac_try" in
10546   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10547   *) ac_try_echo=$ac_try;;
10548 esac
10549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10550   (eval "$ac_compile") 2>conftest.er1
10551   ac_status=$?
10552   grep -v '^ *+' conftest.er1 >conftest.err
10553   rm -f conftest.er1
10554   cat conftest.err >&5
10555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10556   (exit $ac_status); } &&
10557          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10558   { (case "(($ac_try" in
10559   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10560   *) ac_try_echo=$ac_try;;
10561 esac
10562 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10563   (eval "$ac_try") 2>&5
10564   ac_status=$?
10565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10566   (exit $ac_status); }; } &&
10567          { ac_try='test -s conftest.$ac_objext'
10568   { (case "(($ac_try" in
10569   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10570   *) ac_try_echo=$ac_try;;
10571 esac
10572 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10573   (eval "$ac_try") 2>&5
10574   ac_status=$?
10575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10576   (exit $ac_status); }; }; then
10577   ac_header_compiler=yes
10578 else
10579   echo "$as_me: failed program was:" >&5
10580 sed 's/^/| /' conftest.$ac_ext >&5
10581
10582         ac_header_compiler=no
10583 fi
10584
10585 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10586 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10587 echo "${ECHO_T}$ac_header_compiler" >&6; }
10588
10589 # Is the header present?
10590 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10591 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10592 cat >conftest.$ac_ext <<_ACEOF
10593 /* confdefs.h.  */
10594 _ACEOF
10595 cat confdefs.h >>conftest.$ac_ext
10596 cat >>conftest.$ac_ext <<_ACEOF
10597 /* end confdefs.h.  */
10598 #include <$ac_header>
10599 _ACEOF
10600 if { (ac_try="$ac_cpp conftest.$ac_ext"
10601 case "(($ac_try" in
10602   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10603   *) ac_try_echo=$ac_try;;
10604 esac
10605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10606   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10607   ac_status=$?
10608   grep -v '^ *+' conftest.er1 >conftest.err
10609   rm -f conftest.er1
10610   cat conftest.err >&5
10611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10612   (exit $ac_status); } >/dev/null; then
10613   if test -s conftest.err; then
10614     ac_cpp_err=$ac_c_preproc_warn_flag
10615     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10616   else
10617     ac_cpp_err=
10618   fi
10619 else
10620   ac_cpp_err=yes
10621 fi
10622 if test -z "$ac_cpp_err"; then
10623   ac_header_preproc=yes
10624 else
10625   echo "$as_me: failed program was:" >&5
10626 sed 's/^/| /' conftest.$ac_ext >&5
10627
10628   ac_header_preproc=no
10629 fi
10630
10631 rm -f conftest.err conftest.$ac_ext
10632 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10633 echo "${ECHO_T}$ac_header_preproc" >&6; }
10634
10635 # So?  What about this header?
10636 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10637   yes:no: )
10638     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10639 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10640     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10641 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10642     ac_header_preproc=yes
10643     ;;
10644   no:yes:* )
10645     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10646 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10647     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10648 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10649     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10650 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10651     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10652 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10653     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10654 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10655     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10656 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10657     ( cat <<\_ASBOX
10658 ## ------------------------------------ ##
10659 ## Report this to http://llvm.org/bugs/ ##
10660 ## ------------------------------------ ##
10661 _ASBOX
10662      ) | sed "s/^/$as_me: WARNING:     /" >&2
10663     ;;
10664 esac
10665 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10666 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10667 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10668   echo $ECHO_N "(cached) $ECHO_C" >&6
10669 else
10670   eval "$as_ac_Header=\$ac_header_preproc"
10671 fi
10672 ac_res=`eval echo '${'$as_ac_Header'}'`
10673                { echo "$as_me:$LINENO: result: $ac_res" >&5
10674 echo "${ECHO_T}$ac_res" >&6; }
10675
10676 fi
10677 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10678   cat >>confdefs.h <<_ACEOF
10679 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10680 _ACEOF
10681
10682 fi
10683
10684 done
10685
10686
10687 { echo "$as_me:$LINENO: checking for error_t" >&5
10688 echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
10689 if test "${ac_cv_type_error_t+set}" = set; then
10690   echo $ECHO_N "(cached) $ECHO_C" >&6
10691 else
10692   cat >conftest.$ac_ext <<_ACEOF
10693 /* confdefs.h.  */
10694 _ACEOF
10695 cat confdefs.h >>conftest.$ac_ext
10696 cat >>conftest.$ac_ext <<_ACEOF
10697 /* end confdefs.h.  */
10698 #if HAVE_ARGZ_H
10699 #  include <argz.h>
10700 #endif
10701
10702 typedef error_t ac__type_new_;
10703 int
10704 main ()
10705 {
10706 if ((ac__type_new_ *) 0)
10707   return 0;
10708 if (sizeof (ac__type_new_))
10709   return 0;
10710   ;
10711   return 0;
10712 }
10713 _ACEOF
10714 rm -f conftest.$ac_objext
10715 if { (ac_try="$ac_compile"
10716 case "(($ac_try" in
10717   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10718   *) ac_try_echo=$ac_try;;
10719 esac
10720 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10721   (eval "$ac_compile") 2>conftest.er1
10722   ac_status=$?
10723   grep -v '^ *+' conftest.er1 >conftest.err
10724   rm -f conftest.er1
10725   cat conftest.err >&5
10726   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10727   (exit $ac_status); } &&
10728          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10729   { (case "(($ac_try" in
10730   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10731   *) ac_try_echo=$ac_try;;
10732 esac
10733 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10734   (eval "$ac_try") 2>&5
10735   ac_status=$?
10736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10737   (exit $ac_status); }; } &&
10738          { ac_try='test -s conftest.$ac_objext'
10739   { (case "(($ac_try" in
10740   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10741   *) ac_try_echo=$ac_try;;
10742 esac
10743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10744   (eval "$ac_try") 2>&5
10745   ac_status=$?
10746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10747   (exit $ac_status); }; }; then
10748   ac_cv_type_error_t=yes
10749 else
10750   echo "$as_me: failed program was:" >&5
10751 sed 's/^/| /' conftest.$ac_ext >&5
10752
10753         ac_cv_type_error_t=no
10754 fi
10755
10756 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10757 fi
10758 { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
10759 echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
10760 if test $ac_cv_type_error_t = yes; then
10761
10762 cat >>confdefs.h <<_ACEOF
10763 #define HAVE_ERROR_T 1
10764 _ACEOF
10765
10766
10767 else
10768
10769 cat >>confdefs.h <<\_ACEOF
10770 #define error_t int
10771 _ACEOF
10772
10773 fi
10774
10775
10776
10777
10778
10779
10780
10781 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
10782 do
10783 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10784 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10785 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10786 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10787   echo $ECHO_N "(cached) $ECHO_C" >&6
10788 else
10789   cat >conftest.$ac_ext <<_ACEOF
10790 /* confdefs.h.  */
10791 _ACEOF
10792 cat confdefs.h >>conftest.$ac_ext
10793 cat >>conftest.$ac_ext <<_ACEOF
10794 /* end confdefs.h.  */
10795 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10796    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10797 #define $ac_func innocuous_$ac_func
10798
10799 /* System header to define __stub macros and hopefully few prototypes,
10800     which can conflict with char $ac_func (); below.
10801     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10802     <limits.h> exists even on freestanding compilers.  */
10803
10804 #ifdef __STDC__
10805 # include <limits.h>
10806 #else
10807 # include <assert.h>
10808 #endif
10809
10810 #undef $ac_func
10811
10812 /* Override any GCC internal prototype to avoid an error.
10813    Use char because int might match the return type of a GCC
10814    builtin and then its argument prototype would still apply.  */
10815 #ifdef __cplusplus
10816 extern "C"
10817 #endif
10818 char $ac_func ();
10819 /* The GNU C library defines this for functions which it implements
10820     to always fail with ENOSYS.  Some functions are actually named
10821     something starting with __ and the normal name is an alias.  */
10822 #if defined __stub_$ac_func || defined __stub___$ac_func
10823 choke me
10824 #endif
10825
10826 int
10827 main ()
10828 {
10829 return $ac_func ();
10830   ;
10831   return 0;
10832 }
10833 _ACEOF
10834 rm -f conftest.$ac_objext conftest$ac_exeext
10835 if { (ac_try="$ac_link"
10836 case "(($ac_try" in
10837   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10838   *) ac_try_echo=$ac_try;;
10839 esac
10840 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10841   (eval "$ac_link") 2>conftest.er1
10842   ac_status=$?
10843   grep -v '^ *+' conftest.er1 >conftest.err
10844   rm -f conftest.er1
10845   cat conftest.err >&5
10846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10847   (exit $ac_status); } &&
10848          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10849   { (case "(($ac_try" in
10850   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10851   *) ac_try_echo=$ac_try;;
10852 esac
10853 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10854   (eval "$ac_try") 2>&5
10855   ac_status=$?
10856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10857   (exit $ac_status); }; } &&
10858          { ac_try='test -s conftest$ac_exeext'
10859   { (case "(($ac_try" in
10860   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10861   *) ac_try_echo=$ac_try;;
10862 esac
10863 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10864   (eval "$ac_try") 2>&5
10865   ac_status=$?
10866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10867   (exit $ac_status); }; }; then
10868   eval "$as_ac_var=yes"
10869 else
10870   echo "$as_me: failed program was:" >&5
10871 sed 's/^/| /' conftest.$ac_ext >&5
10872
10873         eval "$as_ac_var=no"
10874 fi
10875
10876 rm -f core conftest.err conftest.$ac_objext \
10877       conftest$ac_exeext conftest.$ac_ext
10878 fi
10879 ac_res=`eval echo '${'$as_ac_var'}'`
10880                { echo "$as_me:$LINENO: result: $ac_res" >&5
10881 echo "${ECHO_T}$ac_res" >&6; }
10882 if test `eval echo '${'$as_ac_var'}'` = yes; then
10883   cat >>confdefs.h <<_ACEOF
10884 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10885 _ACEOF
10886
10887 fi
10888 done
10889
10890
10891
10892
10893
10894
10895
10896
10897
10898
10899
10900
10901
10902
10903
10904
10905
10906
10907
10908
10909
10910
10911
10912
10913
10914
10915
10916
10917 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
10918                   stdio.h unistd.h
10919 do
10920 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10921 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10922   { echo "$as_me:$LINENO: checking for $ac_header" >&5
10923 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10924 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10925   echo $ECHO_N "(cached) $ECHO_C" >&6
10926 fi
10927 ac_res=`eval echo '${'$as_ac_Header'}'`
10928                { echo "$as_me:$LINENO: result: $ac_res" >&5
10929 echo "${ECHO_T}$ac_res" >&6; }
10930 else
10931   # Is the header compilable?
10932 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10933 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10934 cat >conftest.$ac_ext <<_ACEOF
10935 /* confdefs.h.  */
10936 _ACEOF
10937 cat confdefs.h >>conftest.$ac_ext
10938 cat >>conftest.$ac_ext <<_ACEOF
10939 /* end confdefs.h.  */
10940 $ac_includes_default
10941 #include <$ac_header>
10942 _ACEOF
10943 rm -f conftest.$ac_objext
10944 if { (ac_try="$ac_compile"
10945 case "(($ac_try" in
10946   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10947   *) ac_try_echo=$ac_try;;
10948 esac
10949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10950   (eval "$ac_compile") 2>conftest.er1
10951   ac_status=$?
10952   grep -v '^ *+' conftest.er1 >conftest.err
10953   rm -f conftest.er1
10954   cat conftest.err >&5
10955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10956   (exit $ac_status); } &&
10957          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10958   { (case "(($ac_try" in
10959   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10960   *) ac_try_echo=$ac_try;;
10961 esac
10962 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10963   (eval "$ac_try") 2>&5
10964   ac_status=$?
10965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10966   (exit $ac_status); }; } &&
10967          { ac_try='test -s conftest.$ac_objext'
10968   { (case "(($ac_try" in
10969   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10970   *) ac_try_echo=$ac_try;;
10971 esac
10972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10973   (eval "$ac_try") 2>&5
10974   ac_status=$?
10975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10976   (exit $ac_status); }; }; then
10977   ac_header_compiler=yes
10978 else
10979   echo "$as_me: failed program was:" >&5
10980 sed 's/^/| /' conftest.$ac_ext >&5
10981
10982         ac_header_compiler=no
10983 fi
10984
10985 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10986 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10987 echo "${ECHO_T}$ac_header_compiler" >&6; }
10988
10989 # Is the header present?
10990 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10991 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10992 cat >conftest.$ac_ext <<_ACEOF
10993 /* confdefs.h.  */
10994 _ACEOF
10995 cat confdefs.h >>conftest.$ac_ext
10996 cat >>conftest.$ac_ext <<_ACEOF
10997 /* end confdefs.h.  */
10998 #include <$ac_header>
10999 _ACEOF
11000 if { (ac_try="$ac_cpp conftest.$ac_ext"
11001 case "(($ac_try" in
11002   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11003   *) ac_try_echo=$ac_try;;
11004 esac
11005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11006   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11007   ac_status=$?
11008   grep -v '^ *+' conftest.er1 >conftest.err
11009   rm -f conftest.er1
11010   cat conftest.err >&5
11011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11012   (exit $ac_status); } >/dev/null; then
11013   if test -s conftest.err; then
11014     ac_cpp_err=$ac_c_preproc_warn_flag
11015     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11016   else
11017     ac_cpp_err=
11018   fi
11019 else
11020   ac_cpp_err=yes
11021 fi
11022 if test -z "$ac_cpp_err"; then
11023   ac_header_preproc=yes
11024 else
11025   echo "$as_me: failed program was:" >&5
11026 sed 's/^/| /' conftest.$ac_ext >&5
11027
11028   ac_header_preproc=no
11029 fi
11030
11031 rm -f conftest.err conftest.$ac_ext
11032 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11033 echo "${ECHO_T}$ac_header_preproc" >&6; }
11034
11035 # So?  What about this header?
11036 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11037   yes:no: )
11038     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11039 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11040     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11041 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11042     ac_header_preproc=yes
11043     ;;
11044   no:yes:* )
11045     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11046 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11047     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11048 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11049     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11050 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11051     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11052 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11053     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11054 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11055     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11056 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11057     ( cat <<\_ASBOX
11058 ## ------------------------------------ ##
11059 ## Report this to http://llvm.org/bugs/ ##
11060 ## ------------------------------------ ##
11061 _ASBOX
11062      ) | sed "s/^/$as_me: WARNING:     /" >&2
11063     ;;
11064 esac
11065 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11066 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11067 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11068   echo $ECHO_N "(cached) $ECHO_C" >&6
11069 else
11070   eval "$as_ac_Header=\$ac_header_preproc"
11071 fi
11072 ac_res=`eval echo '${'$as_ac_Header'}'`
11073                { echo "$as_me:$LINENO: result: $ac_res" >&5
11074 echo "${ECHO_T}$ac_res" >&6; }
11075
11076 fi
11077 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11078   cat >>confdefs.h <<_ACEOF
11079 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11080 _ACEOF
11081
11082 fi
11083
11084 done
11085
11086
11087
11088
11089
11090 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
11091 do
11092 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11093 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11094   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11095 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11096 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11097   echo $ECHO_N "(cached) $ECHO_C" >&6
11098 fi
11099 ac_res=`eval echo '${'$as_ac_Header'}'`
11100                { echo "$as_me:$LINENO: result: $ac_res" >&5
11101 echo "${ECHO_T}$ac_res" >&6; }
11102 else
11103   # Is the header compilable?
11104 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11105 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11106 cat >conftest.$ac_ext <<_ACEOF
11107 /* confdefs.h.  */
11108 _ACEOF
11109 cat confdefs.h >>conftest.$ac_ext
11110 cat >>conftest.$ac_ext <<_ACEOF
11111 /* end confdefs.h.  */
11112 $ac_includes_default
11113 #include <$ac_header>
11114 _ACEOF
11115 rm -f conftest.$ac_objext
11116 if { (ac_try="$ac_compile"
11117 case "(($ac_try" in
11118   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11119   *) ac_try_echo=$ac_try;;
11120 esac
11121 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11122   (eval "$ac_compile") 2>conftest.er1
11123   ac_status=$?
11124   grep -v '^ *+' conftest.er1 >conftest.err
11125   rm -f conftest.er1
11126   cat conftest.err >&5
11127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11128   (exit $ac_status); } &&
11129          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11130   { (case "(($ac_try" in
11131   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11132   *) ac_try_echo=$ac_try;;
11133 esac
11134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11135   (eval "$ac_try") 2>&5
11136   ac_status=$?
11137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11138   (exit $ac_status); }; } &&
11139          { ac_try='test -s conftest.$ac_objext'
11140   { (case "(($ac_try" in
11141   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11142   *) ac_try_echo=$ac_try;;
11143 esac
11144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11145   (eval "$ac_try") 2>&5
11146   ac_status=$?
11147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11148   (exit $ac_status); }; }; then
11149   ac_header_compiler=yes
11150 else
11151   echo "$as_me: failed program was:" >&5
11152 sed 's/^/| /' conftest.$ac_ext >&5
11153
11154         ac_header_compiler=no
11155 fi
11156
11157 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11158 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11159 echo "${ECHO_T}$ac_header_compiler" >&6; }
11160
11161 # Is the header present?
11162 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11163 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11164 cat >conftest.$ac_ext <<_ACEOF
11165 /* confdefs.h.  */
11166 _ACEOF
11167 cat confdefs.h >>conftest.$ac_ext
11168 cat >>conftest.$ac_ext <<_ACEOF
11169 /* end confdefs.h.  */
11170 #include <$ac_header>
11171 _ACEOF
11172 if { (ac_try="$ac_cpp conftest.$ac_ext"
11173 case "(($ac_try" in
11174   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11175   *) ac_try_echo=$ac_try;;
11176 esac
11177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11178   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11179   ac_status=$?
11180   grep -v '^ *+' conftest.er1 >conftest.err
11181   rm -f conftest.er1
11182   cat conftest.err >&5
11183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11184   (exit $ac_status); } >/dev/null; then
11185   if test -s conftest.err; then
11186     ac_cpp_err=$ac_c_preproc_warn_flag
11187     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11188   else
11189     ac_cpp_err=
11190   fi
11191 else
11192   ac_cpp_err=yes
11193 fi
11194 if test -z "$ac_cpp_err"; then
11195   ac_header_preproc=yes
11196 else
11197   echo "$as_me: failed program was:" >&5
11198 sed 's/^/| /' conftest.$ac_ext >&5
11199
11200   ac_header_preproc=no
11201 fi
11202
11203 rm -f conftest.err conftest.$ac_ext
11204 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11205 echo "${ECHO_T}$ac_header_preproc" >&6; }
11206
11207 # So?  What about this header?
11208 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11209   yes:no: )
11210     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11211 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11212     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11213 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11214     ac_header_preproc=yes
11215     ;;
11216   no:yes:* )
11217     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11218 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11219     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11220 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11221     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11222 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11223     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11224 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11225     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11226 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11227     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11228 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11229     ( cat <<\_ASBOX
11230 ## ------------------------------------ ##
11231 ## Report this to http://llvm.org/bugs/ ##
11232 ## ------------------------------------ ##
11233 _ASBOX
11234      ) | sed "s/^/$as_me: WARNING:     /" >&2
11235     ;;
11236 esac
11237 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11238 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11239 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11240   echo $ECHO_N "(cached) $ECHO_C" >&6
11241 else
11242   eval "$as_ac_Header=\$ac_header_preproc"
11243 fi
11244 ac_res=`eval echo '${'$as_ac_Header'}'`
11245                { echo "$as_me:$LINENO: result: $ac_res" >&5
11246 echo "${ECHO_T}$ac_res" >&6; }
11247
11248 fi
11249 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11250   cat >>confdefs.h <<_ACEOF
11251 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11252 _ACEOF
11253
11254 fi
11255
11256 done
11257
11258
11259
11260 for ac_header in string.h strings.h
11261 do
11262 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11263 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11264   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11265 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11266 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11267   echo $ECHO_N "(cached) $ECHO_C" >&6
11268 fi
11269 ac_res=`eval echo '${'$as_ac_Header'}'`
11270                { echo "$as_me:$LINENO: result: $ac_res" >&5
11271 echo "${ECHO_T}$ac_res" >&6; }
11272 else
11273   # Is the header compilable?
11274 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11275 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11276 cat >conftest.$ac_ext <<_ACEOF
11277 /* confdefs.h.  */
11278 _ACEOF
11279 cat confdefs.h >>conftest.$ac_ext
11280 cat >>conftest.$ac_ext <<_ACEOF
11281 /* end confdefs.h.  */
11282 $ac_includes_default
11283 #include <$ac_header>
11284 _ACEOF
11285 rm -f conftest.$ac_objext
11286 if { (ac_try="$ac_compile"
11287 case "(($ac_try" in
11288   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11289   *) ac_try_echo=$ac_try;;
11290 esac
11291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11292   (eval "$ac_compile") 2>conftest.er1
11293   ac_status=$?
11294   grep -v '^ *+' conftest.er1 >conftest.err
11295   rm -f conftest.er1
11296   cat conftest.err >&5
11297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11298   (exit $ac_status); } &&
11299          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11300   { (case "(($ac_try" in
11301   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11302   *) ac_try_echo=$ac_try;;
11303 esac
11304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11305   (eval "$ac_try") 2>&5
11306   ac_status=$?
11307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11308   (exit $ac_status); }; } &&
11309          { ac_try='test -s conftest.$ac_objext'
11310   { (case "(($ac_try" in
11311   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11312   *) ac_try_echo=$ac_try;;
11313 esac
11314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11315   (eval "$ac_try") 2>&5
11316   ac_status=$?
11317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11318   (exit $ac_status); }; }; then
11319   ac_header_compiler=yes
11320 else
11321   echo "$as_me: failed program was:" >&5
11322 sed 's/^/| /' conftest.$ac_ext >&5
11323
11324         ac_header_compiler=no
11325 fi
11326
11327 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11328 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11329 echo "${ECHO_T}$ac_header_compiler" >&6; }
11330
11331 # Is the header present?
11332 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11333 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11334 cat >conftest.$ac_ext <<_ACEOF
11335 /* confdefs.h.  */
11336 _ACEOF
11337 cat confdefs.h >>conftest.$ac_ext
11338 cat >>conftest.$ac_ext <<_ACEOF
11339 /* end confdefs.h.  */
11340 #include <$ac_header>
11341 _ACEOF
11342 if { (ac_try="$ac_cpp conftest.$ac_ext"
11343 case "(($ac_try" in
11344   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11345   *) ac_try_echo=$ac_try;;
11346 esac
11347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11348   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11349   ac_status=$?
11350   grep -v '^ *+' conftest.er1 >conftest.err
11351   rm -f conftest.er1
11352   cat conftest.err >&5
11353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11354   (exit $ac_status); } >/dev/null; then
11355   if test -s conftest.err; then
11356     ac_cpp_err=$ac_c_preproc_warn_flag
11357     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11358   else
11359     ac_cpp_err=
11360   fi
11361 else
11362   ac_cpp_err=yes
11363 fi
11364 if test -z "$ac_cpp_err"; then
11365   ac_header_preproc=yes
11366 else
11367   echo "$as_me: failed program was:" >&5
11368 sed 's/^/| /' conftest.$ac_ext >&5
11369
11370   ac_header_preproc=no
11371 fi
11372
11373 rm -f conftest.err conftest.$ac_ext
11374 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11375 echo "${ECHO_T}$ac_header_preproc" >&6; }
11376
11377 # So?  What about this header?
11378 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11379   yes:no: )
11380     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11381 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11382     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11383 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11384     ac_header_preproc=yes
11385     ;;
11386   no:yes:* )
11387     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11388 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11389     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11390 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11391     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11392 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11393     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11394 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11395     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11396 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11397     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11398 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11399     ( cat <<\_ASBOX
11400 ## ------------------------------------ ##
11401 ## Report this to http://llvm.org/bugs/ ##
11402 ## ------------------------------------ ##
11403 _ASBOX
11404      ) | sed "s/^/$as_me: WARNING:     /" >&2
11405     ;;
11406 esac
11407 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11408 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11409 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11410   echo $ECHO_N "(cached) $ECHO_C" >&6
11411 else
11412   eval "$as_ac_Header=\$ac_header_preproc"
11413 fi
11414 ac_res=`eval echo '${'$as_ac_Header'}'`
11415                { echo "$as_me:$LINENO: result: $ac_res" >&5
11416 echo "${ECHO_T}$ac_res" >&6; }
11417
11418 fi
11419 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11420   cat >>confdefs.h <<_ACEOF
11421 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11422 _ACEOF
11423  break
11424 fi
11425
11426 done
11427
11428
11429
11430
11431 for ac_func in strchr index
11432 do
11433 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11434 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11435 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11436 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11437   echo $ECHO_N "(cached) $ECHO_C" >&6
11438 else
11439   cat >conftest.$ac_ext <<_ACEOF
11440 /* confdefs.h.  */
11441 _ACEOF
11442 cat confdefs.h >>conftest.$ac_ext
11443 cat >>conftest.$ac_ext <<_ACEOF
11444 /* end confdefs.h.  */
11445 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11446    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11447 #define $ac_func innocuous_$ac_func
11448
11449 /* System header to define __stub macros and hopefully few prototypes,
11450     which can conflict with char $ac_func (); below.
11451     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11452     <limits.h> exists even on freestanding compilers.  */
11453
11454 #ifdef __STDC__
11455 # include <limits.h>
11456 #else
11457 # include <assert.h>
11458 #endif
11459
11460 #undef $ac_func
11461
11462 /* Override any GCC internal prototype to avoid an error.
11463    Use char because int might match the return type of a GCC
11464    builtin and then its argument prototype would still apply.  */
11465 #ifdef __cplusplus
11466 extern "C"
11467 #endif
11468 char $ac_func ();
11469 /* The GNU C library defines this for functions which it implements
11470     to always fail with ENOSYS.  Some functions are actually named
11471     something starting with __ and the normal name is an alias.  */
11472 #if defined __stub_$ac_func || defined __stub___$ac_func
11473 choke me
11474 #endif
11475
11476 int
11477 main ()
11478 {
11479 return $ac_func ();
11480   ;
11481   return 0;
11482 }
11483 _ACEOF
11484 rm -f conftest.$ac_objext conftest$ac_exeext
11485 if { (ac_try="$ac_link"
11486 case "(($ac_try" in
11487   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11488   *) ac_try_echo=$ac_try;;
11489 esac
11490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11491   (eval "$ac_link") 2>conftest.er1
11492   ac_status=$?
11493   grep -v '^ *+' conftest.er1 >conftest.err
11494   rm -f conftest.er1
11495   cat conftest.err >&5
11496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11497   (exit $ac_status); } &&
11498          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11499   { (case "(($ac_try" in
11500   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11501   *) ac_try_echo=$ac_try;;
11502 esac
11503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11504   (eval "$ac_try") 2>&5
11505   ac_status=$?
11506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11507   (exit $ac_status); }; } &&
11508          { ac_try='test -s conftest$ac_exeext'
11509   { (case "(($ac_try" in
11510   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11511   *) ac_try_echo=$ac_try;;
11512 esac
11513 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11514   (eval "$ac_try") 2>&5
11515   ac_status=$?
11516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11517   (exit $ac_status); }; }; then
11518   eval "$as_ac_var=yes"
11519 else
11520   echo "$as_me: failed program was:" >&5
11521 sed 's/^/| /' conftest.$ac_ext >&5
11522
11523         eval "$as_ac_var=no"
11524 fi
11525
11526 rm -f core conftest.err conftest.$ac_objext \
11527       conftest$ac_exeext conftest.$ac_ext
11528 fi
11529 ac_res=`eval echo '${'$as_ac_var'}'`
11530                { echo "$as_me:$LINENO: result: $ac_res" >&5
11531 echo "${ECHO_T}$ac_res" >&6; }
11532 if test `eval echo '${'$as_ac_var'}'` = yes; then
11533   cat >>confdefs.h <<_ACEOF
11534 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11535 _ACEOF
11536  break
11537 fi
11538 done
11539
11540
11541
11542 for ac_func in strrchr rindex
11543 do
11544 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11545 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11546 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11547 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11548   echo $ECHO_N "(cached) $ECHO_C" >&6
11549 else
11550   cat >conftest.$ac_ext <<_ACEOF
11551 /* confdefs.h.  */
11552 _ACEOF
11553 cat confdefs.h >>conftest.$ac_ext
11554 cat >>conftest.$ac_ext <<_ACEOF
11555 /* end confdefs.h.  */
11556 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11557    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11558 #define $ac_func innocuous_$ac_func
11559
11560 /* System header to define __stub macros and hopefully few prototypes,
11561     which can conflict with char $ac_func (); below.
11562     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11563     <limits.h> exists even on freestanding compilers.  */
11564
11565 #ifdef __STDC__
11566 # include <limits.h>
11567 #else
11568 # include <assert.h>
11569 #endif
11570
11571 #undef $ac_func
11572
11573 /* Override any GCC internal prototype to avoid an error.
11574    Use char because int might match the return type of a GCC
11575    builtin and then its argument prototype would still apply.  */
11576 #ifdef __cplusplus
11577 extern "C"
11578 #endif
11579 char $ac_func ();
11580 /* The GNU C library defines this for functions which it implements
11581     to always fail with ENOSYS.  Some functions are actually named
11582     something starting with __ and the normal name is an alias.  */
11583 #if defined __stub_$ac_func || defined __stub___$ac_func
11584 choke me
11585 #endif
11586
11587 int
11588 main ()
11589 {
11590 return $ac_func ();
11591   ;
11592   return 0;
11593 }
11594 _ACEOF
11595 rm -f conftest.$ac_objext conftest$ac_exeext
11596 if { (ac_try="$ac_link"
11597 case "(($ac_try" in
11598   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11599   *) ac_try_echo=$ac_try;;
11600 esac
11601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11602   (eval "$ac_link") 2>conftest.er1
11603   ac_status=$?
11604   grep -v '^ *+' conftest.er1 >conftest.err
11605   rm -f conftest.er1
11606   cat conftest.err >&5
11607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11608   (exit $ac_status); } &&
11609          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11610   { (case "(($ac_try" in
11611   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11612   *) ac_try_echo=$ac_try;;
11613 esac
11614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11615   (eval "$ac_try") 2>&5
11616   ac_status=$?
11617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11618   (exit $ac_status); }; } &&
11619          { ac_try='test -s conftest$ac_exeext'
11620   { (case "(($ac_try" in
11621   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11622   *) ac_try_echo=$ac_try;;
11623 esac
11624 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11625   (eval "$ac_try") 2>&5
11626   ac_status=$?
11627   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11628   (exit $ac_status); }; }; then
11629   eval "$as_ac_var=yes"
11630 else
11631   echo "$as_me: failed program was:" >&5
11632 sed 's/^/| /' conftest.$ac_ext >&5
11633
11634         eval "$as_ac_var=no"
11635 fi
11636
11637 rm -f core conftest.err conftest.$ac_objext \
11638       conftest$ac_exeext conftest.$ac_ext
11639 fi
11640 ac_res=`eval echo '${'$as_ac_var'}'`
11641                { echo "$as_me:$LINENO: result: $ac_res" >&5
11642 echo "${ECHO_T}$ac_res" >&6; }
11643 if test `eval echo '${'$as_ac_var'}'` = yes; then
11644   cat >>confdefs.h <<_ACEOF
11645 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11646 _ACEOF
11647  break
11648 fi
11649 done
11650
11651
11652
11653 for ac_func in memcpy bcopy
11654 do
11655 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11656 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11657 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11658 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11659   echo $ECHO_N "(cached) $ECHO_C" >&6
11660 else
11661   cat >conftest.$ac_ext <<_ACEOF
11662 /* confdefs.h.  */
11663 _ACEOF
11664 cat confdefs.h >>conftest.$ac_ext
11665 cat >>conftest.$ac_ext <<_ACEOF
11666 /* end confdefs.h.  */
11667 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11668    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11669 #define $ac_func innocuous_$ac_func
11670
11671 /* System header to define __stub macros and hopefully few prototypes,
11672     which can conflict with char $ac_func (); below.
11673     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11674     <limits.h> exists even on freestanding compilers.  */
11675
11676 #ifdef __STDC__
11677 # include <limits.h>
11678 #else
11679 # include <assert.h>
11680 #endif
11681
11682 #undef $ac_func
11683
11684 /* Override any GCC internal prototype to avoid an error.
11685    Use char because int might match the return type of a GCC
11686    builtin and then its argument prototype would still apply.  */
11687 #ifdef __cplusplus
11688 extern "C"
11689 #endif
11690 char $ac_func ();
11691 /* The GNU C library defines this for functions which it implements
11692     to always fail with ENOSYS.  Some functions are actually named
11693     something starting with __ and the normal name is an alias.  */
11694 #if defined __stub_$ac_func || defined __stub___$ac_func
11695 choke me
11696 #endif
11697
11698 int
11699 main ()
11700 {
11701 return $ac_func ();
11702   ;
11703   return 0;
11704 }
11705 _ACEOF
11706 rm -f conftest.$ac_objext conftest$ac_exeext
11707 if { (ac_try="$ac_link"
11708 case "(($ac_try" in
11709   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11710   *) ac_try_echo=$ac_try;;
11711 esac
11712 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11713   (eval "$ac_link") 2>conftest.er1
11714   ac_status=$?
11715   grep -v '^ *+' conftest.er1 >conftest.err
11716   rm -f conftest.er1
11717   cat conftest.err >&5
11718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11719   (exit $ac_status); } &&
11720          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11721   { (case "(($ac_try" in
11722   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11723   *) ac_try_echo=$ac_try;;
11724 esac
11725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11726   (eval "$ac_try") 2>&5
11727   ac_status=$?
11728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11729   (exit $ac_status); }; } &&
11730          { ac_try='test -s conftest$ac_exeext'
11731   { (case "(($ac_try" in
11732   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11733   *) ac_try_echo=$ac_try;;
11734 esac
11735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11736   (eval "$ac_try") 2>&5
11737   ac_status=$?
11738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11739   (exit $ac_status); }; }; then
11740   eval "$as_ac_var=yes"
11741 else
11742   echo "$as_me: failed program was:" >&5
11743 sed 's/^/| /' conftest.$ac_ext >&5
11744
11745         eval "$as_ac_var=no"
11746 fi
11747
11748 rm -f core conftest.err conftest.$ac_objext \
11749       conftest$ac_exeext conftest.$ac_ext
11750 fi
11751 ac_res=`eval echo '${'$as_ac_var'}'`
11752                { echo "$as_me:$LINENO: result: $ac_res" >&5
11753 echo "${ECHO_T}$ac_res" >&6; }
11754 if test `eval echo '${'$as_ac_var'}'` = yes; then
11755   cat >>confdefs.h <<_ACEOF
11756 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11757 _ACEOF
11758  break
11759 fi
11760 done
11761
11762
11763
11764 for ac_func in memmove strcmp
11765 do
11766 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11767 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11768 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11769 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11770   echo $ECHO_N "(cached) $ECHO_C" >&6
11771 else
11772   cat >conftest.$ac_ext <<_ACEOF
11773 /* confdefs.h.  */
11774 _ACEOF
11775 cat confdefs.h >>conftest.$ac_ext
11776 cat >>conftest.$ac_ext <<_ACEOF
11777 /* end confdefs.h.  */
11778 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11779    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11780 #define $ac_func innocuous_$ac_func
11781
11782 /* System header to define __stub macros and hopefully few prototypes,
11783     which can conflict with char $ac_func (); below.
11784     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11785     <limits.h> exists even on freestanding compilers.  */
11786
11787 #ifdef __STDC__
11788 # include <limits.h>
11789 #else
11790 # include <assert.h>
11791 #endif
11792
11793 #undef $ac_func
11794
11795 /* Override any GCC internal prototype to avoid an error.
11796    Use char because int might match the return type of a GCC
11797    builtin and then its argument prototype would still apply.  */
11798 #ifdef __cplusplus
11799 extern "C"
11800 #endif
11801 char $ac_func ();
11802 /* The GNU C library defines this for functions which it implements
11803     to always fail with ENOSYS.  Some functions are actually named
11804     something starting with __ and the normal name is an alias.  */
11805 #if defined __stub_$ac_func || defined __stub___$ac_func
11806 choke me
11807 #endif
11808
11809 int
11810 main ()
11811 {
11812 return $ac_func ();
11813   ;
11814   return 0;
11815 }
11816 _ACEOF
11817 rm -f conftest.$ac_objext conftest$ac_exeext
11818 if { (ac_try="$ac_link"
11819 case "(($ac_try" in
11820   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11821   *) ac_try_echo=$ac_try;;
11822 esac
11823 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11824   (eval "$ac_link") 2>conftest.er1
11825   ac_status=$?
11826   grep -v '^ *+' conftest.er1 >conftest.err
11827   rm -f conftest.er1
11828   cat conftest.err >&5
11829   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11830   (exit $ac_status); } &&
11831          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11832   { (case "(($ac_try" in
11833   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11834   *) ac_try_echo=$ac_try;;
11835 esac
11836 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11837   (eval "$ac_try") 2>&5
11838   ac_status=$?
11839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11840   (exit $ac_status); }; } &&
11841          { ac_try='test -s conftest$ac_exeext'
11842   { (case "(($ac_try" in
11843   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11844   *) ac_try_echo=$ac_try;;
11845 esac
11846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11847   (eval "$ac_try") 2>&5
11848   ac_status=$?
11849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11850   (exit $ac_status); }; }; then
11851   eval "$as_ac_var=yes"
11852 else
11853   echo "$as_me: failed program was:" >&5
11854 sed 's/^/| /' conftest.$ac_ext >&5
11855
11856         eval "$as_ac_var=no"
11857 fi
11858
11859 rm -f core conftest.err conftest.$ac_objext \
11860       conftest$ac_exeext conftest.$ac_ext
11861 fi
11862 ac_res=`eval echo '${'$as_ac_var'}'`
11863                { echo "$as_me:$LINENO: result: $ac_res" >&5
11864 echo "${ECHO_T}$ac_res" >&6; }
11865 if test `eval echo '${'$as_ac_var'}'` = yes; then
11866   cat >>confdefs.h <<_ACEOF
11867 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11868 _ACEOF
11869
11870 fi
11871 done
11872
11873
11874
11875
11876 for ac_func in closedir opendir readdir
11877 do
11878 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11879 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11880 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11881 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11882   echo $ECHO_N "(cached) $ECHO_C" >&6
11883 else
11884   cat >conftest.$ac_ext <<_ACEOF
11885 /* confdefs.h.  */
11886 _ACEOF
11887 cat confdefs.h >>conftest.$ac_ext
11888 cat >>conftest.$ac_ext <<_ACEOF
11889 /* end confdefs.h.  */
11890 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11891    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11892 #define $ac_func innocuous_$ac_func
11893
11894 /* System header to define __stub macros and hopefully few prototypes,
11895     which can conflict with char $ac_func (); below.
11896     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11897     <limits.h> exists even on freestanding compilers.  */
11898
11899 #ifdef __STDC__
11900 # include <limits.h>
11901 #else
11902 # include <assert.h>
11903 #endif
11904
11905 #undef $ac_func
11906
11907 /* Override any GCC internal prototype to avoid an error.
11908    Use char because int might match the return type of a GCC
11909    builtin and then its argument prototype would still apply.  */
11910 #ifdef __cplusplus
11911 extern "C"
11912 #endif
11913 char $ac_func ();
11914 /* The GNU C library defines this for functions which it implements
11915     to always fail with ENOSYS.  Some functions are actually named
11916     something starting with __ and the normal name is an alias.  */
11917 #if defined __stub_$ac_func || defined __stub___$ac_func
11918 choke me
11919 #endif
11920
11921 int
11922 main ()
11923 {
11924 return $ac_func ();
11925   ;
11926   return 0;
11927 }
11928 _ACEOF
11929 rm -f conftest.$ac_objext conftest$ac_exeext
11930 if { (ac_try="$ac_link"
11931 case "(($ac_try" in
11932   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11933   *) ac_try_echo=$ac_try;;
11934 esac
11935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11936   (eval "$ac_link") 2>conftest.er1
11937   ac_status=$?
11938   grep -v '^ *+' conftest.er1 >conftest.err
11939   rm -f conftest.er1
11940   cat conftest.err >&5
11941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11942   (exit $ac_status); } &&
11943          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11944   { (case "(($ac_try" in
11945   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11946   *) ac_try_echo=$ac_try;;
11947 esac
11948 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11949   (eval "$ac_try") 2>&5
11950   ac_status=$?
11951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11952   (exit $ac_status); }; } &&
11953          { ac_try='test -s conftest$ac_exeext'
11954   { (case "(($ac_try" in
11955   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11956   *) ac_try_echo=$ac_try;;
11957 esac
11958 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11959   (eval "$ac_try") 2>&5
11960   ac_status=$?
11961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11962   (exit $ac_status); }; }; then
11963   eval "$as_ac_var=yes"
11964 else
11965   echo "$as_me: failed program was:" >&5
11966 sed 's/^/| /' conftest.$ac_ext >&5
11967
11968         eval "$as_ac_var=no"
11969 fi
11970
11971 rm -f core conftest.err conftest.$ac_objext \
11972       conftest$ac_exeext conftest.$ac_ext
11973 fi
11974 ac_res=`eval echo '${'$as_ac_var'}'`
11975                { echo "$as_me:$LINENO: result: $ac_res" >&5
11976 echo "${ECHO_T}$ac_res" >&6; }
11977 if test `eval echo '${'$as_ac_var'}'` = yes; then
11978   cat >>confdefs.h <<_ACEOF
11979 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11980 _ACEOF
11981
11982 fi
11983 done
11984
11985
11986
11987 { echo "$as_me:$LINENO: checking tool compatibility" >&5
11988 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
11989
11990 ICC=no
11991 IXX=no
11992 case $CC in
11993   icc*|icpc*)
11994     ICC=yes
11995     IXX=yes
11996     ;;
11997    *)
11998     ;;
11999 esac
12000
12001 if test "$GCC" != "yes" && test "$ICC" != "yes"
12002 then
12003   { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
12004 echo "$as_me: error: gcc|icc required but not found" >&2;}
12005    { (exit 1); exit 1; }; }
12006 fi
12007
12008 if test "$GXX" != "yes" && test "$IXX" != "yes"
12009 then
12010   { { echo "$as_me:$LINENO: error: g++|clang++|icc required but not found" >&5
12011 echo "$as_me: error: g++|clang++|icc required but not found" >&2;}
12012    { (exit 1); exit 1; }; }
12013 fi
12014
12015 if test "$GCC" = "yes"
12016 then
12017   cat >conftest.$ac_ext <<_ACEOF
12018 #if !defined(__GNUC__) || __GNUC__ < 3
12019 #error Unsupported GCC version
12020 #endif
12021
12022 _ACEOF
12023 rm -f conftest.$ac_objext
12024 if { (ac_try="$ac_compile"
12025 case "(($ac_try" in
12026   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12027   *) ac_try_echo=$ac_try;;
12028 esac
12029 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12030   (eval "$ac_compile") 2>conftest.er1
12031   ac_status=$?
12032   grep -v '^ *+' conftest.er1 >conftest.err
12033   rm -f conftest.er1
12034   cat conftest.err >&5
12035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12036   (exit $ac_status); } &&
12037          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12038   { (case "(($ac_try" in
12039   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12040   *) ac_try_echo=$ac_try;;
12041 esac
12042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12043   (eval "$ac_try") 2>&5
12044   ac_status=$?
12045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12046   (exit $ac_status); }; } &&
12047          { ac_try='test -s conftest.$ac_objext'
12048   { (case "(($ac_try" in
12049   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12050   *) ac_try_echo=$ac_try;;
12051 esac
12052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12053   (eval "$ac_try") 2>&5
12054   ac_status=$?
12055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12056   (exit $ac_status); }; }; then
12057   :
12058 else
12059   echo "$as_me: failed program was:" >&5
12060 sed 's/^/| /' conftest.$ac_ext >&5
12061
12062         { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
12063 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
12064    { (exit 1); exit 1; }; }
12065 fi
12066
12067 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12068 fi
12069
12070 if test -z "$llvm_cv_gnu_make_command"
12071 then
12072   { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
12073 echo "$as_me: error: GNU Make required but not found" >&2;}
12074    { (exit 1); exit 1; }; }
12075 fi
12076
12077 { echo "$as_me:$LINENO: result: ok" >&5
12078 echo "${ECHO_T}ok" >&6; }
12079
12080 { echo "$as_me:$LINENO: checking optional compiler flags" >&5
12081 echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
12082 NO_VARIADIC_MACROS=`$CXX -Werror -Wno-variadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
12083
12084 NO_MISSING_FIELD_INITIALIZERS=`$CXX -Werror -Wno-missing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
12085
12086 COVERED_SWITCH_DEFAULT=`$CXX -Werror -Wcovered-switch-default -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wcovered-switch-default`
12087
12088 { echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT" >&5
12089 echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT" >&6; }
12090
12091
12092
12093 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
12094 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
12095 if test "${ac_cv_lib_m_sin+set}" = set; then
12096   echo $ECHO_N "(cached) $ECHO_C" >&6
12097 else
12098   ac_check_lib_save_LIBS=$LIBS
12099 LIBS="-lm  $LIBS"
12100 cat >conftest.$ac_ext <<_ACEOF
12101 /* confdefs.h.  */
12102 _ACEOF
12103 cat confdefs.h >>conftest.$ac_ext
12104 cat >>conftest.$ac_ext <<_ACEOF
12105 /* end confdefs.h.  */
12106
12107 /* Override any GCC internal prototype to avoid an error.
12108    Use char because int might match the return type of a GCC
12109    builtin and then its argument prototype would still apply.  */
12110 #ifdef __cplusplus
12111 extern "C"
12112 #endif
12113 char sin ();
12114 int
12115 main ()
12116 {
12117 return sin ();
12118   ;
12119   return 0;
12120 }
12121 _ACEOF
12122 rm -f conftest.$ac_objext conftest$ac_exeext
12123 if { (ac_try="$ac_link"
12124 case "(($ac_try" in
12125   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12126   *) ac_try_echo=$ac_try;;
12127 esac
12128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12129   (eval "$ac_link") 2>conftest.er1
12130   ac_status=$?
12131   grep -v '^ *+' conftest.er1 >conftest.err
12132   rm -f conftest.er1
12133   cat conftest.err >&5
12134   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12135   (exit $ac_status); } &&
12136          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12137   { (case "(($ac_try" in
12138   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12139   *) ac_try_echo=$ac_try;;
12140 esac
12141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12142   (eval "$ac_try") 2>&5
12143   ac_status=$?
12144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12145   (exit $ac_status); }; } &&
12146          { ac_try='test -s conftest$ac_exeext'
12147   { (case "(($ac_try" in
12148   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12149   *) ac_try_echo=$ac_try;;
12150 esac
12151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12152   (eval "$ac_try") 2>&5
12153   ac_status=$?
12154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12155   (exit $ac_status); }; }; then
12156   ac_cv_lib_m_sin=yes
12157 else
12158   echo "$as_me: failed program was:" >&5
12159 sed 's/^/| /' conftest.$ac_ext >&5
12160
12161         ac_cv_lib_m_sin=no
12162 fi
12163
12164 rm -f core conftest.err conftest.$ac_objext \
12165       conftest$ac_exeext conftest.$ac_ext
12166 LIBS=$ac_check_lib_save_LIBS
12167 fi
12168 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
12169 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
12170 if test $ac_cv_lib_m_sin = yes; then
12171   cat >>confdefs.h <<_ACEOF
12172 #define HAVE_LIBM 1
12173 _ACEOF
12174
12175   LIBS="-lm $LIBS"
12176
12177 fi
12178
12179 if test "$llvm_cv_os_type" = "MingW" ; then
12180
12181 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
12182 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
12183 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
12184   echo $ECHO_N "(cached) $ECHO_C" >&6
12185 else
12186   ac_check_lib_save_LIBS=$LIBS
12187 LIBS="-limagehlp  $LIBS"
12188 cat >conftest.$ac_ext <<_ACEOF
12189 /* confdefs.h.  */
12190 _ACEOF
12191 cat confdefs.h >>conftest.$ac_ext
12192 cat >>conftest.$ac_ext <<_ACEOF
12193 /* end confdefs.h.  */
12194
12195
12196 int
12197 main ()
12198 {
12199 return main ();
12200   ;
12201   return 0;
12202 }
12203 _ACEOF
12204 rm -f conftest.$ac_objext conftest$ac_exeext
12205 if { (ac_try="$ac_link"
12206 case "(($ac_try" in
12207   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12208   *) ac_try_echo=$ac_try;;
12209 esac
12210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12211   (eval "$ac_link") 2>conftest.er1
12212   ac_status=$?
12213   grep -v '^ *+' conftest.er1 >conftest.err
12214   rm -f conftest.er1
12215   cat conftest.err >&5
12216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12217   (exit $ac_status); } &&
12218          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12219   { (case "(($ac_try" in
12220   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12221   *) ac_try_echo=$ac_try;;
12222 esac
12223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12224   (eval "$ac_try") 2>&5
12225   ac_status=$?
12226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12227   (exit $ac_status); }; } &&
12228          { ac_try='test -s conftest$ac_exeext'
12229   { (case "(($ac_try" in
12230   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12231   *) ac_try_echo=$ac_try;;
12232 esac
12233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12234   (eval "$ac_try") 2>&5
12235   ac_status=$?
12236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12237   (exit $ac_status); }; }; then
12238   ac_cv_lib_imagehlp_main=yes
12239 else
12240   echo "$as_me: failed program was:" >&5
12241 sed 's/^/| /' conftest.$ac_ext >&5
12242
12243         ac_cv_lib_imagehlp_main=no
12244 fi
12245
12246 rm -f core conftest.err conftest.$ac_objext \
12247       conftest$ac_exeext conftest.$ac_ext
12248 LIBS=$ac_check_lib_save_LIBS
12249 fi
12250 { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
12251 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
12252 if test $ac_cv_lib_imagehlp_main = yes; then
12253   cat >>confdefs.h <<_ACEOF
12254 #define HAVE_LIBIMAGEHLP 1
12255 _ACEOF
12256
12257   LIBS="-limagehlp $LIBS"
12258
12259 fi
12260
12261
12262 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
12263 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
12264 if test "${ac_cv_lib_psapi_main+set}" = set; then
12265   echo $ECHO_N "(cached) $ECHO_C" >&6
12266 else
12267   ac_check_lib_save_LIBS=$LIBS
12268 LIBS="-lpsapi  $LIBS"
12269 cat >conftest.$ac_ext <<_ACEOF
12270 /* confdefs.h.  */
12271 _ACEOF
12272 cat confdefs.h >>conftest.$ac_ext
12273 cat >>conftest.$ac_ext <<_ACEOF
12274 /* end confdefs.h.  */
12275
12276
12277 int
12278 main ()
12279 {
12280 return main ();
12281   ;
12282   return 0;
12283 }
12284 _ACEOF
12285 rm -f conftest.$ac_objext conftest$ac_exeext
12286 if { (ac_try="$ac_link"
12287 case "(($ac_try" in
12288   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12289   *) ac_try_echo=$ac_try;;
12290 esac
12291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12292   (eval "$ac_link") 2>conftest.er1
12293   ac_status=$?
12294   grep -v '^ *+' conftest.er1 >conftest.err
12295   rm -f conftest.er1
12296   cat conftest.err >&5
12297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12298   (exit $ac_status); } &&
12299          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12300   { (case "(($ac_try" in
12301   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12302   *) ac_try_echo=$ac_try;;
12303 esac
12304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12305   (eval "$ac_try") 2>&5
12306   ac_status=$?
12307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12308   (exit $ac_status); }; } &&
12309          { ac_try='test -s conftest$ac_exeext'
12310   { (case "(($ac_try" in
12311   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12312   *) ac_try_echo=$ac_try;;
12313 esac
12314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12315   (eval "$ac_try") 2>&5
12316   ac_status=$?
12317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12318   (exit $ac_status); }; }; then
12319   ac_cv_lib_psapi_main=yes
12320 else
12321   echo "$as_me: failed program was:" >&5
12322 sed 's/^/| /' conftest.$ac_ext >&5
12323
12324         ac_cv_lib_psapi_main=no
12325 fi
12326
12327 rm -f core conftest.err conftest.$ac_objext \
12328       conftest$ac_exeext conftest.$ac_ext
12329 LIBS=$ac_check_lib_save_LIBS
12330 fi
12331 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
12332 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
12333 if test $ac_cv_lib_psapi_main = yes; then
12334   cat >>confdefs.h <<_ACEOF
12335 #define HAVE_LIBPSAPI 1
12336 _ACEOF
12337
12338   LIBS="-lpsapi $LIBS"
12339
12340 fi
12341
12342 fi
12343
12344 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
12345 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
12346 if test "${ac_cv_search_dlopen+set}" = set; then
12347   echo $ECHO_N "(cached) $ECHO_C" >&6
12348 else
12349   ac_func_search_save_LIBS=$LIBS
12350 cat >conftest.$ac_ext <<_ACEOF
12351 /* confdefs.h.  */
12352 _ACEOF
12353 cat confdefs.h >>conftest.$ac_ext
12354 cat >>conftest.$ac_ext <<_ACEOF
12355 /* end confdefs.h.  */
12356
12357 /* Override any GCC internal prototype to avoid an error.
12358    Use char because int might match the return type of a GCC
12359    builtin and then its argument prototype would still apply.  */
12360 #ifdef __cplusplus
12361 extern "C"
12362 #endif
12363 char dlopen ();
12364 int
12365 main ()
12366 {
12367 return dlopen ();
12368   ;
12369   return 0;
12370 }
12371 _ACEOF
12372 for ac_lib in '' dl; do
12373   if test -z "$ac_lib"; then
12374     ac_res="none required"
12375   else
12376     ac_res=-l$ac_lib
12377     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12378   fi
12379   rm -f conftest.$ac_objext conftest$ac_exeext
12380 if { (ac_try="$ac_link"
12381 case "(($ac_try" in
12382   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12383   *) ac_try_echo=$ac_try;;
12384 esac
12385 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12386   (eval "$ac_link") 2>conftest.er1
12387   ac_status=$?
12388   grep -v '^ *+' conftest.er1 >conftest.err
12389   rm -f conftest.er1
12390   cat conftest.err >&5
12391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12392   (exit $ac_status); } &&
12393          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12394   { (case "(($ac_try" in
12395   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12396   *) ac_try_echo=$ac_try;;
12397 esac
12398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12399   (eval "$ac_try") 2>&5
12400   ac_status=$?
12401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12402   (exit $ac_status); }; } &&
12403          { ac_try='test -s conftest$ac_exeext'
12404   { (case "(($ac_try" in
12405   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12406   *) ac_try_echo=$ac_try;;
12407 esac
12408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12409   (eval "$ac_try") 2>&5
12410   ac_status=$?
12411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12412   (exit $ac_status); }; }; then
12413   ac_cv_search_dlopen=$ac_res
12414 else
12415   echo "$as_me: failed program was:" >&5
12416 sed 's/^/| /' conftest.$ac_ext >&5
12417
12418
12419 fi
12420
12421 rm -f core conftest.err conftest.$ac_objext \
12422       conftest$ac_exeext
12423   if test "${ac_cv_search_dlopen+set}" = set; then
12424   break
12425 fi
12426 done
12427 if test "${ac_cv_search_dlopen+set}" = set; then
12428   :
12429 else
12430   ac_cv_search_dlopen=no
12431 fi
12432 rm conftest.$ac_ext
12433 LIBS=$ac_func_search_save_LIBS
12434 fi
12435 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
12436 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
12437 ac_res=$ac_cv_search_dlopen
12438 if test "$ac_res" != no; then
12439   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12440
12441 cat >>confdefs.h <<\_ACEOF
12442 #define HAVE_DLOPEN 1
12443 _ACEOF
12444
12445 else
12446   { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
12447 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
12448 fi
12449
12450
12451 if test "$llvm_cv_enable_libffi" = "yes" ; then
12452   { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
12453 echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
12454 if test "${ac_cv_search_ffi_call+set}" = set; then
12455   echo $ECHO_N "(cached) $ECHO_C" >&6
12456 else
12457   ac_func_search_save_LIBS=$LIBS
12458 cat >conftest.$ac_ext <<_ACEOF
12459 /* confdefs.h.  */
12460 _ACEOF
12461 cat confdefs.h >>conftest.$ac_ext
12462 cat >>conftest.$ac_ext <<_ACEOF
12463 /* end confdefs.h.  */
12464
12465 /* Override any GCC internal prototype to avoid an error.
12466    Use char because int might match the return type of a GCC
12467    builtin and then its argument prototype would still apply.  */
12468 #ifdef __cplusplus
12469 extern "C"
12470 #endif
12471 char ffi_call ();
12472 int
12473 main ()
12474 {
12475 return ffi_call ();
12476   ;
12477   return 0;
12478 }
12479 _ACEOF
12480 for ac_lib in '' ffi; do
12481   if test -z "$ac_lib"; then
12482     ac_res="none required"
12483   else
12484     ac_res=-l$ac_lib
12485     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12486   fi
12487   rm -f conftest.$ac_objext conftest$ac_exeext
12488 if { (ac_try="$ac_link"
12489 case "(($ac_try" in
12490   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12491   *) ac_try_echo=$ac_try;;
12492 esac
12493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12494   (eval "$ac_link") 2>conftest.er1
12495   ac_status=$?
12496   grep -v '^ *+' conftest.er1 >conftest.err
12497   rm -f conftest.er1
12498   cat conftest.err >&5
12499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12500   (exit $ac_status); } &&
12501          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12502   { (case "(($ac_try" in
12503   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12504   *) ac_try_echo=$ac_try;;
12505 esac
12506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12507   (eval "$ac_try") 2>&5
12508   ac_status=$?
12509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12510   (exit $ac_status); }; } &&
12511          { ac_try='test -s conftest$ac_exeext'
12512   { (case "(($ac_try" in
12513   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12514   *) ac_try_echo=$ac_try;;
12515 esac
12516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12517   (eval "$ac_try") 2>&5
12518   ac_status=$?
12519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12520   (exit $ac_status); }; }; then
12521   ac_cv_search_ffi_call=$ac_res
12522 else
12523   echo "$as_me: failed program was:" >&5
12524 sed 's/^/| /' conftest.$ac_ext >&5
12525
12526
12527 fi
12528
12529 rm -f core conftest.err conftest.$ac_objext \
12530       conftest$ac_exeext
12531   if test "${ac_cv_search_ffi_call+set}" = set; then
12532   break
12533 fi
12534 done
12535 if test "${ac_cv_search_ffi_call+set}" = set; then
12536   :
12537 else
12538   ac_cv_search_ffi_call=no
12539 fi
12540 rm conftest.$ac_ext
12541 LIBS=$ac_func_search_save_LIBS
12542 fi
12543 { echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
12544 echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
12545 ac_res=$ac_cv_search_ffi_call
12546 if test "$ac_res" != no; then
12547   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12548
12549 cat >>confdefs.h <<\_ACEOF
12550 #define HAVE_FFI_CALL 1
12551 _ACEOF
12552
12553 else
12554   { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
12555 echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
12556    { (exit 1); exit 1; }; }
12557 fi
12558
12559 fi
12560
12561 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
12562 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
12563 if test "${ac_cv_search_mallinfo+set}" = set; then
12564   echo $ECHO_N "(cached) $ECHO_C" >&6
12565 else
12566   ac_func_search_save_LIBS=$LIBS
12567 cat >conftest.$ac_ext <<_ACEOF
12568 /* confdefs.h.  */
12569 _ACEOF
12570 cat confdefs.h >>conftest.$ac_ext
12571 cat >>conftest.$ac_ext <<_ACEOF
12572 /* end confdefs.h.  */
12573
12574 /* Override any GCC internal prototype to avoid an error.
12575    Use char because int might match the return type of a GCC
12576    builtin and then its argument prototype would still apply.  */
12577 #ifdef __cplusplus
12578 extern "C"
12579 #endif
12580 char mallinfo ();
12581 int
12582 main ()
12583 {
12584 return mallinfo ();
12585   ;
12586   return 0;
12587 }
12588 _ACEOF
12589 for ac_lib in '' malloc; do
12590   if test -z "$ac_lib"; then
12591     ac_res="none required"
12592   else
12593     ac_res=-l$ac_lib
12594     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12595   fi
12596   rm -f conftest.$ac_objext conftest$ac_exeext
12597 if { (ac_try="$ac_link"
12598 case "(($ac_try" in
12599   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12600   *) ac_try_echo=$ac_try;;
12601 esac
12602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12603   (eval "$ac_link") 2>conftest.er1
12604   ac_status=$?
12605   grep -v '^ *+' conftest.er1 >conftest.err
12606   rm -f conftest.er1
12607   cat conftest.err >&5
12608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12609   (exit $ac_status); } &&
12610          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12611   { (case "(($ac_try" in
12612   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12613   *) ac_try_echo=$ac_try;;
12614 esac
12615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12616   (eval "$ac_try") 2>&5
12617   ac_status=$?
12618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12619   (exit $ac_status); }; } &&
12620          { ac_try='test -s conftest$ac_exeext'
12621   { (case "(($ac_try" in
12622   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12623   *) ac_try_echo=$ac_try;;
12624 esac
12625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12626   (eval "$ac_try") 2>&5
12627   ac_status=$?
12628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12629   (exit $ac_status); }; }; then
12630   ac_cv_search_mallinfo=$ac_res
12631 else
12632   echo "$as_me: failed program was:" >&5
12633 sed 's/^/| /' conftest.$ac_ext >&5
12634
12635
12636 fi
12637
12638 rm -f core conftest.err conftest.$ac_objext \
12639       conftest$ac_exeext
12640   if test "${ac_cv_search_mallinfo+set}" = set; then
12641   break
12642 fi
12643 done
12644 if test "${ac_cv_search_mallinfo+set}" = set; then
12645   :
12646 else
12647   ac_cv_search_mallinfo=no
12648 fi
12649 rm conftest.$ac_ext
12650 LIBS=$ac_func_search_save_LIBS
12651 fi
12652 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
12653 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
12654 ac_res=$ac_cv_search_mallinfo
12655 if test "$ac_res" != no; then
12656   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12657
12658 cat >>confdefs.h <<\_ACEOF
12659 #define HAVE_MALLINFO 1
12660 _ACEOF
12661
12662 fi
12663
12664
12665 if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
12666
12667 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
12668 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
12669 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
12670   echo $ECHO_N "(cached) $ECHO_C" >&6
12671 else
12672   ac_check_lib_save_LIBS=$LIBS
12673 LIBS="-lpthread  $LIBS"
12674 cat >conftest.$ac_ext <<_ACEOF
12675 /* confdefs.h.  */
12676 _ACEOF
12677 cat confdefs.h >>conftest.$ac_ext
12678 cat >>conftest.$ac_ext <<_ACEOF
12679 /* end confdefs.h.  */
12680
12681 /* Override any GCC internal prototype to avoid an error.
12682    Use char because int might match the return type of a GCC
12683    builtin and then its argument prototype would still apply.  */
12684 #ifdef __cplusplus
12685 extern "C"
12686 #endif
12687 char pthread_mutex_init ();
12688 int
12689 main ()
12690 {
12691 return pthread_mutex_init ();
12692   ;
12693   return 0;
12694 }
12695 _ACEOF
12696 rm -f conftest.$ac_objext conftest$ac_exeext
12697 if { (ac_try="$ac_link"
12698 case "(($ac_try" in
12699   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12700   *) ac_try_echo=$ac_try;;
12701 esac
12702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12703   (eval "$ac_link") 2>conftest.er1
12704   ac_status=$?
12705   grep -v '^ *+' conftest.er1 >conftest.err
12706   rm -f conftest.er1
12707   cat conftest.err >&5
12708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12709   (exit $ac_status); } &&
12710          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12711   { (case "(($ac_try" in
12712   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12713   *) ac_try_echo=$ac_try;;
12714 esac
12715 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12716   (eval "$ac_try") 2>&5
12717   ac_status=$?
12718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12719   (exit $ac_status); }; } &&
12720          { ac_try='test -s conftest$ac_exeext'
12721   { (case "(($ac_try" in
12722   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12723   *) ac_try_echo=$ac_try;;
12724 esac
12725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12726   (eval "$ac_try") 2>&5
12727   ac_status=$?
12728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12729   (exit $ac_status); }; }; then
12730   ac_cv_lib_pthread_pthread_mutex_init=yes
12731 else
12732   echo "$as_me: failed program was:" >&5
12733 sed 's/^/| /' conftest.$ac_ext >&5
12734
12735         ac_cv_lib_pthread_pthread_mutex_init=no
12736 fi
12737
12738 rm -f core conftest.err conftest.$ac_objext \
12739       conftest$ac_exeext conftest.$ac_ext
12740 LIBS=$ac_check_lib_save_LIBS
12741 fi
12742 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
12743 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
12744 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
12745   cat >>confdefs.h <<_ACEOF
12746 #define HAVE_LIBPTHREAD 1
12747 _ACEOF
12748
12749   LIBS="-lpthread $LIBS"
12750
12751 fi
12752
12753   { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
12754 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
12755 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12756   echo $ECHO_N "(cached) $ECHO_C" >&6
12757 else
12758   ac_func_search_save_LIBS=$LIBS
12759 cat >conftest.$ac_ext <<_ACEOF
12760 /* confdefs.h.  */
12761 _ACEOF
12762 cat confdefs.h >>conftest.$ac_ext
12763 cat >>conftest.$ac_ext <<_ACEOF
12764 /* end confdefs.h.  */
12765
12766 /* Override any GCC internal prototype to avoid an error.
12767    Use char because int might match the return type of a GCC
12768    builtin and then its argument prototype would still apply.  */
12769 #ifdef __cplusplus
12770 extern "C"
12771 #endif
12772 char pthread_mutex_lock ();
12773 int
12774 main ()
12775 {
12776 return pthread_mutex_lock ();
12777   ;
12778   return 0;
12779 }
12780 _ACEOF
12781 for ac_lib in '' pthread; do
12782   if test -z "$ac_lib"; then
12783     ac_res="none required"
12784   else
12785     ac_res=-l$ac_lib
12786     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12787   fi
12788   rm -f conftest.$ac_objext conftest$ac_exeext
12789 if { (ac_try="$ac_link"
12790 case "(($ac_try" in
12791   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12792   *) ac_try_echo=$ac_try;;
12793 esac
12794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12795   (eval "$ac_link") 2>conftest.er1
12796   ac_status=$?
12797   grep -v '^ *+' conftest.er1 >conftest.err
12798   rm -f conftest.er1
12799   cat conftest.err >&5
12800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12801   (exit $ac_status); } &&
12802          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12803   { (case "(($ac_try" in
12804   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12805   *) ac_try_echo=$ac_try;;
12806 esac
12807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12808   (eval "$ac_try") 2>&5
12809   ac_status=$?
12810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12811   (exit $ac_status); }; } &&
12812          { ac_try='test -s conftest$ac_exeext'
12813   { (case "(($ac_try" in
12814   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12815   *) ac_try_echo=$ac_try;;
12816 esac
12817 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12818   (eval "$ac_try") 2>&5
12819   ac_status=$?
12820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12821   (exit $ac_status); }; }; then
12822   ac_cv_search_pthread_mutex_lock=$ac_res
12823 else
12824   echo "$as_me: failed program was:" >&5
12825 sed 's/^/| /' conftest.$ac_ext >&5
12826
12827
12828 fi
12829
12830 rm -f core conftest.err conftest.$ac_objext \
12831       conftest$ac_exeext
12832   if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12833   break
12834 fi
12835 done
12836 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12837   :
12838 else
12839   ac_cv_search_pthread_mutex_lock=no
12840 fi
12841 rm conftest.$ac_ext
12842 LIBS=$ac_func_search_save_LIBS
12843 fi
12844 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
12845 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
12846 ac_res=$ac_cv_search_pthread_mutex_lock
12847 if test "$ac_res" != no; then
12848   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12849
12850 cat >>confdefs.h <<\_ACEOF
12851 #define HAVE_PTHREAD_MUTEX_LOCK 1
12852 _ACEOF
12853
12854 fi
12855
12856   { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
12857 echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
12858 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
12859   echo $ECHO_N "(cached) $ECHO_C" >&6
12860 else
12861   ac_func_search_save_LIBS=$LIBS
12862 cat >conftest.$ac_ext <<_ACEOF
12863 /* confdefs.h.  */
12864 _ACEOF
12865 cat confdefs.h >>conftest.$ac_ext
12866 cat >>conftest.$ac_ext <<_ACEOF
12867 /* end confdefs.h.  */
12868
12869 /* Override any GCC internal prototype to avoid an error.
12870    Use char because int might match the return type of a GCC
12871    builtin and then its argument prototype would still apply.  */
12872 #ifdef __cplusplus
12873 extern "C"
12874 #endif
12875 char pthread_rwlock_init ();
12876 int
12877 main ()
12878 {
12879 return pthread_rwlock_init ();
12880   ;
12881   return 0;
12882 }
12883 _ACEOF
12884 for ac_lib in '' pthread; do
12885   if test -z "$ac_lib"; then
12886     ac_res="none required"
12887   else
12888     ac_res=-l$ac_lib
12889     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12890   fi
12891   rm -f conftest.$ac_objext conftest$ac_exeext
12892 if { (ac_try="$ac_link"
12893 case "(($ac_try" in
12894   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12895   *) ac_try_echo=$ac_try;;
12896 esac
12897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12898   (eval "$ac_link") 2>conftest.er1
12899   ac_status=$?
12900   grep -v '^ *+' conftest.er1 >conftest.err
12901   rm -f conftest.er1
12902   cat conftest.err >&5
12903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12904   (exit $ac_status); } &&
12905          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12906   { (case "(($ac_try" in
12907   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12908   *) ac_try_echo=$ac_try;;
12909 esac
12910 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12911   (eval "$ac_try") 2>&5
12912   ac_status=$?
12913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12914   (exit $ac_status); }; } &&
12915          { ac_try='test -s conftest$ac_exeext'
12916   { (case "(($ac_try" in
12917   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12918   *) ac_try_echo=$ac_try;;
12919 esac
12920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12921   (eval "$ac_try") 2>&5
12922   ac_status=$?
12923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12924   (exit $ac_status); }; }; then
12925   ac_cv_search_pthread_rwlock_init=$ac_res
12926 else
12927   echo "$as_me: failed program was:" >&5
12928 sed 's/^/| /' conftest.$ac_ext >&5
12929
12930
12931 fi
12932
12933 rm -f core conftest.err conftest.$ac_objext \
12934       conftest$ac_exeext
12935   if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
12936   break
12937 fi
12938 done
12939 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
12940   :
12941 else
12942   ac_cv_search_pthread_rwlock_init=no
12943 fi
12944 rm conftest.$ac_ext
12945 LIBS=$ac_func_search_save_LIBS
12946 fi
12947 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
12948 echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
12949 ac_res=$ac_cv_search_pthread_rwlock_init
12950 if test "$ac_res" != no; then
12951   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12952
12953 cat >>confdefs.h <<\_ACEOF
12954 #define HAVE_PTHREAD_RWLOCK_INIT 1
12955 _ACEOF
12956
12957 fi
12958
12959   { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
12960 echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
12961 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
12962   echo $ECHO_N "(cached) $ECHO_C" >&6
12963 else
12964   ac_func_search_save_LIBS=$LIBS
12965 cat >conftest.$ac_ext <<_ACEOF
12966 /* confdefs.h.  */
12967 _ACEOF
12968 cat confdefs.h >>conftest.$ac_ext
12969 cat >>conftest.$ac_ext <<_ACEOF
12970 /* end confdefs.h.  */
12971
12972 /* Override any GCC internal prototype to avoid an error.
12973    Use char because int might match the return type of a GCC
12974    builtin and then its argument prototype would still apply.  */
12975 #ifdef __cplusplus
12976 extern "C"
12977 #endif
12978 char pthread_getspecific ();
12979 int
12980 main ()
12981 {
12982 return pthread_getspecific ();
12983   ;
12984   return 0;
12985 }
12986 _ACEOF
12987 for ac_lib in '' pthread; do
12988   if test -z "$ac_lib"; then
12989     ac_res="none required"
12990   else
12991     ac_res=-l$ac_lib
12992     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12993   fi
12994   rm -f conftest.$ac_objext conftest$ac_exeext
12995 if { (ac_try="$ac_link"
12996 case "(($ac_try" in
12997   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12998   *) ac_try_echo=$ac_try;;
12999 esac
13000 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13001   (eval "$ac_link") 2>conftest.er1
13002   ac_status=$?
13003   grep -v '^ *+' conftest.er1 >conftest.err
13004   rm -f conftest.er1
13005   cat conftest.err >&5
13006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13007   (exit $ac_status); } &&
13008          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13009   { (case "(($ac_try" in
13010   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13011   *) ac_try_echo=$ac_try;;
13012 esac
13013 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13014   (eval "$ac_try") 2>&5
13015   ac_status=$?
13016   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13017   (exit $ac_status); }; } &&
13018          { ac_try='test -s conftest$ac_exeext'
13019   { (case "(($ac_try" in
13020   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13021   *) ac_try_echo=$ac_try;;
13022 esac
13023 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13024   (eval "$ac_try") 2>&5
13025   ac_status=$?
13026   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13027   (exit $ac_status); }; }; then
13028   ac_cv_search_pthread_getspecific=$ac_res
13029 else
13030   echo "$as_me: failed program was:" >&5
13031 sed 's/^/| /' conftest.$ac_ext >&5
13032
13033
13034 fi
13035
13036 rm -f core conftest.err conftest.$ac_objext \
13037       conftest$ac_exeext
13038   if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13039   break
13040 fi
13041 done
13042 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13043   :
13044 else
13045   ac_cv_search_pthread_getspecific=no
13046 fi
13047 rm conftest.$ac_ext
13048 LIBS=$ac_func_search_save_LIBS
13049 fi
13050 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
13051 echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
13052 ac_res=$ac_cv_search_pthread_getspecific
13053 if test "$ac_res" != no; then
13054   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13055
13056 cat >>confdefs.h <<\_ACEOF
13057 #define HAVE_PTHREAD_GETSPECIFIC 1
13058 _ACEOF
13059
13060 fi
13061
13062 fi
13063
13064
13065 # Check whether --with-udis86 was given.
13066 if test "${with_udis86+set}" = set; then
13067   withval=$with_udis86;
13068       USE_UDIS86=1
13069
13070       case "$withval" in
13071         /usr/lib|yes) ;;
13072         *) LDFLAGS="$LDFLAGS -L${withval}" ;;
13073       esac
13074
13075 { echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
13076 echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
13077 if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
13078   echo $ECHO_N "(cached) $ECHO_C" >&6
13079 else
13080   ac_check_lib_save_LIBS=$LIBS
13081 LIBS="-ludis86  $LIBS"
13082 cat >conftest.$ac_ext <<_ACEOF
13083 /* confdefs.h.  */
13084 _ACEOF
13085 cat confdefs.h >>conftest.$ac_ext
13086 cat >>conftest.$ac_ext <<_ACEOF
13087 /* end confdefs.h.  */
13088
13089 /* Override any GCC internal prototype to avoid an error.
13090    Use char because int might match the return type of a GCC
13091    builtin and then its argument prototype would still apply.  */
13092 #ifdef __cplusplus
13093 extern "C"
13094 #endif
13095 char ud_init ();
13096 int
13097 main ()
13098 {
13099 return ud_init ();
13100   ;
13101   return 0;
13102 }
13103 _ACEOF
13104 rm -f conftest.$ac_objext conftest$ac_exeext
13105 if { (ac_try="$ac_link"
13106 case "(($ac_try" in
13107   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13108   *) ac_try_echo=$ac_try;;
13109 esac
13110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13111   (eval "$ac_link") 2>conftest.er1
13112   ac_status=$?
13113   grep -v '^ *+' conftest.er1 >conftest.err
13114   rm -f conftest.er1
13115   cat conftest.err >&5
13116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13117   (exit $ac_status); } &&
13118          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13119   { (case "(($ac_try" in
13120   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13121   *) ac_try_echo=$ac_try;;
13122 esac
13123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13124   (eval "$ac_try") 2>&5
13125   ac_status=$?
13126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13127   (exit $ac_status); }; } &&
13128          { ac_try='test -s conftest$ac_exeext'
13129   { (case "(($ac_try" in
13130   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13131   *) ac_try_echo=$ac_try;;
13132 esac
13133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13134   (eval "$ac_try") 2>&5
13135   ac_status=$?
13136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13137   (exit $ac_status); }; }; then
13138   ac_cv_lib_udis86_ud_init=yes
13139 else
13140   echo "$as_me: failed program was:" >&5
13141 sed 's/^/| /' conftest.$ac_ext >&5
13142
13143         ac_cv_lib_udis86_ud_init=no
13144 fi
13145
13146 rm -f core conftest.err conftest.$ac_objext \
13147       conftest$ac_exeext conftest.$ac_ext
13148 LIBS=$ac_check_lib_save_LIBS
13149 fi
13150 { echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
13151 echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
13152 if test $ac_cv_lib_udis86_ud_init = yes; then
13153   cat >>confdefs.h <<_ACEOF
13154 #define HAVE_LIBUDIS86 1
13155 _ACEOF
13156
13157   LIBS="-ludis86 $LIBS"
13158
13159 else
13160
13161         echo "Error! You need to have libudis86 around."
13162         exit -1
13163
13164 fi
13165
13166
13167 else
13168   USE_UDIS86=0
13169
13170 fi
13171
13172
13173 cat >>confdefs.h <<_ACEOF
13174 #define USE_UDIS86 $USE_UDIS86
13175 _ACEOF
13176
13177
13178
13179 # Check whether --with-oprofile was given.
13180 if test "${with_oprofile+set}" = set; then
13181   withval=$with_oprofile;
13182       USE_OPROFILE=1
13183
13184       case "$withval" in
13185         /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
13186         no) llvm_cv_oppath=
13187             USE_OPROFILE=0
13188  ;;
13189         *) llvm_cv_oppath="${withval}/lib/oprofile"
13190            CPPFLAGS="-I${withval}/include";;
13191       esac
13192       case $llvm_cv_os_type in
13193         Linux)
13194           if test -n "$llvm_cv_oppath" ; then
13195             LIBS="$LIBS -lopagent -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
13196                                                             { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
13197 echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
13198 if test "${ac_cv_search_bfd_init+set}" = set; then
13199   echo $ECHO_N "(cached) $ECHO_C" >&6
13200 else
13201   ac_func_search_save_LIBS=$LIBS
13202 cat >conftest.$ac_ext <<_ACEOF
13203 /* confdefs.h.  */
13204 _ACEOF
13205 cat confdefs.h >>conftest.$ac_ext
13206 cat >>conftest.$ac_ext <<_ACEOF
13207 /* end confdefs.h.  */
13208
13209 /* Override any GCC internal prototype to avoid an error.
13210    Use char because int might match the return type of a GCC
13211    builtin and then its argument prototype would still apply.  */
13212 #ifdef __cplusplus
13213 extern "C"
13214 #endif
13215 char bfd_init ();
13216 int
13217 main ()
13218 {
13219 return bfd_init ();
13220   ;
13221   return 0;
13222 }
13223 _ACEOF
13224 for ac_lib in '' bfd; do
13225   if test -z "$ac_lib"; then
13226     ac_res="none required"
13227   else
13228     ac_res=-l$ac_lib
13229     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13230   fi
13231   rm -f conftest.$ac_objext conftest$ac_exeext
13232 if { (ac_try="$ac_link"
13233 case "(($ac_try" in
13234   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13235   *) ac_try_echo=$ac_try;;
13236 esac
13237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13238   (eval "$ac_link") 2>conftest.er1
13239   ac_status=$?
13240   grep -v '^ *+' conftest.er1 >conftest.err
13241   rm -f conftest.er1
13242   cat conftest.err >&5
13243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13244   (exit $ac_status); } &&
13245          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13246   { (case "(($ac_try" in
13247   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13248   *) ac_try_echo=$ac_try;;
13249 esac
13250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13251   (eval "$ac_try") 2>&5
13252   ac_status=$?
13253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13254   (exit $ac_status); }; } &&
13255          { ac_try='test -s conftest$ac_exeext'
13256   { (case "(($ac_try" in
13257   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13258   *) ac_try_echo=$ac_try;;
13259 esac
13260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13261   (eval "$ac_try") 2>&5
13262   ac_status=$?
13263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13264   (exit $ac_status); }; }; then
13265   ac_cv_search_bfd_init=$ac_res
13266 else
13267   echo "$as_me: failed program was:" >&5
13268 sed 's/^/| /' conftest.$ac_ext >&5
13269
13270
13271 fi
13272
13273 rm -f core conftest.err conftest.$ac_objext \
13274       conftest$ac_exeext
13275   if test "${ac_cv_search_bfd_init+set}" = set; then
13276   break
13277 fi
13278 done
13279 if test "${ac_cv_search_bfd_init+set}" = set; then
13280   :
13281 else
13282   ac_cv_search_bfd_init=no
13283 fi
13284 rm conftest.$ac_ext
13285 LIBS=$ac_func_search_save_LIBS
13286 fi
13287 { echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
13288 echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
13289 ac_res=$ac_cv_search_bfd_init
13290 if test "$ac_res" != no; then
13291   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13292
13293 fi
13294
13295             { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
13296 echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
13297 if test "${ac_cv_search_op_open_agent+set}" = set; then
13298   echo $ECHO_N "(cached) $ECHO_C" >&6
13299 else
13300   ac_func_search_save_LIBS=$LIBS
13301 cat >conftest.$ac_ext <<_ACEOF
13302 /* confdefs.h.  */
13303 _ACEOF
13304 cat confdefs.h >>conftest.$ac_ext
13305 cat >>conftest.$ac_ext <<_ACEOF
13306 /* end confdefs.h.  */
13307
13308 /* Override any GCC internal prototype to avoid an error.
13309    Use char because int might match the return type of a GCC
13310    builtin and then its argument prototype would still apply.  */
13311 #ifdef __cplusplus
13312 extern "C"
13313 #endif
13314 char op_open_agent ();
13315 int
13316 main ()
13317 {
13318 return op_open_agent ();
13319   ;
13320   return 0;
13321 }
13322 _ACEOF
13323 for ac_lib in '' opagent; do
13324   if test -z "$ac_lib"; then
13325     ac_res="none required"
13326   else
13327     ac_res=-l$ac_lib
13328     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13329   fi
13330   rm -f conftest.$ac_objext conftest$ac_exeext
13331 if { (ac_try="$ac_link"
13332 case "(($ac_try" in
13333   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13334   *) ac_try_echo=$ac_try;;
13335 esac
13336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13337   (eval "$ac_link") 2>conftest.er1
13338   ac_status=$?
13339   grep -v '^ *+' conftest.er1 >conftest.err
13340   rm -f conftest.er1
13341   cat conftest.err >&5
13342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13343   (exit $ac_status); } &&
13344          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13345   { (case "(($ac_try" in
13346   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13347   *) ac_try_echo=$ac_try;;
13348 esac
13349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13350   (eval "$ac_try") 2>&5
13351   ac_status=$?
13352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13353   (exit $ac_status); }; } &&
13354          { ac_try='test -s conftest$ac_exeext'
13355   { (case "(($ac_try" in
13356   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13357   *) ac_try_echo=$ac_try;;
13358 esac
13359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13360   (eval "$ac_try") 2>&5
13361   ac_status=$?
13362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13363   (exit $ac_status); }; }; then
13364   ac_cv_search_op_open_agent=$ac_res
13365 else
13366   echo "$as_me: failed program was:" >&5
13367 sed 's/^/| /' conftest.$ac_ext >&5
13368
13369
13370 fi
13371
13372 rm -f core conftest.err conftest.$ac_objext \
13373       conftest$ac_exeext
13374   if test "${ac_cv_search_op_open_agent+set}" = set; then
13375   break
13376 fi
13377 done
13378 if test "${ac_cv_search_op_open_agent+set}" = set; then
13379   :
13380 else
13381   ac_cv_search_op_open_agent=no
13382 fi
13383 rm conftest.$ac_ext
13384 LIBS=$ac_func_search_save_LIBS
13385 fi
13386 { echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
13387 echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
13388 ac_res=$ac_cv_search_op_open_agent
13389 if test "$ac_res" != no; then
13390   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13391
13392 else
13393
13394               echo "Error! You need to have libopagent around."
13395               exit -1
13396
13397 fi
13398
13399             if test "${ac_cv_header_opagent_h+set}" = set; then
13400   { echo "$as_me:$LINENO: checking for opagent.h" >&5
13401 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13402 if test "${ac_cv_header_opagent_h+set}" = set; then
13403   echo $ECHO_N "(cached) $ECHO_C" >&6
13404 fi
13405 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13406 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13407 else
13408   # Is the header compilable?
13409 { echo "$as_me:$LINENO: checking opagent.h usability" >&5
13410 echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
13411 cat >conftest.$ac_ext <<_ACEOF
13412 /* confdefs.h.  */
13413 _ACEOF
13414 cat confdefs.h >>conftest.$ac_ext
13415 cat >>conftest.$ac_ext <<_ACEOF
13416 /* end confdefs.h.  */
13417 $ac_includes_default
13418 #include <opagent.h>
13419 _ACEOF
13420 rm -f conftest.$ac_objext
13421 if { (ac_try="$ac_compile"
13422 case "(($ac_try" in
13423   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13424   *) ac_try_echo=$ac_try;;
13425 esac
13426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13427   (eval "$ac_compile") 2>conftest.er1
13428   ac_status=$?
13429   grep -v '^ *+' conftest.er1 >conftest.err
13430   rm -f conftest.er1
13431   cat conftest.err >&5
13432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13433   (exit $ac_status); } &&
13434          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13435   { (case "(($ac_try" in
13436   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13437   *) ac_try_echo=$ac_try;;
13438 esac
13439 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13440   (eval "$ac_try") 2>&5
13441   ac_status=$?
13442   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13443   (exit $ac_status); }; } &&
13444          { ac_try='test -s conftest.$ac_objext'
13445   { (case "(($ac_try" in
13446   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13447   *) ac_try_echo=$ac_try;;
13448 esac
13449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13450   (eval "$ac_try") 2>&5
13451   ac_status=$?
13452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13453   (exit $ac_status); }; }; then
13454   ac_header_compiler=yes
13455 else
13456   echo "$as_me: failed program was:" >&5
13457 sed 's/^/| /' conftest.$ac_ext >&5
13458
13459         ac_header_compiler=no
13460 fi
13461
13462 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13463 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13464 echo "${ECHO_T}$ac_header_compiler" >&6; }
13465
13466 # Is the header present?
13467 { echo "$as_me:$LINENO: checking opagent.h presence" >&5
13468 echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
13469 cat >conftest.$ac_ext <<_ACEOF
13470 /* confdefs.h.  */
13471 _ACEOF
13472 cat confdefs.h >>conftest.$ac_ext
13473 cat >>conftest.$ac_ext <<_ACEOF
13474 /* end confdefs.h.  */
13475 #include <opagent.h>
13476 _ACEOF
13477 if { (ac_try="$ac_cpp conftest.$ac_ext"
13478 case "(($ac_try" in
13479   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13480   *) ac_try_echo=$ac_try;;
13481 esac
13482 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13483   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13484   ac_status=$?
13485   grep -v '^ *+' conftest.er1 >conftest.err
13486   rm -f conftest.er1
13487   cat conftest.err >&5
13488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13489   (exit $ac_status); } >/dev/null; then
13490   if test -s conftest.err; then
13491     ac_cpp_err=$ac_c_preproc_warn_flag
13492     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13493   else
13494     ac_cpp_err=
13495   fi
13496 else
13497   ac_cpp_err=yes
13498 fi
13499 if test -z "$ac_cpp_err"; then
13500   ac_header_preproc=yes
13501 else
13502   echo "$as_me: failed program was:" >&5
13503 sed 's/^/| /' conftest.$ac_ext >&5
13504
13505   ac_header_preproc=no
13506 fi
13507
13508 rm -f conftest.err conftest.$ac_ext
13509 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13510 echo "${ECHO_T}$ac_header_preproc" >&6; }
13511
13512 # So?  What about this header?
13513 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13514   yes:no: )
13515     { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
13516 echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13517     { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
13518 echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
13519     ac_header_preproc=yes
13520     ;;
13521   no:yes:* )
13522     { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
13523 echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
13524     { echo "$as_me:$LINENO: WARNING: opagent.h:     check for missing prerequisite headers?" >&5
13525 echo "$as_me: WARNING: opagent.h:     check for missing prerequisite headers?" >&2;}
13526     { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
13527 echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
13528     { echo "$as_me:$LINENO: WARNING: opagent.h:     section \"Present But Cannot Be Compiled\"" >&5
13529 echo "$as_me: WARNING: opagent.h:     section \"Present But Cannot Be Compiled\"" >&2;}
13530     { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
13531 echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
13532     { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
13533 echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
13534     ( cat <<\_ASBOX
13535 ## ------------------------------------ ##
13536 ## Report this to http://llvm.org/bugs/ ##
13537 ## ------------------------------------ ##
13538 _ASBOX
13539      ) | sed "s/^/$as_me: WARNING:     /" >&2
13540     ;;
13541 esac
13542 { echo "$as_me:$LINENO: checking for opagent.h" >&5
13543 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13544 if test "${ac_cv_header_opagent_h+set}" = set; then
13545   echo $ECHO_N "(cached) $ECHO_C" >&6
13546 else
13547   ac_cv_header_opagent_h=$ac_header_preproc
13548 fi
13549 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13550 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13551
13552 fi
13553 if test $ac_cv_header_opagent_h = yes; then
13554   :
13555 else
13556
13557               echo "Error! You need to have opagent.h around."
13558               exit -1
13559
13560 fi
13561
13562
13563           fi ;;
13564         *)
13565           { { echo "$as_me:$LINENO: error: OProfile support is available on Linux only." >&5
13566 echo "$as_me: error: OProfile support is available on Linux only." >&2;}
13567    { (exit 1); exit 1; }; } ;;
13568       esac
13569
13570 else
13571
13572       USE_OPROFILE=0
13573
13574
13575 fi
13576
13577
13578 cat >>confdefs.h <<_ACEOF
13579 #define LLVM_USE_OPROFILE $USE_OPROFILE
13580 _ACEOF
13581
13582
13583
13584 # Check whether --with-intel-jitevents was given.
13585 if test "${with_intel_jitevents+set}" = set; then
13586   withval=$with_intel_jitevents;
13587       case $llvm_cv_os_type in
13588         Linux|Win32|Cygwin|MingW) ;;
13589         *)
13590           { { echo "$as_me:$LINENO: error:
13591             Intel JIT API support is available on Linux and Windows only.\"" >&5
13592 echo "$as_me: error:
13593             Intel JIT API support is available on Linux and Windows only.\"" >&2;}
13594    { (exit 1); exit 1; }; } ;;
13595       esac
13596
13597       USE_INTEL_JITEVENTS=1
13598
13599       case "$llvm_cv_target_arch" in
13600         x86)    llvm_intel_jitevents_archdir="lib32";;
13601         x86_64) llvm_intel_jitevents_archdir="lib64";;
13602         *)      echo "Target architecture $llvm_cv_target_arch does not support Intel JIT Events API"
13603                 exit -1;;
13604       esac
13605       INTEL_JITEVENTS_INCDIR="/opt/intel/vtune_amplifier_xe_2011/include"
13606       INTEL_JITEVENTS_LIBDIR="/opt/intel/vtune_amplifier_xe_2011/$llvm_intel_jitevents_archdir"
13607       case "$withval" in
13608         /* | [A-Za-z]:[\\/]*) INTEL_JITEVENTS_INCDIR=$withval/include
13609                                   INTEL_JITEVENTS_LIBDIR=$withval/$llvm_intel_jitevents_archdir ;;
13610         *) ;;
13611       esac
13612
13613
13614
13615
13616       LIBS="$LIBS -L${INTEL_JITEVENTS_LIBDIR}"
13617       CPPFLAGS="$CPPFLAGS -I$INTEL_JITEVENTS_INCDIR"
13618
13619       { echo "$as_me:$LINENO: checking for library containing iJIT_IsProfilingActive" >&5
13620 echo $ECHO_N "checking for library containing iJIT_IsProfilingActive... $ECHO_C" >&6; }
13621 if test "${ac_cv_search_iJIT_IsProfilingActive+set}" = set; then
13622   echo $ECHO_N "(cached) $ECHO_C" >&6
13623 else
13624   ac_func_search_save_LIBS=$LIBS
13625 cat >conftest.$ac_ext <<_ACEOF
13626 /* confdefs.h.  */
13627 _ACEOF
13628 cat confdefs.h >>conftest.$ac_ext
13629 cat >>conftest.$ac_ext <<_ACEOF
13630 /* end confdefs.h.  */
13631
13632 /* Override any GCC internal prototype to avoid an error.
13633    Use char because int might match the return type of a GCC
13634    builtin and then its argument prototype would still apply.  */
13635 #ifdef __cplusplus
13636 extern "C"
13637 #endif
13638 char iJIT_IsProfilingActive ();
13639 int
13640 main ()
13641 {
13642 return iJIT_IsProfilingActive ();
13643   ;
13644   return 0;
13645 }
13646 _ACEOF
13647 for ac_lib in '' jitprofiling; do
13648   if test -z "$ac_lib"; then
13649     ac_res="none required"
13650   else
13651     ac_res=-l$ac_lib
13652     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13653   fi
13654   rm -f conftest.$ac_objext conftest$ac_exeext
13655 if { (ac_try="$ac_link"
13656 case "(($ac_try" in
13657   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13658   *) ac_try_echo=$ac_try;;
13659 esac
13660 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13661   (eval "$ac_link") 2>conftest.er1
13662   ac_status=$?
13663   grep -v '^ *+' conftest.er1 >conftest.err
13664   rm -f conftest.er1
13665   cat conftest.err >&5
13666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13667   (exit $ac_status); } &&
13668          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13669   { (case "(($ac_try" in
13670   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13671   *) ac_try_echo=$ac_try;;
13672 esac
13673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13674   (eval "$ac_try") 2>&5
13675   ac_status=$?
13676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13677   (exit $ac_status); }; } &&
13678          { ac_try='test -s conftest$ac_exeext'
13679   { (case "(($ac_try" in
13680   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13681   *) ac_try_echo=$ac_try;;
13682 esac
13683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13684   (eval "$ac_try") 2>&5
13685   ac_status=$?
13686   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13687   (exit $ac_status); }; }; then
13688   ac_cv_search_iJIT_IsProfilingActive=$ac_res
13689 else
13690   echo "$as_me: failed program was:" >&5
13691 sed 's/^/| /' conftest.$ac_ext >&5
13692
13693
13694 fi
13695
13696 rm -f core conftest.err conftest.$ac_objext \
13697       conftest$ac_exeext
13698   if test "${ac_cv_search_iJIT_IsProfilingActive+set}" = set; then
13699   break
13700 fi
13701 done
13702 if test "${ac_cv_search_iJIT_IsProfilingActive+set}" = set; then
13703   :
13704 else
13705   ac_cv_search_iJIT_IsProfilingActive=no
13706 fi
13707 rm conftest.$ac_ext
13708 LIBS=$ac_func_search_save_LIBS
13709 fi
13710 { echo "$as_me:$LINENO: result: $ac_cv_search_iJIT_IsProfilingActive" >&5
13711 echo "${ECHO_T}$ac_cv_search_iJIT_IsProfilingActive" >&6; }
13712 ac_res=$ac_cv_search_iJIT_IsProfilingActive
13713 if test "$ac_res" != no; then
13714   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13715
13716 else
13717
13718         echo "Error! Cannot find libjitprofiling.a. Please check path specified in flag --with-intel-jitevents"
13719         exit -1
13720
13721 fi
13722
13723       if test "${ac_cv_header_jitprofiling_h+set}" = set; then
13724   { echo "$as_me:$LINENO: checking for jitprofiling.h" >&5
13725 echo $ECHO_N "checking for jitprofiling.h... $ECHO_C" >&6; }
13726 if test "${ac_cv_header_jitprofiling_h+set}" = set; then
13727   echo $ECHO_N "(cached) $ECHO_C" >&6
13728 fi
13729 { echo "$as_me:$LINENO: result: $ac_cv_header_jitprofiling_h" >&5
13730 echo "${ECHO_T}$ac_cv_header_jitprofiling_h" >&6; }
13731 else
13732   # Is the header compilable?
13733 { echo "$as_me:$LINENO: checking jitprofiling.h usability" >&5
13734 echo $ECHO_N "checking jitprofiling.h usability... $ECHO_C" >&6; }
13735 cat >conftest.$ac_ext <<_ACEOF
13736 /* confdefs.h.  */
13737 _ACEOF
13738 cat confdefs.h >>conftest.$ac_ext
13739 cat >>conftest.$ac_ext <<_ACEOF
13740 /* end confdefs.h.  */
13741 $ac_includes_default
13742 #include <jitprofiling.h>
13743 _ACEOF
13744 rm -f conftest.$ac_objext
13745 if { (ac_try="$ac_compile"
13746 case "(($ac_try" in
13747   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13748   *) ac_try_echo=$ac_try;;
13749 esac
13750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13751   (eval "$ac_compile") 2>conftest.er1
13752   ac_status=$?
13753   grep -v '^ *+' conftest.er1 >conftest.err
13754   rm -f conftest.er1
13755   cat conftest.err >&5
13756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13757   (exit $ac_status); } &&
13758          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13759   { (case "(($ac_try" in
13760   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13761   *) ac_try_echo=$ac_try;;
13762 esac
13763 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13764   (eval "$ac_try") 2>&5
13765   ac_status=$?
13766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13767   (exit $ac_status); }; } &&
13768          { ac_try='test -s conftest.$ac_objext'
13769   { (case "(($ac_try" in
13770   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13771   *) ac_try_echo=$ac_try;;
13772 esac
13773 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13774   (eval "$ac_try") 2>&5
13775   ac_status=$?
13776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13777   (exit $ac_status); }; }; then
13778   ac_header_compiler=yes
13779 else
13780   echo "$as_me: failed program was:" >&5
13781 sed 's/^/| /' conftest.$ac_ext >&5
13782
13783         ac_header_compiler=no
13784 fi
13785
13786 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13787 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13788 echo "${ECHO_T}$ac_header_compiler" >&6; }
13789
13790 # Is the header present?
13791 { echo "$as_me:$LINENO: checking jitprofiling.h presence" >&5
13792 echo $ECHO_N "checking jitprofiling.h presence... $ECHO_C" >&6; }
13793 cat >conftest.$ac_ext <<_ACEOF
13794 /* confdefs.h.  */
13795 _ACEOF
13796 cat confdefs.h >>conftest.$ac_ext
13797 cat >>conftest.$ac_ext <<_ACEOF
13798 /* end confdefs.h.  */
13799 #include <jitprofiling.h>
13800 _ACEOF
13801 if { (ac_try="$ac_cpp conftest.$ac_ext"
13802 case "(($ac_try" in
13803   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13804   *) ac_try_echo=$ac_try;;
13805 esac
13806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13807   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13808   ac_status=$?
13809   grep -v '^ *+' conftest.er1 >conftest.err
13810   rm -f conftest.er1
13811   cat conftest.err >&5
13812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13813   (exit $ac_status); } >/dev/null; then
13814   if test -s conftest.err; then
13815     ac_cpp_err=$ac_c_preproc_warn_flag
13816     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13817   else
13818     ac_cpp_err=
13819   fi
13820 else
13821   ac_cpp_err=yes
13822 fi
13823 if test -z "$ac_cpp_err"; then
13824   ac_header_preproc=yes
13825 else
13826   echo "$as_me: failed program was:" >&5
13827 sed 's/^/| /' conftest.$ac_ext >&5
13828
13829   ac_header_preproc=no
13830 fi
13831
13832 rm -f conftest.err conftest.$ac_ext
13833 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13834 echo "${ECHO_T}$ac_header_preproc" >&6; }
13835
13836 # So?  What about this header?
13837 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13838   yes:no: )
13839     { echo "$as_me:$LINENO: WARNING: jitprofiling.h: accepted by the compiler, rejected by the preprocessor!" >&5
13840 echo "$as_me: WARNING: jitprofiling.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13841     { echo "$as_me:$LINENO: WARNING: jitprofiling.h: proceeding with the compiler's result" >&5
13842 echo "$as_me: WARNING: jitprofiling.h: proceeding with the compiler's result" >&2;}
13843     ac_header_preproc=yes
13844     ;;
13845   no:yes:* )
13846     { echo "$as_me:$LINENO: WARNING: jitprofiling.h: present but cannot be compiled" >&5
13847 echo "$as_me: WARNING: jitprofiling.h: present but cannot be compiled" >&2;}
13848     { echo "$as_me:$LINENO: WARNING: jitprofiling.h:     check for missing prerequisite headers?" >&5
13849 echo "$as_me: WARNING: jitprofiling.h:     check for missing prerequisite headers?" >&2;}
13850     { echo "$as_me:$LINENO: WARNING: jitprofiling.h: see the Autoconf documentation" >&5
13851 echo "$as_me: WARNING: jitprofiling.h: see the Autoconf documentation" >&2;}
13852     { echo "$as_me:$LINENO: WARNING: jitprofiling.h:     section \"Present But Cannot Be Compiled\"" >&5
13853 echo "$as_me: WARNING: jitprofiling.h:     section \"Present But Cannot Be Compiled\"" >&2;}
13854     { echo "$as_me:$LINENO: WARNING: jitprofiling.h: proceeding with the preprocessor's result" >&5
13855 echo "$as_me: WARNING: jitprofiling.h: proceeding with the preprocessor's result" >&2;}
13856     { echo "$as_me:$LINENO: WARNING: jitprofiling.h: in the future, the compiler will take precedence" >&5
13857 echo "$as_me: WARNING: jitprofiling.h: in the future, the compiler will take precedence" >&2;}
13858     ( cat <<\_ASBOX
13859 ## ------------------------------------ ##
13860 ## Report this to http://llvm.org/bugs/ ##
13861 ## ------------------------------------ ##
13862 _ASBOX
13863      ) | sed "s/^/$as_me: WARNING:     /" >&2
13864     ;;
13865 esac
13866 { echo "$as_me:$LINENO: checking for jitprofiling.h" >&5
13867 echo $ECHO_N "checking for jitprofiling.h... $ECHO_C" >&6; }
13868 if test "${ac_cv_header_jitprofiling_h+set}" = set; then
13869   echo $ECHO_N "(cached) $ECHO_C" >&6
13870 else
13871   ac_cv_header_jitprofiling_h=$ac_header_preproc
13872 fi
13873 { echo "$as_me:$LINENO: result: $ac_cv_header_jitprofiling_h" >&5
13874 echo "${ECHO_T}$ac_cv_header_jitprofiling_h" >&6; }
13875
13876 fi
13877 if test $ac_cv_header_jitprofiling_h = yes; then
13878   :
13879 else
13880
13881         echo "Error! Cannot find jitprofiling.h. Please check path specified in flag --with-intel-jitevents"
13882         exit -1
13883
13884 fi
13885
13886
13887
13888
13889 else
13890
13891       USE_INTEL_JITEVENTS=0
13892
13893
13894 fi
13895
13896
13897 cat >>confdefs.h <<_ACEOF
13898 #define LLVM_USE_INTEL_JITEVENTS $USE_INTEL_JITEVENTS
13899 _ACEOF
13900
13901
13902
13903
13904
13905
13906
13907
13908 ac_header_dirent=no
13909 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
13910   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
13911 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
13912 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
13913 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13914   echo $ECHO_N "(cached) $ECHO_C" >&6
13915 else
13916   cat >conftest.$ac_ext <<_ACEOF
13917 /* confdefs.h.  */
13918 _ACEOF
13919 cat confdefs.h >>conftest.$ac_ext
13920 cat >>conftest.$ac_ext <<_ACEOF
13921 /* end confdefs.h.  */
13922 #include <sys/types.h>
13923 #include <$ac_hdr>
13924
13925 int
13926 main ()
13927 {
13928 if ((DIR *) 0)
13929 return 0;
13930   ;
13931   return 0;
13932 }
13933 _ACEOF
13934 rm -f conftest.$ac_objext
13935 if { (ac_try="$ac_compile"
13936 case "(($ac_try" in
13937   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13938   *) ac_try_echo=$ac_try;;
13939 esac
13940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13941   (eval "$ac_compile") 2>conftest.er1
13942   ac_status=$?
13943   grep -v '^ *+' conftest.er1 >conftest.err
13944   rm -f conftest.er1
13945   cat conftest.err >&5
13946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13947   (exit $ac_status); } &&
13948          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13949   { (case "(($ac_try" in
13950   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13951   *) ac_try_echo=$ac_try;;
13952 esac
13953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13954   (eval "$ac_try") 2>&5
13955   ac_status=$?
13956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13957   (exit $ac_status); }; } &&
13958          { ac_try='test -s conftest.$ac_objext'
13959   { (case "(($ac_try" in
13960   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13961   *) ac_try_echo=$ac_try;;
13962 esac
13963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13964   (eval "$ac_try") 2>&5
13965   ac_status=$?
13966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13967   (exit $ac_status); }; }; then
13968   eval "$as_ac_Header=yes"
13969 else
13970   echo "$as_me: failed program was:" >&5
13971 sed 's/^/| /' conftest.$ac_ext >&5
13972
13973         eval "$as_ac_Header=no"
13974 fi
13975
13976 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13977 fi
13978 ac_res=`eval echo '${'$as_ac_Header'}'`
13979                { echo "$as_me:$LINENO: result: $ac_res" >&5
13980 echo "${ECHO_T}$ac_res" >&6; }
13981 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13982   cat >>confdefs.h <<_ACEOF
13983 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
13984 _ACEOF
13985
13986 ac_header_dirent=$ac_hdr; break
13987 fi
13988
13989 done
13990 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
13991 if test $ac_header_dirent = dirent.h; then
13992   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
13993 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
13994 if test "${ac_cv_search_opendir+set}" = set; then
13995   echo $ECHO_N "(cached) $ECHO_C" >&6
13996 else
13997   ac_func_search_save_LIBS=$LIBS
13998 cat >conftest.$ac_ext <<_ACEOF
13999 /* confdefs.h.  */
14000 _ACEOF
14001 cat confdefs.h >>conftest.$ac_ext
14002 cat >>conftest.$ac_ext <<_ACEOF
14003 /* end confdefs.h.  */
14004
14005 /* Override any GCC internal prototype to avoid an error.
14006    Use char because int might match the return type of a GCC
14007    builtin and then its argument prototype would still apply.  */
14008 #ifdef __cplusplus
14009 extern "C"
14010 #endif
14011 char opendir ();
14012 int
14013 main ()
14014 {
14015 return opendir ();
14016   ;
14017   return 0;
14018 }
14019 _ACEOF
14020 for ac_lib in '' dir; do
14021   if test -z "$ac_lib"; then
14022     ac_res="none required"
14023   else
14024     ac_res=-l$ac_lib
14025     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14026   fi
14027   rm -f conftest.$ac_objext conftest$ac_exeext
14028 if { (ac_try="$ac_link"
14029 case "(($ac_try" in
14030   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14031   *) ac_try_echo=$ac_try;;
14032 esac
14033 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14034   (eval "$ac_link") 2>conftest.er1
14035   ac_status=$?
14036   grep -v '^ *+' conftest.er1 >conftest.err
14037   rm -f conftest.er1
14038   cat conftest.err >&5
14039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14040   (exit $ac_status); } &&
14041          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14042   { (case "(($ac_try" in
14043   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14044   *) ac_try_echo=$ac_try;;
14045 esac
14046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14047   (eval "$ac_try") 2>&5
14048   ac_status=$?
14049   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14050   (exit $ac_status); }; } &&
14051          { ac_try='test -s conftest$ac_exeext'
14052   { (case "(($ac_try" in
14053   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14054   *) ac_try_echo=$ac_try;;
14055 esac
14056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14057   (eval "$ac_try") 2>&5
14058   ac_status=$?
14059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14060   (exit $ac_status); }; }; then
14061   ac_cv_search_opendir=$ac_res
14062 else
14063   echo "$as_me: failed program was:" >&5
14064 sed 's/^/| /' conftest.$ac_ext >&5
14065
14066
14067 fi
14068
14069 rm -f core conftest.err conftest.$ac_objext \
14070       conftest$ac_exeext
14071   if test "${ac_cv_search_opendir+set}" = set; then
14072   break
14073 fi
14074 done
14075 if test "${ac_cv_search_opendir+set}" = set; then
14076   :
14077 else
14078   ac_cv_search_opendir=no
14079 fi
14080 rm conftest.$ac_ext
14081 LIBS=$ac_func_search_save_LIBS
14082 fi
14083 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14084 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
14085 ac_res=$ac_cv_search_opendir
14086 if test "$ac_res" != no; then
14087   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14088
14089 fi
14090
14091 else
14092   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
14093 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
14094 if test "${ac_cv_search_opendir+set}" = set; then
14095   echo $ECHO_N "(cached) $ECHO_C" >&6
14096 else
14097   ac_func_search_save_LIBS=$LIBS
14098 cat >conftest.$ac_ext <<_ACEOF
14099 /* confdefs.h.  */
14100 _ACEOF
14101 cat confdefs.h >>conftest.$ac_ext
14102 cat >>conftest.$ac_ext <<_ACEOF
14103 /* end confdefs.h.  */
14104
14105 /* Override any GCC internal prototype to avoid an error.
14106    Use char because int might match the return type of a GCC
14107    builtin and then its argument prototype would still apply.  */
14108 #ifdef __cplusplus
14109 extern "C"
14110 #endif
14111 char opendir ();
14112 int
14113 main ()
14114 {
14115 return opendir ();
14116   ;
14117   return 0;
14118 }
14119 _ACEOF
14120 for ac_lib in '' x; do
14121   if test -z "$ac_lib"; then
14122     ac_res="none required"
14123   else
14124     ac_res=-l$ac_lib
14125     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14126   fi
14127   rm -f conftest.$ac_objext conftest$ac_exeext
14128 if { (ac_try="$ac_link"
14129 case "(($ac_try" in
14130   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14131   *) ac_try_echo=$ac_try;;
14132 esac
14133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14134   (eval "$ac_link") 2>conftest.er1
14135   ac_status=$?
14136   grep -v '^ *+' conftest.er1 >conftest.err
14137   rm -f conftest.er1
14138   cat conftest.err >&5
14139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14140   (exit $ac_status); } &&
14141          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14142   { (case "(($ac_try" in
14143   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14144   *) ac_try_echo=$ac_try;;
14145 esac
14146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14147   (eval "$ac_try") 2>&5
14148   ac_status=$?
14149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14150   (exit $ac_status); }; } &&
14151          { ac_try='test -s conftest$ac_exeext'
14152   { (case "(($ac_try" in
14153   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14154   *) ac_try_echo=$ac_try;;
14155 esac
14156 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14157   (eval "$ac_try") 2>&5
14158   ac_status=$?
14159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14160   (exit $ac_status); }; }; then
14161   ac_cv_search_opendir=$ac_res
14162 else
14163   echo "$as_me: failed program was:" >&5
14164 sed 's/^/| /' conftest.$ac_ext >&5
14165
14166
14167 fi
14168
14169 rm -f core conftest.err conftest.$ac_objext \
14170       conftest$ac_exeext
14171   if test "${ac_cv_search_opendir+set}" = set; then
14172   break
14173 fi
14174 done
14175 if test "${ac_cv_search_opendir+set}" = set; then
14176   :
14177 else
14178   ac_cv_search_opendir=no
14179 fi
14180 rm conftest.$ac_ext
14181 LIBS=$ac_func_search_save_LIBS
14182 fi
14183 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14184 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
14185 ac_res=$ac_cv_search_opendir
14186 if test "$ac_res" != no; then
14187   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14188
14189 fi
14190
14191 fi
14192
14193 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
14194 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
14195 if test "${ac_cv_header_mmap_anon+set}" = set; then
14196   echo $ECHO_N "(cached) $ECHO_C" >&6
14197 else
14198    ac_ext=c
14199 ac_cpp='$CPP $CPPFLAGS'
14200 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14201 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14202 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14203
14204   cat >conftest.$ac_ext <<_ACEOF
14205 /* confdefs.h.  */
14206 _ACEOF
14207 cat confdefs.h >>conftest.$ac_ext
14208 cat >>conftest.$ac_ext <<_ACEOF
14209 /* end confdefs.h.  */
14210 #include <sys/mman.h>
14211 #include <unistd.h>
14212 #include <fcntl.h>
14213 int
14214 main ()
14215 {
14216 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
14217   ;
14218   return 0;
14219 }
14220 _ACEOF
14221 rm -f conftest.$ac_objext
14222 if { (ac_try="$ac_compile"
14223 case "(($ac_try" in
14224   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14225   *) ac_try_echo=$ac_try;;
14226 esac
14227 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14228   (eval "$ac_compile") 2>conftest.er1
14229   ac_status=$?
14230   grep -v '^ *+' conftest.er1 >conftest.err
14231   rm -f conftest.er1
14232   cat conftest.err >&5
14233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14234   (exit $ac_status); } &&
14235          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14236   { (case "(($ac_try" in
14237   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14238   *) ac_try_echo=$ac_try;;
14239 esac
14240 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14241   (eval "$ac_try") 2>&5
14242   ac_status=$?
14243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14244   (exit $ac_status); }; } &&
14245          { ac_try='test -s conftest.$ac_objext'
14246   { (case "(($ac_try" in
14247   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14248   *) ac_try_echo=$ac_try;;
14249 esac
14250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14251   (eval "$ac_try") 2>&5
14252   ac_status=$?
14253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14254   (exit $ac_status); }; }; then
14255   ac_cv_header_mmap_anon=yes
14256 else
14257   echo "$as_me: failed program was:" >&5
14258 sed 's/^/| /' conftest.$ac_ext >&5
14259
14260         ac_cv_header_mmap_anon=no
14261 fi
14262
14263 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14264   ac_ext=c
14265 ac_cpp='$CPP $CPPFLAGS'
14266 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14267 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14268 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14269
14270
14271 fi
14272 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
14273 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
14274 if test "$ac_cv_header_mmap_anon" = yes; then
14275
14276 cat >>confdefs.h <<\_ACEOF
14277 #define HAVE_MMAP_ANONYMOUS 1
14278 _ACEOF
14279
14280 fi
14281
14282 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
14283 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
14284 if test "${ac_cv_header_stat_broken+set}" = set; then
14285   echo $ECHO_N "(cached) $ECHO_C" >&6
14286 else
14287   cat >conftest.$ac_ext <<_ACEOF
14288 /* confdefs.h.  */
14289 _ACEOF
14290 cat confdefs.h >>conftest.$ac_ext
14291 cat >>conftest.$ac_ext <<_ACEOF
14292 /* end confdefs.h.  */
14293 #include <sys/types.h>
14294 #include <sys/stat.h>
14295
14296 #if defined S_ISBLK && defined S_IFDIR
14297 # if S_ISBLK (S_IFDIR)
14298 You lose.
14299 # endif
14300 #endif
14301
14302 #if defined S_ISBLK && defined S_IFCHR
14303 # if S_ISBLK (S_IFCHR)
14304 You lose.
14305 # endif
14306 #endif
14307
14308 #if defined S_ISLNK && defined S_IFREG
14309 # if S_ISLNK (S_IFREG)
14310 You lose.
14311 # endif
14312 #endif
14313
14314 #if defined S_ISSOCK && defined S_IFREG
14315 # if S_ISSOCK (S_IFREG)
14316 You lose.
14317 # endif
14318 #endif
14319
14320 _ACEOF
14321 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14322   $EGREP "You lose" >/dev/null 2>&1; then
14323   ac_cv_header_stat_broken=yes
14324 else
14325   ac_cv_header_stat_broken=no
14326 fi
14327 rm -f conftest*
14328
14329 fi
14330 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
14331 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
14332 if test $ac_cv_header_stat_broken = yes; then
14333
14334 cat >>confdefs.h <<\_ACEOF
14335 #define STAT_MACROS_BROKEN 1
14336 _ACEOF
14337
14338 fi
14339
14340 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
14341 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
14342 if test "${ac_cv_header_sys_wait_h+set}" = set; then
14343   echo $ECHO_N "(cached) $ECHO_C" >&6
14344 else
14345   cat >conftest.$ac_ext <<_ACEOF
14346 /* confdefs.h.  */
14347 _ACEOF
14348 cat confdefs.h >>conftest.$ac_ext
14349 cat >>conftest.$ac_ext <<_ACEOF
14350 /* end confdefs.h.  */
14351 #include <sys/types.h>
14352 #include <sys/wait.h>
14353 #ifndef WEXITSTATUS
14354 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
14355 #endif
14356 #ifndef WIFEXITED
14357 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
14358 #endif
14359
14360 int
14361 main ()
14362 {
14363   int s;
14364   wait (&s);
14365   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
14366   ;
14367   return 0;
14368 }
14369 _ACEOF
14370 rm -f conftest.$ac_objext
14371 if { (ac_try="$ac_compile"
14372 case "(($ac_try" in
14373   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14374   *) ac_try_echo=$ac_try;;
14375 esac
14376 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14377   (eval "$ac_compile") 2>conftest.er1
14378   ac_status=$?
14379   grep -v '^ *+' conftest.er1 >conftest.err
14380   rm -f conftest.er1
14381   cat conftest.err >&5
14382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14383   (exit $ac_status); } &&
14384          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14385   { (case "(($ac_try" in
14386   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14387   *) ac_try_echo=$ac_try;;
14388 esac
14389 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14390   (eval "$ac_try") 2>&5
14391   ac_status=$?
14392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14393   (exit $ac_status); }; } &&
14394          { ac_try='test -s conftest.$ac_objext'
14395   { (case "(($ac_try" in
14396   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14397   *) ac_try_echo=$ac_try;;
14398 esac
14399 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14400   (eval "$ac_try") 2>&5
14401   ac_status=$?
14402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14403   (exit $ac_status); }; }; then
14404   ac_cv_header_sys_wait_h=yes
14405 else
14406   echo "$as_me: failed program was:" >&5
14407 sed 's/^/| /' conftest.$ac_ext >&5
14408
14409         ac_cv_header_sys_wait_h=no
14410 fi
14411
14412 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14413 fi
14414 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
14415 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
14416 if test $ac_cv_header_sys_wait_h = yes; then
14417
14418 cat >>confdefs.h <<\_ACEOF
14419 #define HAVE_SYS_WAIT_H 1
14420 _ACEOF
14421
14422 fi
14423
14424 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
14425 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
14426 if test "${ac_cv_header_time+set}" = set; then
14427   echo $ECHO_N "(cached) $ECHO_C" >&6
14428 else
14429   cat >conftest.$ac_ext <<_ACEOF
14430 /* confdefs.h.  */
14431 _ACEOF
14432 cat confdefs.h >>conftest.$ac_ext
14433 cat >>conftest.$ac_ext <<_ACEOF
14434 /* end confdefs.h.  */
14435 #include <sys/types.h>
14436 #include <sys/time.h>
14437 #include <time.h>
14438
14439 int
14440 main ()
14441 {
14442 if ((struct tm *) 0)
14443 return 0;
14444   ;
14445   return 0;
14446 }
14447 _ACEOF
14448 rm -f conftest.$ac_objext
14449 if { (ac_try="$ac_compile"
14450 case "(($ac_try" in
14451   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14452   *) ac_try_echo=$ac_try;;
14453 esac
14454 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14455   (eval "$ac_compile") 2>conftest.er1
14456   ac_status=$?
14457   grep -v '^ *+' conftest.er1 >conftest.err
14458   rm -f conftest.er1
14459   cat conftest.err >&5
14460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14461   (exit $ac_status); } &&
14462          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14463   { (case "(($ac_try" in
14464   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14465   *) ac_try_echo=$ac_try;;
14466 esac
14467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14468   (eval "$ac_try") 2>&5
14469   ac_status=$?
14470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14471   (exit $ac_status); }; } &&
14472          { ac_try='test -s conftest.$ac_objext'
14473   { (case "(($ac_try" in
14474   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14475   *) ac_try_echo=$ac_try;;
14476 esac
14477 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14478   (eval "$ac_try") 2>&5
14479   ac_status=$?
14480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14481   (exit $ac_status); }; }; then
14482   ac_cv_header_time=yes
14483 else
14484   echo "$as_me: failed program was:" >&5
14485 sed 's/^/| /' conftest.$ac_ext >&5
14486
14487         ac_cv_header_time=no
14488 fi
14489
14490 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14491 fi
14492 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
14493 echo "${ECHO_T}$ac_cv_header_time" >&6; }
14494 if test $ac_cv_header_time = yes; then
14495
14496 cat >>confdefs.h <<\_ACEOF
14497 #define TIME_WITH_SYS_TIME 1
14498 _ACEOF
14499
14500 fi
14501
14502
14503
14504
14505
14506
14507
14508
14509 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
14510 do
14511 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14512 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14513   { echo "$as_me:$LINENO: checking for $ac_header" >&5
14514 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14515 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14516   echo $ECHO_N "(cached) $ECHO_C" >&6
14517 fi
14518 ac_res=`eval echo '${'$as_ac_Header'}'`
14519                { echo "$as_me:$LINENO: result: $ac_res" >&5
14520 echo "${ECHO_T}$ac_res" >&6; }
14521 else
14522   # Is the header compilable?
14523 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14524 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14525 cat >conftest.$ac_ext <<_ACEOF
14526 /* confdefs.h.  */
14527 _ACEOF
14528 cat confdefs.h >>conftest.$ac_ext
14529 cat >>conftest.$ac_ext <<_ACEOF
14530 /* end confdefs.h.  */
14531 $ac_includes_default
14532 #include <$ac_header>
14533 _ACEOF
14534 rm -f conftest.$ac_objext
14535 if { (ac_try="$ac_compile"
14536 case "(($ac_try" in
14537   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14538   *) ac_try_echo=$ac_try;;
14539 esac
14540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14541   (eval "$ac_compile") 2>conftest.er1
14542   ac_status=$?
14543   grep -v '^ *+' conftest.er1 >conftest.err
14544   rm -f conftest.er1
14545   cat conftest.err >&5
14546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14547   (exit $ac_status); } &&
14548          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14549   { (case "(($ac_try" in
14550   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14551   *) ac_try_echo=$ac_try;;
14552 esac
14553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14554   (eval "$ac_try") 2>&5
14555   ac_status=$?
14556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14557   (exit $ac_status); }; } &&
14558          { ac_try='test -s conftest.$ac_objext'
14559   { (case "(($ac_try" in
14560   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14561   *) ac_try_echo=$ac_try;;
14562 esac
14563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14564   (eval "$ac_try") 2>&5
14565   ac_status=$?
14566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14567   (exit $ac_status); }; }; then
14568   ac_header_compiler=yes
14569 else
14570   echo "$as_me: failed program was:" >&5
14571 sed 's/^/| /' conftest.$ac_ext >&5
14572
14573         ac_header_compiler=no
14574 fi
14575
14576 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14577 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14578 echo "${ECHO_T}$ac_header_compiler" >&6; }
14579
14580 # Is the header present?
14581 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14582 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14583 cat >conftest.$ac_ext <<_ACEOF
14584 /* confdefs.h.  */
14585 _ACEOF
14586 cat confdefs.h >>conftest.$ac_ext
14587 cat >>conftest.$ac_ext <<_ACEOF
14588 /* end confdefs.h.  */
14589 #include <$ac_header>
14590 _ACEOF
14591 if { (ac_try="$ac_cpp conftest.$ac_ext"
14592 case "(($ac_try" in
14593   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14594   *) ac_try_echo=$ac_try;;
14595 esac
14596 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14597   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14598   ac_status=$?
14599   grep -v '^ *+' conftest.er1 >conftest.err
14600   rm -f conftest.er1
14601   cat conftest.err >&5
14602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14603   (exit $ac_status); } >/dev/null; then
14604   if test -s conftest.err; then
14605     ac_cpp_err=$ac_c_preproc_warn_flag
14606     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14607   else
14608     ac_cpp_err=
14609   fi
14610 else
14611   ac_cpp_err=yes
14612 fi
14613 if test -z "$ac_cpp_err"; then
14614   ac_header_preproc=yes
14615 else
14616   echo "$as_me: failed program was:" >&5
14617 sed 's/^/| /' conftest.$ac_ext >&5
14618
14619   ac_header_preproc=no
14620 fi
14621
14622 rm -f conftest.err conftest.$ac_ext
14623 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14624 echo "${ECHO_T}$ac_header_preproc" >&6; }
14625
14626 # So?  What about this header?
14627 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14628   yes:no: )
14629     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14630 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14631     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14632 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14633     ac_header_preproc=yes
14634     ;;
14635   no:yes:* )
14636     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14637 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14638     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14639 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14640     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14641 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14642     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14643 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14644     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14645 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14646     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14647 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14648     ( cat <<\_ASBOX
14649 ## ------------------------------------ ##
14650 ## Report this to http://llvm.org/bugs/ ##
14651 ## ------------------------------------ ##
14652 _ASBOX
14653      ) | sed "s/^/$as_me: WARNING:     /" >&2
14654     ;;
14655 esac
14656 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14657 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14658 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14659   echo $ECHO_N "(cached) $ECHO_C" >&6
14660 else
14661   eval "$as_ac_Header=\$ac_header_preproc"
14662 fi
14663 ac_res=`eval echo '${'$as_ac_Header'}'`
14664                { echo "$as_me:$LINENO: result: $ac_res" >&5
14665 echo "${ECHO_T}$ac_res" >&6; }
14666
14667 fi
14668 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14669   cat >>confdefs.h <<_ACEOF
14670 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14671 _ACEOF
14672
14673 fi
14674
14675 done
14676
14677
14678
14679
14680
14681
14682
14683 for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
14684 do
14685 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14686 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14687   { echo "$as_me:$LINENO: checking for $ac_header" >&5
14688 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14689 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14690   echo $ECHO_N "(cached) $ECHO_C" >&6
14691 fi
14692 ac_res=`eval echo '${'$as_ac_Header'}'`
14693                { echo "$as_me:$LINENO: result: $ac_res" >&5
14694 echo "${ECHO_T}$ac_res" >&6; }
14695 else
14696   # Is the header compilable?
14697 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14698 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14699 cat >conftest.$ac_ext <<_ACEOF
14700 /* confdefs.h.  */
14701 _ACEOF
14702 cat confdefs.h >>conftest.$ac_ext
14703 cat >>conftest.$ac_ext <<_ACEOF
14704 /* end confdefs.h.  */
14705 $ac_includes_default
14706 #include <$ac_header>
14707 _ACEOF
14708 rm -f conftest.$ac_objext
14709 if { (ac_try="$ac_compile"
14710 case "(($ac_try" in
14711   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14712   *) ac_try_echo=$ac_try;;
14713 esac
14714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14715   (eval "$ac_compile") 2>conftest.er1
14716   ac_status=$?
14717   grep -v '^ *+' conftest.er1 >conftest.err
14718   rm -f conftest.er1
14719   cat conftest.err >&5
14720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14721   (exit $ac_status); } &&
14722          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14723   { (case "(($ac_try" in
14724   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14725   *) ac_try_echo=$ac_try;;
14726 esac
14727 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14728   (eval "$ac_try") 2>&5
14729   ac_status=$?
14730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14731   (exit $ac_status); }; } &&
14732          { ac_try='test -s conftest.$ac_objext'
14733   { (case "(($ac_try" in
14734   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14735   *) ac_try_echo=$ac_try;;
14736 esac
14737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14738   (eval "$ac_try") 2>&5
14739   ac_status=$?
14740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14741   (exit $ac_status); }; }; then
14742   ac_header_compiler=yes
14743 else
14744   echo "$as_me: failed program was:" >&5
14745 sed 's/^/| /' conftest.$ac_ext >&5
14746
14747         ac_header_compiler=no
14748 fi
14749
14750 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14751 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14752 echo "${ECHO_T}$ac_header_compiler" >&6; }
14753
14754 # Is the header present?
14755 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14756 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14757 cat >conftest.$ac_ext <<_ACEOF
14758 /* confdefs.h.  */
14759 _ACEOF
14760 cat confdefs.h >>conftest.$ac_ext
14761 cat >>conftest.$ac_ext <<_ACEOF
14762 /* end confdefs.h.  */
14763 #include <$ac_header>
14764 _ACEOF
14765 if { (ac_try="$ac_cpp conftest.$ac_ext"
14766 case "(($ac_try" in
14767   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14768   *) ac_try_echo=$ac_try;;
14769 esac
14770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14771   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14772   ac_status=$?
14773   grep -v '^ *+' conftest.er1 >conftest.err
14774   rm -f conftest.er1
14775   cat conftest.err >&5
14776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14777   (exit $ac_status); } >/dev/null; then
14778   if test -s conftest.err; then
14779     ac_cpp_err=$ac_c_preproc_warn_flag
14780     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14781   else
14782     ac_cpp_err=
14783   fi
14784 else
14785   ac_cpp_err=yes
14786 fi
14787 if test -z "$ac_cpp_err"; then
14788   ac_header_preproc=yes
14789 else
14790   echo "$as_me: failed program was:" >&5
14791 sed 's/^/| /' conftest.$ac_ext >&5
14792
14793   ac_header_preproc=no
14794 fi
14795
14796 rm -f conftest.err conftest.$ac_ext
14797 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14798 echo "${ECHO_T}$ac_header_preproc" >&6; }
14799
14800 # So?  What about this header?
14801 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14802   yes:no: )
14803     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14804 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14805     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14806 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14807     ac_header_preproc=yes
14808     ;;
14809   no:yes:* )
14810     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14811 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14812     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14813 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14814     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14815 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14816     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14817 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14818     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14819 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14820     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14821 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14822     ( cat <<\_ASBOX
14823 ## ------------------------------------ ##
14824 ## Report this to http://llvm.org/bugs/ ##
14825 ## ------------------------------------ ##
14826 _ASBOX
14827      ) | sed "s/^/$as_me: WARNING:     /" >&2
14828     ;;
14829 esac
14830 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14831 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14832 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14833   echo $ECHO_N "(cached) $ECHO_C" >&6
14834 else
14835   eval "$as_ac_Header=\$ac_header_preproc"
14836 fi
14837 ac_res=`eval echo '${'$as_ac_Header'}'`
14838                { echo "$as_me:$LINENO: result: $ac_res" >&5
14839 echo "${ECHO_T}$ac_res" >&6; }
14840
14841 fi
14842 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14843   cat >>confdefs.h <<_ACEOF
14844 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14845 _ACEOF
14846
14847 fi
14848
14849 done
14850
14851
14852
14853 for ac_header in utime.h windows.h
14854 do
14855 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14856 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14857   { echo "$as_me:$LINENO: checking for $ac_header" >&5
14858 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14859 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14860   echo $ECHO_N "(cached) $ECHO_C" >&6
14861 fi
14862 ac_res=`eval echo '${'$as_ac_Header'}'`
14863                { echo "$as_me:$LINENO: result: $ac_res" >&5
14864 echo "${ECHO_T}$ac_res" >&6; }
14865 else
14866   # Is the header compilable?
14867 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14868 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14869 cat >conftest.$ac_ext <<_ACEOF
14870 /* confdefs.h.  */
14871 _ACEOF
14872 cat confdefs.h >>conftest.$ac_ext
14873 cat >>conftest.$ac_ext <<_ACEOF
14874 /* end confdefs.h.  */
14875 $ac_includes_default
14876 #include <$ac_header>
14877 _ACEOF
14878 rm -f conftest.$ac_objext
14879 if { (ac_try="$ac_compile"
14880 case "(($ac_try" in
14881   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14882   *) ac_try_echo=$ac_try;;
14883 esac
14884 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14885   (eval "$ac_compile") 2>conftest.er1
14886   ac_status=$?
14887   grep -v '^ *+' conftest.er1 >conftest.err
14888   rm -f conftest.er1
14889   cat conftest.err >&5
14890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14891   (exit $ac_status); } &&
14892          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14893   { (case "(($ac_try" in
14894   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14895   *) ac_try_echo=$ac_try;;
14896 esac
14897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14898   (eval "$ac_try") 2>&5
14899   ac_status=$?
14900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14901   (exit $ac_status); }; } &&
14902          { ac_try='test -s conftest.$ac_objext'
14903   { (case "(($ac_try" in
14904   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14905   *) ac_try_echo=$ac_try;;
14906 esac
14907 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14908   (eval "$ac_try") 2>&5
14909   ac_status=$?
14910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14911   (exit $ac_status); }; }; then
14912   ac_header_compiler=yes
14913 else
14914   echo "$as_me: failed program was:" >&5
14915 sed 's/^/| /' conftest.$ac_ext >&5
14916
14917         ac_header_compiler=no
14918 fi
14919
14920 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14921 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14922 echo "${ECHO_T}$ac_header_compiler" >&6; }
14923
14924 # Is the header present?
14925 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14926 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14927 cat >conftest.$ac_ext <<_ACEOF
14928 /* confdefs.h.  */
14929 _ACEOF
14930 cat confdefs.h >>conftest.$ac_ext
14931 cat >>conftest.$ac_ext <<_ACEOF
14932 /* end confdefs.h.  */
14933 #include <$ac_header>
14934 _ACEOF
14935 if { (ac_try="$ac_cpp conftest.$ac_ext"
14936 case "(($ac_try" in
14937   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14938   *) ac_try_echo=$ac_try;;
14939 esac
14940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14941   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14942   ac_status=$?
14943   grep -v '^ *+' conftest.er1 >conftest.err
14944   rm -f conftest.er1
14945   cat conftest.err >&5
14946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14947   (exit $ac_status); } >/dev/null; then
14948   if test -s conftest.err; then
14949     ac_cpp_err=$ac_c_preproc_warn_flag
14950     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14951   else
14952     ac_cpp_err=
14953   fi
14954 else
14955   ac_cpp_err=yes
14956 fi
14957 if test -z "$ac_cpp_err"; then
14958   ac_header_preproc=yes
14959 else
14960   echo "$as_me: failed program was:" >&5
14961 sed 's/^/| /' conftest.$ac_ext >&5
14962
14963   ac_header_preproc=no
14964 fi
14965
14966 rm -f conftest.err conftest.$ac_ext
14967 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14968 echo "${ECHO_T}$ac_header_preproc" >&6; }
14969
14970 # So?  What about this header?
14971 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14972   yes:no: )
14973     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14974 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14975     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14976 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14977     ac_header_preproc=yes
14978     ;;
14979   no:yes:* )
14980     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14981 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14982     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14983 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14984     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14985 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14986     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14987 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14988     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14989 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14990     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14991 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14992     ( cat <<\_ASBOX
14993 ## ------------------------------------ ##
14994 ## Report this to http://llvm.org/bugs/ ##
14995 ## ------------------------------------ ##
14996 _ASBOX
14997      ) | sed "s/^/$as_me: WARNING:     /" >&2
14998     ;;
14999 esac
15000 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15001 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15002 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15003   echo $ECHO_N "(cached) $ECHO_C" >&6
15004 else
15005   eval "$as_ac_Header=\$ac_header_preproc"
15006 fi
15007 ac_res=`eval echo '${'$as_ac_Header'}'`
15008                { echo "$as_me:$LINENO: result: $ac_res" >&5
15009 echo "${ECHO_T}$ac_res" >&6; }
15010
15011 fi
15012 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15013   cat >>confdefs.h <<_ACEOF
15014 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15015 _ACEOF
15016
15017 fi
15018
15019 done
15020
15021
15022
15023
15024
15025
15026 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h sys/uio.h
15027 do
15028 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15029 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15030   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15031 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15032 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15033   echo $ECHO_N "(cached) $ECHO_C" >&6
15034 fi
15035 ac_res=`eval echo '${'$as_ac_Header'}'`
15036                { echo "$as_me:$LINENO: result: $ac_res" >&5
15037 echo "${ECHO_T}$ac_res" >&6; }
15038 else
15039   # Is the header compilable?
15040 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15041 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15042 cat >conftest.$ac_ext <<_ACEOF
15043 /* confdefs.h.  */
15044 _ACEOF
15045 cat confdefs.h >>conftest.$ac_ext
15046 cat >>conftest.$ac_ext <<_ACEOF
15047 /* end confdefs.h.  */
15048 $ac_includes_default
15049 #include <$ac_header>
15050 _ACEOF
15051 rm -f conftest.$ac_objext
15052 if { (ac_try="$ac_compile"
15053 case "(($ac_try" in
15054   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15055   *) ac_try_echo=$ac_try;;
15056 esac
15057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15058   (eval "$ac_compile") 2>conftest.er1
15059   ac_status=$?
15060   grep -v '^ *+' conftest.er1 >conftest.err
15061   rm -f conftest.er1
15062   cat conftest.err >&5
15063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15064   (exit $ac_status); } &&
15065          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15066   { (case "(($ac_try" in
15067   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15068   *) ac_try_echo=$ac_try;;
15069 esac
15070 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15071   (eval "$ac_try") 2>&5
15072   ac_status=$?
15073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15074   (exit $ac_status); }; } &&
15075          { ac_try='test -s conftest.$ac_objext'
15076   { (case "(($ac_try" in
15077   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15078   *) ac_try_echo=$ac_try;;
15079 esac
15080 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15081   (eval "$ac_try") 2>&5
15082   ac_status=$?
15083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15084   (exit $ac_status); }; }; then
15085   ac_header_compiler=yes
15086 else
15087   echo "$as_me: failed program was:" >&5
15088 sed 's/^/| /' conftest.$ac_ext >&5
15089
15090         ac_header_compiler=no
15091 fi
15092
15093 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15094 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15095 echo "${ECHO_T}$ac_header_compiler" >&6; }
15096
15097 # Is the header present?
15098 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15099 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15100 cat >conftest.$ac_ext <<_ACEOF
15101 /* confdefs.h.  */
15102 _ACEOF
15103 cat confdefs.h >>conftest.$ac_ext
15104 cat >>conftest.$ac_ext <<_ACEOF
15105 /* end confdefs.h.  */
15106 #include <$ac_header>
15107 _ACEOF
15108 if { (ac_try="$ac_cpp conftest.$ac_ext"
15109 case "(($ac_try" in
15110   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15111   *) ac_try_echo=$ac_try;;
15112 esac
15113 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15114   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15115   ac_status=$?
15116   grep -v '^ *+' conftest.er1 >conftest.err
15117   rm -f conftest.er1
15118   cat conftest.err >&5
15119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15120   (exit $ac_status); } >/dev/null; then
15121   if test -s conftest.err; then
15122     ac_cpp_err=$ac_c_preproc_warn_flag
15123     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15124   else
15125     ac_cpp_err=
15126   fi
15127 else
15128   ac_cpp_err=yes
15129 fi
15130 if test -z "$ac_cpp_err"; then
15131   ac_header_preproc=yes
15132 else
15133   echo "$as_me: failed program was:" >&5
15134 sed 's/^/| /' conftest.$ac_ext >&5
15135
15136   ac_header_preproc=no
15137 fi
15138
15139 rm -f conftest.err conftest.$ac_ext
15140 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15141 echo "${ECHO_T}$ac_header_preproc" >&6; }
15142
15143 # So?  What about this header?
15144 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15145   yes:no: )
15146     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15147 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15148     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15149 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15150     ac_header_preproc=yes
15151     ;;
15152   no:yes:* )
15153     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15154 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15155     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15156 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15157     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15158 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15159     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15160 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15161     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15162 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15163     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15164 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15165     ( cat <<\_ASBOX
15166 ## ------------------------------------ ##
15167 ## Report this to http://llvm.org/bugs/ ##
15168 ## ------------------------------------ ##
15169 _ASBOX
15170      ) | sed "s/^/$as_me: WARNING:     /" >&2
15171     ;;
15172 esac
15173 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15174 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15175 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15176   echo $ECHO_N "(cached) $ECHO_C" >&6
15177 else
15178   eval "$as_ac_Header=\$ac_header_preproc"
15179 fi
15180 ac_res=`eval echo '${'$as_ac_Header'}'`
15181                { echo "$as_me:$LINENO: result: $ac_res" >&5
15182 echo "${ECHO_T}$ac_res" >&6; }
15183
15184 fi
15185 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15186   cat >>confdefs.h <<_ACEOF
15187 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15188 _ACEOF
15189
15190 fi
15191
15192 done
15193
15194
15195
15196
15197
15198 for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h
15199 do
15200 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15201 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15202   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15203 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15204 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15205   echo $ECHO_N "(cached) $ECHO_C" >&6
15206 fi
15207 ac_res=`eval echo '${'$as_ac_Header'}'`
15208                { echo "$as_me:$LINENO: result: $ac_res" >&5
15209 echo "${ECHO_T}$ac_res" >&6; }
15210 else
15211   # Is the header compilable?
15212 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15213 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15214 cat >conftest.$ac_ext <<_ACEOF
15215 /* confdefs.h.  */
15216 _ACEOF
15217 cat confdefs.h >>conftest.$ac_ext
15218 cat >>conftest.$ac_ext <<_ACEOF
15219 /* end confdefs.h.  */
15220 $ac_includes_default
15221 #include <$ac_header>
15222 _ACEOF
15223 rm -f conftest.$ac_objext
15224 if { (ac_try="$ac_compile"
15225 case "(($ac_try" in
15226   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15227   *) ac_try_echo=$ac_try;;
15228 esac
15229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15230   (eval "$ac_compile") 2>conftest.er1
15231   ac_status=$?
15232   grep -v '^ *+' conftest.er1 >conftest.err
15233   rm -f conftest.er1
15234   cat conftest.err >&5
15235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15236   (exit $ac_status); } &&
15237          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15238   { (case "(($ac_try" in
15239   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15240   *) ac_try_echo=$ac_try;;
15241 esac
15242 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15243   (eval "$ac_try") 2>&5
15244   ac_status=$?
15245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15246   (exit $ac_status); }; } &&
15247          { ac_try='test -s conftest.$ac_objext'
15248   { (case "(($ac_try" in
15249   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15250   *) ac_try_echo=$ac_try;;
15251 esac
15252 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15253   (eval "$ac_try") 2>&5
15254   ac_status=$?
15255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15256   (exit $ac_status); }; }; then
15257   ac_header_compiler=yes
15258 else
15259   echo "$as_me: failed program was:" >&5
15260 sed 's/^/| /' conftest.$ac_ext >&5
15261
15262         ac_header_compiler=no
15263 fi
15264
15265 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15266 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15267 echo "${ECHO_T}$ac_header_compiler" >&6; }
15268
15269 # Is the header present?
15270 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15271 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15272 cat >conftest.$ac_ext <<_ACEOF
15273 /* confdefs.h.  */
15274 _ACEOF
15275 cat confdefs.h >>conftest.$ac_ext
15276 cat >>conftest.$ac_ext <<_ACEOF
15277 /* end confdefs.h.  */
15278 #include <$ac_header>
15279 _ACEOF
15280 if { (ac_try="$ac_cpp conftest.$ac_ext"
15281 case "(($ac_try" in
15282   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15283   *) ac_try_echo=$ac_try;;
15284 esac
15285 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15286   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15287   ac_status=$?
15288   grep -v '^ *+' conftest.er1 >conftest.err
15289   rm -f conftest.er1
15290   cat conftest.err >&5
15291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15292   (exit $ac_status); } >/dev/null; then
15293   if test -s conftest.err; then
15294     ac_cpp_err=$ac_c_preproc_warn_flag
15295     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15296   else
15297     ac_cpp_err=
15298   fi
15299 else
15300   ac_cpp_err=yes
15301 fi
15302 if test -z "$ac_cpp_err"; then
15303   ac_header_preproc=yes
15304 else
15305   echo "$as_me: failed program was:" >&5
15306 sed 's/^/| /' conftest.$ac_ext >&5
15307
15308   ac_header_preproc=no
15309 fi
15310
15311 rm -f conftest.err conftest.$ac_ext
15312 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15313 echo "${ECHO_T}$ac_header_preproc" >&6; }
15314
15315 # So?  What about this header?
15316 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15317   yes:no: )
15318     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15319 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15320     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15321 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15322     ac_header_preproc=yes
15323     ;;
15324   no:yes:* )
15325     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15326 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15327     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15328 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15329     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15330 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15331     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15332 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15333     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15334 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15335     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15336 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15337     ( cat <<\_ASBOX
15338 ## ------------------------------------ ##
15339 ## Report this to http://llvm.org/bugs/ ##
15340 ## ------------------------------------ ##
15341 _ASBOX
15342      ) | sed "s/^/$as_me: WARNING:     /" >&2
15343     ;;
15344 esac
15345 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15346 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15347 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15348   echo $ECHO_N "(cached) $ECHO_C" >&6
15349 else
15350   eval "$as_ac_Header=\$ac_header_preproc"
15351 fi
15352 ac_res=`eval echo '${'$as_ac_Header'}'`
15353                { echo "$as_me:$LINENO: result: $ac_res" >&5
15354 echo "${ECHO_T}$ac_res" >&6; }
15355
15356 fi
15357 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15358   cat >>confdefs.h <<_ACEOF
15359 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15360 _ACEOF
15361
15362 fi
15363
15364 done
15365
15366
15367 for ac_header in valgrind/valgrind.h
15368 do
15369 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15370 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15371   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15372 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15373 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15374   echo $ECHO_N "(cached) $ECHO_C" >&6
15375 fi
15376 ac_res=`eval echo '${'$as_ac_Header'}'`
15377                { echo "$as_me:$LINENO: result: $ac_res" >&5
15378 echo "${ECHO_T}$ac_res" >&6; }
15379 else
15380   # Is the header compilable?
15381 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15382 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15383 cat >conftest.$ac_ext <<_ACEOF
15384 /* confdefs.h.  */
15385 _ACEOF
15386 cat confdefs.h >>conftest.$ac_ext
15387 cat >>conftest.$ac_ext <<_ACEOF
15388 /* end confdefs.h.  */
15389 $ac_includes_default
15390 #include <$ac_header>
15391 _ACEOF
15392 rm -f conftest.$ac_objext
15393 if { (ac_try="$ac_compile"
15394 case "(($ac_try" in
15395   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15396   *) ac_try_echo=$ac_try;;
15397 esac
15398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15399   (eval "$ac_compile") 2>conftest.er1
15400   ac_status=$?
15401   grep -v '^ *+' conftest.er1 >conftest.err
15402   rm -f conftest.er1
15403   cat conftest.err >&5
15404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15405   (exit $ac_status); } &&
15406          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15407   { (case "(($ac_try" in
15408   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15409   *) ac_try_echo=$ac_try;;
15410 esac
15411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15412   (eval "$ac_try") 2>&5
15413   ac_status=$?
15414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15415   (exit $ac_status); }; } &&
15416          { ac_try='test -s conftest.$ac_objext'
15417   { (case "(($ac_try" in
15418   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15419   *) ac_try_echo=$ac_try;;
15420 esac
15421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15422   (eval "$ac_try") 2>&5
15423   ac_status=$?
15424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15425   (exit $ac_status); }; }; then
15426   ac_header_compiler=yes
15427 else
15428   echo "$as_me: failed program was:" >&5
15429 sed 's/^/| /' conftest.$ac_ext >&5
15430
15431         ac_header_compiler=no
15432 fi
15433
15434 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15435 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15436 echo "${ECHO_T}$ac_header_compiler" >&6; }
15437
15438 # Is the header present?
15439 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15440 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15441 cat >conftest.$ac_ext <<_ACEOF
15442 /* confdefs.h.  */
15443 _ACEOF
15444 cat confdefs.h >>conftest.$ac_ext
15445 cat >>conftest.$ac_ext <<_ACEOF
15446 /* end confdefs.h.  */
15447 #include <$ac_header>
15448 _ACEOF
15449 if { (ac_try="$ac_cpp conftest.$ac_ext"
15450 case "(($ac_try" in
15451   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15452   *) ac_try_echo=$ac_try;;
15453 esac
15454 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15455   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15456   ac_status=$?
15457   grep -v '^ *+' conftest.er1 >conftest.err
15458   rm -f conftest.er1
15459   cat conftest.err >&5
15460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15461   (exit $ac_status); } >/dev/null; then
15462   if test -s conftest.err; then
15463     ac_cpp_err=$ac_c_preproc_warn_flag
15464     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15465   else
15466     ac_cpp_err=
15467   fi
15468 else
15469   ac_cpp_err=yes
15470 fi
15471 if test -z "$ac_cpp_err"; then
15472   ac_header_preproc=yes
15473 else
15474   echo "$as_me: failed program was:" >&5
15475 sed 's/^/| /' conftest.$ac_ext >&5
15476
15477   ac_header_preproc=no
15478 fi
15479
15480 rm -f conftest.err conftest.$ac_ext
15481 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15482 echo "${ECHO_T}$ac_header_preproc" >&6; }
15483
15484 # So?  What about this header?
15485 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15486   yes:no: )
15487     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15488 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15489     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15490 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15491     ac_header_preproc=yes
15492     ;;
15493   no:yes:* )
15494     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15495 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15496     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15497 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15498     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15499 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15500     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15501 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15502     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15503 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15504     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15505 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15506     ( cat <<\_ASBOX
15507 ## ------------------------------------ ##
15508 ## Report this to http://llvm.org/bugs/ ##
15509 ## ------------------------------------ ##
15510 _ASBOX
15511      ) | sed "s/^/$as_me: WARNING:     /" >&2
15512     ;;
15513 esac
15514 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15515 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15516 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15517   echo $ECHO_N "(cached) $ECHO_C" >&6
15518 else
15519   eval "$as_ac_Header=\$ac_header_preproc"
15520 fi
15521 ac_res=`eval echo '${'$as_ac_Header'}'`
15522                { echo "$as_me:$LINENO: result: $ac_res" >&5
15523 echo "${ECHO_T}$ac_res" >&6; }
15524
15525 fi
15526 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15527   cat >>confdefs.h <<_ACEOF
15528 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15529 _ACEOF
15530
15531 fi
15532
15533 done
15534
15535
15536 for ac_header in fenv.h
15537 do
15538 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15539 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15540   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15541 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15542 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15543   echo $ECHO_N "(cached) $ECHO_C" >&6
15544 fi
15545 ac_res=`eval echo '${'$as_ac_Header'}'`
15546                { echo "$as_me:$LINENO: result: $ac_res" >&5
15547 echo "${ECHO_T}$ac_res" >&6; }
15548 else
15549   # Is the header compilable?
15550 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15551 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15552 cat >conftest.$ac_ext <<_ACEOF
15553 /* confdefs.h.  */
15554 _ACEOF
15555 cat confdefs.h >>conftest.$ac_ext
15556 cat >>conftest.$ac_ext <<_ACEOF
15557 /* end confdefs.h.  */
15558 $ac_includes_default
15559 #include <$ac_header>
15560 _ACEOF
15561 rm -f conftest.$ac_objext
15562 if { (ac_try="$ac_compile"
15563 case "(($ac_try" in
15564   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15565   *) ac_try_echo=$ac_try;;
15566 esac
15567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15568   (eval "$ac_compile") 2>conftest.er1
15569   ac_status=$?
15570   grep -v '^ *+' conftest.er1 >conftest.err
15571   rm -f conftest.er1
15572   cat conftest.err >&5
15573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15574   (exit $ac_status); } &&
15575          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15576   { (case "(($ac_try" in
15577   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15578   *) ac_try_echo=$ac_try;;
15579 esac
15580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15581   (eval "$ac_try") 2>&5
15582   ac_status=$?
15583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15584   (exit $ac_status); }; } &&
15585          { ac_try='test -s conftest.$ac_objext'
15586   { (case "(($ac_try" in
15587   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15588   *) ac_try_echo=$ac_try;;
15589 esac
15590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15591   (eval "$ac_try") 2>&5
15592   ac_status=$?
15593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15594   (exit $ac_status); }; }; then
15595   ac_header_compiler=yes
15596 else
15597   echo "$as_me: failed program was:" >&5
15598 sed 's/^/| /' conftest.$ac_ext >&5
15599
15600         ac_header_compiler=no
15601 fi
15602
15603 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15604 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15605 echo "${ECHO_T}$ac_header_compiler" >&6; }
15606
15607 # Is the header present?
15608 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15609 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15610 cat >conftest.$ac_ext <<_ACEOF
15611 /* confdefs.h.  */
15612 _ACEOF
15613 cat confdefs.h >>conftest.$ac_ext
15614 cat >>conftest.$ac_ext <<_ACEOF
15615 /* end confdefs.h.  */
15616 #include <$ac_header>
15617 _ACEOF
15618 if { (ac_try="$ac_cpp conftest.$ac_ext"
15619 case "(($ac_try" in
15620   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15621   *) ac_try_echo=$ac_try;;
15622 esac
15623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15624   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15625   ac_status=$?
15626   grep -v '^ *+' conftest.er1 >conftest.err
15627   rm -f conftest.er1
15628   cat conftest.err >&5
15629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15630   (exit $ac_status); } >/dev/null; then
15631   if test -s conftest.err; then
15632     ac_cpp_err=$ac_c_preproc_warn_flag
15633     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15634   else
15635     ac_cpp_err=
15636   fi
15637 else
15638   ac_cpp_err=yes
15639 fi
15640 if test -z "$ac_cpp_err"; then
15641   ac_header_preproc=yes
15642 else
15643   echo "$as_me: failed program was:" >&5
15644 sed 's/^/| /' conftest.$ac_ext >&5
15645
15646   ac_header_preproc=no
15647 fi
15648
15649 rm -f conftest.err conftest.$ac_ext
15650 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15651 echo "${ECHO_T}$ac_header_preproc" >&6; }
15652
15653 # So?  What about this header?
15654 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15655   yes:no: )
15656     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15657 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15658     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15659 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15660     ac_header_preproc=yes
15661     ;;
15662   no:yes:* )
15663     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15664 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15665     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15666 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15667     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15668 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15669     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15670 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15671     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15672 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15673     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15674 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15675     ( cat <<\_ASBOX
15676 ## ------------------------------------ ##
15677 ## Report this to http://llvm.org/bugs/ ##
15678 ## ------------------------------------ ##
15679 _ASBOX
15680      ) | sed "s/^/$as_me: WARNING:     /" >&2
15681     ;;
15682 esac
15683 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15684 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15685 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15686   echo $ECHO_N "(cached) $ECHO_C" >&6
15687 else
15688   eval "$as_ac_Header=\$ac_header_preproc"
15689 fi
15690 ac_res=`eval echo '${'$as_ac_Header'}'`
15691                { echo "$as_me:$LINENO: result: $ac_res" >&5
15692 echo "${ECHO_T}$ac_res" >&6; }
15693
15694 fi
15695 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15696   cat >>confdefs.h <<_ACEOF
15697 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15698 _ACEOF
15699
15700 fi
15701
15702 done
15703
15704 if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
15705
15706 for ac_header in pthread.h
15707 do
15708 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15709 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15710   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15711 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15712 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15713   echo $ECHO_N "(cached) $ECHO_C" >&6
15714 fi
15715 ac_res=`eval echo '${'$as_ac_Header'}'`
15716                { echo "$as_me:$LINENO: result: $ac_res" >&5
15717 echo "${ECHO_T}$ac_res" >&6; }
15718 else
15719   # Is the header compilable?
15720 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15721 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15722 cat >conftest.$ac_ext <<_ACEOF
15723 /* confdefs.h.  */
15724 _ACEOF
15725 cat confdefs.h >>conftest.$ac_ext
15726 cat >>conftest.$ac_ext <<_ACEOF
15727 /* end confdefs.h.  */
15728 $ac_includes_default
15729 #include <$ac_header>
15730 _ACEOF
15731 rm -f conftest.$ac_objext
15732 if { (ac_try="$ac_compile"
15733 case "(($ac_try" in
15734   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15735   *) ac_try_echo=$ac_try;;
15736 esac
15737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15738   (eval "$ac_compile") 2>conftest.er1
15739   ac_status=$?
15740   grep -v '^ *+' conftest.er1 >conftest.err
15741   rm -f conftest.er1
15742   cat conftest.err >&5
15743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15744   (exit $ac_status); } &&
15745          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15746   { (case "(($ac_try" in
15747   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15748   *) ac_try_echo=$ac_try;;
15749 esac
15750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15751   (eval "$ac_try") 2>&5
15752   ac_status=$?
15753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15754   (exit $ac_status); }; } &&
15755          { ac_try='test -s conftest.$ac_objext'
15756   { (case "(($ac_try" in
15757   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15758   *) ac_try_echo=$ac_try;;
15759 esac
15760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15761   (eval "$ac_try") 2>&5
15762   ac_status=$?
15763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15764   (exit $ac_status); }; }; then
15765   ac_header_compiler=yes
15766 else
15767   echo "$as_me: failed program was:" >&5
15768 sed 's/^/| /' conftest.$ac_ext >&5
15769
15770         ac_header_compiler=no
15771 fi
15772
15773 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15774 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15775 echo "${ECHO_T}$ac_header_compiler" >&6; }
15776
15777 # Is the header present?
15778 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15779 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15780 cat >conftest.$ac_ext <<_ACEOF
15781 /* confdefs.h.  */
15782 _ACEOF
15783 cat confdefs.h >>conftest.$ac_ext
15784 cat >>conftest.$ac_ext <<_ACEOF
15785 /* end confdefs.h.  */
15786 #include <$ac_header>
15787 _ACEOF
15788 if { (ac_try="$ac_cpp conftest.$ac_ext"
15789 case "(($ac_try" in
15790   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15791   *) ac_try_echo=$ac_try;;
15792 esac
15793 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15794   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15795   ac_status=$?
15796   grep -v '^ *+' conftest.er1 >conftest.err
15797   rm -f conftest.er1
15798   cat conftest.err >&5
15799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15800   (exit $ac_status); } >/dev/null; then
15801   if test -s conftest.err; then
15802     ac_cpp_err=$ac_c_preproc_warn_flag
15803     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15804   else
15805     ac_cpp_err=
15806   fi
15807 else
15808   ac_cpp_err=yes
15809 fi
15810 if test -z "$ac_cpp_err"; then
15811   ac_header_preproc=yes
15812 else
15813   echo "$as_me: failed program was:" >&5
15814 sed 's/^/| /' conftest.$ac_ext >&5
15815
15816   ac_header_preproc=no
15817 fi
15818
15819 rm -f conftest.err conftest.$ac_ext
15820 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15821 echo "${ECHO_T}$ac_header_preproc" >&6; }
15822
15823 # So?  What about this header?
15824 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15825   yes:no: )
15826     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15827 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15828     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15829 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15830     ac_header_preproc=yes
15831     ;;
15832   no:yes:* )
15833     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15834 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15835     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15836 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15837     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15838 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15839     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15840 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15841     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15842 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15843     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15844 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15845     ( cat <<\_ASBOX
15846 ## ------------------------------------ ##
15847 ## Report this to http://llvm.org/bugs/ ##
15848 ## ------------------------------------ ##
15849 _ASBOX
15850      ) | sed "s/^/$as_me: WARNING:     /" >&2
15851     ;;
15852 esac
15853 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15854 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15855 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15856   echo $ECHO_N "(cached) $ECHO_C" >&6
15857 else
15858   eval "$as_ac_Header=\$ac_header_preproc"
15859 fi
15860 ac_res=`eval echo '${'$as_ac_Header'}'`
15861                { echo "$as_me:$LINENO: result: $ac_res" >&5
15862 echo "${ECHO_T}$ac_res" >&6; }
15863
15864 fi
15865 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15866   cat >>confdefs.h <<_ACEOF
15867 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15868 _ACEOF
15869  HAVE_PTHREAD=1
15870
15871 else
15872   HAVE_PTHREAD=0
15873
15874 fi
15875
15876 done
15877
15878 else
15879   HAVE_PTHREAD=0
15880
15881 fi
15882
15883 if test "$llvm_cv_enable_libffi" = "yes" ; then
15884
15885
15886 for ac_header in ffi.h ffi/ffi.h
15887 do
15888 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15889 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15890   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15891 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15892 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15893   echo $ECHO_N "(cached) $ECHO_C" >&6
15894 fi
15895 ac_res=`eval echo '${'$as_ac_Header'}'`
15896                { echo "$as_me:$LINENO: result: $ac_res" >&5
15897 echo "${ECHO_T}$ac_res" >&6; }
15898 else
15899   # Is the header compilable?
15900 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15901 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15902 cat >conftest.$ac_ext <<_ACEOF
15903 /* confdefs.h.  */
15904 _ACEOF
15905 cat confdefs.h >>conftest.$ac_ext
15906 cat >>conftest.$ac_ext <<_ACEOF
15907 /* end confdefs.h.  */
15908 $ac_includes_default
15909 #include <$ac_header>
15910 _ACEOF
15911 rm -f conftest.$ac_objext
15912 if { (ac_try="$ac_compile"
15913 case "(($ac_try" in
15914   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15915   *) ac_try_echo=$ac_try;;
15916 esac
15917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15918   (eval "$ac_compile") 2>conftest.er1
15919   ac_status=$?
15920   grep -v '^ *+' conftest.er1 >conftest.err
15921   rm -f conftest.er1
15922   cat conftest.err >&5
15923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15924   (exit $ac_status); } &&
15925          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15926   { (case "(($ac_try" in
15927   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15928   *) ac_try_echo=$ac_try;;
15929 esac
15930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15931   (eval "$ac_try") 2>&5
15932   ac_status=$?
15933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15934   (exit $ac_status); }; } &&
15935          { ac_try='test -s conftest.$ac_objext'
15936   { (case "(($ac_try" in
15937   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15938   *) ac_try_echo=$ac_try;;
15939 esac
15940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15941   (eval "$ac_try") 2>&5
15942   ac_status=$?
15943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15944   (exit $ac_status); }; }; then
15945   ac_header_compiler=yes
15946 else
15947   echo "$as_me: failed program was:" >&5
15948 sed 's/^/| /' conftest.$ac_ext >&5
15949
15950         ac_header_compiler=no
15951 fi
15952
15953 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15954 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15955 echo "${ECHO_T}$ac_header_compiler" >&6; }
15956
15957 # Is the header present?
15958 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15959 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15960 cat >conftest.$ac_ext <<_ACEOF
15961 /* confdefs.h.  */
15962 _ACEOF
15963 cat confdefs.h >>conftest.$ac_ext
15964 cat >>conftest.$ac_ext <<_ACEOF
15965 /* end confdefs.h.  */
15966 #include <$ac_header>
15967 _ACEOF
15968 if { (ac_try="$ac_cpp conftest.$ac_ext"
15969 case "(($ac_try" in
15970   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15971   *) ac_try_echo=$ac_try;;
15972 esac
15973 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15974   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15975   ac_status=$?
15976   grep -v '^ *+' conftest.er1 >conftest.err
15977   rm -f conftest.er1
15978   cat conftest.err >&5
15979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15980   (exit $ac_status); } >/dev/null; then
15981   if test -s conftest.err; then
15982     ac_cpp_err=$ac_c_preproc_warn_flag
15983     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15984   else
15985     ac_cpp_err=
15986   fi
15987 else
15988   ac_cpp_err=yes
15989 fi
15990 if test -z "$ac_cpp_err"; then
15991   ac_header_preproc=yes
15992 else
15993   echo "$as_me: failed program was:" >&5
15994 sed 's/^/| /' conftest.$ac_ext >&5
15995
15996   ac_header_preproc=no
15997 fi
15998
15999 rm -f conftest.err conftest.$ac_ext
16000 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16001 echo "${ECHO_T}$ac_header_preproc" >&6; }
16002
16003 # So?  What about this header?
16004 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16005   yes:no: )
16006     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16007 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16008     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16009 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16010     ac_header_preproc=yes
16011     ;;
16012   no:yes:* )
16013     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16014 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16015     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16016 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16017     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16018 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16019     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16020 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16021     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16022 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16023     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16024 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16025     ( cat <<\_ASBOX
16026 ## ------------------------------------ ##
16027 ## Report this to http://llvm.org/bugs/ ##
16028 ## ------------------------------------ ##
16029 _ASBOX
16030      ) | sed "s/^/$as_me: WARNING:     /" >&2
16031     ;;
16032 esac
16033 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16034 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16035 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16036   echo $ECHO_N "(cached) $ECHO_C" >&6
16037 else
16038   eval "$as_ac_Header=\$ac_header_preproc"
16039 fi
16040 ac_res=`eval echo '${'$as_ac_Header'}'`
16041                { echo "$as_me:$LINENO: result: $ac_res" >&5
16042 echo "${ECHO_T}$ac_res" >&6; }
16043
16044 fi
16045 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16046   cat >>confdefs.h <<_ACEOF
16047 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16048 _ACEOF
16049
16050 fi
16051
16052 done
16053
16054 fi
16055
16056
16057 for ac_header in CrashReporterClient.h
16058 do
16059 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16060 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16061   { echo "$as_me:$LINENO: checking for $ac_header" >&5
16062 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16063 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16064   echo $ECHO_N "(cached) $ECHO_C" >&6
16065 fi
16066 ac_res=`eval echo '${'$as_ac_Header'}'`
16067                { echo "$as_me:$LINENO: result: $ac_res" >&5
16068 echo "${ECHO_T}$ac_res" >&6; }
16069 else
16070   # Is the header compilable?
16071 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16072 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16073 cat >conftest.$ac_ext <<_ACEOF
16074 /* confdefs.h.  */
16075 _ACEOF
16076 cat confdefs.h >>conftest.$ac_ext
16077 cat >>conftest.$ac_ext <<_ACEOF
16078 /* end confdefs.h.  */
16079 $ac_includes_default
16080 #include <$ac_header>
16081 _ACEOF
16082 rm -f conftest.$ac_objext
16083 if { (ac_try="$ac_compile"
16084 case "(($ac_try" in
16085   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16086   *) ac_try_echo=$ac_try;;
16087 esac
16088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16089   (eval "$ac_compile") 2>conftest.er1
16090   ac_status=$?
16091   grep -v '^ *+' conftest.er1 >conftest.err
16092   rm -f conftest.er1
16093   cat conftest.err >&5
16094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16095   (exit $ac_status); } &&
16096          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16097   { (case "(($ac_try" in
16098   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16099   *) ac_try_echo=$ac_try;;
16100 esac
16101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16102   (eval "$ac_try") 2>&5
16103   ac_status=$?
16104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16105   (exit $ac_status); }; } &&
16106          { ac_try='test -s conftest.$ac_objext'
16107   { (case "(($ac_try" in
16108   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16109   *) ac_try_echo=$ac_try;;
16110 esac
16111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16112   (eval "$ac_try") 2>&5
16113   ac_status=$?
16114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16115   (exit $ac_status); }; }; then
16116   ac_header_compiler=yes
16117 else
16118   echo "$as_me: failed program was:" >&5
16119 sed 's/^/| /' conftest.$ac_ext >&5
16120
16121         ac_header_compiler=no
16122 fi
16123
16124 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16125 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16126 echo "${ECHO_T}$ac_header_compiler" >&6; }
16127
16128 # Is the header present?
16129 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16130 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16131 cat >conftest.$ac_ext <<_ACEOF
16132 /* confdefs.h.  */
16133 _ACEOF
16134 cat confdefs.h >>conftest.$ac_ext
16135 cat >>conftest.$ac_ext <<_ACEOF
16136 /* end confdefs.h.  */
16137 #include <$ac_header>
16138 _ACEOF
16139 if { (ac_try="$ac_cpp conftest.$ac_ext"
16140 case "(($ac_try" in
16141   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16142   *) ac_try_echo=$ac_try;;
16143 esac
16144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16145   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16146   ac_status=$?
16147   grep -v '^ *+' conftest.er1 >conftest.err
16148   rm -f conftest.er1
16149   cat conftest.err >&5
16150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16151   (exit $ac_status); } >/dev/null; then
16152   if test -s conftest.err; then
16153     ac_cpp_err=$ac_c_preproc_warn_flag
16154     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16155   else
16156     ac_cpp_err=
16157   fi
16158 else
16159   ac_cpp_err=yes
16160 fi
16161 if test -z "$ac_cpp_err"; then
16162   ac_header_preproc=yes
16163 else
16164   echo "$as_me: failed program was:" >&5
16165 sed 's/^/| /' conftest.$ac_ext >&5
16166
16167   ac_header_preproc=no
16168 fi
16169
16170 rm -f conftest.err conftest.$ac_ext
16171 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16172 echo "${ECHO_T}$ac_header_preproc" >&6; }
16173
16174 # So?  What about this header?
16175 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16176   yes:no: )
16177     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16178 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16179     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16180 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16181     ac_header_preproc=yes
16182     ;;
16183   no:yes:* )
16184     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16185 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16186     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16187 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16188     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16189 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16190     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16191 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16192     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16193 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16194     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16195 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16196     ( cat <<\_ASBOX
16197 ## ------------------------------------ ##
16198 ## Report this to http://llvm.org/bugs/ ##
16199 ## ------------------------------------ ##
16200 _ASBOX
16201      ) | sed "s/^/$as_me: WARNING:     /" >&2
16202     ;;
16203 esac
16204 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16205 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16206 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16207   echo $ECHO_N "(cached) $ECHO_C" >&6
16208 else
16209   eval "$as_ac_Header=\$ac_header_preproc"
16210 fi
16211 ac_res=`eval echo '${'$as_ac_Header'}'`
16212                { echo "$as_me:$LINENO: result: $ac_res" >&5
16213 echo "${ECHO_T}$ac_res" >&6; }
16214
16215 fi
16216 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16217   cat >>confdefs.h <<_ACEOF
16218 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16219 _ACEOF
16220
16221 fi
16222
16223 done
16224
16225
16226 { echo "$as_me:$LINENO: checking __crashreporter_info__" >&5
16227 echo $ECHO_N "checking __crashreporter_info__... $ECHO_C" >&6; }
16228 cat >conftest.$ac_ext <<_ACEOF
16229 /* confdefs.h.  */
16230 _ACEOF
16231 cat confdefs.h >>conftest.$ac_ext
16232 cat >>conftest.$ac_ext <<_ACEOF
16233 /* end confdefs.h.  */
16234 extern const char *__crashreporter_info__;
16235       int main() {
16236         __crashreporter_info__ = "test";
16237         return 0;
16238       }
16239
16240 _ACEOF
16241 rm -f conftest.$ac_objext conftest$ac_exeext
16242 if { (ac_try="$ac_link"
16243 case "(($ac_try" in
16244   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16245   *) ac_try_echo=$ac_try;;
16246 esac
16247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16248   (eval "$ac_link") 2>conftest.er1
16249   ac_status=$?
16250   grep -v '^ *+' conftest.er1 >conftest.err
16251   rm -f conftest.er1
16252   cat conftest.err >&5
16253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16254   (exit $ac_status); } &&
16255          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16256   { (case "(($ac_try" in
16257   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16258   *) ac_try_echo=$ac_try;;
16259 esac
16260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16261   (eval "$ac_try") 2>&5
16262   ac_status=$?
16263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16264   (exit $ac_status); }; } &&
16265          { ac_try='test -s conftest$ac_exeext'
16266   { (case "(($ac_try" in
16267   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16268   *) ac_try_echo=$ac_try;;
16269 esac
16270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16271   (eval "$ac_try") 2>&5
16272   ac_status=$?
16273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16274   (exit $ac_status); }; }; then
16275   { echo "$as_me:$LINENO: result: yes" >&5
16276 echo "${ECHO_T}yes" >&6; }
16277
16278 cat >>confdefs.h <<\_ACEOF
16279 #define HAVE_CRASHREPORTER_INFO 1
16280 _ACEOF
16281
16282 else
16283   echo "$as_me: failed program was:" >&5
16284 sed 's/^/| /' conftest.$ac_ext >&5
16285
16286         { echo "$as_me:$LINENO: result: no" >&5
16287 echo "${ECHO_T}no" >&6; }
16288
16289 cat >>confdefs.h <<\_ACEOF
16290 #define HAVE_CRASHREPORTER_INFO 0
16291 _ACEOF
16292
16293 fi
16294
16295 rm -f core conftest.err conftest.$ac_objext \
16296       conftest$ac_exeext conftest.$ac_ext
16297
16298
16299
16300
16301   { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
16302 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
16303 if test "${ac_cv_huge_val_sanity+set}" = set; then
16304   echo $ECHO_N "(cached) $ECHO_C" >&6
16305 else
16306
16307     ac_ext=cpp
16308 ac_cpp='$CXXCPP $CPPFLAGS'
16309 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16310 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16311 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16312
16313     ac_save_CXXFLAGS=$CXXFLAGS
16314     CXXFLAGS="$CXXFLAGS -pedantic"
16315     if test "$cross_compiling" = yes; then
16316   ac_cv_huge_val_sanity=yes
16317 else
16318   cat >conftest.$ac_ext <<_ACEOF
16319 /* confdefs.h.  */
16320 _ACEOF
16321 cat confdefs.h >>conftest.$ac_ext
16322 cat >>conftest.$ac_ext <<_ACEOF
16323 /* end confdefs.h.  */
16324 #include <math.h>
16325 int
16326 main ()
16327 {
16328 double x = HUGE_VAL; return x != x;
16329   ;
16330   return 0;
16331 }
16332 _ACEOF
16333 rm -f conftest$ac_exeext
16334 if { (ac_try="$ac_link"
16335 case "(($ac_try" in
16336   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16337   *) ac_try_echo=$ac_try;;
16338 esac
16339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16340   (eval "$ac_link") 2>&5
16341   ac_status=$?
16342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16343   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16344   { (case "(($ac_try" in
16345   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16346   *) ac_try_echo=$ac_try;;
16347 esac
16348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16349   (eval "$ac_try") 2>&5
16350   ac_status=$?
16351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16352   (exit $ac_status); }; }; then
16353   ac_cv_huge_val_sanity=yes
16354 else
16355   echo "$as_me: program exited with status $ac_status" >&5
16356 echo "$as_me: failed program was:" >&5
16357 sed 's/^/| /' conftest.$ac_ext >&5
16358
16359 ( exit $ac_status )
16360 ac_cv_huge_val_sanity=no
16361 fi
16362 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16363 fi
16364
16365
16366     CXXFLAGS=$ac_save_CXXFLAGS
16367     ac_ext=c
16368 ac_cpp='$CPP $CPPFLAGS'
16369 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16370 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16371 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16372
16373
16374 fi
16375 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
16376 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
16377   HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
16378
16379
16380 { echo "$as_me:$LINENO: checking for pid_t" >&5
16381 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
16382 if test "${ac_cv_type_pid_t+set}" = set; then
16383   echo $ECHO_N "(cached) $ECHO_C" >&6
16384 else
16385   cat >conftest.$ac_ext <<_ACEOF
16386 /* confdefs.h.  */
16387 _ACEOF
16388 cat confdefs.h >>conftest.$ac_ext
16389 cat >>conftest.$ac_ext <<_ACEOF
16390 /* end confdefs.h.  */
16391 $ac_includes_default
16392 typedef pid_t ac__type_new_;
16393 int
16394 main ()
16395 {
16396 if ((ac__type_new_ *) 0)
16397   return 0;
16398 if (sizeof (ac__type_new_))
16399   return 0;
16400   ;
16401   return 0;
16402 }
16403 _ACEOF
16404 rm -f conftest.$ac_objext
16405 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
16412   ac_status=$?
16413   grep -v '^ *+' conftest.er1 >conftest.err
16414   rm -f conftest.er1
16415   cat conftest.err >&5
16416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16417   (exit $ac_status); } &&
16418          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16419   { (case "(($ac_try" in
16420   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16421   *) ac_try_echo=$ac_try;;
16422 esac
16423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16424   (eval "$ac_try") 2>&5
16425   ac_status=$?
16426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16427   (exit $ac_status); }; } &&
16428          { ac_try='test -s conftest.$ac_objext'
16429   { (case "(($ac_try" in
16430   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16431   *) ac_try_echo=$ac_try;;
16432 esac
16433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16434   (eval "$ac_try") 2>&5
16435   ac_status=$?
16436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16437   (exit $ac_status); }; }; then
16438   ac_cv_type_pid_t=yes
16439 else
16440   echo "$as_me: failed program was:" >&5
16441 sed 's/^/| /' conftest.$ac_ext >&5
16442
16443         ac_cv_type_pid_t=no
16444 fi
16445
16446 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16447 fi
16448 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
16449 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
16450 if test $ac_cv_type_pid_t = yes; then
16451   :
16452 else
16453
16454 cat >>confdefs.h <<_ACEOF
16455 #define pid_t int
16456 _ACEOF
16457
16458 fi
16459
16460 { echo "$as_me:$LINENO: checking for size_t" >&5
16461 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
16462 if test "${ac_cv_type_size_t+set}" = set; then
16463   echo $ECHO_N "(cached) $ECHO_C" >&6
16464 else
16465   cat >conftest.$ac_ext <<_ACEOF
16466 /* confdefs.h.  */
16467 _ACEOF
16468 cat confdefs.h >>conftest.$ac_ext
16469 cat >>conftest.$ac_ext <<_ACEOF
16470 /* end confdefs.h.  */
16471 $ac_includes_default
16472 typedef size_t ac__type_new_;
16473 int
16474 main ()
16475 {
16476 if ((ac__type_new_ *) 0)
16477   return 0;
16478 if (sizeof (ac__type_new_))
16479   return 0;
16480   ;
16481   return 0;
16482 }
16483 _ACEOF
16484 rm -f conftest.$ac_objext
16485 if { (ac_try="$ac_compile"
16486 case "(($ac_try" in
16487   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16488   *) ac_try_echo=$ac_try;;
16489 esac
16490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16491   (eval "$ac_compile") 2>conftest.er1
16492   ac_status=$?
16493   grep -v '^ *+' conftest.er1 >conftest.err
16494   rm -f conftest.er1
16495   cat conftest.err >&5
16496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16497   (exit $ac_status); } &&
16498          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16499   { (case "(($ac_try" in
16500   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16501   *) ac_try_echo=$ac_try;;
16502 esac
16503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16504   (eval "$ac_try") 2>&5
16505   ac_status=$?
16506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16507   (exit $ac_status); }; } &&
16508          { ac_try='test -s conftest.$ac_objext'
16509   { (case "(($ac_try" in
16510   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16511   *) ac_try_echo=$ac_try;;
16512 esac
16513 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16514   (eval "$ac_try") 2>&5
16515   ac_status=$?
16516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16517   (exit $ac_status); }; }; then
16518   ac_cv_type_size_t=yes
16519 else
16520   echo "$as_me: failed program was:" >&5
16521 sed 's/^/| /' conftest.$ac_ext >&5
16522
16523         ac_cv_type_size_t=no
16524 fi
16525
16526 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16527 fi
16528 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
16529 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
16530 if test $ac_cv_type_size_t = yes; then
16531   :
16532 else
16533
16534 cat >>confdefs.h <<_ACEOF
16535 #define size_t unsigned int
16536 _ACEOF
16537
16538 fi
16539
16540
16541 cat >>confdefs.h <<_ACEOF
16542 #define RETSIGTYPE void
16543 _ACEOF
16544
16545 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
16546 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
16547 if test "${ac_cv_struct_tm+set}" = set; then
16548   echo $ECHO_N "(cached) $ECHO_C" >&6
16549 else
16550   cat >conftest.$ac_ext <<_ACEOF
16551 /* confdefs.h.  */
16552 _ACEOF
16553 cat confdefs.h >>conftest.$ac_ext
16554 cat >>conftest.$ac_ext <<_ACEOF
16555 /* end confdefs.h.  */
16556 #include <sys/types.h>
16557 #include <time.h>
16558
16559 int
16560 main ()
16561 {
16562 struct tm *tp; tp->tm_sec;
16563   ;
16564   return 0;
16565 }
16566 _ACEOF
16567 rm -f conftest.$ac_objext
16568 if { (ac_try="$ac_compile"
16569 case "(($ac_try" in
16570   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16571   *) ac_try_echo=$ac_try;;
16572 esac
16573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16574   (eval "$ac_compile") 2>conftest.er1
16575   ac_status=$?
16576   grep -v '^ *+' conftest.er1 >conftest.err
16577   rm -f conftest.er1
16578   cat conftest.err >&5
16579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16580   (exit $ac_status); } &&
16581          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16582   { (case "(($ac_try" in
16583   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16584   *) ac_try_echo=$ac_try;;
16585 esac
16586 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16587   (eval "$ac_try") 2>&5
16588   ac_status=$?
16589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16590   (exit $ac_status); }; } &&
16591          { ac_try='test -s conftest.$ac_objext'
16592   { (case "(($ac_try" in
16593   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16594   *) ac_try_echo=$ac_try;;
16595 esac
16596 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16597   (eval "$ac_try") 2>&5
16598   ac_status=$?
16599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16600   (exit $ac_status); }; }; then
16601   ac_cv_struct_tm=time.h
16602 else
16603   echo "$as_me: failed program was:" >&5
16604 sed 's/^/| /' conftest.$ac_ext >&5
16605
16606         ac_cv_struct_tm=sys/time.h
16607 fi
16608
16609 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16610 fi
16611 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
16612 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
16613 if test $ac_cv_struct_tm = sys/time.h; then
16614
16615 cat >>confdefs.h <<\_ACEOF
16616 #define TM_IN_SYS_TIME 1
16617 _ACEOF
16618
16619 fi
16620
16621 { echo "$as_me:$LINENO: checking for int64_t" >&5
16622 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
16623 if test "${ac_cv_type_int64_t+set}" = set; then
16624   echo $ECHO_N "(cached) $ECHO_C" >&6
16625 else
16626   cat >conftest.$ac_ext <<_ACEOF
16627 /* confdefs.h.  */
16628 _ACEOF
16629 cat confdefs.h >>conftest.$ac_ext
16630 cat >>conftest.$ac_ext <<_ACEOF
16631 /* end confdefs.h.  */
16632 $ac_includes_default
16633 typedef int64_t ac__type_new_;
16634 int
16635 main ()
16636 {
16637 if ((ac__type_new_ *) 0)
16638   return 0;
16639 if (sizeof (ac__type_new_))
16640   return 0;
16641   ;
16642   return 0;
16643 }
16644 _ACEOF
16645 rm -f conftest.$ac_objext
16646 if { (ac_try="$ac_compile"
16647 case "(($ac_try" in
16648   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16649   *) ac_try_echo=$ac_try;;
16650 esac
16651 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16652   (eval "$ac_compile") 2>conftest.er1
16653   ac_status=$?
16654   grep -v '^ *+' conftest.er1 >conftest.err
16655   rm -f conftest.er1
16656   cat conftest.err >&5
16657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16658   (exit $ac_status); } &&
16659          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16660   { (case "(($ac_try" in
16661   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16662   *) ac_try_echo=$ac_try;;
16663 esac
16664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16665   (eval "$ac_try") 2>&5
16666   ac_status=$?
16667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16668   (exit $ac_status); }; } &&
16669          { ac_try='test -s conftest.$ac_objext'
16670   { (case "(($ac_try" in
16671   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16672   *) ac_try_echo=$ac_try;;
16673 esac
16674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16675   (eval "$ac_try") 2>&5
16676   ac_status=$?
16677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16678   (exit $ac_status); }; }; then
16679   ac_cv_type_int64_t=yes
16680 else
16681   echo "$as_me: failed program was:" >&5
16682 sed 's/^/| /' conftest.$ac_ext >&5
16683
16684         ac_cv_type_int64_t=no
16685 fi
16686
16687 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16688 fi
16689 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
16690 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
16691 if test $ac_cv_type_int64_t = yes; then
16692
16693 cat >>confdefs.h <<_ACEOF
16694 #define HAVE_INT64_T 1
16695 _ACEOF
16696
16697
16698 else
16699   { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
16700 echo "$as_me: error: Type int64_t required but not found" >&2;}
16701    { (exit 1); exit 1; }; }
16702 fi
16703
16704 { echo "$as_me:$LINENO: checking for uint64_t" >&5
16705 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
16706 if test "${ac_cv_type_uint64_t+set}" = set; then
16707   echo $ECHO_N "(cached) $ECHO_C" >&6
16708 else
16709   cat >conftest.$ac_ext <<_ACEOF
16710 /* confdefs.h.  */
16711 _ACEOF
16712 cat confdefs.h >>conftest.$ac_ext
16713 cat >>conftest.$ac_ext <<_ACEOF
16714 /* end confdefs.h.  */
16715 $ac_includes_default
16716 typedef uint64_t ac__type_new_;
16717 int
16718 main ()
16719 {
16720 if ((ac__type_new_ *) 0)
16721   return 0;
16722 if (sizeof (ac__type_new_))
16723   return 0;
16724   ;
16725   return 0;
16726 }
16727 _ACEOF
16728 rm -f conftest.$ac_objext
16729 if { (ac_try="$ac_compile"
16730 case "(($ac_try" in
16731   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16732   *) ac_try_echo=$ac_try;;
16733 esac
16734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16735   (eval "$ac_compile") 2>conftest.er1
16736   ac_status=$?
16737   grep -v '^ *+' conftest.er1 >conftest.err
16738   rm -f conftest.er1
16739   cat conftest.err >&5
16740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16741   (exit $ac_status); } &&
16742          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16743   { (case "(($ac_try" in
16744   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16745   *) ac_try_echo=$ac_try;;
16746 esac
16747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16748   (eval "$ac_try") 2>&5
16749   ac_status=$?
16750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16751   (exit $ac_status); }; } &&
16752          { ac_try='test -s conftest.$ac_objext'
16753   { (case "(($ac_try" in
16754   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16755   *) ac_try_echo=$ac_try;;
16756 esac
16757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16758   (eval "$ac_try") 2>&5
16759   ac_status=$?
16760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16761   (exit $ac_status); }; }; then
16762   ac_cv_type_uint64_t=yes
16763 else
16764   echo "$as_me: failed program was:" >&5
16765 sed 's/^/| /' conftest.$ac_ext >&5
16766
16767         ac_cv_type_uint64_t=no
16768 fi
16769
16770 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16771 fi
16772 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
16773 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
16774 if test $ac_cv_type_uint64_t = yes; then
16775
16776 cat >>confdefs.h <<_ACEOF
16777 #define HAVE_UINT64_T 1
16778 _ACEOF
16779
16780
16781 else
16782   { echo "$as_me:$LINENO: checking for u_int64_t" >&5
16783 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
16784 if test "${ac_cv_type_u_int64_t+set}" = set; then
16785   echo $ECHO_N "(cached) $ECHO_C" >&6
16786 else
16787   cat >conftest.$ac_ext <<_ACEOF
16788 /* confdefs.h.  */
16789 _ACEOF
16790 cat confdefs.h >>conftest.$ac_ext
16791 cat >>conftest.$ac_ext <<_ACEOF
16792 /* end confdefs.h.  */
16793 $ac_includes_default
16794 typedef u_int64_t ac__type_new_;
16795 int
16796 main ()
16797 {
16798 if ((ac__type_new_ *) 0)
16799   return 0;
16800 if (sizeof (ac__type_new_))
16801   return 0;
16802   ;
16803   return 0;
16804 }
16805 _ACEOF
16806 rm -f conftest.$ac_objext
16807 if { (ac_try="$ac_compile"
16808 case "(($ac_try" in
16809   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16810   *) ac_try_echo=$ac_try;;
16811 esac
16812 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16813   (eval "$ac_compile") 2>conftest.er1
16814   ac_status=$?
16815   grep -v '^ *+' conftest.er1 >conftest.err
16816   rm -f conftest.er1
16817   cat conftest.err >&5
16818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16819   (exit $ac_status); } &&
16820          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16821   { (case "(($ac_try" in
16822   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16823   *) ac_try_echo=$ac_try;;
16824 esac
16825 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16826   (eval "$ac_try") 2>&5
16827   ac_status=$?
16828   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16829   (exit $ac_status); }; } &&
16830          { ac_try='test -s conftest.$ac_objext'
16831   { (case "(($ac_try" in
16832   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16833   *) ac_try_echo=$ac_try;;
16834 esac
16835 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16836   (eval "$ac_try") 2>&5
16837   ac_status=$?
16838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16839   (exit $ac_status); }; }; then
16840   ac_cv_type_u_int64_t=yes
16841 else
16842   echo "$as_me: failed program was:" >&5
16843 sed 's/^/| /' conftest.$ac_ext >&5
16844
16845         ac_cv_type_u_int64_t=no
16846 fi
16847
16848 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16849 fi
16850 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
16851 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
16852 if test $ac_cv_type_u_int64_t = yes; then
16853
16854 cat >>confdefs.h <<_ACEOF
16855 #define HAVE_U_INT64_T 1
16856 _ACEOF
16857
16858
16859 else
16860   { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
16861 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
16862    { (exit 1); exit 1; }; }
16863 fi
16864
16865 fi
16866
16867
16868
16869
16870
16871
16872
16873
16874
16875
16876 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
16877 do
16878 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16879 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16880 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16881 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16882   echo $ECHO_N "(cached) $ECHO_C" >&6
16883 else
16884   cat >conftest.$ac_ext <<_ACEOF
16885 /* confdefs.h.  */
16886 _ACEOF
16887 cat confdefs.h >>conftest.$ac_ext
16888 cat >>conftest.$ac_ext <<_ACEOF
16889 /* end confdefs.h.  */
16890 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16891    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16892 #define $ac_func innocuous_$ac_func
16893
16894 /* System header to define __stub macros and hopefully few prototypes,
16895     which can conflict with char $ac_func (); below.
16896     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16897     <limits.h> exists even on freestanding compilers.  */
16898
16899 #ifdef __STDC__
16900 # include <limits.h>
16901 #else
16902 # include <assert.h>
16903 #endif
16904
16905 #undef $ac_func
16906
16907 /* Override any GCC internal prototype to avoid an error.
16908    Use char because int might match the return type of a GCC
16909    builtin and then its argument prototype would still apply.  */
16910 #ifdef __cplusplus
16911 extern "C"
16912 #endif
16913 char $ac_func ();
16914 /* The GNU C library defines this for functions which it implements
16915     to always fail with ENOSYS.  Some functions are actually named
16916     something starting with __ and the normal name is an alias.  */
16917 #if defined __stub_$ac_func || defined __stub___$ac_func
16918 choke me
16919 #endif
16920
16921 int
16922 main ()
16923 {
16924 return $ac_func ();
16925   ;
16926   return 0;
16927 }
16928 _ACEOF
16929 rm -f conftest.$ac_objext conftest$ac_exeext
16930 if { (ac_try="$ac_link"
16931 case "(($ac_try" in
16932   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16933   *) ac_try_echo=$ac_try;;
16934 esac
16935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16936   (eval "$ac_link") 2>conftest.er1
16937   ac_status=$?
16938   grep -v '^ *+' conftest.er1 >conftest.err
16939   rm -f conftest.er1
16940   cat conftest.err >&5
16941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16942   (exit $ac_status); } &&
16943          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16944   { (case "(($ac_try" in
16945   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16946   *) ac_try_echo=$ac_try;;
16947 esac
16948 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16949   (eval "$ac_try") 2>&5
16950   ac_status=$?
16951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16952   (exit $ac_status); }; } &&
16953          { ac_try='test -s conftest$ac_exeext'
16954   { (case "(($ac_try" in
16955   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16956   *) ac_try_echo=$ac_try;;
16957 esac
16958 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16959   (eval "$ac_try") 2>&5
16960   ac_status=$?
16961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16962   (exit $ac_status); }; }; then
16963   eval "$as_ac_var=yes"
16964 else
16965   echo "$as_me: failed program was:" >&5
16966 sed 's/^/| /' conftest.$ac_ext >&5
16967
16968         eval "$as_ac_var=no"
16969 fi
16970
16971 rm -f core conftest.err conftest.$ac_objext \
16972       conftest$ac_exeext conftest.$ac_ext
16973 fi
16974 ac_res=`eval echo '${'$as_ac_var'}'`
16975                { echo "$as_me:$LINENO: result: $ac_res" >&5
16976 echo "${ECHO_T}$ac_res" >&6; }
16977 if test `eval echo '${'$as_ac_var'}'` = yes; then
16978   cat >>confdefs.h <<_ACEOF
16979 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16980 _ACEOF
16981
16982 fi
16983 done
16984
16985
16986
16987
16988
16989 for ac_func in powf fmodf strtof round
16990 do
16991 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16992 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16993 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16994 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16995   echo $ECHO_N "(cached) $ECHO_C" >&6
16996 else
16997   cat >conftest.$ac_ext <<_ACEOF
16998 /* confdefs.h.  */
16999 _ACEOF
17000 cat confdefs.h >>conftest.$ac_ext
17001 cat >>conftest.$ac_ext <<_ACEOF
17002 /* end confdefs.h.  */
17003 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17004    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17005 #define $ac_func innocuous_$ac_func
17006
17007 /* System header to define __stub macros and hopefully few prototypes,
17008     which can conflict with char $ac_func (); below.
17009     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17010     <limits.h> exists even on freestanding compilers.  */
17011
17012 #ifdef __STDC__
17013 # include <limits.h>
17014 #else
17015 # include <assert.h>
17016 #endif
17017
17018 #undef $ac_func
17019
17020 /* Override any GCC internal prototype to avoid an error.
17021    Use char because int might match the return type of a GCC
17022    builtin and then its argument prototype would still apply.  */
17023 #ifdef __cplusplus
17024 extern "C"
17025 #endif
17026 char $ac_func ();
17027 /* The GNU C library defines this for functions which it implements
17028     to always fail with ENOSYS.  Some functions are actually named
17029     something starting with __ and the normal name is an alias.  */
17030 #if defined __stub_$ac_func || defined __stub___$ac_func
17031 choke me
17032 #endif
17033
17034 int
17035 main ()
17036 {
17037 return $ac_func ();
17038   ;
17039   return 0;
17040 }
17041 _ACEOF
17042 rm -f conftest.$ac_objext conftest$ac_exeext
17043 if { (ac_try="$ac_link"
17044 case "(($ac_try" in
17045   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17046   *) ac_try_echo=$ac_try;;
17047 esac
17048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17049   (eval "$ac_link") 2>conftest.er1
17050   ac_status=$?
17051   grep -v '^ *+' conftest.er1 >conftest.err
17052   rm -f conftest.er1
17053   cat conftest.err >&5
17054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17055   (exit $ac_status); } &&
17056          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17057   { (case "(($ac_try" in
17058   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17059   *) ac_try_echo=$ac_try;;
17060 esac
17061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17062   (eval "$ac_try") 2>&5
17063   ac_status=$?
17064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17065   (exit $ac_status); }; } &&
17066          { ac_try='test -s conftest$ac_exeext'
17067   { (case "(($ac_try" in
17068   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17069   *) ac_try_echo=$ac_try;;
17070 esac
17071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17072   (eval "$ac_try") 2>&5
17073   ac_status=$?
17074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17075   (exit $ac_status); }; }; then
17076   eval "$as_ac_var=yes"
17077 else
17078   echo "$as_me: failed program was:" >&5
17079 sed 's/^/| /' conftest.$ac_ext >&5
17080
17081         eval "$as_ac_var=no"
17082 fi
17083
17084 rm -f core conftest.err conftest.$ac_objext \
17085       conftest$ac_exeext conftest.$ac_ext
17086 fi
17087 ac_res=`eval echo '${'$as_ac_var'}'`
17088                { echo "$as_me:$LINENO: result: $ac_res" >&5
17089 echo "${ECHO_T}$ac_res" >&6; }
17090 if test `eval echo '${'$as_ac_var'}'` = yes; then
17091   cat >>confdefs.h <<_ACEOF
17092 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17093 _ACEOF
17094
17095 fi
17096 done
17097
17098
17099
17100
17101
17102
17103 for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
17104 do
17105 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17106 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17107 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17108 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17109   echo $ECHO_N "(cached) $ECHO_C" >&6
17110 else
17111   cat >conftest.$ac_ext <<_ACEOF
17112 /* confdefs.h.  */
17113 _ACEOF
17114 cat confdefs.h >>conftest.$ac_ext
17115 cat >>conftest.$ac_ext <<_ACEOF
17116 /* end confdefs.h.  */
17117 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17118    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17119 #define $ac_func innocuous_$ac_func
17120
17121 /* System header to define __stub macros and hopefully few prototypes,
17122     which can conflict with char $ac_func (); below.
17123     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17124     <limits.h> exists even on freestanding compilers.  */
17125
17126 #ifdef __STDC__
17127 # include <limits.h>
17128 #else
17129 # include <assert.h>
17130 #endif
17131
17132 #undef $ac_func
17133
17134 /* Override any GCC internal prototype to avoid an error.
17135    Use char because int might match the return type of a GCC
17136    builtin and then its argument prototype would still apply.  */
17137 #ifdef __cplusplus
17138 extern "C"
17139 #endif
17140 char $ac_func ();
17141 /* The GNU C library defines this for functions which it implements
17142     to always fail with ENOSYS.  Some functions are actually named
17143     something starting with __ and the normal name is an alias.  */
17144 #if defined __stub_$ac_func || defined __stub___$ac_func
17145 choke me
17146 #endif
17147
17148 int
17149 main ()
17150 {
17151 return $ac_func ();
17152   ;
17153   return 0;
17154 }
17155 _ACEOF
17156 rm -f conftest.$ac_objext conftest$ac_exeext
17157 if { (ac_try="$ac_link"
17158 case "(($ac_try" in
17159   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17160   *) ac_try_echo=$ac_try;;
17161 esac
17162 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17163   (eval "$ac_link") 2>conftest.er1
17164   ac_status=$?
17165   grep -v '^ *+' conftest.er1 >conftest.err
17166   rm -f conftest.er1
17167   cat conftest.err >&5
17168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17169   (exit $ac_status); } &&
17170          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17171   { (case "(($ac_try" in
17172   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17173   *) ac_try_echo=$ac_try;;
17174 esac
17175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17176   (eval "$ac_try") 2>&5
17177   ac_status=$?
17178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17179   (exit $ac_status); }; } &&
17180          { ac_try='test -s conftest$ac_exeext'
17181   { (case "(($ac_try" in
17182   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17183   *) ac_try_echo=$ac_try;;
17184 esac
17185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17186   (eval "$ac_try") 2>&5
17187   ac_status=$?
17188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17189   (exit $ac_status); }; }; then
17190   eval "$as_ac_var=yes"
17191 else
17192   echo "$as_me: failed program was:" >&5
17193 sed 's/^/| /' conftest.$ac_ext >&5
17194
17195         eval "$as_ac_var=no"
17196 fi
17197
17198 rm -f core conftest.err conftest.$ac_objext \
17199       conftest$ac_exeext conftest.$ac_ext
17200 fi
17201 ac_res=`eval echo '${'$as_ac_var'}'`
17202                { echo "$as_me:$LINENO: result: $ac_res" >&5
17203 echo "${ECHO_T}$ac_res" >&6; }
17204 if test `eval echo '${'$as_ac_var'}'` = yes; then
17205   cat >>confdefs.h <<_ACEOF
17206 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17207 _ACEOF
17208
17209 fi
17210 done
17211
17212
17213
17214
17215 for ac_func in isatty mkdtemp mkstemp
17216 do
17217 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17218 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17219 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17220 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17221   echo $ECHO_N "(cached) $ECHO_C" >&6
17222 else
17223   cat >conftest.$ac_ext <<_ACEOF
17224 /* confdefs.h.  */
17225 _ACEOF
17226 cat confdefs.h >>conftest.$ac_ext
17227 cat >>conftest.$ac_ext <<_ACEOF
17228 /* end confdefs.h.  */
17229 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17230    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17231 #define $ac_func innocuous_$ac_func
17232
17233 /* System header to define __stub macros and hopefully few prototypes,
17234     which can conflict with char $ac_func (); below.
17235     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17236     <limits.h> exists even on freestanding compilers.  */
17237
17238 #ifdef __STDC__
17239 # include <limits.h>
17240 #else
17241 # include <assert.h>
17242 #endif
17243
17244 #undef $ac_func
17245
17246 /* Override any GCC internal prototype to avoid an error.
17247    Use char because int might match the return type of a GCC
17248    builtin and then its argument prototype would still apply.  */
17249 #ifdef __cplusplus
17250 extern "C"
17251 #endif
17252 char $ac_func ();
17253 /* The GNU C library defines this for functions which it implements
17254     to always fail with ENOSYS.  Some functions are actually named
17255     something starting with __ and the normal name is an alias.  */
17256 #if defined __stub_$ac_func || defined __stub___$ac_func
17257 choke me
17258 #endif
17259
17260 int
17261 main ()
17262 {
17263 return $ac_func ();
17264   ;
17265   return 0;
17266 }
17267 _ACEOF
17268 rm -f conftest.$ac_objext conftest$ac_exeext
17269 if { (ac_try="$ac_link"
17270 case "(($ac_try" in
17271   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17272   *) ac_try_echo=$ac_try;;
17273 esac
17274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17275   (eval "$ac_link") 2>conftest.er1
17276   ac_status=$?
17277   grep -v '^ *+' conftest.er1 >conftest.err
17278   rm -f conftest.er1
17279   cat conftest.err >&5
17280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17281   (exit $ac_status); } &&
17282          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17283   { (case "(($ac_try" in
17284   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17285   *) ac_try_echo=$ac_try;;
17286 esac
17287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17288   (eval "$ac_try") 2>&5
17289   ac_status=$?
17290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17291   (exit $ac_status); }; } &&
17292          { ac_try='test -s conftest$ac_exeext'
17293   { (case "(($ac_try" in
17294   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17295   *) ac_try_echo=$ac_try;;
17296 esac
17297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17298   (eval "$ac_try") 2>&5
17299   ac_status=$?
17300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17301   (exit $ac_status); }; }; then
17302   eval "$as_ac_var=yes"
17303 else
17304   echo "$as_me: failed program was:" >&5
17305 sed 's/^/| /' conftest.$ac_ext >&5
17306
17307         eval "$as_ac_var=no"
17308 fi
17309
17310 rm -f core conftest.err conftest.$ac_objext \
17311       conftest$ac_exeext conftest.$ac_ext
17312 fi
17313 ac_res=`eval echo '${'$as_ac_var'}'`
17314                { echo "$as_me:$LINENO: result: $ac_res" >&5
17315 echo "${ECHO_T}$ac_res" >&6; }
17316 if test `eval echo '${'$as_ac_var'}'` = yes; then
17317   cat >>confdefs.h <<_ACEOF
17318 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17319 _ACEOF
17320
17321 fi
17322 done
17323
17324
17325
17326
17327
17328
17329
17330
17331 for ac_func in mktemp posix_spawn pread realpath sbrk setrlimit strdup
17332 do
17333 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17334 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17335 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17336 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17337   echo $ECHO_N "(cached) $ECHO_C" >&6
17338 else
17339   cat >conftest.$ac_ext <<_ACEOF
17340 /* confdefs.h.  */
17341 _ACEOF
17342 cat confdefs.h >>conftest.$ac_ext
17343 cat >>conftest.$ac_ext <<_ACEOF
17344 /* end confdefs.h.  */
17345 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17346    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17347 #define $ac_func innocuous_$ac_func
17348
17349 /* System header to define __stub macros and hopefully few prototypes,
17350     which can conflict with char $ac_func (); below.
17351     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17352     <limits.h> exists even on freestanding compilers.  */
17353
17354 #ifdef __STDC__
17355 # include <limits.h>
17356 #else
17357 # include <assert.h>
17358 #endif
17359
17360 #undef $ac_func
17361
17362 /* Override any GCC internal prototype to avoid an error.
17363    Use char because int might match the return type of a GCC
17364    builtin and then its argument prototype would still apply.  */
17365 #ifdef __cplusplus
17366 extern "C"
17367 #endif
17368 char $ac_func ();
17369 /* The GNU C library defines this for functions which it implements
17370     to always fail with ENOSYS.  Some functions are actually named
17371     something starting with __ and the normal name is an alias.  */
17372 #if defined __stub_$ac_func || defined __stub___$ac_func
17373 choke me
17374 #endif
17375
17376 int
17377 main ()
17378 {
17379 return $ac_func ();
17380   ;
17381   return 0;
17382 }
17383 _ACEOF
17384 rm -f conftest.$ac_objext conftest$ac_exeext
17385 if { (ac_try="$ac_link"
17386 case "(($ac_try" in
17387   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17388   *) ac_try_echo=$ac_try;;
17389 esac
17390 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17391   (eval "$ac_link") 2>conftest.er1
17392   ac_status=$?
17393   grep -v '^ *+' conftest.er1 >conftest.err
17394   rm -f conftest.er1
17395   cat conftest.err >&5
17396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17397   (exit $ac_status); } &&
17398          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17399   { (case "(($ac_try" in
17400   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17401   *) ac_try_echo=$ac_try;;
17402 esac
17403 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17404   (eval "$ac_try") 2>&5
17405   ac_status=$?
17406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17407   (exit $ac_status); }; } &&
17408          { ac_try='test -s conftest$ac_exeext'
17409   { (case "(($ac_try" in
17410   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17411   *) ac_try_echo=$ac_try;;
17412 esac
17413 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17414   (eval "$ac_try") 2>&5
17415   ac_status=$?
17416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17417   (exit $ac_status); }; }; then
17418   eval "$as_ac_var=yes"
17419 else
17420   echo "$as_me: failed program was:" >&5
17421 sed 's/^/| /' conftest.$ac_ext >&5
17422
17423         eval "$as_ac_var=no"
17424 fi
17425
17426 rm -f core conftest.err conftest.$ac_objext \
17427       conftest$ac_exeext conftest.$ac_ext
17428 fi
17429 ac_res=`eval echo '${'$as_ac_var'}'`
17430                { echo "$as_me:$LINENO: result: $ac_res" >&5
17431 echo "${ECHO_T}$ac_res" >&6; }
17432 if test `eval echo '${'$as_ac_var'}'` = yes; then
17433   cat >>confdefs.h <<_ACEOF
17434 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17435 _ACEOF
17436
17437 fi
17438 done
17439
17440
17441
17442
17443
17444 for ac_func in strerror strerror_r setenv arc4random
17445 do
17446 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17447 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17448 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17449 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17450   echo $ECHO_N "(cached) $ECHO_C" >&6
17451 else
17452   cat >conftest.$ac_ext <<_ACEOF
17453 /* confdefs.h.  */
17454 _ACEOF
17455 cat confdefs.h >>conftest.$ac_ext
17456 cat >>conftest.$ac_ext <<_ACEOF
17457 /* end confdefs.h.  */
17458 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17459    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17460 #define $ac_func innocuous_$ac_func
17461
17462 /* System header to define __stub macros and hopefully few prototypes,
17463     which can conflict with char $ac_func (); below.
17464     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17465     <limits.h> exists even on freestanding compilers.  */
17466
17467 #ifdef __STDC__
17468 # include <limits.h>
17469 #else
17470 # include <assert.h>
17471 #endif
17472
17473 #undef $ac_func
17474
17475 /* Override any GCC internal prototype to avoid an error.
17476    Use char because int might match the return type of a GCC
17477    builtin and then its argument prototype would still apply.  */
17478 #ifdef __cplusplus
17479 extern "C"
17480 #endif
17481 char $ac_func ();
17482 /* The GNU C library defines this for functions which it implements
17483     to always fail with ENOSYS.  Some functions are actually named
17484     something starting with __ and the normal name is an alias.  */
17485 #if defined __stub_$ac_func || defined __stub___$ac_func
17486 choke me
17487 #endif
17488
17489 int
17490 main ()
17491 {
17492 return $ac_func ();
17493   ;
17494   return 0;
17495 }
17496 _ACEOF
17497 rm -f conftest.$ac_objext conftest$ac_exeext
17498 if { (ac_try="$ac_link"
17499 case "(($ac_try" in
17500   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17501   *) ac_try_echo=$ac_try;;
17502 esac
17503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17504   (eval "$ac_link") 2>conftest.er1
17505   ac_status=$?
17506   grep -v '^ *+' conftest.er1 >conftest.err
17507   rm -f conftest.er1
17508   cat conftest.err >&5
17509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17510   (exit $ac_status); } &&
17511          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17512   { (case "(($ac_try" in
17513   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17514   *) ac_try_echo=$ac_try;;
17515 esac
17516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17517   (eval "$ac_try") 2>&5
17518   ac_status=$?
17519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17520   (exit $ac_status); }; } &&
17521          { ac_try='test -s conftest$ac_exeext'
17522   { (case "(($ac_try" in
17523   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17524   *) ac_try_echo=$ac_try;;
17525 esac
17526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17527   (eval "$ac_try") 2>&5
17528   ac_status=$?
17529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17530   (exit $ac_status); }; }; then
17531   eval "$as_ac_var=yes"
17532 else
17533   echo "$as_me: failed program was:" >&5
17534 sed 's/^/| /' conftest.$ac_ext >&5
17535
17536         eval "$as_ac_var=no"
17537 fi
17538
17539 rm -f core conftest.err conftest.$ac_objext \
17540       conftest$ac_exeext conftest.$ac_ext
17541 fi
17542 ac_res=`eval echo '${'$as_ac_var'}'`
17543                { echo "$as_me:$LINENO: result: $ac_res" >&5
17544 echo "${ECHO_T}$ac_res" >&6; }
17545 if test `eval echo '${'$as_ac_var'}'` = yes; then
17546   cat >>confdefs.h <<_ACEOF
17547 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17548 _ACEOF
17549
17550 fi
17551 done
17552
17553
17554
17555
17556
17557 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
17558 do
17559 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17560 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17561 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17562 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17563   echo $ECHO_N "(cached) $ECHO_C" >&6
17564 else
17565   cat >conftest.$ac_ext <<_ACEOF
17566 /* confdefs.h.  */
17567 _ACEOF
17568 cat confdefs.h >>conftest.$ac_ext
17569 cat >>conftest.$ac_ext <<_ACEOF
17570 /* end confdefs.h.  */
17571 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17572    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17573 #define $ac_func innocuous_$ac_func
17574
17575 /* System header to define __stub macros and hopefully few prototypes,
17576     which can conflict with char $ac_func (); below.
17577     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17578     <limits.h> exists even on freestanding compilers.  */
17579
17580 #ifdef __STDC__
17581 # include <limits.h>
17582 #else
17583 # include <assert.h>
17584 #endif
17585
17586 #undef $ac_func
17587
17588 /* Override any GCC internal prototype to avoid an error.
17589    Use char because int might match the return type of a GCC
17590    builtin and then its argument prototype would still apply.  */
17591 #ifdef __cplusplus
17592 extern "C"
17593 #endif
17594 char $ac_func ();
17595 /* The GNU C library defines this for functions which it implements
17596     to always fail with ENOSYS.  Some functions are actually named
17597     something starting with __ and the normal name is an alias.  */
17598 #if defined __stub_$ac_func || defined __stub___$ac_func
17599 choke me
17600 #endif
17601
17602 int
17603 main ()
17604 {
17605 return $ac_func ();
17606   ;
17607   return 0;
17608 }
17609 _ACEOF
17610 rm -f conftest.$ac_objext conftest$ac_exeext
17611 if { (ac_try="$ac_link"
17612 case "(($ac_try" in
17613   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17614   *) ac_try_echo=$ac_try;;
17615 esac
17616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17617   (eval "$ac_link") 2>conftest.er1
17618   ac_status=$?
17619   grep -v '^ *+' conftest.er1 >conftest.err
17620   rm -f conftest.er1
17621   cat conftest.err >&5
17622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17623   (exit $ac_status); } &&
17624          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17625   { (case "(($ac_try" in
17626   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17627   *) ac_try_echo=$ac_try;;
17628 esac
17629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17630   (eval "$ac_try") 2>&5
17631   ac_status=$?
17632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17633   (exit $ac_status); }; } &&
17634          { ac_try='test -s conftest$ac_exeext'
17635   { (case "(($ac_try" in
17636   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17637   *) ac_try_echo=$ac_try;;
17638 esac
17639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17640   (eval "$ac_try") 2>&5
17641   ac_status=$?
17642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17643   (exit $ac_status); }; }; then
17644   eval "$as_ac_var=yes"
17645 else
17646   echo "$as_me: failed program was:" >&5
17647 sed 's/^/| /' conftest.$ac_ext >&5
17648
17649         eval "$as_ac_var=no"
17650 fi
17651
17652 rm -f core conftest.err conftest.$ac_objext \
17653       conftest$ac_exeext conftest.$ac_ext
17654 fi
17655 ac_res=`eval echo '${'$as_ac_var'}'`
17656                { echo "$as_me:$LINENO: result: $ac_res" >&5
17657 echo "${ECHO_T}$ac_res" >&6; }
17658 if test `eval echo '${'$as_ac_var'}'` = yes; then
17659   cat >>confdefs.h <<_ACEOF
17660 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17661 _ACEOF
17662
17663 fi
17664 done
17665
17666
17667
17668
17669
17670
17671 for ac_func in setjmp longjmp sigsetjmp siglongjmp writev
17672 do
17673 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17674 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17675 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17676 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17677   echo $ECHO_N "(cached) $ECHO_C" >&6
17678 else
17679   cat >conftest.$ac_ext <<_ACEOF
17680 /* confdefs.h.  */
17681 _ACEOF
17682 cat confdefs.h >>conftest.$ac_ext
17683 cat >>conftest.$ac_ext <<_ACEOF
17684 /* end confdefs.h.  */
17685 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17686    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17687 #define $ac_func innocuous_$ac_func
17688
17689 /* System header to define __stub macros and hopefully few prototypes,
17690     which can conflict with char $ac_func (); below.
17691     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17692     <limits.h> exists even on freestanding compilers.  */
17693
17694 #ifdef __STDC__
17695 # include <limits.h>
17696 #else
17697 # include <assert.h>
17698 #endif
17699
17700 #undef $ac_func
17701
17702 /* Override any GCC internal prototype to avoid an error.
17703    Use char because int might match the return type of a GCC
17704    builtin and then its argument prototype would still apply.  */
17705 #ifdef __cplusplus
17706 extern "C"
17707 #endif
17708 char $ac_func ();
17709 /* The GNU C library defines this for functions which it implements
17710     to always fail with ENOSYS.  Some functions are actually named
17711     something starting with __ and the normal name is an alias.  */
17712 #if defined __stub_$ac_func || defined __stub___$ac_func
17713 choke me
17714 #endif
17715
17716 int
17717 main ()
17718 {
17719 return $ac_func ();
17720   ;
17721   return 0;
17722 }
17723 _ACEOF
17724 rm -f conftest.$ac_objext conftest$ac_exeext
17725 if { (ac_try="$ac_link"
17726 case "(($ac_try" in
17727   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17728   *) ac_try_echo=$ac_try;;
17729 esac
17730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17731   (eval "$ac_link") 2>conftest.er1
17732   ac_status=$?
17733   grep -v '^ *+' conftest.er1 >conftest.err
17734   rm -f conftest.er1
17735   cat conftest.err >&5
17736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17737   (exit $ac_status); } &&
17738          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17739   { (case "(($ac_try" in
17740   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17741   *) ac_try_echo=$ac_try;;
17742 esac
17743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17744   (eval "$ac_try") 2>&5
17745   ac_status=$?
17746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17747   (exit $ac_status); }; } &&
17748          { ac_try='test -s conftest$ac_exeext'
17749   { (case "(($ac_try" in
17750   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17751   *) ac_try_echo=$ac_try;;
17752 esac
17753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17754   (eval "$ac_try") 2>&5
17755   ac_status=$?
17756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17757   (exit $ac_status); }; }; then
17758   eval "$as_ac_var=yes"
17759 else
17760   echo "$as_me: failed program was:" >&5
17761 sed 's/^/| /' conftest.$ac_ext >&5
17762
17763         eval "$as_ac_var=no"
17764 fi
17765
17766 rm -f core conftest.err conftest.$ac_objext \
17767       conftest$ac_exeext conftest.$ac_ext
17768 fi
17769 ac_res=`eval echo '${'$as_ac_var'}'`
17770                { echo "$as_me:$LINENO: result: $ac_res" >&5
17771 echo "${ECHO_T}$ac_res" >&6; }
17772 if test `eval echo '${'$as_ac_var'}'` = yes; then
17773   cat >>confdefs.h <<_ACEOF
17774 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17775 _ACEOF
17776
17777 fi
17778 done
17779
17780 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
17781 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
17782 if test "${llvm_cv_c_printf_a+set}" = set; then
17783   echo $ECHO_N "(cached) $ECHO_C" >&6
17784 else
17785   ac_ext=c
17786 ac_cpp='$CPP $CPPFLAGS'
17787 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17788 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17789 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17790
17791  if test "$cross_compiling" = yes; then
17792   llvmac_cv_c_printf_a=no
17793 else
17794   cat >conftest.$ac_ext <<_ACEOF
17795
17796   /* confdefs.h.  */
17797 _ACEOF
17798 cat confdefs.h >>conftest.$ac_ext
17799 cat >>conftest.$ac_ext <<_ACEOF
17800 /* end confdefs.h.  */
17801
17802 #include <stdio.h>
17803 #include <stdlib.h>
17804
17805 int
17806 main ()
17807 {
17808
17809 volatile double A, B;
17810 char Buffer[100];
17811 A = 1;
17812 A /= 10.0;
17813 sprintf(Buffer, "%a", A);
17814 B = atof(Buffer);
17815 if (A != B)
17816   return (1);
17817 if (A != 0x1.999999999999ap-4)
17818   return (1);
17819 return (0);
17820   ;
17821   return 0;
17822 }
17823 _ACEOF
17824 rm -f conftest$ac_exeext
17825 if { (ac_try="$ac_link"
17826 case "(($ac_try" in
17827   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17828   *) ac_try_echo=$ac_try;;
17829 esac
17830 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17831   (eval "$ac_link") 2>&5
17832   ac_status=$?
17833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17834   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17835   { (case "(($ac_try" in
17836   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17837   *) ac_try_echo=$ac_try;;
17838 esac
17839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17840   (eval "$ac_try") 2>&5
17841   ac_status=$?
17842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17843   (exit $ac_status); }; }; then
17844   llvm_cv_c_printf_a=yes
17845 else
17846   echo "$as_me: program exited with status $ac_status" >&5
17847 echo "$as_me: failed program was:" >&5
17848 sed 's/^/| /' conftest.$ac_ext >&5
17849
17850 ( exit $ac_status )
17851 llvmac_cv_c_printf_a=no
17852 fi
17853 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17854 fi
17855
17856
17857  ac_ext=c
17858 ac_cpp='$CPP $CPPFLAGS'
17859 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17860 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17861 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17862
17863 fi
17864 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
17865 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
17866  if test "$llvm_cv_c_printf_a" = "yes"; then
17867
17868 cat >>confdefs.h <<\_ACEOF
17869 #define HAVE_PRINTF_A 1
17870 _ACEOF
17871
17872  fi
17873
17874
17875 { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
17876 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
17877 if test "${ac_cv_func_rand48+set}" = set; then
17878   echo $ECHO_N "(cached) $ECHO_C" >&6
17879 else
17880   ac_ext=cpp
17881 ac_cpp='$CXXCPP $CPPFLAGS'
17882 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17883 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17884 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17885
17886    cat >conftest.$ac_ext <<_ACEOF
17887 /* confdefs.h.  */
17888 _ACEOF
17889 cat confdefs.h >>conftest.$ac_ext
17890 cat >>conftest.$ac_ext <<_ACEOF
17891 /* end confdefs.h.  */
17892 #include <stdlib.h>
17893 int
17894 main ()
17895 {
17896 srand48(0);lrand48();drand48();
17897   ;
17898   return 0;
17899 }
17900 _ACEOF
17901 rm -f conftest.$ac_objext
17902 if { (ac_try="$ac_compile"
17903 case "(($ac_try" in
17904   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17905   *) ac_try_echo=$ac_try;;
17906 esac
17907 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17908   (eval "$ac_compile") 2>conftest.er1
17909   ac_status=$?
17910   grep -v '^ *+' conftest.er1 >conftest.err
17911   rm -f conftest.er1
17912   cat conftest.err >&5
17913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17914   (exit $ac_status); } &&
17915          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
17916   { (case "(($ac_try" in
17917   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17918   *) ac_try_echo=$ac_try;;
17919 esac
17920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17921   (eval "$ac_try") 2>&5
17922   ac_status=$?
17923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17924   (exit $ac_status); }; } &&
17925          { ac_try='test -s conftest.$ac_objext'
17926   { (case "(($ac_try" in
17927   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17928   *) ac_try_echo=$ac_try;;
17929 esac
17930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17931   (eval "$ac_try") 2>&5
17932   ac_status=$?
17933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17934   (exit $ac_status); }; }; then
17935   ac_cv_func_rand48=yes
17936 else
17937   echo "$as_me: failed program was:" >&5
17938 sed 's/^/| /' conftest.$ac_ext >&5
17939
17940         ac_cv_func_rand48=no
17941 fi
17942
17943 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17944   ac_ext=c
17945 ac_cpp='$CPP $CPPFLAGS'
17946 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17947 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17948 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17949
17950 fi
17951 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
17952 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
17953
17954 if test "$ac_cv_func_rand48" = "yes" ; then
17955
17956 cat >>confdefs.h <<\_ACEOF
17957 #define HAVE_RAND48 1
17958 _ACEOF
17959
17960 fi
17961
17962
17963 { echo "$as_me:$LINENO: checking whether strerror_s is declared" >&5
17964 echo $ECHO_N "checking whether strerror_s is declared... $ECHO_C" >&6; }
17965 if test "${ac_cv_have_decl_strerror_s+set}" = set; then
17966   echo $ECHO_N "(cached) $ECHO_C" >&6
17967 else
17968   cat >conftest.$ac_ext <<_ACEOF
17969 /* confdefs.h.  */
17970 _ACEOF
17971 cat confdefs.h >>conftest.$ac_ext
17972 cat >>conftest.$ac_ext <<_ACEOF
17973 /* end confdefs.h.  */
17974 $ac_includes_default
17975 int
17976 main ()
17977 {
17978 #ifndef strerror_s
17979   char *p = (char *) strerror_s;
17980   return !p;
17981 #endif
17982
17983   ;
17984   return 0;
17985 }
17986 _ACEOF
17987 rm -f conftest.$ac_objext
17988 if { (ac_try="$ac_compile"
17989 case "(($ac_try" in
17990   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17991   *) ac_try_echo=$ac_try;;
17992 esac
17993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17994   (eval "$ac_compile") 2>conftest.er1
17995   ac_status=$?
17996   grep -v '^ *+' conftest.er1 >conftest.err
17997   rm -f conftest.er1
17998   cat conftest.err >&5
17999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18000   (exit $ac_status); } &&
18001          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18002   { (case "(($ac_try" in
18003   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18004   *) ac_try_echo=$ac_try;;
18005 esac
18006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18007   (eval "$ac_try") 2>&5
18008   ac_status=$?
18009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18010   (exit $ac_status); }; } &&
18011          { ac_try='test -s conftest.$ac_objext'
18012   { (case "(($ac_try" in
18013   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18014   *) ac_try_echo=$ac_try;;
18015 esac
18016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18017   (eval "$ac_try") 2>&5
18018   ac_status=$?
18019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18020   (exit $ac_status); }; }; then
18021   ac_cv_have_decl_strerror_s=yes
18022 else
18023   echo "$as_me: failed program was:" >&5
18024 sed 's/^/| /' conftest.$ac_ext >&5
18025
18026         ac_cv_have_decl_strerror_s=no
18027 fi
18028
18029 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18030 fi
18031 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_s" >&5
18032 echo "${ECHO_T}$ac_cv_have_decl_strerror_s" >&6; }
18033 if test $ac_cv_have_decl_strerror_s = yes; then
18034
18035 cat >>confdefs.h <<_ACEOF
18036 #define HAVE_DECL_STRERROR_S 1
18037 _ACEOF
18038
18039
18040 else
18041   cat >>confdefs.h <<_ACEOF
18042 #define HAVE_DECL_STRERROR_S 0
18043 _ACEOF
18044
18045
18046 fi
18047
18048
18049
18050 if test "$llvm_cv_os_type" = "MingW" ; then
18051   { echo "$as_me:$LINENO: checking for _alloca in -lgcc" >&5
18052 echo $ECHO_N "checking for _alloca in -lgcc... $ECHO_C" >&6; }
18053 if test "${ac_cv_lib_gcc__alloca+set}" = set; then
18054   echo $ECHO_N "(cached) $ECHO_C" >&6
18055 else
18056   ac_check_lib_save_LIBS=$LIBS
18057 LIBS="-lgcc  $LIBS"
18058 cat >conftest.$ac_ext <<_ACEOF
18059 /* confdefs.h.  */
18060 _ACEOF
18061 cat confdefs.h >>conftest.$ac_ext
18062 cat >>conftest.$ac_ext <<_ACEOF
18063 /* end confdefs.h.  */
18064
18065 /* Override any GCC internal prototype to avoid an error.
18066    Use char because int might match the return type of a GCC
18067    builtin and then its argument prototype would still apply.  */
18068 #ifdef __cplusplus
18069 extern "C"
18070 #endif
18071 char _alloca ();
18072 int
18073 main ()
18074 {
18075 return _alloca ();
18076   ;
18077   return 0;
18078 }
18079 _ACEOF
18080 rm -f conftest.$ac_objext conftest$ac_exeext
18081 if { (ac_try="$ac_link"
18082 case "(($ac_try" in
18083   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18084   *) ac_try_echo=$ac_try;;
18085 esac
18086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18087   (eval "$ac_link") 2>conftest.er1
18088   ac_status=$?
18089   grep -v '^ *+' conftest.er1 >conftest.err
18090   rm -f conftest.er1
18091   cat conftest.err >&5
18092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18093   (exit $ac_status); } &&
18094          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18095   { (case "(($ac_try" in
18096   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18097   *) ac_try_echo=$ac_try;;
18098 esac
18099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18100   (eval "$ac_try") 2>&5
18101   ac_status=$?
18102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18103   (exit $ac_status); }; } &&
18104          { ac_try='test -s conftest$ac_exeext'
18105   { (case "(($ac_try" in
18106   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18107   *) ac_try_echo=$ac_try;;
18108 esac
18109 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18110   (eval "$ac_try") 2>&5
18111   ac_status=$?
18112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18113   (exit $ac_status); }; }; then
18114   ac_cv_lib_gcc__alloca=yes
18115 else
18116   echo "$as_me: failed program was:" >&5
18117 sed 's/^/| /' conftest.$ac_ext >&5
18118
18119         ac_cv_lib_gcc__alloca=no
18120 fi
18121
18122 rm -f core conftest.err conftest.$ac_objext \
18123       conftest$ac_exeext conftest.$ac_ext
18124 LIBS=$ac_check_lib_save_LIBS
18125 fi
18126 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc__alloca" >&5
18127 echo "${ECHO_T}$ac_cv_lib_gcc__alloca" >&6; }
18128 if test $ac_cv_lib_gcc__alloca = yes; then
18129
18130 cat >>confdefs.h <<\_ACEOF
18131 #define HAVE__ALLOCA 1
18132 _ACEOF
18133
18134 fi
18135
18136   { echo "$as_me:$LINENO: checking for __alloca in -lgcc" >&5
18137 echo $ECHO_N "checking for __alloca in -lgcc... $ECHO_C" >&6; }
18138 if test "${ac_cv_lib_gcc___alloca+set}" = set; then
18139   echo $ECHO_N "(cached) $ECHO_C" >&6
18140 else
18141   ac_check_lib_save_LIBS=$LIBS
18142 LIBS="-lgcc  $LIBS"
18143 cat >conftest.$ac_ext <<_ACEOF
18144 /* confdefs.h.  */
18145 _ACEOF
18146 cat confdefs.h >>conftest.$ac_ext
18147 cat >>conftest.$ac_ext <<_ACEOF
18148 /* end confdefs.h.  */
18149
18150 /* Override any GCC internal prototype to avoid an error.
18151    Use char because int might match the return type of a GCC
18152    builtin and then its argument prototype would still apply.  */
18153 #ifdef __cplusplus
18154 extern "C"
18155 #endif
18156 char __alloca ();
18157 int
18158 main ()
18159 {
18160 return __alloca ();
18161   ;
18162   return 0;
18163 }
18164 _ACEOF
18165 rm -f conftest.$ac_objext conftest$ac_exeext
18166 if { (ac_try="$ac_link"
18167 case "(($ac_try" in
18168   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18169   *) ac_try_echo=$ac_try;;
18170 esac
18171 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18172   (eval "$ac_link") 2>conftest.er1
18173   ac_status=$?
18174   grep -v '^ *+' conftest.er1 >conftest.err
18175   rm -f conftest.er1
18176   cat conftest.err >&5
18177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18178   (exit $ac_status); } &&
18179          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18180   { (case "(($ac_try" in
18181   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18182   *) ac_try_echo=$ac_try;;
18183 esac
18184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18185   (eval "$ac_try") 2>&5
18186   ac_status=$?
18187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18188   (exit $ac_status); }; } &&
18189          { ac_try='test -s conftest$ac_exeext'
18190   { (case "(($ac_try" in
18191   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18192   *) ac_try_echo=$ac_try;;
18193 esac
18194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18195   (eval "$ac_try") 2>&5
18196   ac_status=$?
18197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18198   (exit $ac_status); }; }; then
18199   ac_cv_lib_gcc___alloca=yes
18200 else
18201   echo "$as_me: failed program was:" >&5
18202 sed 's/^/| /' conftest.$ac_ext >&5
18203
18204         ac_cv_lib_gcc___alloca=no
18205 fi
18206
18207 rm -f core conftest.err conftest.$ac_objext \
18208       conftest$ac_exeext conftest.$ac_ext
18209 LIBS=$ac_check_lib_save_LIBS
18210 fi
18211 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___alloca" >&5
18212 echo "${ECHO_T}$ac_cv_lib_gcc___alloca" >&6; }
18213 if test $ac_cv_lib_gcc___alloca = yes; then
18214
18215 cat >>confdefs.h <<\_ACEOF
18216 #define HAVE___ALLOCA 1
18217 _ACEOF
18218
18219 fi
18220
18221   { echo "$as_me:$LINENO: checking for __chkstk in -lgcc" >&5
18222 echo $ECHO_N "checking for __chkstk in -lgcc... $ECHO_C" >&6; }
18223 if test "${ac_cv_lib_gcc___chkstk+set}" = set; then
18224   echo $ECHO_N "(cached) $ECHO_C" >&6
18225 else
18226   ac_check_lib_save_LIBS=$LIBS
18227 LIBS="-lgcc  $LIBS"
18228 cat >conftest.$ac_ext <<_ACEOF
18229 /* confdefs.h.  */
18230 _ACEOF
18231 cat confdefs.h >>conftest.$ac_ext
18232 cat >>conftest.$ac_ext <<_ACEOF
18233 /* end confdefs.h.  */
18234
18235 /* Override any GCC internal prototype to avoid an error.
18236    Use char because int might match the return type of a GCC
18237    builtin and then its argument prototype would still apply.  */
18238 #ifdef __cplusplus
18239 extern "C"
18240 #endif
18241 char __chkstk ();
18242 int
18243 main ()
18244 {
18245 return __chkstk ();
18246   ;
18247   return 0;
18248 }
18249 _ACEOF
18250 rm -f conftest.$ac_objext conftest$ac_exeext
18251 if { (ac_try="$ac_link"
18252 case "(($ac_try" in
18253   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18254   *) ac_try_echo=$ac_try;;
18255 esac
18256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18257   (eval "$ac_link") 2>conftest.er1
18258   ac_status=$?
18259   grep -v '^ *+' conftest.er1 >conftest.err
18260   rm -f conftest.er1
18261   cat conftest.err >&5
18262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18263   (exit $ac_status); } &&
18264          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18265   { (case "(($ac_try" in
18266   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18267   *) ac_try_echo=$ac_try;;
18268 esac
18269 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18270   (eval "$ac_try") 2>&5
18271   ac_status=$?
18272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18273   (exit $ac_status); }; } &&
18274          { ac_try='test -s conftest$ac_exeext'
18275   { (case "(($ac_try" in
18276   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18277   *) ac_try_echo=$ac_try;;
18278 esac
18279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18280   (eval "$ac_try") 2>&5
18281   ac_status=$?
18282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18283   (exit $ac_status); }; }; then
18284   ac_cv_lib_gcc___chkstk=yes
18285 else
18286   echo "$as_me: failed program was:" >&5
18287 sed 's/^/| /' conftest.$ac_ext >&5
18288
18289         ac_cv_lib_gcc___chkstk=no
18290 fi
18291
18292 rm -f core conftest.err conftest.$ac_objext \
18293       conftest$ac_exeext conftest.$ac_ext
18294 LIBS=$ac_check_lib_save_LIBS
18295 fi
18296 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___chkstk" >&5
18297 echo "${ECHO_T}$ac_cv_lib_gcc___chkstk" >&6; }
18298 if test $ac_cv_lib_gcc___chkstk = yes; then
18299
18300 cat >>confdefs.h <<\_ACEOF
18301 #define HAVE___CHKSTK 1
18302 _ACEOF
18303
18304 fi
18305
18306   { echo "$as_me:$LINENO: checking for ___chkstk in -lgcc" >&5
18307 echo $ECHO_N "checking for ___chkstk in -lgcc... $ECHO_C" >&6; }
18308 if test "${ac_cv_lib_gcc____chkstk+set}" = set; then
18309   echo $ECHO_N "(cached) $ECHO_C" >&6
18310 else
18311   ac_check_lib_save_LIBS=$LIBS
18312 LIBS="-lgcc  $LIBS"
18313 cat >conftest.$ac_ext <<_ACEOF
18314 /* confdefs.h.  */
18315 _ACEOF
18316 cat confdefs.h >>conftest.$ac_ext
18317 cat >>conftest.$ac_ext <<_ACEOF
18318 /* end confdefs.h.  */
18319
18320 /* Override any GCC internal prototype to avoid an error.
18321    Use char because int might match the return type of a GCC
18322    builtin and then its argument prototype would still apply.  */
18323 #ifdef __cplusplus
18324 extern "C"
18325 #endif
18326 char ___chkstk ();
18327 int
18328 main ()
18329 {
18330 return ___chkstk ();
18331   ;
18332   return 0;
18333 }
18334 _ACEOF
18335 rm -f conftest.$ac_objext conftest$ac_exeext
18336 if { (ac_try="$ac_link"
18337 case "(($ac_try" in
18338   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18339   *) ac_try_echo=$ac_try;;
18340 esac
18341 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18342   (eval "$ac_link") 2>conftest.er1
18343   ac_status=$?
18344   grep -v '^ *+' conftest.er1 >conftest.err
18345   rm -f conftest.er1
18346   cat conftest.err >&5
18347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18348   (exit $ac_status); } &&
18349          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18350   { (case "(($ac_try" in
18351   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18352   *) ac_try_echo=$ac_try;;
18353 esac
18354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18355   (eval "$ac_try") 2>&5
18356   ac_status=$?
18357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18358   (exit $ac_status); }; } &&
18359          { ac_try='test -s conftest$ac_exeext'
18360   { (case "(($ac_try" in
18361   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18362   *) ac_try_echo=$ac_try;;
18363 esac
18364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18365   (eval "$ac_try") 2>&5
18366   ac_status=$?
18367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18368   (exit $ac_status); }; }; then
18369   ac_cv_lib_gcc____chkstk=yes
18370 else
18371   echo "$as_me: failed program was:" >&5
18372 sed 's/^/| /' conftest.$ac_ext >&5
18373
18374         ac_cv_lib_gcc____chkstk=no
18375 fi
18376
18377 rm -f core conftest.err conftest.$ac_objext \
18378       conftest$ac_exeext conftest.$ac_ext
18379 LIBS=$ac_check_lib_save_LIBS
18380 fi
18381 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc____chkstk" >&5
18382 echo "${ECHO_T}$ac_cv_lib_gcc____chkstk" >&6; }
18383 if test $ac_cv_lib_gcc____chkstk = yes; then
18384
18385 cat >>confdefs.h <<\_ACEOF
18386 #define HAVE____CHKSTK 1
18387 _ACEOF
18388
18389 fi
18390
18391
18392   { echo "$as_me:$LINENO: checking for __ashldi3 in -lgcc" >&5
18393 echo $ECHO_N "checking for __ashldi3 in -lgcc... $ECHO_C" >&6; }
18394 if test "${ac_cv_lib_gcc___ashldi3+set}" = set; then
18395   echo $ECHO_N "(cached) $ECHO_C" >&6
18396 else
18397   ac_check_lib_save_LIBS=$LIBS
18398 LIBS="-lgcc  $LIBS"
18399 cat >conftest.$ac_ext <<_ACEOF
18400 /* confdefs.h.  */
18401 _ACEOF
18402 cat confdefs.h >>conftest.$ac_ext
18403 cat >>conftest.$ac_ext <<_ACEOF
18404 /* end confdefs.h.  */
18405
18406 /* Override any GCC internal prototype to avoid an error.
18407    Use char because int might match the return type of a GCC
18408    builtin and then its argument prototype would still apply.  */
18409 #ifdef __cplusplus
18410 extern "C"
18411 #endif
18412 char __ashldi3 ();
18413 int
18414 main ()
18415 {
18416 return __ashldi3 ();
18417   ;
18418   return 0;
18419 }
18420 _ACEOF
18421 rm -f conftest.$ac_objext conftest$ac_exeext
18422 if { (ac_try="$ac_link"
18423 case "(($ac_try" in
18424   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18425   *) ac_try_echo=$ac_try;;
18426 esac
18427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18428   (eval "$ac_link") 2>conftest.er1
18429   ac_status=$?
18430   grep -v '^ *+' conftest.er1 >conftest.err
18431   rm -f conftest.er1
18432   cat conftest.err >&5
18433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18434   (exit $ac_status); } &&
18435          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18436   { (case "(($ac_try" in
18437   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18438   *) ac_try_echo=$ac_try;;
18439 esac
18440 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18441   (eval "$ac_try") 2>&5
18442   ac_status=$?
18443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18444   (exit $ac_status); }; } &&
18445          { ac_try='test -s conftest$ac_exeext'
18446   { (case "(($ac_try" in
18447   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18448   *) ac_try_echo=$ac_try;;
18449 esac
18450 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18451   (eval "$ac_try") 2>&5
18452   ac_status=$?
18453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18454   (exit $ac_status); }; }; then
18455   ac_cv_lib_gcc___ashldi3=yes
18456 else
18457   echo "$as_me: failed program was:" >&5
18458 sed 's/^/| /' conftest.$ac_ext >&5
18459
18460         ac_cv_lib_gcc___ashldi3=no
18461 fi
18462
18463 rm -f core conftest.err conftest.$ac_objext \
18464       conftest$ac_exeext conftest.$ac_ext
18465 LIBS=$ac_check_lib_save_LIBS
18466 fi
18467 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashldi3" >&5
18468 echo "${ECHO_T}$ac_cv_lib_gcc___ashldi3" >&6; }
18469 if test $ac_cv_lib_gcc___ashldi3 = yes; then
18470
18471 cat >>confdefs.h <<\_ACEOF
18472 #define HAVE___ASHLDI3 1
18473 _ACEOF
18474
18475 fi
18476
18477   { echo "$as_me:$LINENO: checking for __ashrdi3 in -lgcc" >&5
18478 echo $ECHO_N "checking for __ashrdi3 in -lgcc... $ECHO_C" >&6; }
18479 if test "${ac_cv_lib_gcc___ashrdi3+set}" = set; then
18480   echo $ECHO_N "(cached) $ECHO_C" >&6
18481 else
18482   ac_check_lib_save_LIBS=$LIBS
18483 LIBS="-lgcc  $LIBS"
18484 cat >conftest.$ac_ext <<_ACEOF
18485 /* confdefs.h.  */
18486 _ACEOF
18487 cat confdefs.h >>conftest.$ac_ext
18488 cat >>conftest.$ac_ext <<_ACEOF
18489 /* end confdefs.h.  */
18490
18491 /* Override any GCC internal prototype to avoid an error.
18492    Use char because int might match the return type of a GCC
18493    builtin and then its argument prototype would still apply.  */
18494 #ifdef __cplusplus
18495 extern "C"
18496 #endif
18497 char __ashrdi3 ();
18498 int
18499 main ()
18500 {
18501 return __ashrdi3 ();
18502   ;
18503   return 0;
18504 }
18505 _ACEOF
18506 rm -f conftest.$ac_objext conftest$ac_exeext
18507 if { (ac_try="$ac_link"
18508 case "(($ac_try" in
18509   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18510   *) ac_try_echo=$ac_try;;
18511 esac
18512 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18513   (eval "$ac_link") 2>conftest.er1
18514   ac_status=$?
18515   grep -v '^ *+' conftest.er1 >conftest.err
18516   rm -f conftest.er1
18517   cat conftest.err >&5
18518   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18519   (exit $ac_status); } &&
18520          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18521   { (case "(($ac_try" in
18522   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18523   *) ac_try_echo=$ac_try;;
18524 esac
18525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18526   (eval "$ac_try") 2>&5
18527   ac_status=$?
18528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18529   (exit $ac_status); }; } &&
18530          { ac_try='test -s conftest$ac_exeext'
18531   { (case "(($ac_try" in
18532   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18533   *) ac_try_echo=$ac_try;;
18534 esac
18535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18536   (eval "$ac_try") 2>&5
18537   ac_status=$?
18538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18539   (exit $ac_status); }; }; then
18540   ac_cv_lib_gcc___ashrdi3=yes
18541 else
18542   echo "$as_me: failed program was:" >&5
18543 sed 's/^/| /' conftest.$ac_ext >&5
18544
18545         ac_cv_lib_gcc___ashrdi3=no
18546 fi
18547
18548 rm -f core conftest.err conftest.$ac_objext \
18549       conftest$ac_exeext conftest.$ac_ext
18550 LIBS=$ac_check_lib_save_LIBS
18551 fi
18552 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashrdi3" >&5
18553 echo "${ECHO_T}$ac_cv_lib_gcc___ashrdi3" >&6; }
18554 if test $ac_cv_lib_gcc___ashrdi3 = yes; then
18555
18556 cat >>confdefs.h <<\_ACEOF
18557 #define HAVE___ASHRDI3 1
18558 _ACEOF
18559
18560 fi
18561
18562   { echo "$as_me:$LINENO: checking for __divdi3 in -lgcc" >&5
18563 echo $ECHO_N "checking for __divdi3 in -lgcc... $ECHO_C" >&6; }
18564 if test "${ac_cv_lib_gcc___divdi3+set}" = set; then
18565   echo $ECHO_N "(cached) $ECHO_C" >&6
18566 else
18567   ac_check_lib_save_LIBS=$LIBS
18568 LIBS="-lgcc  $LIBS"
18569 cat >conftest.$ac_ext <<_ACEOF
18570 /* confdefs.h.  */
18571 _ACEOF
18572 cat confdefs.h >>conftest.$ac_ext
18573 cat >>conftest.$ac_ext <<_ACEOF
18574 /* end confdefs.h.  */
18575
18576 /* Override any GCC internal prototype to avoid an error.
18577    Use char because int might match the return type of a GCC
18578    builtin and then its argument prototype would still apply.  */
18579 #ifdef __cplusplus
18580 extern "C"
18581 #endif
18582 char __divdi3 ();
18583 int
18584 main ()
18585 {
18586 return __divdi3 ();
18587   ;
18588   return 0;
18589 }
18590 _ACEOF
18591 rm -f conftest.$ac_objext conftest$ac_exeext
18592 if { (ac_try="$ac_link"
18593 case "(($ac_try" in
18594   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18595   *) ac_try_echo=$ac_try;;
18596 esac
18597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18598   (eval "$ac_link") 2>conftest.er1
18599   ac_status=$?
18600   grep -v '^ *+' conftest.er1 >conftest.err
18601   rm -f conftest.er1
18602   cat conftest.err >&5
18603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18604   (exit $ac_status); } &&
18605          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18606   { (case "(($ac_try" in
18607   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18608   *) ac_try_echo=$ac_try;;
18609 esac
18610 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18611   (eval "$ac_try") 2>&5
18612   ac_status=$?
18613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18614   (exit $ac_status); }; } &&
18615          { ac_try='test -s conftest$ac_exeext'
18616   { (case "(($ac_try" in
18617   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18618   *) ac_try_echo=$ac_try;;
18619 esac
18620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18621   (eval "$ac_try") 2>&5
18622   ac_status=$?
18623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18624   (exit $ac_status); }; }; then
18625   ac_cv_lib_gcc___divdi3=yes
18626 else
18627   echo "$as_me: failed program was:" >&5
18628 sed 's/^/| /' conftest.$ac_ext >&5
18629
18630         ac_cv_lib_gcc___divdi3=no
18631 fi
18632
18633 rm -f core conftest.err conftest.$ac_objext \
18634       conftest$ac_exeext conftest.$ac_ext
18635 LIBS=$ac_check_lib_save_LIBS
18636 fi
18637 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___divdi3" >&5
18638 echo "${ECHO_T}$ac_cv_lib_gcc___divdi3" >&6; }
18639 if test $ac_cv_lib_gcc___divdi3 = yes; then
18640
18641 cat >>confdefs.h <<\_ACEOF
18642 #define HAVE___DIVDI3 1
18643 _ACEOF
18644
18645 fi
18646
18647   { echo "$as_me:$LINENO: checking for __fixdfdi in -lgcc" >&5
18648 echo $ECHO_N "checking for __fixdfdi in -lgcc... $ECHO_C" >&6; }
18649 if test "${ac_cv_lib_gcc___fixdfdi+set}" = set; then
18650   echo $ECHO_N "(cached) $ECHO_C" >&6
18651 else
18652   ac_check_lib_save_LIBS=$LIBS
18653 LIBS="-lgcc  $LIBS"
18654 cat >conftest.$ac_ext <<_ACEOF
18655 /* confdefs.h.  */
18656 _ACEOF
18657 cat confdefs.h >>conftest.$ac_ext
18658 cat >>conftest.$ac_ext <<_ACEOF
18659 /* end confdefs.h.  */
18660
18661 /* Override any GCC internal prototype to avoid an error.
18662    Use char because int might match the return type of a GCC
18663    builtin and then its argument prototype would still apply.  */
18664 #ifdef __cplusplus
18665 extern "C"
18666 #endif
18667 char __fixdfdi ();
18668 int
18669 main ()
18670 {
18671 return __fixdfdi ();
18672   ;
18673   return 0;
18674 }
18675 _ACEOF
18676 rm -f conftest.$ac_objext conftest$ac_exeext
18677 if { (ac_try="$ac_link"
18678 case "(($ac_try" in
18679   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18680   *) ac_try_echo=$ac_try;;
18681 esac
18682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18683   (eval "$ac_link") 2>conftest.er1
18684   ac_status=$?
18685   grep -v '^ *+' conftest.er1 >conftest.err
18686   rm -f conftest.er1
18687   cat conftest.err >&5
18688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18689   (exit $ac_status); } &&
18690          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18691   { (case "(($ac_try" in
18692   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18693   *) ac_try_echo=$ac_try;;
18694 esac
18695 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18696   (eval "$ac_try") 2>&5
18697   ac_status=$?
18698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18699   (exit $ac_status); }; } &&
18700          { ac_try='test -s conftest$ac_exeext'
18701   { (case "(($ac_try" in
18702   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18703   *) ac_try_echo=$ac_try;;
18704 esac
18705 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18706   (eval "$ac_try") 2>&5
18707   ac_status=$?
18708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18709   (exit $ac_status); }; }; then
18710   ac_cv_lib_gcc___fixdfdi=yes
18711 else
18712   echo "$as_me: failed program was:" >&5
18713 sed 's/^/| /' conftest.$ac_ext >&5
18714
18715         ac_cv_lib_gcc___fixdfdi=no
18716 fi
18717
18718 rm -f core conftest.err conftest.$ac_objext \
18719       conftest$ac_exeext conftest.$ac_ext
18720 LIBS=$ac_check_lib_save_LIBS
18721 fi
18722 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixdfdi" >&5
18723 echo "${ECHO_T}$ac_cv_lib_gcc___fixdfdi" >&6; }
18724 if test $ac_cv_lib_gcc___fixdfdi = yes; then
18725
18726 cat >>confdefs.h <<\_ACEOF
18727 #define HAVE___FIXDFDI 1
18728 _ACEOF
18729
18730 fi
18731
18732   { echo "$as_me:$LINENO: checking for __fixsfdi in -lgcc" >&5
18733 echo $ECHO_N "checking for __fixsfdi in -lgcc... $ECHO_C" >&6; }
18734 if test "${ac_cv_lib_gcc___fixsfdi+set}" = set; then
18735   echo $ECHO_N "(cached) $ECHO_C" >&6
18736 else
18737   ac_check_lib_save_LIBS=$LIBS
18738 LIBS="-lgcc  $LIBS"
18739 cat >conftest.$ac_ext <<_ACEOF
18740 /* confdefs.h.  */
18741 _ACEOF
18742 cat confdefs.h >>conftest.$ac_ext
18743 cat >>conftest.$ac_ext <<_ACEOF
18744 /* end confdefs.h.  */
18745
18746 /* Override any GCC internal prototype to avoid an error.
18747    Use char because int might match the return type of a GCC
18748    builtin and then its argument prototype would still apply.  */
18749 #ifdef __cplusplus
18750 extern "C"
18751 #endif
18752 char __fixsfdi ();
18753 int
18754 main ()
18755 {
18756 return __fixsfdi ();
18757   ;
18758   return 0;
18759 }
18760 _ACEOF
18761 rm -f conftest.$ac_objext conftest$ac_exeext
18762 if { (ac_try="$ac_link"
18763 case "(($ac_try" in
18764   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18765   *) ac_try_echo=$ac_try;;
18766 esac
18767 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18768   (eval "$ac_link") 2>conftest.er1
18769   ac_status=$?
18770   grep -v '^ *+' conftest.er1 >conftest.err
18771   rm -f conftest.er1
18772   cat conftest.err >&5
18773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18774   (exit $ac_status); } &&
18775          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18776   { (case "(($ac_try" in
18777   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18778   *) ac_try_echo=$ac_try;;
18779 esac
18780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18781   (eval "$ac_try") 2>&5
18782   ac_status=$?
18783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18784   (exit $ac_status); }; } &&
18785          { ac_try='test -s conftest$ac_exeext'
18786   { (case "(($ac_try" in
18787   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18788   *) ac_try_echo=$ac_try;;
18789 esac
18790 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18791   (eval "$ac_try") 2>&5
18792   ac_status=$?
18793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18794   (exit $ac_status); }; }; then
18795   ac_cv_lib_gcc___fixsfdi=yes
18796 else
18797   echo "$as_me: failed program was:" >&5
18798 sed 's/^/| /' conftest.$ac_ext >&5
18799
18800         ac_cv_lib_gcc___fixsfdi=no
18801 fi
18802
18803 rm -f core conftest.err conftest.$ac_objext \
18804       conftest$ac_exeext conftest.$ac_ext
18805 LIBS=$ac_check_lib_save_LIBS
18806 fi
18807 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixsfdi" >&5
18808 echo "${ECHO_T}$ac_cv_lib_gcc___fixsfdi" >&6; }
18809 if test $ac_cv_lib_gcc___fixsfdi = yes; then
18810
18811 cat >>confdefs.h <<\_ACEOF
18812 #define HAVE___FIXSFDI 1
18813 _ACEOF
18814
18815 fi
18816
18817   { echo "$as_me:$LINENO: checking for __floatdidf in -lgcc" >&5
18818 echo $ECHO_N "checking for __floatdidf in -lgcc... $ECHO_C" >&6; }
18819 if test "${ac_cv_lib_gcc___floatdidf+set}" = set; then
18820   echo $ECHO_N "(cached) $ECHO_C" >&6
18821 else
18822   ac_check_lib_save_LIBS=$LIBS
18823 LIBS="-lgcc  $LIBS"
18824 cat >conftest.$ac_ext <<_ACEOF
18825 /* confdefs.h.  */
18826 _ACEOF
18827 cat confdefs.h >>conftest.$ac_ext
18828 cat >>conftest.$ac_ext <<_ACEOF
18829 /* end confdefs.h.  */
18830
18831 /* Override any GCC internal prototype to avoid an error.
18832    Use char because int might match the return type of a GCC
18833    builtin and then its argument prototype would still apply.  */
18834 #ifdef __cplusplus
18835 extern "C"
18836 #endif
18837 char __floatdidf ();
18838 int
18839 main ()
18840 {
18841 return __floatdidf ();
18842   ;
18843   return 0;
18844 }
18845 _ACEOF
18846 rm -f conftest.$ac_objext conftest$ac_exeext
18847 if { (ac_try="$ac_link"
18848 case "(($ac_try" in
18849   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18850   *) ac_try_echo=$ac_try;;
18851 esac
18852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18853   (eval "$ac_link") 2>conftest.er1
18854   ac_status=$?
18855   grep -v '^ *+' conftest.er1 >conftest.err
18856   rm -f conftest.er1
18857   cat conftest.err >&5
18858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18859   (exit $ac_status); } &&
18860          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18861   { (case "(($ac_try" in
18862   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18863   *) ac_try_echo=$ac_try;;
18864 esac
18865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18866   (eval "$ac_try") 2>&5
18867   ac_status=$?
18868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18869   (exit $ac_status); }; } &&
18870          { ac_try='test -s conftest$ac_exeext'
18871   { (case "(($ac_try" in
18872   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18873   *) ac_try_echo=$ac_try;;
18874 esac
18875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18876   (eval "$ac_try") 2>&5
18877   ac_status=$?
18878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18879   (exit $ac_status); }; }; then
18880   ac_cv_lib_gcc___floatdidf=yes
18881 else
18882   echo "$as_me: failed program was:" >&5
18883 sed 's/^/| /' conftest.$ac_ext >&5
18884
18885         ac_cv_lib_gcc___floatdidf=no
18886 fi
18887
18888 rm -f core conftest.err conftest.$ac_objext \
18889       conftest$ac_exeext conftest.$ac_ext
18890 LIBS=$ac_check_lib_save_LIBS
18891 fi
18892 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___floatdidf" >&5
18893 echo "${ECHO_T}$ac_cv_lib_gcc___floatdidf" >&6; }
18894 if test $ac_cv_lib_gcc___floatdidf = yes; then
18895
18896 cat >>confdefs.h <<\_ACEOF
18897 #define HAVE___FLOATDIDF 1
18898 _ACEOF
18899
18900 fi
18901
18902   { echo "$as_me:$LINENO: checking for __lshrdi3 in -lgcc" >&5
18903 echo $ECHO_N "checking for __lshrdi3 in -lgcc... $ECHO_C" >&6; }
18904 if test "${ac_cv_lib_gcc___lshrdi3+set}" = set; then
18905   echo $ECHO_N "(cached) $ECHO_C" >&6
18906 else
18907   ac_check_lib_save_LIBS=$LIBS
18908 LIBS="-lgcc  $LIBS"
18909 cat >conftest.$ac_ext <<_ACEOF
18910 /* confdefs.h.  */
18911 _ACEOF
18912 cat confdefs.h >>conftest.$ac_ext
18913 cat >>conftest.$ac_ext <<_ACEOF
18914 /* end confdefs.h.  */
18915
18916 /* Override any GCC internal prototype to avoid an error.
18917    Use char because int might match the return type of a GCC
18918    builtin and then its argument prototype would still apply.  */
18919 #ifdef __cplusplus
18920 extern "C"
18921 #endif
18922 char __lshrdi3 ();
18923 int
18924 main ()
18925 {
18926 return __lshrdi3 ();
18927   ;
18928   return 0;
18929 }
18930 _ACEOF
18931 rm -f conftest.$ac_objext conftest$ac_exeext
18932 if { (ac_try="$ac_link"
18933 case "(($ac_try" in
18934   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18935   *) ac_try_echo=$ac_try;;
18936 esac
18937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18938   (eval "$ac_link") 2>conftest.er1
18939   ac_status=$?
18940   grep -v '^ *+' conftest.er1 >conftest.err
18941   rm -f conftest.er1
18942   cat conftest.err >&5
18943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18944   (exit $ac_status); } &&
18945          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18946   { (case "(($ac_try" in
18947   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18948   *) ac_try_echo=$ac_try;;
18949 esac
18950 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18951   (eval "$ac_try") 2>&5
18952   ac_status=$?
18953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18954   (exit $ac_status); }; } &&
18955          { ac_try='test -s conftest$ac_exeext'
18956   { (case "(($ac_try" in
18957   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18958   *) ac_try_echo=$ac_try;;
18959 esac
18960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18961   (eval "$ac_try") 2>&5
18962   ac_status=$?
18963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18964   (exit $ac_status); }; }; then
18965   ac_cv_lib_gcc___lshrdi3=yes
18966 else
18967   echo "$as_me: failed program was:" >&5
18968 sed 's/^/| /' conftest.$ac_ext >&5
18969
18970         ac_cv_lib_gcc___lshrdi3=no
18971 fi
18972
18973 rm -f core conftest.err conftest.$ac_objext \
18974       conftest$ac_exeext conftest.$ac_ext
18975 LIBS=$ac_check_lib_save_LIBS
18976 fi
18977 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___lshrdi3" >&5
18978 echo "${ECHO_T}$ac_cv_lib_gcc___lshrdi3" >&6; }
18979 if test $ac_cv_lib_gcc___lshrdi3 = yes; then
18980
18981 cat >>confdefs.h <<\_ACEOF
18982 #define HAVE___LSHRDI3 1
18983 _ACEOF
18984
18985 fi
18986
18987   { echo "$as_me:$LINENO: checking for __moddi3 in -lgcc" >&5
18988 echo $ECHO_N "checking for __moddi3 in -lgcc... $ECHO_C" >&6; }
18989 if test "${ac_cv_lib_gcc___moddi3+set}" = set; then
18990   echo $ECHO_N "(cached) $ECHO_C" >&6
18991 else
18992   ac_check_lib_save_LIBS=$LIBS
18993 LIBS="-lgcc  $LIBS"
18994 cat >conftest.$ac_ext <<_ACEOF
18995 /* confdefs.h.  */
18996 _ACEOF
18997 cat confdefs.h >>conftest.$ac_ext
18998 cat >>conftest.$ac_ext <<_ACEOF
18999 /* end confdefs.h.  */
19000
19001 /* Override any GCC internal prototype to avoid an error.
19002    Use char because int might match the return type of a GCC
19003    builtin and then its argument prototype would still apply.  */
19004 #ifdef __cplusplus
19005 extern "C"
19006 #endif
19007 char __moddi3 ();
19008 int
19009 main ()
19010 {
19011 return __moddi3 ();
19012   ;
19013   return 0;
19014 }
19015 _ACEOF
19016 rm -f conftest.$ac_objext conftest$ac_exeext
19017 if { (ac_try="$ac_link"
19018 case "(($ac_try" in
19019   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19020   *) ac_try_echo=$ac_try;;
19021 esac
19022 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19023   (eval "$ac_link") 2>conftest.er1
19024   ac_status=$?
19025   grep -v '^ *+' conftest.er1 >conftest.err
19026   rm -f conftest.er1
19027   cat conftest.err >&5
19028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19029   (exit $ac_status); } &&
19030          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19031   { (case "(($ac_try" in
19032   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19033   *) ac_try_echo=$ac_try;;
19034 esac
19035 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19036   (eval "$ac_try") 2>&5
19037   ac_status=$?
19038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19039   (exit $ac_status); }; } &&
19040          { ac_try='test -s conftest$ac_exeext'
19041   { (case "(($ac_try" in
19042   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19043   *) ac_try_echo=$ac_try;;
19044 esac
19045 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19046   (eval "$ac_try") 2>&5
19047   ac_status=$?
19048   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19049   (exit $ac_status); }; }; then
19050   ac_cv_lib_gcc___moddi3=yes
19051 else
19052   echo "$as_me: failed program was:" >&5
19053 sed 's/^/| /' conftest.$ac_ext >&5
19054
19055         ac_cv_lib_gcc___moddi3=no
19056 fi
19057
19058 rm -f core conftest.err conftest.$ac_objext \
19059       conftest$ac_exeext conftest.$ac_ext
19060 LIBS=$ac_check_lib_save_LIBS
19061 fi
19062 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___moddi3" >&5
19063 echo "${ECHO_T}$ac_cv_lib_gcc___moddi3" >&6; }
19064 if test $ac_cv_lib_gcc___moddi3 = yes; then
19065
19066 cat >>confdefs.h <<\_ACEOF
19067 #define HAVE___MODDI3 1
19068 _ACEOF
19069
19070 fi
19071
19072   { echo "$as_me:$LINENO: checking for __udivdi3 in -lgcc" >&5
19073 echo $ECHO_N "checking for __udivdi3 in -lgcc... $ECHO_C" >&6; }
19074 if test "${ac_cv_lib_gcc___udivdi3+set}" = set; then
19075   echo $ECHO_N "(cached) $ECHO_C" >&6
19076 else
19077   ac_check_lib_save_LIBS=$LIBS
19078 LIBS="-lgcc  $LIBS"
19079 cat >conftest.$ac_ext <<_ACEOF
19080 /* confdefs.h.  */
19081 _ACEOF
19082 cat confdefs.h >>conftest.$ac_ext
19083 cat >>conftest.$ac_ext <<_ACEOF
19084 /* end confdefs.h.  */
19085
19086 /* Override any GCC internal prototype to avoid an error.
19087    Use char because int might match the return type of a GCC
19088    builtin and then its argument prototype would still apply.  */
19089 #ifdef __cplusplus
19090 extern "C"
19091 #endif
19092 char __udivdi3 ();
19093 int
19094 main ()
19095 {
19096 return __udivdi3 ();
19097   ;
19098   return 0;
19099 }
19100 _ACEOF
19101 rm -f conftest.$ac_objext conftest$ac_exeext
19102 if { (ac_try="$ac_link"
19103 case "(($ac_try" in
19104   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19105   *) ac_try_echo=$ac_try;;
19106 esac
19107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19108   (eval "$ac_link") 2>conftest.er1
19109   ac_status=$?
19110   grep -v '^ *+' conftest.er1 >conftest.err
19111   rm -f conftest.er1
19112   cat conftest.err >&5
19113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19114   (exit $ac_status); } &&
19115          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19116   { (case "(($ac_try" in
19117   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19118   *) ac_try_echo=$ac_try;;
19119 esac
19120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19121   (eval "$ac_try") 2>&5
19122   ac_status=$?
19123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19124   (exit $ac_status); }; } &&
19125          { ac_try='test -s conftest$ac_exeext'
19126   { (case "(($ac_try" in
19127   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19128   *) ac_try_echo=$ac_try;;
19129 esac
19130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19131   (eval "$ac_try") 2>&5
19132   ac_status=$?
19133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19134   (exit $ac_status); }; }; then
19135   ac_cv_lib_gcc___udivdi3=yes
19136 else
19137   echo "$as_me: failed program was:" >&5
19138 sed 's/^/| /' conftest.$ac_ext >&5
19139
19140         ac_cv_lib_gcc___udivdi3=no
19141 fi
19142
19143 rm -f core conftest.err conftest.$ac_objext \
19144       conftest$ac_exeext conftest.$ac_ext
19145 LIBS=$ac_check_lib_save_LIBS
19146 fi
19147 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___udivdi3" >&5
19148 echo "${ECHO_T}$ac_cv_lib_gcc___udivdi3" >&6; }
19149 if test $ac_cv_lib_gcc___udivdi3 = yes; then
19150
19151 cat >>confdefs.h <<\_ACEOF
19152 #define HAVE___UDIVDI3 1
19153 _ACEOF
19154
19155 fi
19156
19157   { echo "$as_me:$LINENO: checking for __umoddi3 in -lgcc" >&5
19158 echo $ECHO_N "checking for __umoddi3 in -lgcc... $ECHO_C" >&6; }
19159 if test "${ac_cv_lib_gcc___umoddi3+set}" = set; then
19160   echo $ECHO_N "(cached) $ECHO_C" >&6
19161 else
19162   ac_check_lib_save_LIBS=$LIBS
19163 LIBS="-lgcc  $LIBS"
19164 cat >conftest.$ac_ext <<_ACEOF
19165 /* confdefs.h.  */
19166 _ACEOF
19167 cat confdefs.h >>conftest.$ac_ext
19168 cat >>conftest.$ac_ext <<_ACEOF
19169 /* end confdefs.h.  */
19170
19171 /* Override any GCC internal prototype to avoid an error.
19172    Use char because int might match the return type of a GCC
19173    builtin and then its argument prototype would still apply.  */
19174 #ifdef __cplusplus
19175 extern "C"
19176 #endif
19177 char __umoddi3 ();
19178 int
19179 main ()
19180 {
19181 return __umoddi3 ();
19182   ;
19183   return 0;
19184 }
19185 _ACEOF
19186 rm -f conftest.$ac_objext conftest$ac_exeext
19187 if { (ac_try="$ac_link"
19188 case "(($ac_try" in
19189   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19190   *) ac_try_echo=$ac_try;;
19191 esac
19192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19193   (eval "$ac_link") 2>conftest.er1
19194   ac_status=$?
19195   grep -v '^ *+' conftest.er1 >conftest.err
19196   rm -f conftest.er1
19197   cat conftest.err >&5
19198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19199   (exit $ac_status); } &&
19200          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19201   { (case "(($ac_try" in
19202   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19203   *) ac_try_echo=$ac_try;;
19204 esac
19205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19206   (eval "$ac_try") 2>&5
19207   ac_status=$?
19208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19209   (exit $ac_status); }; } &&
19210          { ac_try='test -s conftest$ac_exeext'
19211   { (case "(($ac_try" in
19212   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19213   *) ac_try_echo=$ac_try;;
19214 esac
19215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19216   (eval "$ac_try") 2>&5
19217   ac_status=$?
19218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19219   (exit $ac_status); }; }; then
19220   ac_cv_lib_gcc___umoddi3=yes
19221 else
19222   echo "$as_me: failed program was:" >&5
19223 sed 's/^/| /' conftest.$ac_ext >&5
19224
19225         ac_cv_lib_gcc___umoddi3=no
19226 fi
19227
19228 rm -f core conftest.err conftest.$ac_objext \
19229       conftest$ac_exeext conftest.$ac_ext
19230 LIBS=$ac_check_lib_save_LIBS
19231 fi
19232 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___umoddi3" >&5
19233 echo "${ECHO_T}$ac_cv_lib_gcc___umoddi3" >&6; }
19234 if test $ac_cv_lib_gcc___umoddi3 = yes; then
19235
19236 cat >>confdefs.h <<\_ACEOF
19237 #define HAVE___UMODDI3 1
19238 _ACEOF
19239
19240 fi
19241
19242
19243   { echo "$as_me:$LINENO: checking for __main in -lgcc" >&5
19244 echo $ECHO_N "checking for __main in -lgcc... $ECHO_C" >&6; }
19245 if test "${ac_cv_lib_gcc___main+set}" = set; then
19246   echo $ECHO_N "(cached) $ECHO_C" >&6
19247 else
19248   ac_check_lib_save_LIBS=$LIBS
19249 LIBS="-lgcc  $LIBS"
19250 cat >conftest.$ac_ext <<_ACEOF
19251 /* confdefs.h.  */
19252 _ACEOF
19253 cat confdefs.h >>conftest.$ac_ext
19254 cat >>conftest.$ac_ext <<_ACEOF
19255 /* end confdefs.h.  */
19256
19257 /* Override any GCC internal prototype to avoid an error.
19258    Use char because int might match the return type of a GCC
19259    builtin and then its argument prototype would still apply.  */
19260 #ifdef __cplusplus
19261 extern "C"
19262 #endif
19263 char __main ();
19264 int
19265 main ()
19266 {
19267 return __main ();
19268   ;
19269   return 0;
19270 }
19271 _ACEOF
19272 rm -f conftest.$ac_objext conftest$ac_exeext
19273 if { (ac_try="$ac_link"
19274 case "(($ac_try" in
19275   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19276   *) ac_try_echo=$ac_try;;
19277 esac
19278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19279   (eval "$ac_link") 2>conftest.er1
19280   ac_status=$?
19281   grep -v '^ *+' conftest.er1 >conftest.err
19282   rm -f conftest.er1
19283   cat conftest.err >&5
19284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19285   (exit $ac_status); } &&
19286          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19287   { (case "(($ac_try" in
19288   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19289   *) ac_try_echo=$ac_try;;
19290 esac
19291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19292   (eval "$ac_try") 2>&5
19293   ac_status=$?
19294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19295   (exit $ac_status); }; } &&
19296          { ac_try='test -s conftest$ac_exeext'
19297   { (case "(($ac_try" in
19298   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19299   *) ac_try_echo=$ac_try;;
19300 esac
19301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19302   (eval "$ac_try") 2>&5
19303   ac_status=$?
19304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19305   (exit $ac_status); }; }; then
19306   ac_cv_lib_gcc___main=yes
19307 else
19308   echo "$as_me: failed program was:" >&5
19309 sed 's/^/| /' conftest.$ac_ext >&5
19310
19311         ac_cv_lib_gcc___main=no
19312 fi
19313
19314 rm -f core conftest.err conftest.$ac_objext \
19315       conftest$ac_exeext conftest.$ac_ext
19316 LIBS=$ac_check_lib_save_LIBS
19317 fi
19318 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___main" >&5
19319 echo "${ECHO_T}$ac_cv_lib_gcc___main" >&6; }
19320 if test $ac_cv_lib_gcc___main = yes; then
19321
19322 cat >>confdefs.h <<\_ACEOF
19323 #define HAVE___MAIN 1
19324 _ACEOF
19325
19326 fi
19327
19328   { echo "$as_me:$LINENO: checking for __cmpdi2 in -lgcc" >&5
19329 echo $ECHO_N "checking for __cmpdi2 in -lgcc... $ECHO_C" >&6; }
19330 if test "${ac_cv_lib_gcc___cmpdi2+set}" = set; then
19331   echo $ECHO_N "(cached) $ECHO_C" >&6
19332 else
19333   ac_check_lib_save_LIBS=$LIBS
19334 LIBS="-lgcc  $LIBS"
19335 cat >conftest.$ac_ext <<_ACEOF
19336 /* confdefs.h.  */
19337 _ACEOF
19338 cat confdefs.h >>conftest.$ac_ext
19339 cat >>conftest.$ac_ext <<_ACEOF
19340 /* end confdefs.h.  */
19341
19342 /* Override any GCC internal prototype to avoid an error.
19343    Use char because int might match the return type of a GCC
19344    builtin and then its argument prototype would still apply.  */
19345 #ifdef __cplusplus
19346 extern "C"
19347 #endif
19348 char __cmpdi2 ();
19349 int
19350 main ()
19351 {
19352 return __cmpdi2 ();
19353   ;
19354   return 0;
19355 }
19356 _ACEOF
19357 rm -f conftest.$ac_objext conftest$ac_exeext
19358 if { (ac_try="$ac_link"
19359 case "(($ac_try" in
19360   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19361   *) ac_try_echo=$ac_try;;
19362 esac
19363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19364   (eval "$ac_link") 2>conftest.er1
19365   ac_status=$?
19366   grep -v '^ *+' conftest.er1 >conftest.err
19367   rm -f conftest.er1
19368   cat conftest.err >&5
19369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19370   (exit $ac_status); } &&
19371          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19372   { (case "(($ac_try" in
19373   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19374   *) ac_try_echo=$ac_try;;
19375 esac
19376 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19377   (eval "$ac_try") 2>&5
19378   ac_status=$?
19379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19380   (exit $ac_status); }; } &&
19381          { ac_try='test -s conftest$ac_exeext'
19382   { (case "(($ac_try" in
19383   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19384   *) ac_try_echo=$ac_try;;
19385 esac
19386 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19387   (eval "$ac_try") 2>&5
19388   ac_status=$?
19389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19390   (exit $ac_status); }; }; then
19391   ac_cv_lib_gcc___cmpdi2=yes
19392 else
19393   echo "$as_me: failed program was:" >&5
19394 sed 's/^/| /' conftest.$ac_ext >&5
19395
19396         ac_cv_lib_gcc___cmpdi2=no
19397 fi
19398
19399 rm -f core conftest.err conftest.$ac_objext \
19400       conftest$ac_exeext conftest.$ac_ext
19401 LIBS=$ac_check_lib_save_LIBS
19402 fi
19403 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___cmpdi2" >&5
19404 echo "${ECHO_T}$ac_cv_lib_gcc___cmpdi2" >&6; }
19405 if test $ac_cv_lib_gcc___cmpdi2 = yes; then
19406
19407 cat >>confdefs.h <<\_ACEOF
19408 #define HAVE___CMPDI2 1
19409 _ACEOF
19410
19411 fi
19412
19413 fi
19414
19415 if test "$llvm_cv_os_type" = "MingW" ; then
19416   { echo "$as_me:$LINENO: checking whether EnumerateLoadedModules() accepts new decl" >&5
19417 echo $ECHO_N "checking whether EnumerateLoadedModules() accepts new decl... $ECHO_C" >&6; }
19418   cat >conftest.$ac_ext <<_ACEOF
19419 #include <windows.h>
19420 #include <imagehlp.h>
19421 extern void foo(PENUMLOADED_MODULES_CALLBACK);
19422 extern void foo(BOOL(CALLBACK*)(PCSTR,ULONG_PTR,ULONG,PVOID));
19423 _ACEOF
19424 rm -f conftest.$ac_objext
19425 if { (ac_try="$ac_compile"
19426 case "(($ac_try" in
19427   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19428   *) ac_try_echo=$ac_try;;
19429 esac
19430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19431   (eval "$ac_compile") 2>conftest.er1
19432   ac_status=$?
19433   grep -v '^ *+' conftest.er1 >conftest.err
19434   rm -f conftest.er1
19435   cat conftest.err >&5
19436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19437   (exit $ac_status); } &&
19438          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19439   { (case "(($ac_try" in
19440   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19441   *) ac_try_echo=$ac_try;;
19442 esac
19443 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19444   (eval "$ac_try") 2>&5
19445   ac_status=$?
19446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19447   (exit $ac_status); }; } &&
19448          { ac_try='test -s conftest.$ac_objext'
19449   { (case "(($ac_try" in
19450   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19451   *) ac_try_echo=$ac_try;;
19452 esac
19453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19454   (eval "$ac_try") 2>&5
19455   ac_status=$?
19456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19457   (exit $ac_status); }; }; then
19458
19459   { echo "$as_me:$LINENO: result: yes" >&5
19460 echo "${ECHO_T}yes" >&6; }
19461   llvm_cv_win32_elmcb_pcstr="PCSTR"
19462
19463 else
19464   echo "$as_me: failed program was:" >&5
19465 sed 's/^/| /' conftest.$ac_ext >&5
19466
19467
19468   { echo "$as_me:$LINENO: result: no" >&5
19469 echo "${ECHO_T}no" >&6; }
19470   llvm_cv_win32_elmcb_pcstr="PSTR"
19471
19472 fi
19473
19474 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19475
19476 cat >>confdefs.h <<_ACEOF
19477 #define WIN32_ELMCB_PCSTR $llvm_cv_win32_elmcb_pcstr
19478 _ACEOF
19479
19480 fi
19481
19482
19483 { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
19484 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
19485 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
19486   echo $ECHO_N "(cached) $ECHO_C" >&6
19487 else
19488   ac_ext=cpp
19489 ac_cpp='$CXXCPP $CPPFLAGS'
19490 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19491 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19492 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19493
19494    cat >conftest.$ac_ext <<_ACEOF
19495 /* confdefs.h.  */
19496 _ACEOF
19497 cat confdefs.h >>conftest.$ac_ext
19498 cat >>conftest.$ac_ext <<_ACEOF
19499 /* end confdefs.h.  */
19500 #include <math.h>
19501 int
19502 main ()
19503 {
19504 float f; isnan(f);
19505   ;
19506   return 0;
19507 }
19508 _ACEOF
19509 rm -f conftest.$ac_objext
19510 if { (ac_try="$ac_compile"
19511 case "(($ac_try" in
19512   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19513   *) ac_try_echo=$ac_try;;
19514 esac
19515 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19516   (eval "$ac_compile") 2>conftest.er1
19517   ac_status=$?
19518   grep -v '^ *+' conftest.er1 >conftest.err
19519   rm -f conftest.er1
19520   cat conftest.err >&5
19521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19522   (exit $ac_status); } &&
19523          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19524   { (case "(($ac_try" in
19525   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19526   *) ac_try_echo=$ac_try;;
19527 esac
19528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19529   (eval "$ac_try") 2>&5
19530   ac_status=$?
19531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19532   (exit $ac_status); }; } &&
19533          { ac_try='test -s conftest.$ac_objext'
19534   { (case "(($ac_try" in
19535   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19536   *) ac_try_echo=$ac_try;;
19537 esac
19538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19539   (eval "$ac_try") 2>&5
19540   ac_status=$?
19541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19542   (exit $ac_status); }; }; then
19543   ac_cv_func_isnan_in_math_h=yes
19544 else
19545   echo "$as_me: failed program was:" >&5
19546 sed 's/^/| /' conftest.$ac_ext >&5
19547
19548         ac_cv_func_isnan_in_math_h=no
19549 fi
19550
19551 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19552   ac_ext=c
19553 ac_cpp='$CPP $CPPFLAGS'
19554 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19555 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19556 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19557
19558 fi
19559 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
19560 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
19561
19562
19563 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
19564
19565 cat >>confdefs.h <<\_ACEOF
19566 #define HAVE_ISNAN_IN_MATH_H 1
19567 _ACEOF
19568
19569 fi
19570
19571 { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
19572 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
19573 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
19574   echo $ECHO_N "(cached) $ECHO_C" >&6
19575 else
19576   ac_ext=cpp
19577 ac_cpp='$CXXCPP $CPPFLAGS'
19578 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19579 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19580 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19581
19582    cat >conftest.$ac_ext <<_ACEOF
19583 /* confdefs.h.  */
19584 _ACEOF
19585 cat confdefs.h >>conftest.$ac_ext
19586 cat >>conftest.$ac_ext <<_ACEOF
19587 /* end confdefs.h.  */
19588 #include <cmath>
19589 int
19590 main ()
19591 {
19592 float f; isnan(f);
19593   ;
19594   return 0;
19595 }
19596 _ACEOF
19597 rm -f conftest.$ac_objext
19598 if { (ac_try="$ac_compile"
19599 case "(($ac_try" in
19600   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19601   *) ac_try_echo=$ac_try;;
19602 esac
19603 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19604   (eval "$ac_compile") 2>conftest.er1
19605   ac_status=$?
19606   grep -v '^ *+' conftest.er1 >conftest.err
19607   rm -f conftest.er1
19608   cat conftest.err >&5
19609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19610   (exit $ac_status); } &&
19611          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19612   { (case "(($ac_try" in
19613   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19614   *) ac_try_echo=$ac_try;;
19615 esac
19616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19617   (eval "$ac_try") 2>&5
19618   ac_status=$?
19619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19620   (exit $ac_status); }; } &&
19621          { ac_try='test -s conftest.$ac_objext'
19622   { (case "(($ac_try" in
19623   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19624   *) ac_try_echo=$ac_try;;
19625 esac
19626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19627   (eval "$ac_try") 2>&5
19628   ac_status=$?
19629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19630   (exit $ac_status); }; }; then
19631   ac_cv_func_isnan_in_cmath=yes
19632 else
19633   echo "$as_me: failed program was:" >&5
19634 sed 's/^/| /' conftest.$ac_ext >&5
19635
19636         ac_cv_func_isnan_in_cmath=no
19637 fi
19638
19639 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19640   ac_ext=c
19641 ac_cpp='$CPP $CPPFLAGS'
19642 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19643 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19644 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19645
19646 fi
19647 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
19648 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
19649
19650 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
19651
19652 cat >>confdefs.h <<\_ACEOF
19653 #define HAVE_ISNAN_IN_CMATH 1
19654 _ACEOF
19655
19656 fi
19657
19658 { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
19659 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
19660 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
19661   echo $ECHO_N "(cached) $ECHO_C" >&6
19662 else
19663   ac_ext=cpp
19664 ac_cpp='$CXXCPP $CPPFLAGS'
19665 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19666 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19667 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19668
19669    cat >conftest.$ac_ext <<_ACEOF
19670 /* confdefs.h.  */
19671 _ACEOF
19672 cat confdefs.h >>conftest.$ac_ext
19673 cat >>conftest.$ac_ext <<_ACEOF
19674 /* end confdefs.h.  */
19675 #include <cmath>
19676 int
19677 main ()
19678 {
19679 float f; std::isnan(f);
19680   ;
19681   return 0;
19682 }
19683 _ACEOF
19684 rm -f conftest.$ac_objext
19685 if { (ac_try="$ac_compile"
19686 case "(($ac_try" in
19687   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19688   *) ac_try_echo=$ac_try;;
19689 esac
19690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19691   (eval "$ac_compile") 2>conftest.er1
19692   ac_status=$?
19693   grep -v '^ *+' conftest.er1 >conftest.err
19694   rm -f conftest.er1
19695   cat conftest.err >&5
19696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19697   (exit $ac_status); } &&
19698          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19699   { (case "(($ac_try" in
19700   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19701   *) ac_try_echo=$ac_try;;
19702 esac
19703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19704   (eval "$ac_try") 2>&5
19705   ac_status=$?
19706   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19707   (exit $ac_status); }; } &&
19708          { ac_try='test -s conftest.$ac_objext'
19709   { (case "(($ac_try" in
19710   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19711   *) ac_try_echo=$ac_try;;
19712 esac
19713 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19714   (eval "$ac_try") 2>&5
19715   ac_status=$?
19716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19717   (exit $ac_status); }; }; then
19718   ac_cv_func_std_isnan_in_cmath=yes
19719 else
19720   echo "$as_me: failed program was:" >&5
19721 sed 's/^/| /' conftest.$ac_ext >&5
19722
19723         ac_cv_func_std_isnan_in_cmath=no
19724 fi
19725
19726 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19727   ac_ext=c
19728 ac_cpp='$CPP $CPPFLAGS'
19729 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19730 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19731 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19732
19733 fi
19734 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
19735 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
19736
19737 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
19738
19739 cat >>confdefs.h <<\_ACEOF
19740 #define HAVE_STD_ISNAN_IN_CMATH 1
19741 _ACEOF
19742
19743 fi
19744
19745
19746 { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
19747 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
19748 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
19749   echo $ECHO_N "(cached) $ECHO_C" >&6
19750 else
19751   ac_ext=cpp
19752 ac_cpp='$CXXCPP $CPPFLAGS'
19753 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19754 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19755 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19756
19757    cat >conftest.$ac_ext <<_ACEOF
19758 /* confdefs.h.  */
19759 _ACEOF
19760 cat confdefs.h >>conftest.$ac_ext
19761 cat >>conftest.$ac_ext <<_ACEOF
19762 /* end confdefs.h.  */
19763 #include <math.h>
19764 int
19765 main ()
19766 {
19767 float f; isinf(f);
19768   ;
19769   return 0;
19770 }
19771 _ACEOF
19772 rm -f conftest.$ac_objext
19773 if { (ac_try="$ac_compile"
19774 case "(($ac_try" in
19775   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19776   *) ac_try_echo=$ac_try;;
19777 esac
19778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19779   (eval "$ac_compile") 2>conftest.er1
19780   ac_status=$?
19781   grep -v '^ *+' conftest.er1 >conftest.err
19782   rm -f conftest.er1
19783   cat conftest.err >&5
19784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19785   (exit $ac_status); } &&
19786          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19787   { (case "(($ac_try" in
19788   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19789   *) ac_try_echo=$ac_try;;
19790 esac
19791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19792   (eval "$ac_try") 2>&5
19793   ac_status=$?
19794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19795   (exit $ac_status); }; } &&
19796          { ac_try='test -s conftest.$ac_objext'
19797   { (case "(($ac_try" in
19798   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19799   *) ac_try_echo=$ac_try;;
19800 esac
19801 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19802   (eval "$ac_try") 2>&5
19803   ac_status=$?
19804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19805   (exit $ac_status); }; }; then
19806   ac_cv_func_isinf_in_math_h=yes
19807 else
19808   echo "$as_me: failed program was:" >&5
19809 sed 's/^/| /' conftest.$ac_ext >&5
19810
19811         ac_cv_func_isinf_in_math_h=no
19812 fi
19813
19814 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19815   ac_ext=c
19816 ac_cpp='$CPP $CPPFLAGS'
19817 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19818 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19819 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19820
19821 fi
19822 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
19823 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
19824
19825 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
19826
19827 cat >>confdefs.h <<\_ACEOF
19828 #define HAVE_ISINF_IN_MATH_H 1
19829 _ACEOF
19830
19831 fi
19832
19833 { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
19834 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
19835 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
19836   echo $ECHO_N "(cached) $ECHO_C" >&6
19837 else
19838   ac_ext=cpp
19839 ac_cpp='$CXXCPP $CPPFLAGS'
19840 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19841 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19842 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19843
19844    cat >conftest.$ac_ext <<_ACEOF
19845 /* confdefs.h.  */
19846 _ACEOF
19847 cat confdefs.h >>conftest.$ac_ext
19848 cat >>conftest.$ac_ext <<_ACEOF
19849 /* end confdefs.h.  */
19850 #include <cmath>
19851 int
19852 main ()
19853 {
19854 float f; isinf(f);
19855   ;
19856   return 0;
19857 }
19858 _ACEOF
19859 rm -f conftest.$ac_objext
19860 if { (ac_try="$ac_compile"
19861 case "(($ac_try" in
19862   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19863   *) ac_try_echo=$ac_try;;
19864 esac
19865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19866   (eval "$ac_compile") 2>conftest.er1
19867   ac_status=$?
19868   grep -v '^ *+' conftest.er1 >conftest.err
19869   rm -f conftest.er1
19870   cat conftest.err >&5
19871   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19872   (exit $ac_status); } &&
19873          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19874   { (case "(($ac_try" in
19875   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19876   *) ac_try_echo=$ac_try;;
19877 esac
19878 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19879   (eval "$ac_try") 2>&5
19880   ac_status=$?
19881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19882   (exit $ac_status); }; } &&
19883          { ac_try='test -s conftest.$ac_objext'
19884   { (case "(($ac_try" in
19885   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19886   *) ac_try_echo=$ac_try;;
19887 esac
19888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19889   (eval "$ac_try") 2>&5
19890   ac_status=$?
19891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19892   (exit $ac_status); }; }; then
19893   ac_cv_func_isinf_in_cmath=yes
19894 else
19895   echo "$as_me: failed program was:" >&5
19896 sed 's/^/| /' conftest.$ac_ext >&5
19897
19898         ac_cv_func_isinf_in_cmath=no
19899 fi
19900
19901 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19902   ac_ext=c
19903 ac_cpp='$CPP $CPPFLAGS'
19904 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19905 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19906 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19907
19908 fi
19909 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
19910 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
19911
19912 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
19913
19914 cat >>confdefs.h <<\_ACEOF
19915 #define HAVE_ISINF_IN_CMATH 1
19916 _ACEOF
19917
19918 fi
19919
19920 { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
19921 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
19922 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
19923   echo $ECHO_N "(cached) $ECHO_C" >&6
19924 else
19925   ac_ext=cpp
19926 ac_cpp='$CXXCPP $CPPFLAGS'
19927 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19928 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19929 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19930
19931    cat >conftest.$ac_ext <<_ACEOF
19932 /* confdefs.h.  */
19933 _ACEOF
19934 cat confdefs.h >>conftest.$ac_ext
19935 cat >>conftest.$ac_ext <<_ACEOF
19936 /* end confdefs.h.  */
19937 #include <cmath>
19938 int
19939 main ()
19940 {
19941 float f; std::isinf(f);
19942   ;
19943   return 0;
19944 }
19945 _ACEOF
19946 rm -f conftest.$ac_objext
19947 if { (ac_try="$ac_compile"
19948 case "(($ac_try" in
19949   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19950   *) ac_try_echo=$ac_try;;
19951 esac
19952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19953   (eval "$ac_compile") 2>conftest.er1
19954   ac_status=$?
19955   grep -v '^ *+' conftest.er1 >conftest.err
19956   rm -f conftest.er1
19957   cat conftest.err >&5
19958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19959   (exit $ac_status); } &&
19960          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19961   { (case "(($ac_try" in
19962   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19963   *) ac_try_echo=$ac_try;;
19964 esac
19965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19966   (eval "$ac_try") 2>&5
19967   ac_status=$?
19968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19969   (exit $ac_status); }; } &&
19970          { ac_try='test -s conftest.$ac_objext'
19971   { (case "(($ac_try" in
19972   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19973   *) ac_try_echo=$ac_try;;
19974 esac
19975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19976   (eval "$ac_try") 2>&5
19977   ac_status=$?
19978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19979   (exit $ac_status); }; }; then
19980   ac_cv_func_std_isinf_in_cmath=yes
19981 else
19982   echo "$as_me: failed program was:" >&5
19983 sed 's/^/| /' conftest.$ac_ext >&5
19984
19985         ac_cv_func_std_isinf_in_cmath=no
19986 fi
19987
19988 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19989   ac_ext=c
19990 ac_cpp='$CPP $CPPFLAGS'
19991 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19992 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19993 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19994
19995 fi
19996 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
19997 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
19998
19999 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
20000
20001 cat >>confdefs.h <<\_ACEOF
20002 #define HAVE_STD_ISINF_IN_CMATH 1
20003 _ACEOF
20004
20005 fi
20006
20007 { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
20008 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
20009 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
20010   echo $ECHO_N "(cached) $ECHO_C" >&6
20011 else
20012   ac_ext=cpp
20013 ac_cpp='$CXXCPP $CPPFLAGS'
20014 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20015 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20016 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20017
20018    cat >conftest.$ac_ext <<_ACEOF
20019 /* confdefs.h.  */
20020 _ACEOF
20021 cat confdefs.h >>conftest.$ac_ext
20022 cat >>conftest.$ac_ext <<_ACEOF
20023 /* end confdefs.h.  */
20024 #include <ieeefp.h>
20025 int
20026 main ()
20027 {
20028 float f; finite(f);
20029   ;
20030   return 0;
20031 }
20032 _ACEOF
20033 rm -f conftest.$ac_objext
20034 if { (ac_try="$ac_compile"
20035 case "(($ac_try" in
20036   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20037   *) ac_try_echo=$ac_try;;
20038 esac
20039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20040   (eval "$ac_compile") 2>conftest.er1
20041   ac_status=$?
20042   grep -v '^ *+' conftest.er1 >conftest.err
20043   rm -f conftest.er1
20044   cat conftest.err >&5
20045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20046   (exit $ac_status); } &&
20047          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20048   { (case "(($ac_try" in
20049   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20050   *) ac_try_echo=$ac_try;;
20051 esac
20052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20053   (eval "$ac_try") 2>&5
20054   ac_status=$?
20055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20056   (exit $ac_status); }; } &&
20057          { ac_try='test -s conftest.$ac_objext'
20058   { (case "(($ac_try" in
20059   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20060   *) ac_try_echo=$ac_try;;
20061 esac
20062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20063   (eval "$ac_try") 2>&5
20064   ac_status=$?
20065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20066   (exit $ac_status); }; }; then
20067   ac_cv_func_finite_in_ieeefp_h=yes
20068 else
20069   echo "$as_me: failed program was:" >&5
20070 sed 's/^/| /' conftest.$ac_ext >&5
20071
20072         ac_cv_func_finite_in_ieeefp_h=no
20073 fi
20074
20075 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20076   ac_ext=c
20077 ac_cpp='$CPP $CPPFLAGS'
20078 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20079 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20080 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20081
20082 fi
20083 { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
20084 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
20085
20086 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
20087
20088 cat >>confdefs.h <<\_ACEOF
20089 #define HAVE_FINITE_IN_IEEEFP_H 1
20090 _ACEOF
20091
20092 fi
20093
20094
20095
20096 if test "$llvm_cv_platform_type" = "Unix" ; then
20097
20098
20099 for ac_header in stdlib.h unistd.h
20100 do
20101 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20102 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20103   { echo "$as_me:$LINENO: checking for $ac_header" >&5
20104 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20105 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20106   echo $ECHO_N "(cached) $ECHO_C" >&6
20107 fi
20108 ac_res=`eval echo '${'$as_ac_Header'}'`
20109                { echo "$as_me:$LINENO: result: $ac_res" >&5
20110 echo "${ECHO_T}$ac_res" >&6; }
20111 else
20112   # Is the header compilable?
20113 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20114 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20115 cat >conftest.$ac_ext <<_ACEOF
20116 /* confdefs.h.  */
20117 _ACEOF
20118 cat confdefs.h >>conftest.$ac_ext
20119 cat >>conftest.$ac_ext <<_ACEOF
20120 /* end confdefs.h.  */
20121 $ac_includes_default
20122 #include <$ac_header>
20123 _ACEOF
20124 rm -f conftest.$ac_objext
20125 if { (ac_try="$ac_compile"
20126 case "(($ac_try" in
20127   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20128   *) ac_try_echo=$ac_try;;
20129 esac
20130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20131   (eval "$ac_compile") 2>conftest.er1
20132   ac_status=$?
20133   grep -v '^ *+' conftest.er1 >conftest.err
20134   rm -f conftest.er1
20135   cat conftest.err >&5
20136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20137   (exit $ac_status); } &&
20138          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20139   { (case "(($ac_try" in
20140   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20141   *) ac_try_echo=$ac_try;;
20142 esac
20143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20144   (eval "$ac_try") 2>&5
20145   ac_status=$?
20146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20147   (exit $ac_status); }; } &&
20148          { ac_try='test -s conftest.$ac_objext'
20149   { (case "(($ac_try" in
20150   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20151   *) ac_try_echo=$ac_try;;
20152 esac
20153 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20154   (eval "$ac_try") 2>&5
20155   ac_status=$?
20156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20157   (exit $ac_status); }; }; then
20158   ac_header_compiler=yes
20159 else
20160   echo "$as_me: failed program was:" >&5
20161 sed 's/^/| /' conftest.$ac_ext >&5
20162
20163         ac_header_compiler=no
20164 fi
20165
20166 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20167 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20168 echo "${ECHO_T}$ac_header_compiler" >&6; }
20169
20170 # Is the header present?
20171 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20172 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20173 cat >conftest.$ac_ext <<_ACEOF
20174 /* confdefs.h.  */
20175 _ACEOF
20176 cat confdefs.h >>conftest.$ac_ext
20177 cat >>conftest.$ac_ext <<_ACEOF
20178 /* end confdefs.h.  */
20179 #include <$ac_header>
20180 _ACEOF
20181 if { (ac_try="$ac_cpp conftest.$ac_ext"
20182 case "(($ac_try" in
20183   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20184   *) ac_try_echo=$ac_try;;
20185 esac
20186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20187   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20188   ac_status=$?
20189   grep -v '^ *+' conftest.er1 >conftest.err
20190   rm -f conftest.er1
20191   cat conftest.err >&5
20192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20193   (exit $ac_status); } >/dev/null; then
20194   if test -s conftest.err; then
20195     ac_cpp_err=$ac_c_preproc_warn_flag
20196     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20197   else
20198     ac_cpp_err=
20199   fi
20200 else
20201   ac_cpp_err=yes
20202 fi
20203 if test -z "$ac_cpp_err"; then
20204   ac_header_preproc=yes
20205 else
20206   echo "$as_me: failed program was:" >&5
20207 sed 's/^/| /' conftest.$ac_ext >&5
20208
20209   ac_header_preproc=no
20210 fi
20211
20212 rm -f conftest.err conftest.$ac_ext
20213 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20214 echo "${ECHO_T}$ac_header_preproc" >&6; }
20215
20216 # So?  What about this header?
20217 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20218   yes:no: )
20219     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20220 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20221     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20222 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20223     ac_header_preproc=yes
20224     ;;
20225   no:yes:* )
20226     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20227 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20228     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20229 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20230     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20231 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20232     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20233 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20234     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20235 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20236     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20237 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20238     ( cat <<\_ASBOX
20239 ## ------------------------------------ ##
20240 ## Report this to http://llvm.org/bugs/ ##
20241 ## ------------------------------------ ##
20242 _ASBOX
20243      ) | sed "s/^/$as_me: WARNING:     /" >&2
20244     ;;
20245 esac
20246 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20247 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20248 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20249   echo $ECHO_N "(cached) $ECHO_C" >&6
20250 else
20251   eval "$as_ac_Header=\$ac_header_preproc"
20252 fi
20253 ac_res=`eval echo '${'$as_ac_Header'}'`
20254                { echo "$as_me:$LINENO: result: $ac_res" >&5
20255 echo "${ECHO_T}$ac_res" >&6; }
20256
20257 fi
20258 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20259   cat >>confdefs.h <<_ACEOF
20260 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20261 _ACEOF
20262
20263 fi
20264
20265 done
20266
20267
20268 for ac_func in getpagesize
20269 do
20270 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20271 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20272 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20273 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20274   echo $ECHO_N "(cached) $ECHO_C" >&6
20275 else
20276   cat >conftest.$ac_ext <<_ACEOF
20277 /* confdefs.h.  */
20278 _ACEOF
20279 cat confdefs.h >>conftest.$ac_ext
20280 cat >>conftest.$ac_ext <<_ACEOF
20281 /* end confdefs.h.  */
20282 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20283    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20284 #define $ac_func innocuous_$ac_func
20285
20286 /* System header to define __stub macros and hopefully few prototypes,
20287     which can conflict with char $ac_func (); below.
20288     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20289     <limits.h> exists even on freestanding compilers.  */
20290
20291 #ifdef __STDC__
20292 # include <limits.h>
20293 #else
20294 # include <assert.h>
20295 #endif
20296
20297 #undef $ac_func
20298
20299 /* Override any GCC internal prototype to avoid an error.
20300    Use char because int might match the return type of a GCC
20301    builtin and then its argument prototype would still apply.  */
20302 #ifdef __cplusplus
20303 extern "C"
20304 #endif
20305 char $ac_func ();
20306 /* The GNU C library defines this for functions which it implements
20307     to always fail with ENOSYS.  Some functions are actually named
20308     something starting with __ and the normal name is an alias.  */
20309 #if defined __stub_$ac_func || defined __stub___$ac_func
20310 choke me
20311 #endif
20312
20313 int
20314 main ()
20315 {
20316 return $ac_func ();
20317   ;
20318   return 0;
20319 }
20320 _ACEOF
20321 rm -f conftest.$ac_objext conftest$ac_exeext
20322 if { (ac_try="$ac_link"
20323 case "(($ac_try" in
20324   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20325   *) ac_try_echo=$ac_try;;
20326 esac
20327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20328   (eval "$ac_link") 2>conftest.er1
20329   ac_status=$?
20330   grep -v '^ *+' conftest.er1 >conftest.err
20331   rm -f conftest.er1
20332   cat conftest.err >&5
20333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20334   (exit $ac_status); } &&
20335          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20336   { (case "(($ac_try" in
20337   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20338   *) ac_try_echo=$ac_try;;
20339 esac
20340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20341   (eval "$ac_try") 2>&5
20342   ac_status=$?
20343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20344   (exit $ac_status); }; } &&
20345          { ac_try='test -s conftest$ac_exeext'
20346   { (case "(($ac_try" in
20347   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20348   *) ac_try_echo=$ac_try;;
20349 esac
20350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20351   (eval "$ac_try") 2>&5
20352   ac_status=$?
20353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20354   (exit $ac_status); }; }; then
20355   eval "$as_ac_var=yes"
20356 else
20357   echo "$as_me: failed program was:" >&5
20358 sed 's/^/| /' conftest.$ac_ext >&5
20359
20360         eval "$as_ac_var=no"
20361 fi
20362
20363 rm -f core conftest.err conftest.$ac_objext \
20364       conftest$ac_exeext conftest.$ac_ext
20365 fi
20366 ac_res=`eval echo '${'$as_ac_var'}'`
20367                { echo "$as_me:$LINENO: result: $ac_res" >&5
20368 echo "${ECHO_T}$ac_res" >&6; }
20369 if test `eval echo '${'$as_ac_var'}'` = yes; then
20370   cat >>confdefs.h <<_ACEOF
20371 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20372 _ACEOF
20373
20374 fi
20375 done
20376
20377 { echo "$as_me:$LINENO: checking for working mmap" >&5
20378 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
20379 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
20380   echo $ECHO_N "(cached) $ECHO_C" >&6
20381 else
20382   if test "$cross_compiling" = yes; then
20383   ac_cv_func_mmap_fixed_mapped=no
20384 else
20385   cat >conftest.$ac_ext <<_ACEOF
20386 /* confdefs.h.  */
20387 _ACEOF
20388 cat confdefs.h >>conftest.$ac_ext
20389 cat >>conftest.$ac_ext <<_ACEOF
20390 /* end confdefs.h.  */
20391 $ac_includes_default
20392 /* malloc might have been renamed as rpl_malloc. */
20393 #undef malloc
20394
20395 /* Thanks to Mike Haertel and Jim Avera for this test.
20396    Here is a matrix of mmap possibilities:
20397         mmap private not fixed
20398         mmap private fixed at somewhere currently unmapped
20399         mmap private fixed at somewhere already mapped
20400         mmap shared not fixed
20401         mmap shared fixed at somewhere currently unmapped
20402         mmap shared fixed at somewhere already mapped
20403    For private mappings, we should verify that changes cannot be read()
20404    back from the file, nor mmap's back from the file at a different
20405    address.  (There have been systems where private was not correctly
20406    implemented like the infamous i386 svr4.0, and systems where the
20407    VM page cache was not coherent with the file system buffer cache
20408    like early versions of FreeBSD and possibly contemporary NetBSD.)
20409    For shared mappings, we should conversely verify that changes get
20410    propagated back to all the places they're supposed to be.
20411
20412    Grep wants private fixed already mapped.
20413    The main things grep needs to know about mmap are:
20414    * does it exist and is it safe to write into the mmap'd area
20415    * how to use it (BSD variants)  */
20416
20417 #include <fcntl.h>
20418 #include <sys/mman.h>
20419
20420 #if !STDC_HEADERS && !HAVE_STDLIB_H
20421 char *malloc ();
20422 #endif
20423
20424 /* This mess was copied from the GNU getpagesize.h.  */
20425 #if !HAVE_GETPAGESIZE
20426 /* Assume that all systems that can run configure have sys/param.h.  */
20427 # if !HAVE_SYS_PARAM_H
20428 #  define HAVE_SYS_PARAM_H 1
20429 # endif
20430
20431 # ifdef _SC_PAGESIZE
20432 #  define getpagesize() sysconf(_SC_PAGESIZE)
20433 # else /* no _SC_PAGESIZE */
20434 #  if HAVE_SYS_PARAM_H
20435 #   include <sys/param.h>
20436 #   ifdef EXEC_PAGESIZE
20437 #    define getpagesize() EXEC_PAGESIZE
20438 #   else /* no EXEC_PAGESIZE */
20439 #    ifdef NBPG
20440 #     define getpagesize() NBPG * CLSIZE
20441 #     ifndef CLSIZE
20442 #      define CLSIZE 1
20443 #     endif /* no CLSIZE */
20444 #    else /* no NBPG */
20445 #     ifdef NBPC
20446 #      define getpagesize() NBPC
20447 #     else /* no NBPC */
20448 #      ifdef PAGESIZE
20449 #       define getpagesize() PAGESIZE
20450 #      endif /* PAGESIZE */
20451 #     endif /* no NBPC */
20452 #    endif /* no NBPG */
20453 #   endif /* no EXEC_PAGESIZE */
20454 #  else /* no HAVE_SYS_PARAM_H */
20455 #   define getpagesize() 8192   /* punt totally */
20456 #  endif /* no HAVE_SYS_PARAM_H */
20457 # endif /* no _SC_PAGESIZE */
20458
20459 #endif /* no HAVE_GETPAGESIZE */
20460
20461 int
20462 main ()
20463 {
20464   char *data, *data2, *data3;
20465   int i, pagesize;
20466   int fd;
20467
20468   pagesize = getpagesize ();
20469
20470   /* First, make a file with some known garbage in it. */
20471   data = (char *) malloc (pagesize);
20472   if (!data)
20473     return 1;
20474   for (i = 0; i < pagesize; ++i)
20475     *(data + i) = rand ();
20476   umask (0);
20477   fd = creat ("conftest.mmap", 0600);
20478   if (fd < 0)
20479     return 1;
20480   if (write (fd, data, pagesize) != pagesize)
20481     return 1;
20482   close (fd);
20483
20484   /* Next, try to mmap the file at a fixed address which already has
20485      something else allocated at it.  If we can, also make sure that
20486      we see the same garbage.  */
20487   fd = open ("conftest.mmap", O_RDWR);
20488   if (fd < 0)
20489     return 1;
20490   data2 = (char *) malloc (2 * pagesize);
20491   if (!data2)
20492     return 1;
20493   data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
20494   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
20495                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
20496     return 1;
20497   for (i = 0; i < pagesize; ++i)
20498     if (*(data + i) != *(data2 + i))
20499       return 1;
20500
20501   /* Finally, make sure that changes to the mapped area do not
20502      percolate back to the file as seen by read().  (This is a bug on
20503      some variants of i386 svr4.0.)  */
20504   for (i = 0; i < pagesize; ++i)
20505     *(data2 + i) = *(data2 + i) + 1;
20506   data3 = (char *) malloc (pagesize);
20507   if (!data3)
20508     return 1;
20509   if (read (fd, data3, pagesize) != pagesize)
20510     return 1;
20511   for (i = 0; i < pagesize; ++i)
20512     if (*(data + i) != *(data3 + i))
20513       return 1;
20514   close (fd);
20515   return 0;
20516 }
20517 _ACEOF
20518 rm -f conftest$ac_exeext
20519 if { (ac_try="$ac_link"
20520 case "(($ac_try" in
20521   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20522   *) ac_try_echo=$ac_try;;
20523 esac
20524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20525   (eval "$ac_link") 2>&5
20526   ac_status=$?
20527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20528   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20529   { (case "(($ac_try" in
20530   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20531   *) ac_try_echo=$ac_try;;
20532 esac
20533 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20534   (eval "$ac_try") 2>&5
20535   ac_status=$?
20536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20537   (exit $ac_status); }; }; then
20538   ac_cv_func_mmap_fixed_mapped=yes
20539 else
20540   echo "$as_me: program exited with status $ac_status" >&5
20541 echo "$as_me: failed program was:" >&5
20542 sed 's/^/| /' conftest.$ac_ext >&5
20543
20544 ( exit $ac_status )
20545 ac_cv_func_mmap_fixed_mapped=no
20546 fi
20547 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20548 fi
20549
20550
20551 fi
20552 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
20553 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
20554 if test $ac_cv_func_mmap_fixed_mapped = yes; then
20555
20556 cat >>confdefs.h <<\_ACEOF
20557 #define HAVE_MMAP 1
20558 _ACEOF
20559
20560 fi
20561 rm -f conftest.mmap
20562
20563   { echo "$as_me:$LINENO: checking for mmap of files" >&5
20564 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
20565 if test "${ac_cv_func_mmap_file+set}" = set; then
20566   echo $ECHO_N "(cached) $ECHO_C" >&6
20567 else
20568    ac_ext=c
20569 ac_cpp='$CPP $CPPFLAGS'
20570 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20571 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20572 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20573
20574   if test "$cross_compiling" = yes; then
20575   ac_cv_func_mmap_file=no
20576 else
20577   cat >conftest.$ac_ext <<_ACEOF
20578
20579     /* confdefs.h.  */
20580 _ACEOF
20581 cat confdefs.h >>conftest.$ac_ext
20582 cat >>conftest.$ac_ext <<_ACEOF
20583 /* end confdefs.h.  */
20584
20585 #include <sys/types.h>
20586 #include <sys/mman.h>
20587 #include <fcntl.h>
20588
20589 int
20590 main ()
20591 {
20592
20593   int fd;
20594   fd = creat ("foo",0777);
20595   fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
20596   unlink ("foo");
20597   return (fd != (int) MAP_FAILED);
20598   ;
20599   return 0;
20600 }
20601 _ACEOF
20602 rm -f conftest$ac_exeext
20603 if { (ac_try="$ac_link"
20604 case "(($ac_try" in
20605   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20606   *) ac_try_echo=$ac_try;;
20607 esac
20608 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20609   (eval "$ac_link") 2>&5
20610   ac_status=$?
20611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20612   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20613   { (case "(($ac_try" in
20614   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20615   *) ac_try_echo=$ac_try;;
20616 esac
20617 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20618   (eval "$ac_try") 2>&5
20619   ac_status=$?
20620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20621   (exit $ac_status); }; }; then
20622   ac_cv_func_mmap_file=yes
20623 else
20624   echo "$as_me: program exited with status $ac_status" >&5
20625 echo "$as_me: failed program was:" >&5
20626 sed 's/^/| /' conftest.$ac_ext >&5
20627
20628 ( exit $ac_status )
20629 ac_cv_func_mmap_file=no
20630 fi
20631 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20632 fi
20633
20634
20635   ac_ext=c
20636 ac_cpp='$CPP $CPPFLAGS'
20637 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20638 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20639 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20640
20641
20642 fi
20643 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
20644 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
20645 if test "$ac_cv_func_mmap_file" = yes; then
20646
20647 cat >>confdefs.h <<\_ACEOF
20648 #define HAVE_MMAP_FILE
20649 _ACEOF
20650
20651    MMAP_FILE=yes
20652
20653 fi
20654
20655   { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
20656 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
20657 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
20658   echo $ECHO_N "(cached) $ECHO_C" >&6
20659 else
20660   if test "$llvm_cv_os_type" = "Interix" ; then
20661    ac_cv_need_dev_zero_for_mmap=yes
20662  else
20663    ac_cv_need_dev_zero_for_mmap=no
20664  fi
20665
20666 fi
20667 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
20668 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
20669 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
20670
20671 cat >>confdefs.h <<\_ACEOF
20672 #define NEED_DEV_ZERO_FOR_MMAP 1
20673 _ACEOF
20674
20675 fi
20676
20677   if test "$ac_cv_func_mmap_fixed_mapped" = "no"
20678   then
20679     { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
20680 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
20681   fi
20682   if test "$ac_cv_func_mmap_file" = "no"
20683   then
20684     { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
20685 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
20686   fi
20687 fi
20688
20689 { echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
20690 echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
20691 ac_ext=cpp
20692 ac_cpp='$CXXCPP $CPPFLAGS'
20693 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20694 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20695 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20696
20697 cat >conftest.$ac_ext <<_ACEOF
20698 /* confdefs.h.  */
20699 _ACEOF
20700 cat confdefs.h >>conftest.$ac_ext
20701 cat >>conftest.$ac_ext <<_ACEOF
20702 /* end confdefs.h.  */
20703 int main() {
20704         volatile unsigned long val = 1;
20705         __sync_synchronize();
20706         __sync_val_compare_and_swap(&val, 1, 0);
20707         __sync_add_and_fetch(&val, 1);
20708         __sync_sub_and_fetch(&val, 1);
20709         return 0;
20710       }
20711
20712 _ACEOF
20713 rm -f conftest.$ac_objext conftest$ac_exeext
20714 if { (ac_try="$ac_link"
20715 case "(($ac_try" in
20716   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20717   *) ac_try_echo=$ac_try;;
20718 esac
20719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20720   (eval "$ac_link") 2>conftest.er1
20721   ac_status=$?
20722   grep -v '^ *+' conftest.er1 >conftest.err
20723   rm -f conftest.er1
20724   cat conftest.err >&5
20725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20726   (exit $ac_status); } &&
20727          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20728   { (case "(($ac_try" in
20729   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20730   *) ac_try_echo=$ac_try;;
20731 esac
20732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20733   (eval "$ac_try") 2>&5
20734   ac_status=$?
20735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20736   (exit $ac_status); }; } &&
20737          { ac_try='test -s conftest$ac_exeext'
20738   { (case "(($ac_try" in
20739   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20740   *) ac_try_echo=$ac_try;;
20741 esac
20742 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20743   (eval "$ac_try") 2>&5
20744   ac_status=$?
20745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20746   (exit $ac_status); }; }; then
20747   ac_ext=c
20748 ac_cpp='$CPP $CPPFLAGS'
20749 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20750 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20751 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20752
20753   { echo "$as_me:$LINENO: result: yes" >&5
20754 echo "${ECHO_T}yes" >&6; }
20755
20756 cat >>confdefs.h <<\_ACEOF
20757 #define LLVM_HAS_ATOMICS 1
20758 _ACEOF
20759
20760 else
20761   echo "$as_me: failed program was:" >&5
20762 sed 's/^/| /' conftest.$ac_ext >&5
20763
20764         { echo "$as_me:$LINENO: result: no" >&5
20765 echo "${ECHO_T}no" >&6; }
20766
20767 cat >>confdefs.h <<\_ACEOF
20768 #define LLVM_HAS_ATOMICS 0
20769 _ACEOF
20770
20771   { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
20772 echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
20773 fi
20774
20775 rm -f core conftest.err conftest.$ac_objext \
20776       conftest$ac_exeext conftest.$ac_ext
20777
20778
20779 if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
20780   { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
20781 echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
20782 if test "${llvm_cv_linux_mixed+set}" = set; then
20783   echo $ECHO_N "(cached) $ECHO_C" >&6
20784 else
20785    ac_ext=c
20786 ac_cpp='$CPP $CPPFLAGS'
20787 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20788 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20789 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20790
20791   cat >conftest.$ac_ext <<_ACEOF
20792 /* confdefs.h.  */
20793 _ACEOF
20794 cat confdefs.h >>conftest.$ac_ext
20795 cat >>conftest.$ac_ext <<_ACEOF
20796 /* end confdefs.h.  */
20797 #ifndef __x86_64__
20798        error: Not x86-64 even if uname says so!
20799       #endif
20800
20801 int
20802 main ()
20803 {
20804
20805   ;
20806   return 0;
20807 }
20808 _ACEOF
20809 rm -f conftest.$ac_objext
20810 if { (ac_try="$ac_compile"
20811 case "(($ac_try" in
20812   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20813   *) ac_try_echo=$ac_try;;
20814 esac
20815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20816   (eval "$ac_compile") 2>conftest.er1
20817   ac_status=$?
20818   grep -v '^ *+' conftest.er1 >conftest.err
20819   rm -f conftest.er1
20820   cat conftest.err >&5
20821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20822   (exit $ac_status); } &&
20823          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20824   { (case "(($ac_try" in
20825   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20826   *) ac_try_echo=$ac_try;;
20827 esac
20828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20829   (eval "$ac_try") 2>&5
20830   ac_status=$?
20831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20832   (exit $ac_status); }; } &&
20833          { ac_try='test -s conftest.$ac_objext'
20834   { (case "(($ac_try" in
20835   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20836   *) ac_try_echo=$ac_try;;
20837 esac
20838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20839   (eval "$ac_try") 2>&5
20840   ac_status=$?
20841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20842   (exit $ac_status); }; }; then
20843   llvm_cv_linux_mixed=no
20844 else
20845   echo "$as_me: failed program was:" >&5
20846 sed 's/^/| /' conftest.$ac_ext >&5
20847
20848         llvm_cv_linux_mixed=yes
20849 fi
20850
20851 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20852   ac_ext=c
20853 ac_cpp='$CPP $CPPFLAGS'
20854 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20855 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20856 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20857
20858
20859 fi
20860 { echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
20861 echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
20862
20863   if test "$llvm_cv_linux_mixed" = "yes"; then
20864     llvm_cv_target_arch="x86"
20865     ARCH="x86"
20866   fi
20867 fi
20868
20869
20870 for ac_func in __dso_handle
20871 do
20872 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20873 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20874 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20875 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20876   echo $ECHO_N "(cached) $ECHO_C" >&6
20877 else
20878   cat >conftest.$ac_ext <<_ACEOF
20879 /* confdefs.h.  */
20880 _ACEOF
20881 cat confdefs.h >>conftest.$ac_ext
20882 cat >>conftest.$ac_ext <<_ACEOF
20883 /* end confdefs.h.  */
20884 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20885    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20886 #define $ac_func innocuous_$ac_func
20887
20888 /* System header to define __stub macros and hopefully few prototypes,
20889     which can conflict with char $ac_func (); below.
20890     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20891     <limits.h> exists even on freestanding compilers.  */
20892
20893 #ifdef __STDC__
20894 # include <limits.h>
20895 #else
20896 # include <assert.h>
20897 #endif
20898
20899 #undef $ac_func
20900
20901 /* Override any GCC internal prototype to avoid an error.
20902    Use char because int might match the return type of a GCC
20903    builtin and then its argument prototype would still apply.  */
20904 #ifdef __cplusplus
20905 extern "C"
20906 #endif
20907 char $ac_func ();
20908 /* The GNU C library defines this for functions which it implements
20909     to always fail with ENOSYS.  Some functions are actually named
20910     something starting with __ and the normal name is an alias.  */
20911 #if defined __stub_$ac_func || defined __stub___$ac_func
20912 choke me
20913 #endif
20914
20915 int
20916 main ()
20917 {
20918 return $ac_func ();
20919   ;
20920   return 0;
20921 }
20922 _ACEOF
20923 rm -f conftest.$ac_objext conftest$ac_exeext
20924 if { (ac_try="$ac_link"
20925 case "(($ac_try" in
20926   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20927   *) ac_try_echo=$ac_try;;
20928 esac
20929 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20930   (eval "$ac_link") 2>conftest.er1
20931   ac_status=$?
20932   grep -v '^ *+' conftest.er1 >conftest.err
20933   rm -f conftest.er1
20934   cat conftest.err >&5
20935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20936   (exit $ac_status); } &&
20937          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20938   { (case "(($ac_try" in
20939   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20940   *) ac_try_echo=$ac_try;;
20941 esac
20942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20943   (eval "$ac_try") 2>&5
20944   ac_status=$?
20945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20946   (exit $ac_status); }; } &&
20947          { ac_try='test -s conftest$ac_exeext'
20948   { (case "(($ac_try" in
20949   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20950   *) ac_try_echo=$ac_try;;
20951 esac
20952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20953   (eval "$ac_try") 2>&5
20954   ac_status=$?
20955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20956   (exit $ac_status); }; }; then
20957   eval "$as_ac_var=yes"
20958 else
20959   echo "$as_me: failed program was:" >&5
20960 sed 's/^/| /' conftest.$ac_ext >&5
20961
20962         eval "$as_ac_var=no"
20963 fi
20964
20965 rm -f core conftest.err conftest.$ac_objext \
20966       conftest$ac_exeext conftest.$ac_ext
20967 fi
20968 ac_res=`eval echo '${'$as_ac_var'}'`
20969                { echo "$as_me:$LINENO: result: $ac_res" >&5
20970 echo "${ECHO_T}$ac_res" >&6; }
20971 if test `eval echo '${'$as_ac_var'}'` = yes; then
20972   cat >>confdefs.h <<_ACEOF
20973 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20974 _ACEOF
20975
20976 fi
20977 done
20978
20979
20980 SHLIBEXT=$libltdl_cv_shlibext
20981
20982
20983 SHLIBPATH_VAR=$libltdl_cv_shlibpath_var
20984
20985
20986 if test "${prefix}" = "NONE" ; then
20987   prefix="/usr/local"
20988 fi
20989 eval LLVM_PREFIX="${prefix}";
20990 eval LLVM_BINDIR="${prefix}/bin";
20991 eval LLVM_LIBDIR="${prefix}/lib";
20992 eval LLVM_DATADIR="${prefix}/share/llvm";
20993 eval LLVM_DOCSDIR="${prefix}/share/doc/llvm";
20994 eval LLVM_ETCDIR="${prefix}/etc/llvm";
20995 eval LLVM_INCLUDEDIR="${prefix}/include";
20996 eval LLVM_INFODIR="${prefix}/info";
20997 eval LLVM_MANDIR="${prefix}/man";
20998 LLVM_CONFIGTIME=`date`
20999
21000
21001
21002
21003
21004
21005
21006
21007
21008
21009
21010 if test "${ENABLE_TIMESTAMPS}" = "0"; then
21011   LLVM_CONFIGTIME="(timestamp not enabled)"
21012 fi
21013
21014
21015 cat >>confdefs.h <<_ACEOF
21016 #define LLVM_PREFIX "$LLVM_PREFIX"
21017 _ACEOF
21018
21019
21020 cat >>confdefs.h <<_ACEOF
21021 #define LLVM_BINDIR "$LLVM_BINDIR"
21022 _ACEOF
21023
21024
21025 cat >>confdefs.h <<_ACEOF
21026 #define LLVM_LIBDIR "$LLVM_LIBDIR"
21027 _ACEOF
21028
21029
21030 cat >>confdefs.h <<_ACEOF
21031 #define LLVM_DATADIR "$LLVM_DATADIR"
21032 _ACEOF
21033
21034
21035 cat >>confdefs.h <<_ACEOF
21036 #define LLVM_DOCSDIR "$LLVM_DOCSDIR"
21037 _ACEOF
21038
21039
21040 cat >>confdefs.h <<_ACEOF
21041 #define LLVM_ETCDIR "$LLVM_ETCDIR"
21042 _ACEOF
21043
21044
21045 cat >>confdefs.h <<_ACEOF
21046 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
21047 _ACEOF
21048
21049
21050 cat >>confdefs.h <<_ACEOF
21051 #define LLVM_INFODIR "$LLVM_INFODIR"
21052 _ACEOF
21053
21054
21055 cat >>confdefs.h <<_ACEOF
21056 #define LLVM_MANDIR "$LLVM_MANDIR"
21057 _ACEOF
21058
21059
21060 cat >>confdefs.h <<_ACEOF
21061 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
21062 _ACEOF
21063
21064
21065 cat >>confdefs.h <<_ACEOF
21066 #define LLVM_DEFAULT_TARGET_TRIPLE "$target"
21067 _ACEOF
21068
21069
21070 if test "$BINDINGS_TO_BUILD" = auto ; then
21071   BINDINGS_TO_BUILD=""
21072   if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
21073     BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
21074   fi
21075 fi
21076 BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
21077
21078
21079 ALL_BINDINGS=ocaml
21080
21081
21082 binding_prereqs_failed=0
21083 for a_binding in $BINDINGS_TO_BUILD ; do
21084   case "$a_binding" in
21085   ocaml)
21086     if test "x$OCAMLC" = x ; then
21087       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
21088 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
21089       binding_prereqs_failed=1
21090     fi
21091     if test "x$OCAMLDEP" = x ; then
21092       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
21093 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
21094       binding_prereqs_failed=1
21095     fi
21096     if test "x$OCAMLOPT" = x ; then
21097       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
21098 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
21099           fi
21100     if test "x$with_ocaml_libdir" != xauto ; then
21101       OCAML_LIBDIR=$with_ocaml_libdir
21102
21103     else
21104       ocaml_stdlib="`"$OCAMLC" -where`"
21105       if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
21106       then
21107         # ocaml stdlib is beneath our prefix; use stdlib
21108         OCAML_LIBDIR=$ocaml_stdlib
21109
21110       else
21111         # ocaml stdlib is outside our prefix; use libdir/ocaml
21112         OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
21113
21114       fi
21115     fi
21116     ;;
21117   esac
21118 done
21119 if test "$binding_prereqs_failed" = 1 ; then
21120   { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
21121 echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
21122    { (exit 1); exit 1; }; }
21123 fi
21124
21125 { echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
21126 echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
21127 if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
21128   echo $ECHO_N "(cached) $ECHO_C" >&6
21129 else
21130    ac_ext=cpp
21131 ac_cpp='$CXXCPP $CPPFLAGS'
21132 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21133 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21134 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21135
21136   oldcxxflags="$CXXFLAGS"
21137   CXXFLAGS="$CXXFLAGS -O0 -fvisibility-inlines-hidden -Werror"
21138   cat >conftest.$ac_ext <<_ACEOF
21139 /* confdefs.h.  */
21140 _ACEOF
21141 cat confdefs.h >>conftest.$ac_ext
21142 cat >>conftest.$ac_ext <<_ACEOF
21143 /* end confdefs.h.  */
21144 template <typename T> struct X { void __attribute__((noinline)) f() {} };
21145 int
21146 main ()
21147 {
21148 X<int>().f();
21149   ;
21150   return 0;
21151 }
21152 _ACEOF
21153 rm -f conftest.$ac_objext
21154 if { (ac_try="$ac_compile"
21155 case "(($ac_try" in
21156   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21157   *) ac_try_echo=$ac_try;;
21158 esac
21159 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21160   (eval "$ac_compile") 2>conftest.er1
21161   ac_status=$?
21162   grep -v '^ *+' conftest.er1 >conftest.err
21163   rm -f conftest.er1
21164   cat conftest.err >&5
21165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21166   (exit $ac_status); } &&
21167          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21168   { (case "(($ac_try" in
21169   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21170   *) ac_try_echo=$ac_try;;
21171 esac
21172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21173   (eval "$ac_try") 2>&5
21174   ac_status=$?
21175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21176   (exit $ac_status); }; } &&
21177          { ac_try='test -s conftest.$ac_objext'
21178   { (case "(($ac_try" in
21179   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21180   *) ac_try_echo=$ac_try;;
21181 esac
21182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21183   (eval "$ac_try") 2>&5
21184   ac_status=$?
21185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21186   (exit $ac_status); }; }; then
21187   llvm_cv_cxx_visibility_inlines_hidden=yes
21188 else
21189   echo "$as_me: failed program was:" >&5
21190 sed 's/^/| /' conftest.$ac_ext >&5
21191
21192         llvm_cv_cxx_visibility_inlines_hidden=no
21193 fi
21194
21195 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21196   CXXFLAGS="$oldcxxflags"
21197   ac_ext=c
21198 ac_cpp='$CPP $CPPFLAGS'
21199 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21200 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21201 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21202
21203
21204 fi
21205 { echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
21206 echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
21207 if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
21208   ENABLE_VISIBILITY_INLINES_HIDDEN=1
21209
21210 else
21211   ENABLE_VISIBILITY_INLINES_HIDDEN=0
21212
21213 fi
21214
21215
21216 if test "$llvm_cv_link_use_r" = "yes" ; then
21217   RPATH="-Wl,-R"
21218 else
21219   RPATH="-Wl,-rpath"
21220 fi
21221
21222
21223 if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
21224   RDYNAMIC="-Wl,-export-dynamic"
21225 else
21226   RDYNAMIC=""
21227 fi
21228
21229
21230
21231 ac_config_headers="$ac_config_headers include/llvm/Config/config.h include/llvm/Config/llvm-config.h"
21232
21233
21234
21235
21236
21237
21238 ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
21239
21240 ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
21241
21242 ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
21243
21244 ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def"
21245
21246 ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
21247
21248
21249 ac_config_files="$ac_config_files Makefile.config"
21250
21251
21252 ac_config_files="$ac_config_files llvm.spec"
21253
21254
21255 ac_config_files="$ac_config_files docs/doxygen.cfg"
21256
21257
21258 if test "${clang_src_root}" = ""; then
21259   clang_src_root="$srcdir/tools/clang"
21260 fi
21261 if test -f ${clang_src_root}/README.txt; then
21262     configh="include/clang/Config/config.h"
21263   doxy="docs/doxygen.cfg"
21264   ac_config_headers="$ac_config_headers tools/clang/${configh}:${clang_src_root}/${configh}.in"
21265
21266   ac_config_files="$ac_config_files tools/clang/${doxy}:${clang_src_root}/${doxy}.in"
21267
21268 fi
21269
21270 ac_config_files="$ac_config_files bindings/ocaml/llvm/META.llvm"
21271
21272
21273 ac_config_commands="$ac_config_commands setup"
21274
21275 ac_config_commands="$ac_config_commands Makefile"
21276
21277
21278 ac_config_commands="$ac_config_commands Makefile.common"
21279
21280
21281 ac_config_commands="$ac_config_commands examples/Makefile"
21282
21283
21284 ac_config_commands="$ac_config_commands lib/Makefile"
21285
21286
21287 ac_config_commands="$ac_config_commands runtime/Makefile"
21288
21289
21290 ac_config_commands="$ac_config_commands test/Makefile"
21291
21292
21293 ac_config_commands="$ac_config_commands test/Makefile.tests"
21294
21295
21296 ac_config_commands="$ac_config_commands unittests/Makefile"
21297
21298
21299 ac_config_commands="$ac_config_commands tools/Makefile"
21300
21301
21302 ac_config_commands="$ac_config_commands utils/Makefile"
21303
21304
21305 ac_config_commands="$ac_config_commands projects/Makefile"
21306
21307
21308 ac_config_commands="$ac_config_commands bindings/Makefile"
21309
21310
21311 ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
21312
21313
21314
21315 cat >confcache <<\_ACEOF
21316 # This file is a shell script that caches the results of configure
21317 # tests run on this system so they can be shared between configure
21318 # scripts and configure runs, see configure's option --config-cache.
21319 # It is not useful on other systems.  If it contains results you don't
21320 # want to keep, you may remove or edit it.
21321 #
21322 # config.status only pays attention to the cache file if you give it
21323 # the --recheck option to rerun configure.
21324 #
21325 # `ac_cv_env_foo' variables (set or unset) will be overridden when
21326 # loading this file, other *unset* `ac_cv_foo' will be assigned the
21327 # following values.
21328
21329 _ACEOF
21330
21331 # The following way of writing the cache mishandles newlines in values,
21332 # but we know of no workaround that is simple, portable, and efficient.
21333 # So, we kill variables containing newlines.
21334 # Ultrix sh set writes to stderr and can't be redirected directly,
21335 # and sets the high bit in the cache file unless we assign to the vars.
21336 (
21337   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
21338     eval ac_val=\$$ac_var
21339     case $ac_val in #(
21340     *${as_nl}*)
21341       case $ac_var in #(
21342       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
21343 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
21344       esac
21345       case $ac_var in #(
21346       _ | IFS | as_nl) ;; #(
21347       *) $as_unset $ac_var ;;
21348       esac ;;
21349     esac
21350   done
21351
21352   (set) 2>&1 |
21353     case $as_nl`(ac_space=' '; set) 2>&1` in #(
21354     *${as_nl}ac_space=\ *)
21355       # `set' does not quote correctly, so add quotes (double-quote
21356       # substitution turns \\\\ into \\, and sed turns \\ into \).
21357       sed -n \
21358         "s/'/'\\\\''/g;
21359           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21360       ;; #(
21361     *)
21362       # `set' quotes correctly as required by POSIX, so do not add quotes.
21363       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
21364       ;;
21365     esac |
21366     sort
21367 ) |
21368   sed '
21369      /^ac_cv_env_/b end
21370      t clear
21371      :clear
21372      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21373      t end
21374      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21375      :end' >>confcache
21376 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
21377   if test -w "$cache_file"; then
21378     test "x$cache_file" != "x/dev/null" &&
21379       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
21380 echo "$as_me: updating cache $cache_file" >&6;}
21381     cat confcache >$cache_file
21382   else
21383     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
21384 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
21385   fi
21386 fi
21387 rm -f confcache
21388
21389 test "x$prefix" = xNONE && prefix=$ac_default_prefix
21390 # Let make expand exec_prefix.
21391 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21392
21393 DEFS=-DHAVE_CONFIG_H
21394
21395 ac_libobjs=
21396 ac_ltlibobjs=
21397 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21398   # 1. Remove the extension, and $U if already installed.
21399   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
21400   ac_i=`echo "$ac_i" | sed "$ac_script"`
21401   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
21402   #    will be set to the directory where LIBOBJS objects are built.
21403   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21404   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
21405 done
21406 LIBOBJS=$ac_libobjs
21407
21408 LTLIBOBJS=$ac_ltlibobjs
21409
21410
21411 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
21412   { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
21413 Usually this means the macro was only invoked conditionally." >&5
21414 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
21415 Usually this means the macro was only invoked conditionally." >&2;}
21416    { (exit 1); exit 1; }; }
21417 fi
21418 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
21419   { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21420 Usually this means the macro was only invoked conditionally." >&5
21421 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21422 Usually this means the macro was only invoked conditionally." >&2;}
21423    { (exit 1); exit 1; }; }
21424 fi
21425
21426 : ${CONFIG_STATUS=./config.status}
21427 ac_clean_files_save=$ac_clean_files
21428 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21429 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21430 echo "$as_me: creating $CONFIG_STATUS" >&6;}
21431 cat >$CONFIG_STATUS <<_ACEOF
21432 #! $SHELL
21433 # Generated by $as_me.
21434 # Run this file to recreate the current configuration.
21435 # Compiler output produced by configure, useful for debugging
21436 # configure, is in config.log if it exists.
21437
21438 debug=false
21439 ac_cs_recheck=false
21440 ac_cs_silent=false
21441 SHELL=\${CONFIG_SHELL-$SHELL}
21442 _ACEOF
21443
21444 cat >>$CONFIG_STATUS <<\_ACEOF
21445 ## --------------------- ##
21446 ## M4sh Initialization.  ##
21447 ## --------------------- ##
21448
21449 # Be Bourne compatible
21450 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21451   emulate sh
21452   NULLCMD=:
21453   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21454   # is contrary to our usage.  Disable this feature.
21455   alias -g '${1+"$@"}'='"$@"'
21456   setopt NO_GLOB_SUBST
21457 else
21458   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
21459 fi
21460 BIN_SH=xpg4; export BIN_SH # for Tru64
21461 DUALCASE=1; export DUALCASE # for MKS sh
21462
21463
21464 # PATH needs CR
21465 # Avoid depending upon Character Ranges.
21466 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21467 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21468 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21469 as_cr_digits='0123456789'
21470 as_cr_alnum=$as_cr_Letters$as_cr_digits
21471
21472 # The user is always right.
21473 if test "${PATH_SEPARATOR+set}" != set; then
21474   echo "#! /bin/sh" >conf$$.sh
21475   echo  "exit 0"   >>conf$$.sh
21476   chmod +x conf$$.sh
21477   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21478     PATH_SEPARATOR=';'
21479   else
21480     PATH_SEPARATOR=:
21481   fi
21482   rm -f conf$$.sh
21483 fi
21484
21485 # Support unset when possible.
21486 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21487   as_unset=unset
21488 else
21489   as_unset=false
21490 fi
21491
21492
21493 # IFS
21494 # We need space, tab and new line, in precisely that order.  Quoting is
21495 # there to prevent editors from complaining about space-tab.
21496 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
21497 # splitting by setting IFS to empty value.)
21498 as_nl='
21499 '
21500 IFS=" ""        $as_nl"
21501
21502 # Find who we are.  Look in the path if we contain no directory separator.
21503 case $0 in
21504   *[\\/]* ) as_myself=$0 ;;
21505   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21506 for as_dir in $PATH
21507 do
21508   IFS=$as_save_IFS
21509   test -z "$as_dir" && as_dir=.
21510   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21511 done
21512 IFS=$as_save_IFS
21513
21514      ;;
21515 esac
21516 # We did not find ourselves, most probably we were run as `sh COMMAND'
21517 # in which case we are not to be found in the path.
21518 if test "x$as_myself" = x; then
21519   as_myself=$0
21520 fi
21521 if test ! -f "$as_myself"; then
21522   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21523   { (exit 1); exit 1; }
21524 fi
21525
21526 # Work around bugs in pre-3.0 UWIN ksh.
21527 for as_var in ENV MAIL MAILPATH
21528 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21529 done
21530 PS1='$ '
21531 PS2='> '
21532 PS4='+ '
21533
21534 # NLS nuisances.
21535 for as_var in \
21536   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21537   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21538   LC_TELEPHONE LC_TIME
21539 do
21540   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21541     eval $as_var=C; export $as_var
21542   else
21543     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21544   fi
21545 done
21546
21547 # Required to use basename.
21548 if expr a : '\(a\)' >/dev/null 2>&1 &&
21549    test "X`expr 00001 : '.*\(...\)'`" = X001; then
21550   as_expr=expr
21551 else
21552   as_expr=false
21553 fi
21554
21555 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21556   as_basename=basename
21557 else
21558   as_basename=false
21559 fi
21560
21561
21562 # Name of the executable.
21563 as_me=`$as_basename -- "$0" ||
21564 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21565          X"$0" : 'X\(//\)$' \| \
21566          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
21567 echo X/"$0" |
21568     sed '/^.*\/\([^/][^/]*\)\/*$/{
21569             s//\1/
21570             q
21571           }
21572           /^X\/\(\/\/\)$/{
21573             s//\1/
21574             q
21575           }
21576           /^X\/\(\/\).*/{
21577             s//\1/
21578             q
21579           }
21580           s/.*/./; q'`
21581
21582 # CDPATH.
21583 $as_unset CDPATH
21584
21585
21586
21587   as_lineno_1=$LINENO
21588   as_lineno_2=$LINENO
21589   test "x$as_lineno_1" != "x$as_lineno_2" &&
21590   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
21591
21592   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21593   # uniformly replaced by the line number.  The first 'sed' inserts a
21594   # line-number line after each line using $LINENO; the second 'sed'
21595   # does the real work.  The second script uses 'N' to pair each
21596   # line-number line with the line containing $LINENO, and appends
21597   # trailing '-' during substitution so that $LINENO is not a special
21598   # case at line end.
21599   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21600   # scripts with optimization help from Paolo Bonzini.  Blame Lee
21601   # E. McMahon (1931-1989) for sed's syntax.  :-)
21602   sed -n '
21603     p
21604     /[$]LINENO/=
21605   ' <$as_myself |
21606     sed '
21607       s/[$]LINENO.*/&-/
21608       t lineno
21609       b
21610       :lineno
21611       N
21612       :loop
21613       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
21614       t loop
21615       s/-\n.*//
21616     ' >$as_me.lineno &&
21617   chmod +x "$as_me.lineno" ||
21618     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
21619    { (exit 1); exit 1; }; }
21620
21621   # Don't try to exec as it changes $[0], causing all sort of problems
21622   # (the dirname of $[0] is not the place where we might find the
21623   # original and so on.  Autoconf is especially sensitive to this).
21624   . "./$as_me.lineno"
21625   # Exit status is that of the last command.
21626   exit
21627 }
21628
21629
21630 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21631   as_dirname=dirname
21632 else
21633   as_dirname=false
21634 fi
21635
21636 ECHO_C= ECHO_N= ECHO_T=
21637 case `echo -n x` in
21638 -n*)
21639   case `echo 'x\c'` in
21640   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
21641   *)   ECHO_C='\c';;
21642   esac;;
21643 *)
21644   ECHO_N='-n';;
21645 esac
21646
21647 if expr a : '\(a\)' >/dev/null 2>&1 &&
21648    test "X`expr 00001 : '.*\(...\)'`" = X001; then
21649   as_expr=expr
21650 else
21651   as_expr=false
21652 fi
21653
21654 rm -f conf$$ conf$$.exe conf$$.file
21655 if test -d conf$$.dir; then
21656   rm -f conf$$.dir/conf$$.file
21657 else
21658   rm -f conf$$.dir
21659   mkdir conf$$.dir
21660 fi
21661 echo >conf$$.file
21662 if ln -s conf$$.file conf$$ 2>/dev/null; then
21663   as_ln_s='ln -s'
21664   # ... but there are two gotchas:
21665   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21666   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21667   # In both cases, we have to default to `cp -p'.
21668   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
21669     as_ln_s='cp -p'
21670 elif ln conf$$.file conf$$ 2>/dev/null; then
21671   as_ln_s=ln
21672 else
21673   as_ln_s='cp -p'
21674 fi
21675 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21676 rmdir conf$$.dir 2>/dev/null
21677
21678 if mkdir -p . 2>/dev/null; then
21679   as_mkdir_p=:
21680 else
21681   test -d ./-p && rmdir ./-p
21682   as_mkdir_p=false
21683 fi
21684
21685 # Find out whether ``test -x'' works.  Don't use a zero-byte file, as
21686 # systems may use methods other than mode bits to determine executability.
21687 cat >conf$$.file <<_ASEOF
21688 #! /bin/sh
21689 exit 0
21690 _ASEOF
21691 chmod +x conf$$.file
21692 if test -x conf$$.file >/dev/null 2>&1; then
21693   as_executable_p="test -x"
21694 else
21695   as_executable_p=:
21696 fi
21697 rm -f conf$$.file
21698
21699 # Sed expression to map a string onto a valid CPP name.
21700 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21701
21702 # Sed expression to map a string onto a valid variable name.
21703 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21704
21705
21706 exec 6>&1
21707
21708 # Save the log message, to keep $[0] and so on meaningful, and to
21709 # report actual input values of CONFIG_FILES etc. instead of their
21710 # values after options handling.
21711 ac_log="
21712 This file was extended by LLVM $as_me 3.2svn, which was
21713 generated by GNU Autoconf 2.60.  Invocation command line was
21714
21715   CONFIG_FILES    = $CONFIG_FILES
21716   CONFIG_HEADERS  = $CONFIG_HEADERS
21717   CONFIG_LINKS    = $CONFIG_LINKS
21718   CONFIG_COMMANDS = $CONFIG_COMMANDS
21719   $ $0 $@
21720
21721 on `(hostname || uname -n) 2>/dev/null | sed 1q`
21722 "
21723
21724 _ACEOF
21725
21726 cat >>$CONFIG_STATUS <<_ACEOF
21727 # Files that config.status was made for.
21728 config_files="$ac_config_files"
21729 config_headers="$ac_config_headers"
21730 config_commands="$ac_config_commands"
21731
21732 _ACEOF
21733
21734 cat >>$CONFIG_STATUS <<\_ACEOF
21735 ac_cs_usage="\
21736 \`$as_me' instantiates files from templates according to the
21737 current configuration.
21738
21739 Usage: $0 [OPTIONS] [FILE]...
21740
21741   -h, --help       print this help, then exit
21742   -V, --version    print version number, then exit
21743   -q, --quiet      do not print progress messages
21744   -d, --debug      don't remove temporary files
21745       --recheck    update $as_me by reconfiguring in the same conditions
21746   --file=FILE[:TEMPLATE]
21747                    instantiate the configuration file FILE
21748   --header=FILE[:TEMPLATE]
21749                    instantiate the configuration header FILE
21750
21751 Configuration files:
21752 $config_files
21753
21754 Configuration headers:
21755 $config_headers
21756
21757 Configuration commands:
21758 $config_commands
21759
21760 Report bugs to <bug-autoconf@gnu.org>."
21761
21762 _ACEOF
21763 cat >>$CONFIG_STATUS <<_ACEOF
21764 ac_cs_version="\\
21765 LLVM config.status 3.2svn
21766 configured by $0, generated by GNU Autoconf 2.60,
21767   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
21768
21769 Copyright (C) 2006 Free Software Foundation, Inc.
21770 This config.status script is free software; the Free Software Foundation
21771 gives unlimited permission to copy, distribute and modify it."
21772
21773 ac_pwd='$ac_pwd'
21774 srcdir='$srcdir'
21775 INSTALL='$INSTALL'
21776 _ACEOF
21777
21778 cat >>$CONFIG_STATUS <<\_ACEOF
21779 # If no file are specified by the user, then we need to provide default
21780 # value.  By we need to know if files were specified by the user.
21781 ac_need_defaults=:
21782 while test $# != 0
21783 do
21784   case $1 in
21785   --*=*)
21786     ac_option=`expr "X$1" : 'X\([^=]*\)='`
21787     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
21788     ac_shift=:
21789     ;;
21790   *)
21791     ac_option=$1
21792     ac_optarg=$2
21793     ac_shift=shift
21794     ;;
21795   esac
21796
21797   case $ac_option in
21798   # Handling of the options.
21799   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21800     ac_cs_recheck=: ;;
21801   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
21802     echo "$ac_cs_version"; exit ;;
21803   --debug | --debu | --deb | --de | --d | -d )
21804     debug=: ;;
21805   --file | --fil | --fi | --f )
21806     $ac_shift
21807     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
21808     ac_need_defaults=false;;
21809   --header | --heade | --head | --hea )
21810     $ac_shift
21811     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
21812     ac_need_defaults=false;;
21813   --he | --h)
21814     # Conflict between --help and --header
21815     { echo "$as_me: error: ambiguous option: $1
21816 Try \`$0 --help' for more information." >&2
21817    { (exit 1); exit 1; }; };;
21818   --help | --hel | -h )
21819     echo "$ac_cs_usage"; exit ;;
21820   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21821   | -silent | --silent | --silen | --sile | --sil | --si | --s)
21822     ac_cs_silent=: ;;
21823
21824   # This is an error.
21825   -*) { echo "$as_me: error: unrecognized option: $1
21826 Try \`$0 --help' for more information." >&2
21827    { (exit 1); exit 1; }; } ;;
21828
21829   *) ac_config_targets="$ac_config_targets $1"
21830      ac_need_defaults=false ;;
21831
21832   esac
21833   shift
21834 done
21835
21836 ac_configure_extra_args=
21837
21838 if $ac_cs_silent; then
21839   exec 6>/dev/null
21840   ac_configure_extra_args="$ac_configure_extra_args --silent"
21841 fi
21842
21843 _ACEOF
21844 cat >>$CONFIG_STATUS <<_ACEOF
21845 if \$ac_cs_recheck; then
21846   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21847   CONFIG_SHELL=$SHELL
21848   export CONFIG_SHELL
21849   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21850 fi
21851
21852 _ACEOF
21853 cat >>$CONFIG_STATUS <<\_ACEOF
21854 exec 5>>config.log
21855 {
21856   echo
21857   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21858 ## Running $as_me. ##
21859 _ASBOX
21860   echo "$ac_log"
21861 } >&5
21862
21863 _ACEOF
21864 cat >>$CONFIG_STATUS <<_ACEOF
21865 #
21866 # INIT-COMMANDS
21867 #
21868 llvm_src="${srcdir}"
21869
21870 _ACEOF
21871
21872 cat >>$CONFIG_STATUS <<\_ACEOF
21873
21874 # Handling of arguments.
21875 for ac_config_target in $ac_config_targets
21876 do
21877   case $ac_config_target in
21878     "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
21879     "include/llvm/Config/llvm-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/llvm-config.h" ;;
21880     "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
21881     "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
21882     "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
21883     "include/llvm/Config/Disassemblers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Disassemblers.def" ;;
21884     "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
21885     "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
21886     "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
21887     "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
21888     "tools/clang/${configh}") CONFIG_HEADERS="$CONFIG_HEADERS tools/clang/${configh}:${clang_src_root}/${configh}.in" ;;
21889     "tools/clang/${doxy}") CONFIG_FILES="$CONFIG_FILES tools/clang/${doxy}:${clang_src_root}/${doxy}.in" ;;
21890     "bindings/ocaml/llvm/META.llvm") CONFIG_FILES="$CONFIG_FILES bindings/ocaml/llvm/META.llvm" ;;
21891     "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
21892     "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
21893     "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
21894     "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
21895     "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
21896     "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
21897     "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
21898     "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
21899     "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
21900     "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
21901     "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
21902     "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
21903     "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
21904     "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
21905
21906   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21907 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21908    { (exit 1); exit 1; }; };;
21909   esac
21910 done
21911
21912
21913 # If the user did not use the arguments to specify the items to instantiate,
21914 # then the envvar interface is used.  Set only those that are not.
21915 # We use the long form for the default assignment because of an extremely
21916 # bizarre bug on SunOS 4.1.3.
21917 if $ac_need_defaults; then
21918   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21919   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
21920   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21921 fi
21922
21923 # Have a temporary directory for convenience.  Make it in the build tree
21924 # simply because there is no reason against having it here, and in addition,
21925 # creating and moving files from /tmp can sometimes cause problems.
21926 # Hook for its removal unless debugging.
21927 # Note that there is a small window in which the directory will not be cleaned:
21928 # after its creation but before its name has been assigned to `$tmp'.
21929 $debug ||
21930 {
21931   tmp=
21932   trap 'exit_status=$?
21933   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
21934 ' 0
21935   trap '{ (exit 1); exit 1; }' 1 2 13 15
21936 }
21937 # Create a (secure) tmp directory for tmp files.
21938
21939 {
21940   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
21941   test -n "$tmp" && test -d "$tmp"
21942 }  ||
21943 {
21944   tmp=./conf$$-$RANDOM
21945   (umask 077 && mkdir "$tmp")
21946 } ||
21947 {
21948    echo "$me: cannot create a temporary directory in ." >&2
21949    { (exit 1); exit 1; }
21950 }
21951
21952 #
21953 # Set up the sed scripts for CONFIG_FILES section.
21954 #
21955
21956 # No need to generate the scripts if there are no CONFIG_FILES.
21957 # This happens for instance when ./config.status config.h
21958 if test -n "$CONFIG_FILES"; then
21959
21960 _ACEOF
21961
21962
21963
21964 ac_delim='%!_!# '
21965 for ac_last_try in false false false false false :; do
21966   cat >conf$$subs.sed <<_ACEOF
21967 SHELL!$SHELL$ac_delim
21968 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
21969 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
21970 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
21971 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
21972 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
21973 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
21974 exec_prefix!$exec_prefix$ac_delim
21975 prefix!$prefix$ac_delim
21976 program_transform_name!$program_transform_name$ac_delim
21977 bindir!$bindir$ac_delim
21978 sbindir!$sbindir$ac_delim
21979 libexecdir!$libexecdir$ac_delim
21980 datarootdir!$datarootdir$ac_delim
21981 datadir!$datadir$ac_delim
21982 sysconfdir!$sysconfdir$ac_delim
21983 sharedstatedir!$sharedstatedir$ac_delim
21984 localstatedir!$localstatedir$ac_delim
21985 includedir!$includedir$ac_delim
21986 oldincludedir!$oldincludedir$ac_delim
21987 docdir!$docdir$ac_delim
21988 infodir!$infodir$ac_delim
21989 htmldir!$htmldir$ac_delim
21990 dvidir!$dvidir$ac_delim
21991 pdfdir!$pdfdir$ac_delim
21992 psdir!$psdir$ac_delim
21993 libdir!$libdir$ac_delim
21994 localedir!$localedir$ac_delim
21995 mandir!$mandir$ac_delim
21996 DEFS!$DEFS$ac_delim
21997 ECHO_C!$ECHO_C$ac_delim
21998 ECHO_N!$ECHO_N$ac_delim
21999 ECHO_T!$ECHO_T$ac_delim
22000 LIBS!$LIBS$ac_delim
22001 build_alias!$build_alias$ac_delim
22002 host_alias!$host_alias$ac_delim
22003 target_alias!$target_alias$ac_delim
22004 LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
22005 CC!$CC$ac_delim
22006 CFLAGS!$CFLAGS$ac_delim
22007 LDFLAGS!$LDFLAGS$ac_delim
22008 CPPFLAGS!$CPPFLAGS$ac_delim
22009 ac_ct_CC!$ac_ct_CC$ac_delim
22010 EXEEXT!$EXEEXT$ac_delim
22011 OBJEXT!$OBJEXT$ac_delim
22012 CXX!$CXX$ac_delim
22013 CXXFLAGS!$CXXFLAGS$ac_delim
22014 ac_ct_CXX!$ac_ct_CXX$ac_delim
22015 CPP!$CPP$ac_delim
22016 subdirs!$subdirs$ac_delim
22017 ENABLE_POLLY!$ENABLE_POLLY$ac_delim
22018 LLVM_HAS_POLLY!$LLVM_HAS_POLLY$ac_delim
22019 build!$build$ac_delim
22020 build_cpu!$build_cpu$ac_delim
22021 build_vendor!$build_vendor$ac_delim
22022 build_os!$build_os$ac_delim
22023 host!$host$ac_delim
22024 host_cpu!$host_cpu$ac_delim
22025 host_vendor!$host_vendor$ac_delim
22026 host_os!$host_os$ac_delim
22027 target!$target$ac_delim
22028 target_cpu!$target_cpu$ac_delim
22029 target_vendor!$target_vendor$ac_delim
22030 target_os!$target_os$ac_delim
22031 OS!$OS$ac_delim
22032 HOST_OS!$HOST_OS$ac_delim
22033 TARGET_OS!$TARGET_OS$ac_delim
22034 LINKALL!$LINKALL$ac_delim
22035 NOLINKALL!$NOLINKALL$ac_delim
22036 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
22037 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
22038 ARCH!$ARCH$ac_delim
22039 ENDIAN!$ENDIAN$ac_delim
22040 GREP!$GREP$ac_delim
22041 EGREP!$EGREP$ac_delim
22042 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
22043 BUILD_CC!$BUILD_CC$ac_delim
22044 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
22045 BUILD_CXX!$BUILD_CXX$ac_delim
22046 CVSBUILD!$CVSBUILD$ac_delim
22047 ENABLE_LIBCPP!$ENABLE_LIBCPP$ac_delim
22048 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
22049 ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
22050 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
22051 ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
22052 EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
22053 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
22054 DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
22055 JIT!$JIT$ac_delim
22056 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
22057 ENABLE_DOCS!$ENABLE_DOCS$ac_delim
22058 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
22059 LLVM_ENABLE_THREADS!$LLVM_ENABLE_THREADS$ac_delim
22060 ENABLE_PTHREADS!$ENABLE_PTHREADS$ac_delim
22061 ENABLE_PIC!$ENABLE_PIC$ac_delim
22062 ENABLE_SHARED!$ENABLE_SHARED$ac_delim
22063 ENABLE_EMBED_STDCXX!$ENABLE_EMBED_STDCXX$ac_delim
22064 _ACEOF
22065
22066   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
22067     break
22068   elif $ac_last_try; then
22069     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22070 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22071    { (exit 1); exit 1; }; }
22072   else
22073     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22074   fi
22075 done
22076
22077 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
22078 if test -n "$ac_eof"; then
22079   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
22080   ac_eof=`expr $ac_eof + 1`
22081 fi
22082
22083 cat >>$CONFIG_STATUS <<_ACEOF
22084 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
22085 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22086 _ACEOF
22087 sed '
22088 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22089 s/^/s,@/; s/!/@,|#_!!_#|/
22090 :n
22091 t n
22092 s/'"$ac_delim"'$/,g/; t
22093 s/$/\\/; p
22094 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22095 ' >>$CONFIG_STATUS <conf$$subs.sed
22096 rm -f conf$$subs.sed
22097 cat >>$CONFIG_STATUS <<_ACEOF
22098 CEOF$ac_eof
22099 _ACEOF
22100
22101
22102 ac_delim='%!_!# '
22103 for ac_last_try in false false false false false :; do
22104   cat >conf$$subs.sed <<_ACEOF
22105 ENABLE_TIMESTAMPS!$ENABLE_TIMESTAMPS$ac_delim
22106 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
22107 LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
22108 LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
22109 LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
22110 LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
22111 OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
22112 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
22113 EXTRA_LD_OPTIONS!$EXTRA_LD_OPTIONS$ac_delim
22114 CLANG_SRC_ROOT!$CLANG_SRC_ROOT$ac_delim
22115 BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
22116 INTERNAL_PREFIX!$INTERNAL_PREFIX$ac_delim
22117 NM!$NM$ac_delim
22118 ifGNUmake!$ifGNUmake$ac_delim
22119 LN_S!$LN_S$ac_delim
22120 CMP!$CMP$ac_delim
22121 CP!$CP$ac_delim
22122 DATE!$DATE$ac_delim
22123 FIND!$FIND$ac_delim
22124 MKDIR!$MKDIR$ac_delim
22125 MV!$MV$ac_delim
22126 RANLIB!$RANLIB$ac_delim
22127 AR!$AR$ac_delim
22128 RM!$RM$ac_delim
22129 SED!$SED$ac_delim
22130 TAR!$TAR$ac_delim
22131 BINPWD!$BINPWD$ac_delim
22132 GRAPHVIZ!$GRAPHVIZ$ac_delim
22133 DOT!$DOT$ac_delim
22134 FDP!$FDP$ac_delim
22135 NEATO!$NEATO$ac_delim
22136 TWOPI!$TWOPI$ac_delim
22137 CIRCO!$CIRCO$ac_delim
22138 GV!$GV$ac_delim
22139 DOTTY!$DOTTY$ac_delim
22140 XDOT_PY!$XDOT_PY$ac_delim
22141 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
22142 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
22143 INSTALL_DATA!$INSTALL_DATA$ac_delim
22144 BZIP2!$BZIP2$ac_delim
22145 CAT!$CAT$ac_delim
22146 DOXYGEN!$DOXYGEN$ac_delim
22147 GROFF!$GROFF$ac_delim
22148 GZIPBIN!$GZIPBIN$ac_delim
22149 PDFROFF!$PDFROFF$ac_delim
22150 RUNTEST!$RUNTEST$ac_delim
22151 TCLSH!$TCLSH$ac_delim
22152 ZIP!$ZIP$ac_delim
22153 OCAMLC!$OCAMLC$ac_delim
22154 OCAMLOPT!$OCAMLOPT$ac_delim
22155 OCAMLDEP!$OCAMLDEP$ac_delim
22156 OCAMLDOC!$OCAMLDOC$ac_delim
22157 GAS!$GAS$ac_delim
22158 HAVE_LINK_VERSION_SCRIPT!$HAVE_LINK_VERSION_SCRIPT$ac_delim
22159 INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
22160 INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
22161 CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
22162 CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
22163 LIBADD_DL!$LIBADD_DL$ac_delim
22164 NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
22165 NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
22166 COVERED_SWITCH_DEFAULT!$COVERED_SWITCH_DEFAULT$ac_delim
22167 USE_UDIS86!$USE_UDIS86$ac_delim
22168 USE_OPROFILE!$USE_OPROFILE$ac_delim
22169 USE_INTEL_JITEVENTS!$USE_INTEL_JITEVENTS$ac_delim
22170 INTEL_JITEVENTS_INCDIR!$INTEL_JITEVENTS_INCDIR$ac_delim
22171 INTEL_JITEVENTS_LIBDIR!$INTEL_JITEVENTS_LIBDIR$ac_delim
22172 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
22173 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
22174 MMAP_FILE!$MMAP_FILE$ac_delim
22175 SHLIBEXT!$SHLIBEXT$ac_delim
22176 SHLIBPATH_VAR!$SHLIBPATH_VAR$ac_delim
22177 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
22178 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
22179 LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
22180 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
22181 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
22182 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
22183 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
22184 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
22185 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
22186 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
22187 BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
22188 ALL_BINDINGS!$ALL_BINDINGS$ac_delim
22189 OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
22190 ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
22191 RPATH!$RPATH$ac_delim
22192 RDYNAMIC!$RDYNAMIC$ac_delim
22193 LIBOBJS!$LIBOBJS$ac_delim
22194 LTLIBOBJS!$LTLIBOBJS$ac_delim
22195 _ACEOF
22196
22197   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 90; then
22198     break
22199   elif $ac_last_try; then
22200     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22201 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22202    { (exit 1); exit 1; }; }
22203   else
22204     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22205   fi
22206 done
22207
22208 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
22209 if test -n "$ac_eof"; then
22210   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
22211   ac_eof=`expr $ac_eof + 1`
22212 fi
22213
22214 cat >>$CONFIG_STATUS <<_ACEOF
22215 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
22216 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
22217 _ACEOF
22218 sed '
22219 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22220 s/^/s,@/; s/!/@,|#_!!_#|/
22221 :n
22222 t n
22223 s/'"$ac_delim"'$/,g/; t
22224 s/$/\\/; p
22225 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22226 ' >>$CONFIG_STATUS <conf$$subs.sed
22227 rm -f conf$$subs.sed
22228 cat >>$CONFIG_STATUS <<_ACEOF
22229 :end
22230 s/|#_!!_#|//g
22231 CEOF$ac_eof
22232 _ACEOF
22233
22234
22235 # VPATH may cause trouble with some makes, so we remove $(srcdir),
22236 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22237 # trailing colons and then remove the whole line if VPATH becomes empty
22238 # (actually we leave an empty line to preserve line numbers).
22239 if test "x$srcdir" = x.; then
22240   ac_vpsub='/^[  ]*VPATH[        ]*=/{
22241 s/:*\$(srcdir):*/:/
22242 s/:*\${srcdir}:*/:/
22243 s/:*@srcdir@:*/:/
22244 s/^\([^=]*=[     ]*\):*/\1/
22245 s/:*$//
22246 s/^[^=]*=[       ]*$//
22247 }'
22248 fi
22249
22250 cat >>$CONFIG_STATUS <<\_ACEOF
22251 fi # test -n "$CONFIG_FILES"
22252
22253
22254 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
22255 do
22256   case $ac_tag in
22257   :[FHLC]) ac_mode=$ac_tag; continue;;
22258   esac
22259   case $ac_mode$ac_tag in
22260   :[FHL]*:*);;
22261   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
22262 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
22263    { (exit 1); exit 1; }; };;
22264   :[FH]-) ac_tag=-:-;;
22265   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
22266   esac
22267   ac_save_IFS=$IFS
22268   IFS=:
22269   set x $ac_tag
22270   IFS=$ac_save_IFS
22271   shift
22272   ac_file=$1
22273   shift
22274
22275   case $ac_mode in
22276   :L) ac_source=$1;;
22277   :[FH])
22278     ac_file_inputs=
22279     for ac_f
22280     do
22281       case $ac_f in
22282       -) ac_f="$tmp/stdin";;
22283       *) # Look for the file first in the build tree, then in the source tree
22284          # (if the path is not absolute).  The absolute path cannot be DOS-style,
22285          # because $ac_f cannot contain `:'.
22286          test -f "$ac_f" ||
22287            case $ac_f in
22288            [\\/$]*) false;;
22289            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
22290            esac ||
22291            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
22292 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
22293    { (exit 1); exit 1; }; };;
22294       esac
22295       ac_file_inputs="$ac_file_inputs $ac_f"
22296     done
22297
22298     # Let's still pretend it is `configure' which instantiates (i.e., don't
22299     # use $as_me), people would be surprised to read:
22300     #    /* config.h.  Generated by config.status.  */
22301     configure_input="Generated from "`IFS=:
22302           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
22303     if test x"$ac_file" != x-; then
22304       configure_input="$ac_file.  $configure_input"
22305       { echo "$as_me:$LINENO: creating $ac_file" >&5
22306 echo "$as_me: creating $ac_file" >&6;}
22307     fi
22308
22309     case $ac_tag in
22310     *:-:* | *:-) cat >"$tmp/stdin";;
22311     esac
22312     ;;
22313   esac
22314
22315   ac_dir=`$as_dirname -- "$ac_file" ||
22316 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22317          X"$ac_file" : 'X\(//\)[^/]' \| \
22318          X"$ac_file" : 'X\(//\)$' \| \
22319          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
22320 echo X"$ac_file" |
22321     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22322             s//\1/
22323             q
22324           }
22325           /^X\(\/\/\)[^/].*/{
22326             s//\1/
22327             q
22328           }
22329           /^X\(\/\/\)$/{
22330             s//\1/
22331             q
22332           }
22333           /^X\(\/\).*/{
22334             s//\1/
22335             q
22336           }
22337           s/.*/./; q'`
22338   { as_dir="$ac_dir"
22339   case $as_dir in #(
22340   -*) as_dir=./$as_dir;;
22341   esac
22342   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22343     as_dirs=
22344     while :; do
22345       case $as_dir in #(
22346       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22347       *) as_qdir=$as_dir;;
22348       esac
22349       as_dirs="'$as_qdir' $as_dirs"
22350       as_dir=`$as_dirname -- "$as_dir" ||
22351 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22352          X"$as_dir" : 'X\(//\)[^/]' \| \
22353          X"$as_dir" : 'X\(//\)$' \| \
22354          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22355 echo X"$as_dir" |
22356     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22357             s//\1/
22358             q
22359           }
22360           /^X\(\/\/\)[^/].*/{
22361             s//\1/
22362             q
22363           }
22364           /^X\(\/\/\)$/{
22365             s//\1/
22366             q
22367           }
22368           /^X\(\/\).*/{
22369             s//\1/
22370             q
22371           }
22372           s/.*/./; q'`
22373       test -d "$as_dir" && break
22374     done
22375     test -z "$as_dirs" || eval "mkdir $as_dirs"
22376   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22377 echo "$as_me: error: cannot create directory $as_dir" >&2;}
22378    { (exit 1); exit 1; }; }; }
22379   ac_builddir=.
22380
22381 case "$ac_dir" in
22382 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22383 *)
22384   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22385   # A ".." for each directory in $ac_dir_suffix.
22386   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
22387   case $ac_top_builddir_sub in
22388   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22389   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22390   esac ;;
22391 esac
22392 ac_abs_top_builddir=$ac_pwd
22393 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22394 # for backward compatibility:
22395 ac_top_builddir=$ac_top_build_prefix
22396
22397 case $srcdir in
22398   .)  # We are building in place.
22399     ac_srcdir=.
22400     ac_top_srcdir=$ac_top_builddir_sub
22401     ac_abs_top_srcdir=$ac_pwd ;;
22402   [\\/]* | ?:[\\/]* )  # Absolute name.
22403     ac_srcdir=$srcdir$ac_dir_suffix;
22404     ac_top_srcdir=$srcdir
22405     ac_abs_top_srcdir=$srcdir ;;
22406   *) # Relative name.
22407     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22408     ac_top_srcdir=$ac_top_build_prefix$srcdir
22409     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22410 esac
22411 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22412
22413
22414   case $ac_mode in
22415   :F)
22416   #
22417   # CONFIG_FILE
22418   #
22419
22420   case $INSTALL in
22421   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22422   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
22423   esac
22424 _ACEOF
22425
22426 cat >>$CONFIG_STATUS <<\_ACEOF
22427 # If the template does not know about datarootdir, expand it.
22428 # FIXME: This hack should be removed a few years after 2.60.
22429 ac_datarootdir_hack=; ac_datarootdir_seen=
22430
22431 case `sed -n '/datarootdir/ {
22432   p
22433   q
22434 }
22435 /@datadir@/p
22436 /@docdir@/p
22437 /@infodir@/p
22438 /@localedir@/p
22439 /@mandir@/p
22440 ' $ac_file_inputs` in
22441 *datarootdir*) ac_datarootdir_seen=yes;;
22442 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
22443   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22444 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
22445 _ACEOF
22446 cat >>$CONFIG_STATUS <<_ACEOF
22447   ac_datarootdir_hack='
22448   s&@datadir@&$datadir&g
22449   s&@docdir@&$docdir&g
22450   s&@infodir@&$infodir&g
22451   s&@localedir@&$localedir&g
22452   s&@mandir@&$mandir&g
22453     s&\\\${datarootdir}&$datarootdir&g' ;;
22454 esac
22455 _ACEOF
22456
22457 # Neutralize VPATH when `$srcdir' = `.'.
22458 # Shell code in configure.ac might set extrasub.
22459 # FIXME: do we really want to maintain this feature?
22460 cat >>$CONFIG_STATUS <<_ACEOF
22461   sed "$ac_vpsub
22462 $extrasub
22463 _ACEOF
22464 cat >>$CONFIG_STATUS <<\_ACEOF
22465 :t
22466 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22467 s&@configure_input@&$configure_input&;t t
22468 s&@top_builddir@&$ac_top_builddir_sub&;t t
22469 s&@srcdir@&$ac_srcdir&;t t
22470 s&@abs_srcdir@&$ac_abs_srcdir&;t t
22471 s&@top_srcdir@&$ac_top_srcdir&;t t
22472 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22473 s&@builddir@&$ac_builddir&;t t
22474 s&@abs_builddir@&$ac_abs_builddir&;t t
22475 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22476 s&@INSTALL@&$ac_INSTALL&;t t
22477 $ac_datarootdir_hack
22478 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
22479
22480 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22481   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
22482   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
22483   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22484 which seems to be undefined.  Please make sure it is defined." >&5
22485 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22486 which seems to be undefined.  Please make sure it is defined." >&2;}
22487
22488   rm -f "$tmp/stdin"
22489   case $ac_file in
22490   -) cat "$tmp/out"; rm -f "$tmp/out";;
22491   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
22492   esac
22493  ;;
22494   :H)
22495   #
22496   # CONFIG_HEADER
22497   #
22498 _ACEOF
22499
22500 # Transform confdefs.h into a sed script `conftest.defines', that
22501 # substitutes the proper values into config.h.in to produce config.h.
22502 rm -f conftest.defines conftest.tail
22503 # First, append a space to every undef/define line, to ease matching.
22504 echo 's/$/ /' >conftest.defines
22505 # Then, protect against being on the right side of a sed subst, or in
22506 # an unquoted here document, in config.status.  If some macros were
22507 # called several times there might be several #defines for the same
22508 # symbol, which is useless.  But do not sort them, since the last
22509 # AC_DEFINE must be honored.
22510 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
22511 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
22512 # NAME is the cpp macro being defined, VALUE is the value it is being given.
22513 # PARAMS is the parameter list in the macro definition--in most cases, it's
22514 # just an empty string.
22515 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
22516 ac_dB='\\)[      (].*,\\1define\\2'
22517 ac_dC=' '
22518 ac_dD=' ,'
22519
22520 uniq confdefs.h |
22521   sed -n '
22522         t rset
22523         :rset
22524         s/^[     ]*#[    ]*define[       ][      ]*//
22525         t ok
22526         d
22527         :ok
22528         s/[\\&,]/\\&/g
22529         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
22530         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
22531   ' >>conftest.defines
22532
22533 # Remove the space that was appended to ease matching.
22534 # Then replace #undef with comments.  This is necessary, for
22535 # example, in the case of _POSIX_SOURCE, which is predefined and required
22536 # on some systems where configure will not decide to define it.
22537 # (The regexp can be short, since the line contains either #define or #undef.)
22538 echo 's/ $//
22539 s,^[     #]*u.*,/* & */,' >>conftest.defines
22540
22541 # Break up conftest.defines:
22542 ac_max_sed_lines=50
22543
22544 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
22545 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
22546 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
22547 # et cetera.
22548 ac_in='$ac_file_inputs'
22549 ac_out='"$tmp/out1"'
22550 ac_nxt='"$tmp/out2"'
22551
22552 while :
22553 do
22554   # Write a here document:
22555     cat >>$CONFIG_STATUS <<_ACEOF
22556     # First, check the format of the line:
22557     cat >"\$tmp/defines.sed" <<\\CEOF
22558 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
22559 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
22560 b
22561 :def
22562 _ACEOF
22563   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
22564   echo 'CEOF
22565     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
22566   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
22567   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
22568   grep . conftest.tail >/dev/null || break
22569   rm -f conftest.defines
22570   mv conftest.tail conftest.defines
22571 done
22572 rm -f conftest.defines conftest.tail
22573
22574 echo "ac_result=$ac_in" >>$CONFIG_STATUS
22575 cat >>$CONFIG_STATUS <<\_ACEOF
22576   if test x"$ac_file" != x-; then
22577     echo "/* $configure_input  */" >"$tmp/config.h"
22578     cat "$ac_result" >>"$tmp/config.h"
22579     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
22580       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22581 echo "$as_me: $ac_file is unchanged" >&6;}
22582     else
22583       rm -f $ac_file
22584       mv "$tmp/config.h" $ac_file
22585     fi
22586   else
22587     echo "/* $configure_input  */"
22588     cat "$ac_result"
22589   fi
22590   rm -f "$tmp/out12"
22591  ;;
22592
22593   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
22594 echo "$as_me: executing $ac_file commands" >&6;}
22595  ;;
22596   esac
22597
22598
22599   case $ac_file$ac_mode in
22600     "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
22601    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
22602     "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
22603    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;;
22604     "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
22605    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;;
22606     "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
22607    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
22608     "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
22609    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
22610     "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
22611    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;;
22612     "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
22613    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
22614     "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
22615    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
22616     "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
22617    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
22618     "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
22619    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;;
22620     "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
22621    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;;
22622     "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
22623    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
22624     "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
22625    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
22626
22627   esac
22628 done # for ac_tag
22629
22630
22631 { (exit 0); exit 0; }
22632 _ACEOF
22633 chmod +x $CONFIG_STATUS
22634 ac_clean_files=$ac_clean_files_save
22635
22636
22637 # configure is writing to config.log, and then calls config.status.
22638 # config.status does its own redirection, appending to config.log.
22639 # Unfortunately, on DOS this fails, as config.log is still kept open
22640 # by configure, so config.status won't be able to write to it; its
22641 # output is simply discarded.  So we exec the FD to /dev/null,
22642 # effectively closing config.log, so it can be properly (re)opened and
22643 # appended to by config.status.  When coming back to configure, we
22644 # need to make the FD available again.
22645 if test "$no_create" != yes; then
22646   ac_cs_success=:
22647   ac_config_status_args=
22648   test "$silent" = yes &&
22649     ac_config_status_args="$ac_config_status_args --quiet"
22650   exec 5>/dev/null
22651   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22652   exec 5>>config.log
22653   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22654   # would make configure fail if this is the last instruction.
22655   $ac_cs_success || { (exit 1); exit 1; }
22656 fi
22657
22658 #
22659 # CONFIG_SUBDIRS section.
22660 #
22661 if test "$no_recursion" != yes; then
22662
22663   # Remove --cache-file and --srcdir arguments so they do not pile up.
22664   ac_sub_configure_args=
22665   ac_prev=
22666   eval "set x $ac_configure_args"
22667   shift
22668   for ac_arg
22669   do
22670     if test -n "$ac_prev"; then
22671       ac_prev=
22672       continue
22673     fi
22674     case $ac_arg in
22675     -cache-file | --cache-file | --cache-fil | --cache-fi \
22676     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
22677       ac_prev=cache_file ;;
22678     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
22679     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
22680     | --c=*)
22681       ;;
22682     --config-cache | -C)
22683       ;;
22684     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
22685       ac_prev=srcdir ;;
22686     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
22687       ;;
22688     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
22689       ac_prev=prefix ;;
22690     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
22691       ;;
22692     *)
22693       case $ac_arg in
22694       *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
22695       esac
22696       ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
22697     esac
22698   done
22699
22700   # Always prepend --prefix to ensure using the same prefix
22701   # in subdir configurations.
22702   ac_arg="--prefix=$prefix"
22703   case $ac_arg in
22704   *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
22705   esac
22706   ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
22707
22708   ac_popdir=`pwd`
22709   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
22710
22711     # Do not complain, so a configure script can configure whichever
22712     # parts of a large source tree are present.
22713     test -d "$srcdir/$ac_dir" || continue
22714
22715     ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
22716     echo "$as_me:$LINENO: $ac_msg" >&5
22717     echo "$ac_msg" >&6
22718     { as_dir="$ac_dir"
22719   case $as_dir in #(
22720   -*) as_dir=./$as_dir;;
22721   esac
22722   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22723     as_dirs=
22724     while :; do
22725       case $as_dir in #(
22726       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22727       *) as_qdir=$as_dir;;
22728       esac
22729       as_dirs="'$as_qdir' $as_dirs"
22730       as_dir=`$as_dirname -- "$as_dir" ||
22731 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22732          X"$as_dir" : 'X\(//\)[^/]' \| \
22733          X"$as_dir" : 'X\(//\)$' \| \
22734          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22735 echo X"$as_dir" |
22736     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22737             s//\1/
22738             q
22739           }
22740           /^X\(\/\/\)[^/].*/{
22741             s//\1/
22742             q
22743           }
22744           /^X\(\/\/\)$/{
22745             s//\1/
22746             q
22747           }
22748           /^X\(\/\).*/{
22749             s//\1/
22750             q
22751           }
22752           s/.*/./; q'`
22753       test -d "$as_dir" && break
22754     done
22755     test -z "$as_dirs" || eval "mkdir $as_dirs"
22756   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22757 echo "$as_me: error: cannot create directory $as_dir" >&2;}
22758    { (exit 1); exit 1; }; }; }
22759     ac_builddir=.
22760
22761 case "$ac_dir" in
22762 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22763 *)
22764   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22765   # A ".." for each directory in $ac_dir_suffix.
22766   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
22767   case $ac_top_builddir_sub in
22768   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22769   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22770   esac ;;
22771 esac
22772 ac_abs_top_builddir=$ac_pwd
22773 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22774 # for backward compatibility:
22775 ac_top_builddir=$ac_top_build_prefix
22776
22777 case $srcdir in
22778   .)  # We are building in place.
22779     ac_srcdir=.
22780     ac_top_srcdir=$ac_top_builddir_sub
22781     ac_abs_top_srcdir=$ac_pwd ;;
22782   [\\/]* | ?:[\\/]* )  # Absolute name.
22783     ac_srcdir=$srcdir$ac_dir_suffix;
22784     ac_top_srcdir=$srcdir
22785     ac_abs_top_srcdir=$srcdir ;;
22786   *) # Relative name.
22787     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22788     ac_top_srcdir=$ac_top_build_prefix$srcdir
22789     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22790 esac
22791 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22792
22793
22794     cd "$ac_dir"
22795
22796     # Check for guested configure; otherwise get Cygnus style configure.
22797     if test -f "$ac_srcdir/configure.gnu"; then
22798       ac_sub_configure=$ac_srcdir/configure.gnu
22799     elif test -f "$ac_srcdir/configure"; then
22800       ac_sub_configure=$ac_srcdir/configure
22801     elif test -f "$ac_srcdir/configure.in"; then
22802       # This should be Cygnus configure.
22803       ac_sub_configure=$ac_aux_dir/configure
22804     else
22805       { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
22806 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
22807       ac_sub_configure=
22808     fi
22809
22810     # The recursion is here.
22811     if test -n "$ac_sub_configure"; then
22812       # Make the cache file name correct relative to the subdirectory.
22813       case $cache_file in
22814       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
22815       *) # Relative name.
22816         ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
22817       esac
22818
22819       { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
22820 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
22821       # The eval makes quoting arguments work.
22822       eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
22823            --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
22824         { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
22825 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
22826    { (exit 1); exit 1; }; }
22827     fi
22828
22829     cd "$ac_popdir"
22830   done
22831 fi
22832