Add a configure option to pass -std=c++11 on the command line.
[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 HOST_ARCH
678 ENDIAN
679 GREP
680 EGREP
681 LLVM_CROSS_COMPILING
682 BUILD_CC
683 BUILD_EXEEXT
684 BUILD_CXX
685 CVSBUILD
686 ENABLE_LIBCPP
687 ENABLE_CXX11
688 ENABLE_OPTIMIZED
689 ENABLE_PROFILING
690 DISABLE_ASSERTIONS
691 ENABLE_EXPENSIVE_CHECKS
692 EXPENSIVE_CHECKS
693 DEBUG_RUNTIME
694 DEBUG_SYMBOLS
695 JIT
696 TARGET_HAS_JIT
697 ENABLE_DOCS
698 ENABLE_DOXYGEN
699 LLVM_ENABLE_THREADS
700 ENABLE_PTHREADS
701 ENABLE_PIC
702 ENABLE_SHARED
703 ENABLE_EMBED_STDCXX
704 ENABLE_TIMESTAMPS
705 TARGETS_TO_BUILD
706 LLVM_ENUM_TARGETS
707 LLVM_ENUM_ASM_PRINTERS
708 LLVM_ENUM_ASM_PARSERS
709 LLVM_ENUM_DISASSEMBLERS
710 OPTIMIZE_OPTION
711 EXTRA_OPTIONS
712 EXTRA_LD_OPTIONS
713 CLANG_SRC_ROOT
714 BINUTILS_INCDIR
715 INTERNAL_PREFIX
716 NM
717 ifGNUmake
718 LN_S
719 CMP
720 CP
721 DATE
722 FIND
723 MKDIR
724 MV
725 RANLIB
726 AR
727 RM
728 SED
729 TAR
730 BINPWD
731 GRAPHVIZ
732 DOT
733 FDP
734 NEATO
735 TWOPI
736 CIRCO
737 GV
738 DOTTY
739 XDOT_PY
740 INSTALL_PROGRAM
741 INSTALL_SCRIPT
742 INSTALL_DATA
743 BZIP2
744 CAT
745 DOXYGEN
746 GROFF
747 GZIPBIN
748 PDFROFF
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-cxx11          Use c++11 if available (default is NO)
1395   --enable-optimized      Compile with optimizations enabled (default is NO)
1396   --enable-profiling      Compile with profiling enabled (default is NO)
1397   --enable-assertions     Compile with assertion checks enabled (default is
1398                           YES)
1399   --enable-expensive-checks
1400                           Compile with expensive debug checks enabled (default
1401                           is NO)
1402   --enable-debug-runtime  Build runtime libs with debug symbols (default is
1403                           NO)
1404   --enable-debug-symbols  Build compiler with debug symbols (default is NO if
1405                           optimization is on and YES if it's off)
1406   --enable-jit            Enable Just In Time Compiling (default is YES)
1407   --enable-docs           Build documents (default is YES)
1408   --enable-doxygen        Build doxygen documentation (default is NO)
1409   --enable-threads        Use threads if available (default is YES)
1410   --enable-pthreads       Use pthreads if available (default is YES)
1411   --enable-pic            Build LLVM with Position Independent Code (default
1412                           is YES)
1413   --enable-shared         Build a shared library and link tools against it
1414                           (default is NO)
1415   --enable-embed-stdcxx   Build a shared library with embedded libstdc++ for
1416                           Win32 DLL (default is NO)
1417   --enable-timestamps     Enable embedding timestamp information in build
1418                           (default is YES)
1419   --enable-targets        Build specific host targets: all or
1420                           target1,target2,... Valid targets are: host, x86,
1421                           x86_64, sparc, powerpc, arm, mips, spu, hexagon,
1422                           xcore, msp430, nvptx, and cpp (default=all)
1423   --enable-bindings       Build specific language bindings:
1424                           all,auto,none,{binding-name} (default=auto)
1425   --enable-libffi         Check for the presence of libffi (default is NO)
1426   --enable-ltdl-install   install libltdl
1427
1428 Optional Packages:
1429   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1430   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1431   --with-optimize-option  Select the compiler options to use for optimized
1432                           builds
1433   --with-extra-options    Specify additional options to compile LLVM with
1434   --with-extra-ld-options Specify additional options to link LLVM with
1435   --with-ocaml-libdir     Specify install location for ocaml bindings (default
1436                           is stdlib)
1437   --with-clang-srcdir     Directory to the out-of-tree Clang source
1438   --with-clang-resource-dir
1439                           Relative directory from the Clang binary for
1440                           resource files
1441   --with-c-include-dirs   Colon separated list of directories clang will
1442                           search for headers
1443   --with-gcc-toolchain    Directory where gcc is installed.
1444   --with-default-sysroot  Add --sysroot=<path> to all compiler invocations.
1445   --with-binutils-include Specify path to binutils/include/ containing
1446                           plugin-api.h file for gold plugin.
1447   --with-bug-report-url   Specify the URL where bug reports should be
1448                           submitted (default=http://llvm.org/bugs/)
1449   --with-internal-prefix  Installation directory for internal files
1450   --with-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   nvptx-*)                llvm_cv_target_arch="NVPTX" ;;
3904   *)                      llvm_cv_target_arch="Unknown" ;;
3905 esac
3906 fi
3907 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
3908 echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
3909
3910 if test "$llvm_cv_target_arch" = "Unknown" ; then
3911   { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
3912 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
3913 fi
3914
3915 case "$llvm_cv_target_arch" in
3916     x86)     LLVM_NATIVE_ARCH="X86" ;;
3917     x86_64)  LLVM_NATIVE_ARCH="X86" ;;
3918     *)       LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
3919 esac
3920
3921 ARCH=$llvm_cv_target_arch
3922
3923
3924 case $host in
3925   i?86-*)                 host_arch="x86" ;;
3926   amd64-* | x86_64-*)     host_arch="x86_64" ;;
3927   sparc*-*)               host_arch="Sparc" ;;
3928   powerpc*-*)             host_arch="PowerPC" ;;
3929   arm*-*)                 host_arch="ARM" ;;
3930   mips-*)                 host_arch="Mips" ;;
3931   mipsel-*)               host_arch="Mips" ;;
3932   xcore-*)                host_arch="XCore" ;;
3933   msp430-*)               host_arch="MSP430" ;;
3934   hexagon-*)              host_arch="Hexagon" ;;
3935   mblaze-*)               host_arch="MBlaze" ;;
3936   *)                      host_arch="Unknown" ;;
3937 esac
3938
3939 if test "$host_arch" = "Unknown" ; then
3940   { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown host archicture" >&5
3941 echo "$as_me: WARNING: Configuring LLVM for an unknown host archicture" >&2;}
3942 fi
3943
3944 HOST_ARCH=$host_arch
3945
3946
3947
3948
3949 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3950 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3951 if test "${ac_cv_path_GREP+set}" = set; then
3952   echo $ECHO_N "(cached) $ECHO_C" >&6
3953 else
3954   # Extract the first word of "grep ggrep" to use in msg output
3955 if test -z "$GREP"; then
3956 set dummy grep ggrep; ac_prog_name=$2
3957 if test "${ac_cv_path_GREP+set}" = set; then
3958   echo $ECHO_N "(cached) $ECHO_C" >&6
3959 else
3960   ac_path_GREP_found=false
3961 # Loop through the user's path and test for each of PROGNAME-LIST
3962 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3963 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3964 do
3965   IFS=$as_save_IFS
3966   test -z "$as_dir" && as_dir=.
3967   for ac_prog in grep ggrep; do
3968   for ac_exec_ext in '' $ac_executable_extensions; do
3969     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3970     { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3971     # Check for GNU ac_path_GREP and select it if it is found.
3972   # Check for GNU $ac_path_GREP
3973 case `"$ac_path_GREP" --version 2>&1` in
3974 *GNU*)
3975   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3976 *)
3977   ac_count=0
3978   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3979   while :
3980   do
3981     cat "conftest.in" "conftest.in" >"conftest.tmp"
3982     mv "conftest.tmp" "conftest.in"
3983     cp "conftest.in" "conftest.nl"
3984     echo 'GREP' >> "conftest.nl"
3985     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3986     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3987     ac_count=`expr $ac_count + 1`
3988     if test $ac_count -gt ${ac_path_GREP_max-0}; then
3989       # Best one so far, save it but keep looking for a better one
3990       ac_cv_path_GREP="$ac_path_GREP"
3991       ac_path_GREP_max=$ac_count
3992     fi
3993     # 10*(2^10) chars as input seems more than enough
3994     test $ac_count -gt 10 && break
3995   done
3996   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3997 esac
3998
3999
4000     $ac_path_GREP_found && break 3
4001   done
4002 done
4003
4004 done
4005 IFS=$as_save_IFS
4006
4007
4008 fi
4009
4010 GREP="$ac_cv_path_GREP"
4011 if test -z "$GREP"; then
4012   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4013 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4014    { (exit 1); exit 1; }; }
4015 fi
4016
4017 else
4018   ac_cv_path_GREP=$GREP
4019 fi
4020
4021
4022 fi
4023 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4024 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4025  GREP="$ac_cv_path_GREP"
4026
4027
4028 { echo "$as_me:$LINENO: checking for egrep" >&5
4029 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4030 if test "${ac_cv_path_EGREP+set}" = set; then
4031   echo $ECHO_N "(cached) $ECHO_C" >&6
4032 else
4033   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4034    then ac_cv_path_EGREP="$GREP -E"
4035    else
4036      # Extract the first word of "egrep" to use in msg output
4037 if test -z "$EGREP"; then
4038 set dummy egrep; ac_prog_name=$2
4039 if test "${ac_cv_path_EGREP+set}" = set; then
4040   echo $ECHO_N "(cached) $ECHO_C" >&6
4041 else
4042   ac_path_EGREP_found=false
4043 # Loop through the user's path and test for each of PROGNAME-LIST
4044 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4045 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4046 do
4047   IFS=$as_save_IFS
4048   test -z "$as_dir" && as_dir=.
4049   for ac_prog in egrep; do
4050   for ac_exec_ext in '' $ac_executable_extensions; do
4051     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4052     { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
4053     # Check for GNU ac_path_EGREP and select it if it is found.
4054   # Check for GNU $ac_path_EGREP
4055 case `"$ac_path_EGREP" --version 2>&1` in
4056 *GNU*)
4057   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4058 *)
4059   ac_count=0
4060   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4061   while :
4062   do
4063     cat "conftest.in" "conftest.in" >"conftest.tmp"
4064     mv "conftest.tmp" "conftest.in"
4065     cp "conftest.in" "conftest.nl"
4066     echo 'EGREP' >> "conftest.nl"
4067     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4068     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4069     ac_count=`expr $ac_count + 1`
4070     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4071       # Best one so far, save it but keep looking for a better one
4072       ac_cv_path_EGREP="$ac_path_EGREP"
4073       ac_path_EGREP_max=$ac_count
4074     fi
4075     # 10*(2^10) chars as input seems more than enough
4076     test $ac_count -gt 10 && break
4077   done
4078   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4079 esac
4080
4081
4082     $ac_path_EGREP_found && break 3
4083   done
4084 done
4085
4086 done
4087 IFS=$as_save_IFS
4088
4089
4090 fi
4091
4092 EGREP="$ac_cv_path_EGREP"
4093 if test -z "$EGREP"; then
4094   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4095 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4096    { (exit 1); exit 1; }; }
4097 fi
4098
4099 else
4100   ac_cv_path_EGREP=$EGREP
4101 fi
4102
4103
4104    fi
4105 fi
4106 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4107 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4108  EGREP="$ac_cv_path_EGREP"
4109
4110
4111 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4112 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4113 if test "${ac_cv_header_stdc+set}" = set; then
4114   echo $ECHO_N "(cached) $ECHO_C" >&6
4115 else
4116   cat >conftest.$ac_ext <<_ACEOF
4117 /* confdefs.h.  */
4118 _ACEOF
4119 cat confdefs.h >>conftest.$ac_ext
4120 cat >>conftest.$ac_ext <<_ACEOF
4121 /* end confdefs.h.  */
4122 #include <stdlib.h>
4123 #include <stdarg.h>
4124 #include <string.h>
4125 #include <float.h>
4126
4127 int
4128 main ()
4129 {
4130
4131   ;
4132   return 0;
4133 }
4134 _ACEOF
4135 rm -f conftest.$ac_objext
4136 if { (ac_try="$ac_compile"
4137 case "(($ac_try" in
4138   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4139   *) ac_try_echo=$ac_try;;
4140 esac
4141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4142   (eval "$ac_compile") 2>conftest.er1
4143   ac_status=$?
4144   grep -v '^ *+' conftest.er1 >conftest.err
4145   rm -f conftest.er1
4146   cat conftest.err >&5
4147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4148   (exit $ac_status); } &&
4149          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4150   { (case "(($ac_try" in
4151   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4152   *) ac_try_echo=$ac_try;;
4153 esac
4154 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4155   (eval "$ac_try") 2>&5
4156   ac_status=$?
4157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4158   (exit $ac_status); }; } &&
4159          { ac_try='test -s conftest.$ac_objext'
4160   { (case "(($ac_try" in
4161   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4162   *) ac_try_echo=$ac_try;;
4163 esac
4164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4165   (eval "$ac_try") 2>&5
4166   ac_status=$?
4167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4168   (exit $ac_status); }; }; then
4169   ac_cv_header_stdc=yes
4170 else
4171   echo "$as_me: failed program was:" >&5
4172 sed 's/^/| /' conftest.$ac_ext >&5
4173
4174         ac_cv_header_stdc=no
4175 fi
4176
4177 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4178
4179 if test $ac_cv_header_stdc = yes; then
4180   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4181   cat >conftest.$ac_ext <<_ACEOF
4182 /* confdefs.h.  */
4183 _ACEOF
4184 cat confdefs.h >>conftest.$ac_ext
4185 cat >>conftest.$ac_ext <<_ACEOF
4186 /* end confdefs.h.  */
4187 #include <string.h>
4188
4189 _ACEOF
4190 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4191   $EGREP "memchr" >/dev/null 2>&1; then
4192   :
4193 else
4194   ac_cv_header_stdc=no
4195 fi
4196 rm -f conftest*
4197
4198 fi
4199
4200 if test $ac_cv_header_stdc = yes; then
4201   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4202   cat >conftest.$ac_ext <<_ACEOF
4203 /* confdefs.h.  */
4204 _ACEOF
4205 cat confdefs.h >>conftest.$ac_ext
4206 cat >>conftest.$ac_ext <<_ACEOF
4207 /* end confdefs.h.  */
4208 #include <stdlib.h>
4209
4210 _ACEOF
4211 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4212   $EGREP "free" >/dev/null 2>&1; then
4213   :
4214 else
4215   ac_cv_header_stdc=no
4216 fi
4217 rm -f conftest*
4218
4219 fi
4220
4221 if test $ac_cv_header_stdc = yes; then
4222   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4223   if test "$cross_compiling" = yes; then
4224   :
4225 else
4226   cat >conftest.$ac_ext <<_ACEOF
4227 /* confdefs.h.  */
4228 _ACEOF
4229 cat confdefs.h >>conftest.$ac_ext
4230 cat >>conftest.$ac_ext <<_ACEOF
4231 /* end confdefs.h.  */
4232 #include <ctype.h>
4233 #include <stdlib.h>
4234 #if ((' ' & 0x0FF) == 0x020)
4235 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4236 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4237 #else
4238 # define ISLOWER(c) \
4239                    (('a' <= (c) && (c) <= 'i') \
4240                      || ('j' <= (c) && (c) <= 'r') \
4241                      || ('s' <= (c) && (c) <= 'z'))
4242 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4243 #endif
4244
4245 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4246 int
4247 main ()
4248 {
4249   int i;
4250   for (i = 0; i < 256; i++)
4251     if (XOR (islower (i), ISLOWER (i))
4252         || toupper (i) != TOUPPER (i))
4253       return 2;
4254   return 0;
4255 }
4256 _ACEOF
4257 rm -f conftest$ac_exeext
4258 if { (ac_try="$ac_link"
4259 case "(($ac_try" in
4260   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4261   *) ac_try_echo=$ac_try;;
4262 esac
4263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4264   (eval "$ac_link") 2>&5
4265   ac_status=$?
4266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4267   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4268   { (case "(($ac_try" in
4269   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4270   *) ac_try_echo=$ac_try;;
4271 esac
4272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4273   (eval "$ac_try") 2>&5
4274   ac_status=$?
4275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4276   (exit $ac_status); }; }; then
4277   :
4278 else
4279   echo "$as_me: program exited with status $ac_status" >&5
4280 echo "$as_me: failed program was:" >&5
4281 sed 's/^/| /' conftest.$ac_ext >&5
4282
4283 ( exit $ac_status )
4284 ac_cv_header_stdc=no
4285 fi
4286 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4287 fi
4288
4289
4290 fi
4291 fi
4292 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4293 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4294 if test $ac_cv_header_stdc = yes; then
4295
4296 cat >>confdefs.h <<\_ACEOF
4297 #define STDC_HEADERS 1
4298 _ACEOF
4299
4300 fi
4301
4302 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4303
4304
4305
4306
4307
4308
4309
4310
4311
4312 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4313                   inttypes.h stdint.h unistd.h
4314 do
4315 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4316 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4317 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4318 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4319   echo $ECHO_N "(cached) $ECHO_C" >&6
4320 else
4321   cat >conftest.$ac_ext <<_ACEOF
4322 /* confdefs.h.  */
4323 _ACEOF
4324 cat confdefs.h >>conftest.$ac_ext
4325 cat >>conftest.$ac_ext <<_ACEOF
4326 /* end confdefs.h.  */
4327 $ac_includes_default
4328
4329 #include <$ac_header>
4330 _ACEOF
4331 rm -f conftest.$ac_objext
4332 if { (ac_try="$ac_compile"
4333 case "(($ac_try" in
4334   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4335   *) ac_try_echo=$ac_try;;
4336 esac
4337 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4338   (eval "$ac_compile") 2>conftest.er1
4339   ac_status=$?
4340   grep -v '^ *+' conftest.er1 >conftest.err
4341   rm -f conftest.er1
4342   cat conftest.err >&5
4343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4344   (exit $ac_status); } &&
4345          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4346   { (case "(($ac_try" in
4347   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4348   *) ac_try_echo=$ac_try;;
4349 esac
4350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4351   (eval "$ac_try") 2>&5
4352   ac_status=$?
4353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4354   (exit $ac_status); }; } &&
4355          { ac_try='test -s conftest.$ac_objext'
4356   { (case "(($ac_try" in
4357   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4358   *) ac_try_echo=$ac_try;;
4359 esac
4360 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4361   (eval "$ac_try") 2>&5
4362   ac_status=$?
4363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4364   (exit $ac_status); }; }; then
4365   eval "$as_ac_Header=yes"
4366 else
4367   echo "$as_me: failed program was:" >&5
4368 sed 's/^/| /' conftest.$ac_ext >&5
4369
4370         eval "$as_ac_Header=no"
4371 fi
4372
4373 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4374 fi
4375 ac_res=`eval echo '${'$as_ac_Header'}'`
4376                { echo "$as_me:$LINENO: result: $ac_res" >&5
4377 echo "${ECHO_T}$ac_res" >&6; }
4378 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4379   cat >>confdefs.h <<_ACEOF
4380 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4381 _ACEOF
4382
4383 fi
4384
4385 done
4386
4387
4388 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4389 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4390 if test "${ac_cv_c_bigendian+set}" = set; then
4391   echo $ECHO_N "(cached) $ECHO_C" >&6
4392 else
4393   # See if sys/param.h defines the BYTE_ORDER macro.
4394 cat >conftest.$ac_ext <<_ACEOF
4395 /* confdefs.h.  */
4396 _ACEOF
4397 cat confdefs.h >>conftest.$ac_ext
4398 cat >>conftest.$ac_ext <<_ACEOF
4399 /* end confdefs.h.  */
4400 #include <sys/types.h>
4401 #include <sys/param.h>
4402
4403 int
4404 main ()
4405 {
4406 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4407  bogus endian macros
4408 #endif
4409
4410   ;
4411   return 0;
4412 }
4413 _ACEOF
4414 rm -f conftest.$ac_objext
4415 if { (ac_try="$ac_compile"
4416 case "(($ac_try" in
4417   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4418   *) ac_try_echo=$ac_try;;
4419 esac
4420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4421   (eval "$ac_compile") 2>conftest.er1
4422   ac_status=$?
4423   grep -v '^ *+' conftest.er1 >conftest.err
4424   rm -f conftest.er1
4425   cat conftest.err >&5
4426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4427   (exit $ac_status); } &&
4428          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4429   { (case "(($ac_try" in
4430   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4431   *) ac_try_echo=$ac_try;;
4432 esac
4433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4434   (eval "$ac_try") 2>&5
4435   ac_status=$?
4436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4437   (exit $ac_status); }; } &&
4438          { ac_try='test -s conftest.$ac_objext'
4439   { (case "(($ac_try" in
4440   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4441   *) ac_try_echo=$ac_try;;
4442 esac
4443 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4444   (eval "$ac_try") 2>&5
4445   ac_status=$?
4446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4447   (exit $ac_status); }; }; then
4448   # It does; now see whether it defined to BIG_ENDIAN or not.
4449 cat >conftest.$ac_ext <<_ACEOF
4450 /* confdefs.h.  */
4451 _ACEOF
4452 cat confdefs.h >>conftest.$ac_ext
4453 cat >>conftest.$ac_ext <<_ACEOF
4454 /* end confdefs.h.  */
4455 #include <sys/types.h>
4456 #include <sys/param.h>
4457
4458 int
4459 main ()
4460 {
4461 #if BYTE_ORDER != BIG_ENDIAN
4462  not big endian
4463 #endif
4464
4465   ;
4466   return 0;
4467 }
4468 _ACEOF
4469 rm -f conftest.$ac_objext
4470 if { (ac_try="$ac_compile"
4471 case "(($ac_try" in
4472   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4473   *) ac_try_echo=$ac_try;;
4474 esac
4475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4476   (eval "$ac_compile") 2>conftest.er1
4477   ac_status=$?
4478   grep -v '^ *+' conftest.er1 >conftest.err
4479   rm -f conftest.er1
4480   cat conftest.err >&5
4481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4482   (exit $ac_status); } &&
4483          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4484   { (case "(($ac_try" in
4485   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4486   *) ac_try_echo=$ac_try;;
4487 esac
4488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4489   (eval "$ac_try") 2>&5
4490   ac_status=$?
4491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4492   (exit $ac_status); }; } &&
4493          { ac_try='test -s conftest.$ac_objext'
4494   { (case "(($ac_try" in
4495   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4496   *) ac_try_echo=$ac_try;;
4497 esac
4498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4499   (eval "$ac_try") 2>&5
4500   ac_status=$?
4501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4502   (exit $ac_status); }; }; then
4503   ac_cv_c_bigendian=yes
4504 else
4505   echo "$as_me: failed program was:" >&5
4506 sed 's/^/| /' conftest.$ac_ext >&5
4507
4508         ac_cv_c_bigendian=no
4509 fi
4510
4511 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4512 else
4513   echo "$as_me: failed program was:" >&5
4514 sed 's/^/| /' conftest.$ac_ext >&5
4515
4516         # It does not; compile a test program.
4517 if test "$cross_compiling" = yes; then
4518   # try to guess the endianness by grepping values into an object file
4519   ac_cv_c_bigendian=unknown
4520   cat >conftest.$ac_ext <<_ACEOF
4521 /* confdefs.h.  */
4522 _ACEOF
4523 cat confdefs.h >>conftest.$ac_ext
4524 cat >>conftest.$ac_ext <<_ACEOF
4525 /* end confdefs.h.  */
4526 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4527 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4528 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4529 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4530 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4531 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4532 int
4533 main ()
4534 {
4535  _ascii (); _ebcdic ();
4536   ;
4537   return 0;
4538 }
4539 _ACEOF
4540 rm -f conftest.$ac_objext
4541 if { (ac_try="$ac_compile"
4542 case "(($ac_try" in
4543   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4544   *) ac_try_echo=$ac_try;;
4545 esac
4546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4547   (eval "$ac_compile") 2>conftest.er1
4548   ac_status=$?
4549   grep -v '^ *+' conftest.er1 >conftest.err
4550   rm -f conftest.er1
4551   cat conftest.err >&5
4552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4553   (exit $ac_status); } &&
4554          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4555   { (case "(($ac_try" in
4556   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4557   *) ac_try_echo=$ac_try;;
4558 esac
4559 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4560   (eval "$ac_try") 2>&5
4561   ac_status=$?
4562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4563   (exit $ac_status); }; } &&
4564          { ac_try='test -s conftest.$ac_objext'
4565   { (case "(($ac_try" in
4566   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4567   *) ac_try_echo=$ac_try;;
4568 esac
4569 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4570   (eval "$ac_try") 2>&5
4571   ac_status=$?
4572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4573   (exit $ac_status); }; }; then
4574   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4575   ac_cv_c_bigendian=yes
4576 fi
4577 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4578   if test "$ac_cv_c_bigendian" = unknown; then
4579     ac_cv_c_bigendian=no
4580   else
4581     # finding both strings is unlikely to happen, but who knows?
4582     ac_cv_c_bigendian=unknown
4583   fi
4584 fi
4585 else
4586   echo "$as_me: failed program was:" >&5
4587 sed 's/^/| /' conftest.$ac_ext >&5
4588
4589
4590 fi
4591
4592 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4593 else
4594   cat >conftest.$ac_ext <<_ACEOF
4595 /* confdefs.h.  */
4596 _ACEOF
4597 cat confdefs.h >>conftest.$ac_ext
4598 cat >>conftest.$ac_ext <<_ACEOF
4599 /* end confdefs.h.  */
4600 $ac_includes_default
4601 int
4602 main ()
4603 {
4604
4605   /* Are we little or big endian?  From Harbison&Steele.  */
4606   union
4607   {
4608     long int l;
4609     char c[sizeof (long int)];
4610   } u;
4611   u.l = 1;
4612   return u.c[sizeof (long int) - 1] == 1;
4613
4614   ;
4615   return 0;
4616 }
4617 _ACEOF
4618 rm -f conftest$ac_exeext
4619 if { (ac_try="$ac_link"
4620 case "(($ac_try" in
4621   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4622   *) ac_try_echo=$ac_try;;
4623 esac
4624 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4625   (eval "$ac_link") 2>&5
4626   ac_status=$?
4627   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4628   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4629   { (case "(($ac_try" in
4630   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4631   *) ac_try_echo=$ac_try;;
4632 esac
4633 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4634   (eval "$ac_try") 2>&5
4635   ac_status=$?
4636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4637   (exit $ac_status); }; }; then
4638   ac_cv_c_bigendian=no
4639 else
4640   echo "$as_me: program exited with status $ac_status" >&5
4641 echo "$as_me: failed program was:" >&5
4642 sed 's/^/| /' conftest.$ac_ext >&5
4643
4644 ( exit $ac_status )
4645 ac_cv_c_bigendian=yes
4646 fi
4647 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4648 fi
4649
4650
4651 fi
4652
4653 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4654 fi
4655 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4656 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4657 case $ac_cv_c_bigendian in
4658   yes)
4659     ENDIAN=big
4660  ;;
4661   no)
4662     ENDIAN=little
4663  ;;
4664   *)
4665     { { echo "$as_me:$LINENO: error: unknown endianness
4666 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4667 echo "$as_me: error: unknown endianness
4668 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4669    { (exit 1); exit 1; }; } ;;
4670 esac
4671
4672
4673 if test "$cross_compiling" = yes; then
4674   LLVM_CROSS_COMPILING=1
4675
4676
4677 { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4678 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4679 if test "${ac_cv_build_exeext+set}" = set; then
4680   echo $ECHO_N "(cached) $ECHO_C" >&6
4681 else
4682   if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4683   ac_cv_build_exeext=.exe
4684 else
4685   ac_build_prefix=${build_alias}-
4686
4687   # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4688 set dummy ${ac_build_prefix}gcc; ac_word=$2
4689 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4690 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4691 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4692   echo $ECHO_N "(cached) $ECHO_C" >&6
4693 else
4694   if test -n "$BUILD_CC"; then
4695   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4696 else
4697 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4698 for as_dir in $PATH
4699 do
4700   IFS=$as_save_IFS
4701   test -z "$as_dir" && as_dir=.
4702   for ac_exec_ext in '' $ac_executable_extensions; do
4703   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4704     ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4705     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4706     break 2
4707   fi
4708 done
4709 done
4710 IFS=$as_save_IFS
4711
4712 fi
4713 fi
4714 BUILD_CC=$ac_cv_prog_BUILD_CC
4715 if test -n "$BUILD_CC"; then
4716   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4717 echo "${ECHO_T}$BUILD_CC" >&6; }
4718 else
4719   { echo "$as_me:$LINENO: result: no" >&5
4720 echo "${ECHO_T}no" >&6; }
4721 fi
4722
4723
4724   if test -z "$BUILD_CC"; then
4725      # Extract the first word of "gcc", so it can be a program name with args.
4726 set dummy gcc; ac_word=$2
4727 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4728 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4729 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4730   echo $ECHO_N "(cached) $ECHO_C" >&6
4731 else
4732   if test -n "$BUILD_CC"; then
4733   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4734 else
4735 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4736 for as_dir in $PATH
4737 do
4738   IFS=$as_save_IFS
4739   test -z "$as_dir" && as_dir=.
4740   for ac_exec_ext in '' $ac_executable_extensions; do
4741   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4742     ac_cv_prog_BUILD_CC="gcc"
4743     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4744     break 2
4745   fi
4746 done
4747 done
4748 IFS=$as_save_IFS
4749
4750 fi
4751 fi
4752 BUILD_CC=$ac_cv_prog_BUILD_CC
4753 if test -n "$BUILD_CC"; then
4754   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4755 echo "${ECHO_T}$BUILD_CC" >&6; }
4756 else
4757   { echo "$as_me:$LINENO: result: no" >&5
4758 echo "${ECHO_T}no" >&6; }
4759 fi
4760
4761
4762      if test -z "$BUILD_CC"; then
4763        # Extract the first word of "cc", so it can be a program name with args.
4764 set dummy cc; ac_word=$2
4765 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4766 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4767 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4768   echo $ECHO_N "(cached) $ECHO_C" >&6
4769 else
4770   if test -n "$BUILD_CC"; then
4771   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4772 else
4773   ac_prog_rejected=no
4774 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4775 for as_dir in $PATH
4776 do
4777   IFS=$as_save_IFS
4778   test -z "$as_dir" && as_dir=.
4779   for ac_exec_ext in '' $ac_executable_extensions; do
4780   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4781     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4782        ac_prog_rejected=yes
4783        continue
4784      fi
4785     ac_cv_prog_BUILD_CC="cc"
4786     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4787     break 2
4788   fi
4789 done
4790 done
4791 IFS=$as_save_IFS
4792
4793 if test $ac_prog_rejected = yes; then
4794   # We found a bogon in the path, so make sure we never use it.
4795   set dummy $ac_cv_prog_BUILD_CC
4796   shift
4797   if test $# != 0; then
4798     # We chose a different compiler from the bogus one.
4799     # However, it has the same basename, so the bogon will be chosen
4800     # first if we set BUILD_CC to just the basename; use the full file name.
4801     shift
4802     ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4803   fi
4804 fi
4805 fi
4806 fi
4807 BUILD_CC=$ac_cv_prog_BUILD_CC
4808 if test -n "$BUILD_CC"; then
4809   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4810 echo "${ECHO_T}$BUILD_CC" >&6; }
4811 else
4812   { echo "$as_me:$LINENO: result: no" >&5
4813 echo "${ECHO_T}no" >&6; }
4814 fi
4815
4816
4817      fi
4818   fi
4819   test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4820 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4821    { (exit 1); exit 1; }; }
4822   ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4823   rm -f conftest*
4824   echo 'int main () { return 0; }' > conftest.$ac_ext
4825   ac_cv_build_exeext=
4826   if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4827   (eval $ac_build_link) 2>&5
4828   ac_status=$?
4829   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4830   (exit $ac_status); }; then
4831     for file in conftest.*; do
4832       case $file in
4833       *.c | *.o | *.obj | *.dSYM) ;;
4834       *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4835       esac
4836     done
4837   else
4838     { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4839 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4840    { (exit 1); exit 1; }; }
4841   fi
4842   rm -f conftest*
4843   test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4844 fi
4845 fi
4846
4847 BUILD_EXEEXT=""
4848 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4849 { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4850 echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4851 ac_build_exeext=$BUILD_EXEEXT
4852
4853   ac_build_prefix=${build_alias}-
4854   # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4855 set dummy ${ac_build_prefix}g++; ac_word=$2
4856 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4857 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4858 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4859   echo $ECHO_N "(cached) $ECHO_C" >&6
4860 else
4861   if test -n "$BUILD_CXX"; then
4862   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4863 else
4864 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4865 for as_dir in $PATH
4866 do
4867   IFS=$as_save_IFS
4868   test -z "$as_dir" && as_dir=.
4869   for ac_exec_ext in '' $ac_executable_extensions; do
4870   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4871     ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
4872     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4873     break 2
4874   fi
4875 done
4876 done
4877 IFS=$as_save_IFS
4878
4879 fi
4880 fi
4881 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4882 if test -n "$BUILD_CXX"; then
4883   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4884 echo "${ECHO_T}$BUILD_CXX" >&6; }
4885 else
4886   { echo "$as_me:$LINENO: result: no" >&5
4887 echo "${ECHO_T}no" >&6; }
4888 fi
4889
4890
4891   if test -z "$BUILD_CXX"; then
4892      # Extract the first word of "g++", so it can be a program name with args.
4893 set dummy g++; ac_word=$2
4894 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4895 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4896 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4897   echo $ECHO_N "(cached) $ECHO_C" >&6
4898 else
4899   if test -n "$BUILD_CXX"; then
4900   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4901 else
4902 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4903 for as_dir in $PATH
4904 do
4905   IFS=$as_save_IFS
4906   test -z "$as_dir" && as_dir=.
4907   for ac_exec_ext in '' $ac_executable_extensions; do
4908   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4909     ac_cv_prog_BUILD_CXX="g++"
4910     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4911     break 2
4912   fi
4913 done
4914 done
4915 IFS=$as_save_IFS
4916
4917 fi
4918 fi
4919 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4920 if test -n "$BUILD_CXX"; then
4921   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4922 echo "${ECHO_T}$BUILD_CXX" >&6; }
4923 else
4924   { echo "$as_me:$LINENO: result: no" >&5
4925 echo "${ECHO_T}no" >&6; }
4926 fi
4927
4928
4929      if test -z "$BUILD_CXX"; then
4930        # Extract the first word of "c++", so it can be a program name with args.
4931 set dummy c++; ac_word=$2
4932 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4933 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4934 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4935   echo $ECHO_N "(cached) $ECHO_C" >&6
4936 else
4937   if test -n "$BUILD_CXX"; then
4938   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4939 else
4940   ac_prog_rejected=no
4941 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4942 for as_dir in $PATH
4943 do
4944   IFS=$as_save_IFS
4945   test -z "$as_dir" && as_dir=.
4946   for ac_exec_ext in '' $ac_executable_extensions; do
4947   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4948     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4949        ac_prog_rejected=yes
4950        continue
4951      fi
4952     ac_cv_prog_BUILD_CXX="c++"
4953     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4954     break 2
4955   fi
4956 done
4957 done
4958 IFS=$as_save_IFS
4959
4960 if test $ac_prog_rejected = yes; then
4961   # We found a bogon in the path, so make sure we never use it.
4962   set dummy $ac_cv_prog_BUILD_CXX
4963   shift
4964   if test $# != 0; then
4965     # We chose a different compiler from the bogus one.
4966     # However, it has the same basename, so the bogon will be chosen
4967     # first if we set BUILD_CXX to just the basename; use the full file name.
4968     shift
4969     ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4970   fi
4971 fi
4972 fi
4973 fi
4974 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4975 if test -n "$BUILD_CXX"; then
4976   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4977 echo "${ECHO_T}$BUILD_CXX" >&6; }
4978 else
4979   { echo "$as_me:$LINENO: result: no" >&5
4980 echo "${ECHO_T}no" >&6; }
4981 fi
4982
4983
4984      fi
4985   fi
4986 else
4987   LLVM_CROSS_COMPILING=0
4988
4989 fi
4990
4991 if test -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
4992   cvsbuild="yes"
4993   optimize="no"
4994   CVSBUILD=CVSBUILD=1
4995
4996 else
4997   cvsbuild="no"
4998   optimize="yes"
4999 fi
5000
5001
5002 # Check whether --enable-libcpp was given.
5003 if test "${enable_libcpp+set}" = set; then
5004   enableval=$enable_libcpp;
5005 else
5006   enableval=default
5007 fi
5008
5009 case "$enableval" in
5010   yes) ENABLE_LIBCPP=1
5011  ;;
5012   no)  ENABLE_LIBCPP=0
5013  ;;
5014   default) ENABLE_LIBCPP=0
5015 ;;
5016   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&5
5017 echo "$as_me: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&2;}
5018    { (exit 1); exit 1; }; } ;;
5019 esac
5020
5021 # Check whether --enable-cxx11 was given.
5022 if test "${enable_cxx11+set}" = set; then
5023   enableval=$enable_cxx11;
5024 else
5025   enableval=default
5026 fi
5027
5028 case "$enableval" in
5029   yes) ENABLE_CXX11=1
5030  ;;
5031   no)  ENABLE_CXX11=0
5032  ;;
5033   default) ENABLE_CXX11=0
5034 ;;
5035   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cxx11. Use \"yes\" or \"no\"" >&5
5036 echo "$as_me: error: Invalid setting for --enable-cxx11. Use \"yes\" or \"no\"" >&2;}
5037    { (exit 1); exit 1; }; } ;;
5038 esac
5039
5040 # Check whether --enable-optimized was given.
5041 if test "${enable_optimized+set}" = set; then
5042   enableval=$enable_optimized;
5043 else
5044   enableval=$optimize
5045 fi
5046
5047 if test ${enableval} = "no" ; then
5048   ENABLE_OPTIMIZED=
5049
5050 else
5051   ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
5052
5053 fi
5054
5055 # Check whether --enable-profiling was given.
5056 if test "${enable_profiling+set}" = set; then
5057   enableval=$enable_profiling;
5058 else
5059   enableval="no"
5060 fi
5061
5062 if test ${enableval} = "no" ; then
5063   ENABLE_PROFILING=
5064
5065 else
5066   ENABLE_PROFILING=ENABLE_PROFILING=1
5067
5068 fi
5069
5070 # Check whether --enable-assertions was given.
5071 if test "${enable_assertions+set}" = set; then
5072   enableval=$enable_assertions;
5073 else
5074   enableval="yes"
5075 fi
5076
5077 if test ${enableval} = "yes" ; then
5078   DISABLE_ASSERTIONS=
5079
5080 else
5081   DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
5082
5083 fi
5084
5085 # Check whether --enable-expensive-checks was given.
5086 if test "${enable_expensive_checks+set}" = set; then
5087   enableval=$enable_expensive_checks;
5088 else
5089   enableval="no"
5090 fi
5091
5092 if test ${enableval} = "yes" ; then
5093   ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
5094
5095   EXPENSIVE_CHECKS=yes
5096
5097 else
5098   ENABLE_EXPENSIVE_CHECKS=
5099
5100   EXPENSIVE_CHECKS=no
5101
5102 fi
5103
5104 # Check whether --enable-debug-runtime was given.
5105 if test "${enable_debug_runtime+set}" = set; then
5106   enableval=$enable_debug_runtime;
5107 else
5108   enableval=no
5109 fi
5110
5111 if test ${enableval} = "no" ; then
5112   DEBUG_RUNTIME=
5113
5114 else
5115   DEBUG_RUNTIME=DEBUG_RUNTIME=1
5116
5117 fi
5118
5119 # Check whether --enable-debug-symbols was given.
5120 if test "${enable_debug_symbols+set}" = set; then
5121   enableval=$enable_debug_symbols;
5122 else
5123   enableval=no
5124 fi
5125
5126 if test ${enableval} = "no" ; then
5127   DEBUG_SYMBOLS=
5128
5129 else
5130   DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
5131
5132 fi
5133
5134 # Check whether --enable-jit was given.
5135 if test "${enable_jit+set}" = set; then
5136   enableval=$enable_jit;
5137 else
5138   enableval=default
5139 fi
5140
5141 if test ${enableval} = "no"
5142 then
5143   JIT=
5144
5145 else
5146   case "$llvm_cv_target_arch" in
5147     x86)         TARGET_HAS_JIT=1
5148  ;;
5149     Sparc)       TARGET_HAS_JIT=0
5150  ;;
5151     PowerPC)     TARGET_HAS_JIT=1
5152  ;;
5153     x86_64)      TARGET_HAS_JIT=1
5154  ;;
5155     ARM)         TARGET_HAS_JIT=1
5156  ;;
5157     Mips)        TARGET_HAS_JIT=1
5158  ;;
5159     XCore)       TARGET_HAS_JIT=0
5160  ;;
5161     MSP430)      TARGET_HAS_JIT=0
5162  ;;
5163     Hexagon)     TARGET_HAS_JIT=0
5164  ;;
5165     MBlaze)      TARGET_HAS_JIT=0
5166  ;;
5167     NVPTX)       TARGET_HAS_JIT=0
5168  ;;
5169     *)           TARGET_HAS_JIT=0
5170  ;;
5171   esac
5172 fi
5173
5174 # Check whether --enable-docs was given.
5175 if test "${enable_docs+set}" = set; then
5176   enableval=$enable_docs;
5177 else
5178   enableval=default
5179 fi
5180
5181 case "$enableval" in
5182   yes) ENABLE_DOCS=1
5183  ;;
5184   no)  ENABLE_DOCS=0
5185  ;;
5186   default) ENABLE_DOCS=1
5187  ;;
5188   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&5
5189 echo "$as_me: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&2;}
5190    { (exit 1); exit 1; }; } ;;
5191 esac
5192
5193 # Check whether --enable-doxygen was given.
5194 if test "${enable_doxygen+set}" = set; then
5195   enableval=$enable_doxygen;
5196 else
5197   enableval=default
5198 fi
5199
5200 case "$enableval" in
5201   yes) ENABLE_DOXYGEN=1
5202  ;;
5203   no)  ENABLE_DOXYGEN=0
5204  ;;
5205   default) ENABLE_DOXYGEN=0
5206  ;;
5207   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
5208 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
5209    { (exit 1); exit 1; }; } ;;
5210 esac
5211
5212 # Check whether --enable-threads was given.
5213 if test "${enable_threads+set}" = set; then
5214   enableval=$enable_threads;
5215 else
5216   enableval=default
5217 fi
5218
5219 case "$enableval" in
5220   yes) LLVM_ENABLE_THREADS=1
5221  ;;
5222   no)  LLVM_ENABLE_THREADS=0
5223  ;;
5224   default) LLVM_ENABLE_THREADS=1
5225  ;;
5226   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
5227 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
5228    { (exit 1); exit 1; }; } ;;
5229 esac
5230
5231 cat >>confdefs.h <<_ACEOF
5232 #define LLVM_ENABLE_THREADS $LLVM_ENABLE_THREADS
5233 _ACEOF
5234
5235
5236 # Check whether --enable-pthreads was given.
5237 if test "${enable_pthreads+set}" = set; then
5238   enableval=$enable_pthreads;
5239 else
5240   enableval=default
5241 fi
5242
5243 case "$enableval" in
5244   yes) ENABLE_PTHREADS=1
5245  ;;
5246   no)  ENABLE_PTHREADS=0
5247  ;;
5248   default) ENABLE_PTHREADS=1
5249  ;;
5250   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&5
5251 echo "$as_me: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&2;}
5252    { (exit 1); exit 1; }; } ;;
5253 esac
5254
5255 # Check whether --enable-pic was given.
5256 if test "${enable_pic+set}" = set; then
5257   enableval=$enable_pic;
5258 else
5259   enableval=default
5260 fi
5261
5262 case "$enableval" in
5263   yes) ENABLE_PIC=1
5264  ;;
5265   no)  ENABLE_PIC=0
5266  ;;
5267   default) ENABLE_PIC=1
5268  ;;
5269   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
5270 echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
5271    { (exit 1); exit 1; }; } ;;
5272 esac
5273
5274 cat >>confdefs.h <<_ACEOF
5275 #define ENABLE_PIC $ENABLE_PIC
5276 _ACEOF
5277
5278
5279 # Check whether --enable-shared was given.
5280 if test "${enable_shared+set}" = set; then
5281   enableval=$enable_shared;
5282 else
5283   enableval=default
5284 fi
5285
5286 case "$enableval" in
5287   yes) ENABLE_SHARED=1
5288  ;;
5289   no)  ENABLE_SHARED=0
5290  ;;
5291   default) ENABLE_SHARED=0
5292  ;;
5293   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5
5294 echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;}
5295    { (exit 1); exit 1; }; } ;;
5296 esac
5297
5298 # Check whether --enable-embed-stdcxx was given.
5299 if test "${enable_embed_stdcxx+set}" = set; then
5300   enableval=$enable_embed_stdcxx;
5301 else
5302   enableval=default
5303 fi
5304
5305 case "$enableval" in
5306   yes) ENABLE_EMBED_STDCXX=1
5307  ;;
5308   no)  ENABLE_EMBED_STDCXX=0
5309  ;;
5310   default) ENABLE_EMBED_STDCXX=0
5311  ;;
5312   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&5
5313 echo "$as_me: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&2;}
5314    { (exit 1); exit 1; }; } ;;
5315 esac
5316
5317 # Check whether --enable-timestamps was given.
5318 if test "${enable_timestamps+set}" = set; then
5319   enableval=$enable_timestamps;
5320 else
5321   enableval=default
5322 fi
5323
5324 case "$enableval" in
5325   yes) ENABLE_TIMESTAMPS=1
5326  ;;
5327   no)  ENABLE_TIMESTAMPS=0
5328  ;;
5329   default) ENABLE_TIMESTAMPS=1
5330  ;;
5331   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&5
5332 echo "$as_me: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&2;}
5333    { (exit 1); exit 1; }; } ;;
5334 esac
5335
5336 cat >>confdefs.h <<_ACEOF
5337 #define ENABLE_TIMESTAMPS $ENABLE_TIMESTAMPS
5338 _ACEOF
5339
5340
5341 TARGETS_TO_BUILD=""
5342 # Check whether --enable-targets was given.
5343 if test "${enable_targets+set}" = set; then
5344   enableval=$enable_targets;
5345 else
5346   enableval=all
5347 fi
5348
5349 if test "$enableval" = host-only ; then
5350   enableval=host
5351 fi
5352 case "$enableval" in
5353   all) TARGETS_TO_BUILD="X86 Sparc PowerPC ARM Mips CellSPU XCore MSP430 CppBackend MBlaze NVPTX Hexagon" ;;
5354   *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
5355       case "$a_target" in
5356         x86)      TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5357         x86_64)   TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5358         sparc)    TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5359         powerpc)  TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5360         arm)      TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5361         mips)     TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5362         mipsel)   TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5363         spu)      TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
5364         xcore)    TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5365         msp430)   TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5366         cpp)      TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
5367         hexagon)  TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
5368         mblaze)   TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
5369         nvptx)    TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
5370         host) case "$llvm_cv_target_arch" in
5371             x86)         TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5372             x86_64)      TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5373             Sparc)       TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5374             PowerPC)     TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5375             ARM)         TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5376             Mips)        TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5377             MBlaze)      TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
5378             CellSPU|SPU) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
5379             XCore)       TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5380             MSP430)      TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5381             Hexagon)     TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
5382             NVPTX)       TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
5383             *)       { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
5384 echo "$as_me: error: Can not set target to build" >&2;}
5385    { (exit 1); exit 1; }; } ;;
5386           esac ;;
5387         *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
5388 echo "$as_me: error: Unrecognized target $a_target" >&2;}
5389    { (exit 1); exit 1; }; } ;;
5390       esac
5391   done
5392   ;;
5393 esac
5394 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
5395
5396
5397 for a_target in $TARGETS_TO_BUILD; do
5398   if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
5399
5400 cat >>confdefs.h <<_ACEOF
5401 #define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCH
5402 _ACEOF
5403
5404     LLVM_NATIVE_TARGET="LLVMInitialize${LLVM_NATIVE_ARCH}Target"
5405     LLVM_NATIVE_TARGETINFO="LLVMInitialize${LLVM_NATIVE_ARCH}TargetInfo"
5406     LLVM_NATIVE_TARGETMC="LLVMInitialize${LLVM_NATIVE_ARCH}TargetMC"
5407     LLVM_NATIVE_ASMPRINTER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmPrinter"
5408     if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5409       LLVM_NATIVE_ASMPARSER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmParser"
5410     fi
5411     if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5412       LLVM_NATIVE_DISASSEMBLER="LLVMInitialize${LLVM_NATIVE_ARCH}Disassembler"
5413     fi
5414
5415 cat >>confdefs.h <<_ACEOF
5416 #define LLVM_NATIVE_TARGET $LLVM_NATIVE_TARGET
5417 _ACEOF
5418
5419
5420 cat >>confdefs.h <<_ACEOF
5421 #define LLVM_NATIVE_TARGETINFO $LLVM_NATIVE_TARGETINFO
5422 _ACEOF
5423
5424
5425 cat >>confdefs.h <<_ACEOF
5426 #define LLVM_NATIVE_TARGETMC $LLVM_NATIVE_TARGETMC
5427 _ACEOF
5428
5429
5430 cat >>confdefs.h <<_ACEOF
5431 #define LLVM_NATIVE_ASMPRINTER $LLVM_NATIVE_ASMPRINTER
5432 _ACEOF
5433
5434     if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5435
5436 cat >>confdefs.h <<_ACEOF
5437 #define LLVM_NATIVE_ASMPARSER $LLVM_NATIVE_ASMPARSER
5438 _ACEOF
5439
5440     fi
5441     if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5442
5443 cat >>confdefs.h <<_ACEOF
5444 #define LLVM_NATIVE_DISASSEMBLER $LLVM_NATIVE_DISASSEMBLER
5445 _ACEOF
5446
5447     fi
5448   fi
5449 done
5450
5451 LLVM_ENUM_TARGETS=""
5452 LLVM_ENUM_ASM_PRINTERS=""
5453 LLVM_ENUM_ASM_PARSERS=""
5454 LLVM_ENUM_DISASSEMBLERS=""
5455 for target_to_build in $TARGETS_TO_BUILD; do
5456   LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
5457   if test -f ${srcdir}/lib/Target/${target_to_build}/*AsmPrinter.cpp ; then
5458     LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5459   fi
5460   if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5461     LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5462   fi
5463   if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
5464     LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
5465   fi
5466 done
5467
5468
5469
5470
5471
5472
5473 # Check whether --with-optimize-option was given.
5474 if test "${with_optimize_option+set}" = set; then
5475   withval=$with_optimize_option;
5476 else
5477   withval=default
5478 fi
5479
5480 { echo "$as_me:$LINENO: checking optimization flags" >&5
5481 echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
5482 case "$withval" in
5483   default)
5484     case "$llvm_cv_os_type" in
5485     FreeBSD) optimize_option=-O2 ;;
5486     MingW) optimize_option=-O2 ;;
5487     *)     optimize_option=-O3 ;;
5488     esac ;;
5489   *) optimize_option="$withval" ;;
5490 esac
5491 OPTIMIZE_OPTION=$optimize_option
5492
5493 { echo "$as_me:$LINENO: result: $optimize_option" >&5
5494 echo "${ECHO_T}$optimize_option" >&6; }
5495
5496
5497 # Check whether --with-extra-options was given.
5498 if test "${with_extra_options+set}" = set; then
5499   withval=$with_extra_options;
5500 else
5501   withval=default
5502 fi
5503
5504 case "$withval" in
5505   default) EXTRA_OPTIONS= ;;
5506   *) EXTRA_OPTIONS=$withval ;;
5507 esac
5508 EXTRA_OPTIONS=$EXTRA_OPTIONS
5509
5510
5511
5512 # Check whether --with-extra-ld-options was given.
5513 if test "${with_extra_ld_options+set}" = set; then
5514   withval=$with_extra_ld_options;
5515 else
5516   withval=default
5517 fi
5518
5519 case "$withval" in
5520   default) EXTRA_LD_OPTIONS= ;;
5521   *) EXTRA_LD_OPTIONS=$withval ;;
5522 esac
5523 EXTRA_LD_OPTIONS=$EXTRA_LD_OPTIONS
5524
5525
5526 # Check whether --enable-bindings was given.
5527 if test "${enable_bindings+set}" = set; then
5528   enableval=$enable_bindings;
5529 else
5530   enableval=default
5531 fi
5532
5533 BINDINGS_TO_BUILD=""
5534 case "$enableval" in
5535   yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
5536   all ) BINDINGS_TO_BUILD="ocaml" ;;
5537   none | no) BINDINGS_TO_BUILD="" ;;
5538   *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5539       case "$a_binding" in
5540         ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5541         *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5542 echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5543    { (exit 1); exit 1; }; } ;;
5544       esac
5545   done
5546   ;;
5547 esac
5548
5549
5550 # Check whether --with-ocaml-libdir was given.
5551 if test "${with_ocaml_libdir+set}" = set; then
5552   withval=$with_ocaml_libdir;
5553 else
5554   withval=auto
5555 fi
5556
5557 case "$withval" in
5558   auto) with_ocaml_libdir="$withval" ;;
5559   /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5560   *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5561 echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5562    { (exit 1); exit 1; }; } ;;
5563 esac
5564
5565
5566 # Check whether --with-clang-srcdir was given.
5567 if test "${with_clang_srcdir+set}" = set; then
5568   withval=$with_clang_srcdir;
5569 else
5570   withval="-"
5571 fi
5572
5573 case "$withval" in
5574   -) clang_src_root="" ;;
5575   /* | [A-Za-z]:[\\/]*) clang_src_root="$withval" ;;
5576   *) clang_src_root="$ac_pwd/$withval" ;;
5577 esac
5578 CLANG_SRC_ROOT=$clang_src_root
5579
5580
5581
5582 # Check whether --with-clang-resource-dir was given.
5583 if test "${with_clang_resource_dir+set}" = set; then
5584   withval=$with_clang_resource_dir;
5585 else
5586   withval=""
5587 fi
5588
5589
5590 cat >>confdefs.h <<_ACEOF
5591 #define CLANG_RESOURCE_DIR "$withval"
5592 _ACEOF
5593
5594
5595
5596 # Check whether --with-c-include-dirs was given.
5597 if test "${with_c_include_dirs+set}" = set; then
5598   withval=$with_c_include_dirs;
5599 else
5600   withval=""
5601 fi
5602
5603
5604 cat >>confdefs.h <<_ACEOF
5605 #define C_INCLUDE_DIRS "$withval"
5606 _ACEOF
5607
5608
5609 # Clang normally uses the system c++ headers and libraries. With this option,
5610 # clang will use the ones provided by a gcc installation instead. This option should
5611 # be passed the same value that was used with --prefix when configuring gcc.
5612
5613 # Check whether --with-gcc-toolchain was given.
5614 if test "${with_gcc_toolchain+set}" = set; then
5615   withval=$with_gcc_toolchain;
5616 else
5617   withval=""
5618 fi
5619
5620
5621 cat >>confdefs.h <<_ACEOF
5622 #define GCC_INSTALL_PREFIX "$withval"
5623 _ACEOF
5624
5625
5626
5627 # Check whether --with-default-sysroot was given.
5628 if test "${with_default_sysroot+set}" = set; then
5629   withval=$with_default_sysroot;
5630 else
5631   withval=""
5632 fi
5633
5634
5635 cat >>confdefs.h <<_ACEOF
5636 #define DEFAULT_SYSROOT "$withval"
5637 _ACEOF
5638
5639
5640
5641 # Check whether --with-binutils-include was given.
5642 if test "${with_binutils_include+set}" = set; then
5643   withval=$with_binutils_include;
5644 else
5645   withval=default
5646 fi
5647
5648 case "$withval" in
5649   default) WITH_BINUTILS_INCDIR=default ;;
5650   /* | [A-Za-z]:[\\/]*)      WITH_BINUTILS_INCDIR=$withval ;;
5651   *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5652 echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5653    { (exit 1); exit 1; }; } ;;
5654 esac
5655 if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5656   BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5657
5658   if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5659      echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5660      { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5661 echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5662    { (exit 1); exit 1; }; };
5663   fi
5664 fi
5665
5666
5667 # Check whether --with-bug-report-url was given.
5668 if test "${with_bug_report_url+set}" = set; then
5669   withval=$with_bug_report_url;
5670 else
5671   withval="http://llvm.org/bugs/"
5672 fi
5673
5674
5675 cat >>confdefs.h <<_ACEOF
5676 #define BUG_REPORT_URL "$withval"
5677 _ACEOF
5678
5679
5680 # Check whether --enable-libffi was given.
5681 if test "${enable_libffi+set}" = set; then
5682   enableval=$enable_libffi; case "$enableval" in
5683     yes) llvm_cv_enable_libffi="yes" ;;
5684     no)  llvm_cv_enable_libffi="no"  ;;
5685     *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
5686 echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5687    { (exit 1); exit 1; }; } ;;
5688   esac
5689 else
5690   llvm_cv_enable_libffi=no
5691 fi
5692
5693
5694
5695 # Check whether --with-internal-prefix was given.
5696 if test "${with_internal_prefix+set}" = set; then
5697   withval=$with_internal_prefix;
5698 else
5699   withval=""
5700 fi
5701
5702 INTERNAL_PREFIX=$withval
5703
5704
5705
5706 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5707 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
5708 if test "${lt_cv_path_NM+set}" = set; then
5709   echo $ECHO_N "(cached) $ECHO_C" >&6
5710 else
5711   if test -n "$NM"; then
5712   # Let the user override the test.
5713   lt_cv_path_NM="$NM"
5714 else
5715   lt_nm_to_check="${ac_tool_prefix}nm"
5716   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5717     lt_nm_to_check="$lt_nm_to_check nm"
5718   fi
5719   for lt_tmp_nm in $lt_nm_to_check; do
5720     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5721     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5722       IFS="$lt_save_ifs"
5723       test -z "$ac_dir" && ac_dir=.
5724       tmp_nm="$ac_dir/$lt_tmp_nm"
5725       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5726         # Check to see if the nm accepts a BSD-compat flag.
5727         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5728         #   nm: unknown option "B" ignored
5729         # Tru64's nm complains that /dev/null is an invalid object file
5730         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5731         */dev/null* | *'Invalid file or object type'*)
5732           lt_cv_path_NM="$tmp_nm -B"
5733           break
5734           ;;
5735         *)
5736           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5737           */dev/null*)
5738             lt_cv_path_NM="$tmp_nm -p"
5739             break
5740             ;;
5741           *)
5742             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5743             continue # so that we can try to find one that supports BSD flags
5744             ;;
5745           esac
5746           ;;
5747         esac
5748       fi
5749     done
5750     IFS="$lt_save_ifs"
5751   done
5752   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5753 fi
5754 fi
5755 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5756 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
5757 NM="$lt_cv_path_NM"
5758
5759
5760
5761 { echo "$as_me:$LINENO: checking for GNU make" >&5
5762 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
5763 if test "${llvm_cv_gnu_make_command+set}" = set; then
5764   echo $ECHO_N "(cached) $ECHO_C" >&6
5765 else
5766   llvm_cv_gnu_make_command=''
5767  for a in "$MAKE" make gmake gnumake ; do
5768   if test -z "$a" ; then continue ; fi ;
5769   if  ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
5770   then
5771    llvm_cv_gnu_make_command=$a ;
5772    break;
5773   fi
5774  done
5775 fi
5776 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
5777 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
5778  if test "x$llvm_cv_gnu_make_command" != "x"  ; then
5779    ifGNUmake='' ;
5780  else
5781    ifGNUmake='#' ;
5782    { echo "$as_me:$LINENO: result: \"Not found\"" >&5
5783 echo "${ECHO_T}\"Not found\"" >&6; };
5784  fi
5785
5786
5787 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
5788 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
5789 LN_S=$as_ln_s
5790 if test "$LN_S" = "ln -s"; then
5791   { echo "$as_me:$LINENO: result: yes" >&5
5792 echo "${ECHO_T}yes" >&6; }
5793 else
5794   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5795 echo "${ECHO_T}no, using $LN_S" >&6; }
5796 fi
5797
5798 # Extract the first word of "cmp", so it can be a program name with args.
5799 set dummy cmp; ac_word=$2
5800 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5801 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5802 if test "${ac_cv_path_CMP+set}" = set; then
5803   echo $ECHO_N "(cached) $ECHO_C" >&6
5804 else
5805   case $CMP in
5806   [\\/]* | ?:[\\/]*)
5807   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
5808   ;;
5809   *)
5810   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5811 for as_dir in $PATH
5812 do
5813   IFS=$as_save_IFS
5814   test -z "$as_dir" && as_dir=.
5815   for ac_exec_ext in '' $ac_executable_extensions; do
5816   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5817     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
5818     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5819     break 2
5820   fi
5821 done
5822 done
5823 IFS=$as_save_IFS
5824
5825   test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
5826   ;;
5827 esac
5828 fi
5829 CMP=$ac_cv_path_CMP
5830 if test -n "$CMP"; then
5831   { echo "$as_me:$LINENO: result: $CMP" >&5
5832 echo "${ECHO_T}$CMP" >&6; }
5833 else
5834   { echo "$as_me:$LINENO: result: no" >&5
5835 echo "${ECHO_T}no" >&6; }
5836 fi
5837
5838
5839 # Extract the first word of "cp", so it can be a program name with args.
5840 set dummy cp; ac_word=$2
5841 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5842 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5843 if test "${ac_cv_path_CP+set}" = set; then
5844   echo $ECHO_N "(cached) $ECHO_C" >&6
5845 else
5846   case $CP in
5847   [\\/]* | ?:[\\/]*)
5848   ac_cv_path_CP="$CP" # Let the user override the test with a path.
5849   ;;
5850   *)
5851   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5852 for as_dir in $PATH
5853 do
5854   IFS=$as_save_IFS
5855   test -z "$as_dir" && as_dir=.
5856   for ac_exec_ext in '' $ac_executable_extensions; do
5857   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5858     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
5859     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5860     break 2
5861   fi
5862 done
5863 done
5864 IFS=$as_save_IFS
5865
5866   test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
5867   ;;
5868 esac
5869 fi
5870 CP=$ac_cv_path_CP
5871 if test -n "$CP"; then
5872   { echo "$as_me:$LINENO: result: $CP" >&5
5873 echo "${ECHO_T}$CP" >&6; }
5874 else
5875   { echo "$as_me:$LINENO: result: no" >&5
5876 echo "${ECHO_T}no" >&6; }
5877 fi
5878
5879
5880 # Extract the first word of "date", so it can be a program name with args.
5881 set dummy date; ac_word=$2
5882 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5883 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5884 if test "${ac_cv_path_DATE+set}" = set; then
5885   echo $ECHO_N "(cached) $ECHO_C" >&6
5886 else
5887   case $DATE in
5888   [\\/]* | ?:[\\/]*)
5889   ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
5890   ;;
5891   *)
5892   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5893 for as_dir in $PATH
5894 do
5895   IFS=$as_save_IFS
5896   test -z "$as_dir" && as_dir=.
5897   for ac_exec_ext in '' $ac_executable_extensions; do
5898   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5899     ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
5900     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5901     break 2
5902   fi
5903 done
5904 done
5905 IFS=$as_save_IFS
5906
5907   test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
5908   ;;
5909 esac
5910 fi
5911 DATE=$ac_cv_path_DATE
5912 if test -n "$DATE"; then
5913   { echo "$as_me:$LINENO: result: $DATE" >&5
5914 echo "${ECHO_T}$DATE" >&6; }
5915 else
5916   { echo "$as_me:$LINENO: result: no" >&5
5917 echo "${ECHO_T}no" >&6; }
5918 fi
5919
5920
5921 # Extract the first word of "find", so it can be a program name with args.
5922 set dummy find; ac_word=$2
5923 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5924 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5925 if test "${ac_cv_path_FIND+set}" = set; then
5926   echo $ECHO_N "(cached) $ECHO_C" >&6
5927 else
5928   case $FIND in
5929   [\\/]* | ?:[\\/]*)
5930   ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
5931   ;;
5932   *)
5933   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5934 for as_dir in $PATH
5935 do
5936   IFS=$as_save_IFS
5937   test -z "$as_dir" && as_dir=.
5938   for ac_exec_ext in '' $ac_executable_extensions; do
5939   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5940     ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
5941     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5942     break 2
5943   fi
5944 done
5945 done
5946 IFS=$as_save_IFS
5947
5948   test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
5949   ;;
5950 esac
5951 fi
5952 FIND=$ac_cv_path_FIND
5953 if test -n "$FIND"; then
5954   { echo "$as_me:$LINENO: result: $FIND" >&5
5955 echo "${ECHO_T}$FIND" >&6; }
5956 else
5957   { echo "$as_me:$LINENO: result: no" >&5
5958 echo "${ECHO_T}no" >&6; }
5959 fi
5960
5961
5962 # Extract the first word of "grep", so it can be a program name with args.
5963 set dummy grep; ac_word=$2
5964 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5965 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5966 if test "${ac_cv_path_GREP+set}" = set; then
5967   echo $ECHO_N "(cached) $ECHO_C" >&6
5968 else
5969   case $GREP in
5970   [\\/]* | ?:[\\/]*)
5971   ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
5972   ;;
5973   *)
5974   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5975 for as_dir in $PATH
5976 do
5977   IFS=$as_save_IFS
5978   test -z "$as_dir" && as_dir=.
5979   for ac_exec_ext in '' $ac_executable_extensions; do
5980   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5981     ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
5982     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5983     break 2
5984   fi
5985 done
5986 done
5987 IFS=$as_save_IFS
5988
5989   test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
5990   ;;
5991 esac
5992 fi
5993 GREP=$ac_cv_path_GREP
5994 if test -n "$GREP"; then
5995   { echo "$as_me:$LINENO: result: $GREP" >&5
5996 echo "${ECHO_T}$GREP" >&6; }
5997 else
5998   { echo "$as_me:$LINENO: result: no" >&5
5999 echo "${ECHO_T}no" >&6; }
6000 fi
6001
6002
6003 # Extract the first word of "mkdir", so it can be a program name with args.
6004 set dummy mkdir; ac_word=$2
6005 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6006 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6007 if test "${ac_cv_path_MKDIR+set}" = set; then
6008   echo $ECHO_N "(cached) $ECHO_C" >&6
6009 else
6010   case $MKDIR in
6011   [\\/]* | ?:[\\/]*)
6012   ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6013   ;;
6014   *)
6015   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6016 for as_dir in $PATH
6017 do
6018   IFS=$as_save_IFS
6019   test -z "$as_dir" && as_dir=.
6020   for ac_exec_ext in '' $ac_executable_extensions; do
6021   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6022     ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
6023     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6024     break 2
6025   fi
6026 done
6027 done
6028 IFS=$as_save_IFS
6029
6030   test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6031   ;;
6032 esac
6033 fi
6034 MKDIR=$ac_cv_path_MKDIR
6035 if test -n "$MKDIR"; then
6036   { echo "$as_me:$LINENO: result: $MKDIR" >&5
6037 echo "${ECHO_T}$MKDIR" >&6; }
6038 else
6039   { echo "$as_me:$LINENO: result: no" >&5
6040 echo "${ECHO_T}no" >&6; }
6041 fi
6042
6043
6044 # Extract the first word of "mv", so it can be a program name with args.
6045 set dummy mv; ac_word=$2
6046 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6047 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6048 if test "${ac_cv_path_MV+set}" = set; then
6049   echo $ECHO_N "(cached) $ECHO_C" >&6
6050 else
6051   case $MV in
6052   [\\/]* | ?:[\\/]*)
6053   ac_cv_path_MV="$MV" # Let the user override the test with a path.
6054   ;;
6055   *)
6056   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6057 for as_dir in $PATH
6058 do
6059   IFS=$as_save_IFS
6060   test -z "$as_dir" && as_dir=.
6061   for ac_exec_ext in '' $ac_executable_extensions; do
6062   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6063     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
6064     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6065     break 2
6066   fi
6067 done
6068 done
6069 IFS=$as_save_IFS
6070
6071   test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6072   ;;
6073 esac
6074 fi
6075 MV=$ac_cv_path_MV
6076 if test -n "$MV"; then
6077   { echo "$as_me:$LINENO: result: $MV" >&5
6078 echo "${ECHO_T}$MV" >&6; }
6079 else
6080   { echo "$as_me:$LINENO: result: no" >&5
6081 echo "${ECHO_T}no" >&6; }
6082 fi
6083
6084
6085 if test -n "$ac_tool_prefix"; then
6086   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6087 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6088 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6089 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6090 if test "${ac_cv_prog_RANLIB+set}" = set; then
6091   echo $ECHO_N "(cached) $ECHO_C" >&6
6092 else
6093   if test -n "$RANLIB"; then
6094   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6095 else
6096 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6097 for as_dir in $PATH
6098 do
6099   IFS=$as_save_IFS
6100   test -z "$as_dir" && as_dir=.
6101   for ac_exec_ext in '' $ac_executable_extensions; do
6102   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6103     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6104     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6105     break 2
6106   fi
6107 done
6108 done
6109 IFS=$as_save_IFS
6110
6111 fi
6112 fi
6113 RANLIB=$ac_cv_prog_RANLIB
6114 if test -n "$RANLIB"; then
6115   { echo "$as_me:$LINENO: result: $RANLIB" >&5
6116 echo "${ECHO_T}$RANLIB" >&6; }
6117 else
6118   { echo "$as_me:$LINENO: result: no" >&5
6119 echo "${ECHO_T}no" >&6; }
6120 fi
6121
6122
6123 fi
6124 if test -z "$ac_cv_prog_RANLIB"; then
6125   ac_ct_RANLIB=$RANLIB
6126   # Extract the first word of "ranlib", so it can be a program name with args.
6127 set dummy ranlib; ac_word=$2
6128 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6129 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6130 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6131   echo $ECHO_N "(cached) $ECHO_C" >&6
6132 else
6133   if test -n "$ac_ct_RANLIB"; then
6134   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6135 else
6136 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6137 for as_dir in $PATH
6138 do
6139   IFS=$as_save_IFS
6140   test -z "$as_dir" && as_dir=.
6141   for ac_exec_ext in '' $ac_executable_extensions; do
6142   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6143     ac_cv_prog_ac_ct_RANLIB="ranlib"
6144     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6145     break 2
6146   fi
6147 done
6148 done
6149 IFS=$as_save_IFS
6150
6151 fi
6152 fi
6153 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6154 if test -n "$ac_ct_RANLIB"; then
6155   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6156 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6157 else
6158   { echo "$as_me:$LINENO: result: no" >&5
6159 echo "${ECHO_T}no" >&6; }
6160 fi
6161
6162   if test "x$ac_ct_RANLIB" = x; then
6163     RANLIB=":"
6164   else
6165     case $cross_compiling:$ac_tool_warned in
6166 yes:)
6167 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6168 whose name does not start with the host triplet.  If you think this
6169 configuration is useful to you, please write to autoconf@gnu.org." >&5
6170 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6171 whose name does not start with the host triplet.  If you think this
6172 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6173 ac_tool_warned=yes ;;
6174 esac
6175     RANLIB=$ac_ct_RANLIB
6176   fi
6177 else
6178   RANLIB="$ac_cv_prog_RANLIB"
6179 fi
6180
6181 if test -n "$ac_tool_prefix"; then
6182   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6183 set dummy ${ac_tool_prefix}ar; ac_word=$2
6184 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6185 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6186 if test "${ac_cv_prog_AR+set}" = set; then
6187   echo $ECHO_N "(cached) $ECHO_C" >&6
6188 else
6189   if test -n "$AR"; then
6190   ac_cv_prog_AR="$AR" # Let the user override the test.
6191 else
6192 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6193 for as_dir in $PATH
6194 do
6195   IFS=$as_save_IFS
6196   test -z "$as_dir" && as_dir=.
6197   for ac_exec_ext in '' $ac_executable_extensions; do
6198   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6199     ac_cv_prog_AR="${ac_tool_prefix}ar"
6200     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6201     break 2
6202   fi
6203 done
6204 done
6205 IFS=$as_save_IFS
6206
6207 fi
6208 fi
6209 AR=$ac_cv_prog_AR
6210 if test -n "$AR"; then
6211   { echo "$as_me:$LINENO: result: $AR" >&5
6212 echo "${ECHO_T}$AR" >&6; }
6213 else
6214   { echo "$as_me:$LINENO: result: no" >&5
6215 echo "${ECHO_T}no" >&6; }
6216 fi
6217
6218
6219 fi
6220 if test -z "$ac_cv_prog_AR"; then
6221   ac_ct_AR=$AR
6222   # Extract the first word of "ar", so it can be a program name with args.
6223 set dummy ar; ac_word=$2
6224 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6225 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6226 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6227   echo $ECHO_N "(cached) $ECHO_C" >&6
6228 else
6229   if test -n "$ac_ct_AR"; then
6230   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6231 else
6232 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6233 for as_dir in $PATH
6234 do
6235   IFS=$as_save_IFS
6236   test -z "$as_dir" && as_dir=.
6237   for ac_exec_ext in '' $ac_executable_extensions; do
6238   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6239     ac_cv_prog_ac_ct_AR="ar"
6240     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6241     break 2
6242   fi
6243 done
6244 done
6245 IFS=$as_save_IFS
6246
6247 fi
6248 fi
6249 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6250 if test -n "$ac_ct_AR"; then
6251   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6252 echo "${ECHO_T}$ac_ct_AR" >&6; }
6253 else
6254   { echo "$as_me:$LINENO: result: no" >&5
6255 echo "${ECHO_T}no" >&6; }
6256 fi
6257
6258   if test "x$ac_ct_AR" = x; then
6259     AR="false"
6260   else
6261     case $cross_compiling:$ac_tool_warned in
6262 yes:)
6263 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6264 whose name does not start with the host triplet.  If you think this
6265 configuration is useful to you, please write to autoconf@gnu.org." >&5
6266 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6267 whose name does not start with the host triplet.  If you think this
6268 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6269 ac_tool_warned=yes ;;
6270 esac
6271     AR=$ac_ct_AR
6272   fi
6273 else
6274   AR="$ac_cv_prog_AR"
6275 fi
6276
6277 # Extract the first word of "rm", so it can be a program name with args.
6278 set dummy rm; ac_word=$2
6279 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6280 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6281 if test "${ac_cv_path_RM+set}" = set; then
6282   echo $ECHO_N "(cached) $ECHO_C" >&6
6283 else
6284   case $RM in
6285   [\\/]* | ?:[\\/]*)
6286   ac_cv_path_RM="$RM" # Let the user override the test with a path.
6287   ;;
6288   *)
6289   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6290 for as_dir in $PATH
6291 do
6292   IFS=$as_save_IFS
6293   test -z "$as_dir" && as_dir=.
6294   for ac_exec_ext in '' $ac_executable_extensions; do
6295   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6296     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
6297     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6298     break 2
6299   fi
6300 done
6301 done
6302 IFS=$as_save_IFS
6303
6304   test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
6305   ;;
6306 esac
6307 fi
6308 RM=$ac_cv_path_RM
6309 if test -n "$RM"; then
6310   { echo "$as_me:$LINENO: result: $RM" >&5
6311 echo "${ECHO_T}$RM" >&6; }
6312 else
6313   { echo "$as_me:$LINENO: result: no" >&5
6314 echo "${ECHO_T}no" >&6; }
6315 fi
6316
6317
6318 # Extract the first word of "sed", so it can be a program name with args.
6319 set dummy sed; ac_word=$2
6320 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6321 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6322 if test "${ac_cv_path_SED+set}" = set; then
6323   echo $ECHO_N "(cached) $ECHO_C" >&6
6324 else
6325   case $SED in
6326   [\\/]* | ?:[\\/]*)
6327   ac_cv_path_SED="$SED" # Let the user override the test with a path.
6328   ;;
6329   *)
6330   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6331 for as_dir in $PATH
6332 do
6333   IFS=$as_save_IFS
6334   test -z "$as_dir" && as_dir=.
6335   for ac_exec_ext in '' $ac_executable_extensions; do
6336   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6337     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
6338     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6339     break 2
6340   fi
6341 done
6342 done
6343 IFS=$as_save_IFS
6344
6345   test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
6346   ;;
6347 esac
6348 fi
6349 SED=$ac_cv_path_SED
6350 if test -n "$SED"; then
6351   { echo "$as_me:$LINENO: result: $SED" >&5
6352 echo "${ECHO_T}$SED" >&6; }
6353 else
6354   { echo "$as_me:$LINENO: result: no" >&5
6355 echo "${ECHO_T}no" >&6; }
6356 fi
6357
6358
6359 # Extract the first word of "tar", so it can be a program name with args.
6360 set dummy tar; ac_word=$2
6361 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6362 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6363 if test "${ac_cv_path_TAR+set}" = set; then
6364   echo $ECHO_N "(cached) $ECHO_C" >&6
6365 else
6366   case $TAR in
6367   [\\/]* | ?:[\\/]*)
6368   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6369   ;;
6370   *)
6371   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6372 for as_dir in $PATH
6373 do
6374   IFS=$as_save_IFS
6375   test -z "$as_dir" && as_dir=.
6376   for ac_exec_ext in '' $ac_executable_extensions; do
6377   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6378     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
6379     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6380     break 2
6381   fi
6382 done
6383 done
6384 IFS=$as_save_IFS
6385
6386   test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
6387   ;;
6388 esac
6389 fi
6390 TAR=$ac_cv_path_TAR
6391 if test -n "$TAR"; then
6392   { echo "$as_me:$LINENO: result: $TAR" >&5
6393 echo "${ECHO_T}$TAR" >&6; }
6394 else
6395   { echo "$as_me:$LINENO: result: no" >&5
6396 echo "${ECHO_T}no" >&6; }
6397 fi
6398
6399
6400 # Extract the first word of "pwd", so it can be a program name with args.
6401 set dummy pwd; ac_word=$2
6402 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6403 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6404 if test "${ac_cv_path_BINPWD+set}" = set; then
6405   echo $ECHO_N "(cached) $ECHO_C" >&6
6406 else
6407   case $BINPWD in
6408   [\\/]* | ?:[\\/]*)
6409   ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
6410   ;;
6411   *)
6412   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6413 for as_dir in $PATH
6414 do
6415   IFS=$as_save_IFS
6416   test -z "$as_dir" && as_dir=.
6417   for ac_exec_ext in '' $ac_executable_extensions; do
6418   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6419     ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
6420     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6421     break 2
6422   fi
6423 done
6424 done
6425 IFS=$as_save_IFS
6426
6427   test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
6428   ;;
6429 esac
6430 fi
6431 BINPWD=$ac_cv_path_BINPWD
6432 if test -n "$BINPWD"; then
6433   { echo "$as_me:$LINENO: result: $BINPWD" >&5
6434 echo "${ECHO_T}$BINPWD" >&6; }
6435 else
6436   { echo "$as_me:$LINENO: result: no" >&5
6437 echo "${ECHO_T}no" >&6; }
6438 fi
6439
6440
6441
6442 # Extract the first word of "Graphviz", so it can be a program name with args.
6443 set dummy Graphviz; ac_word=$2
6444 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6445 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6446 if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
6447   echo $ECHO_N "(cached) $ECHO_C" >&6
6448 else
6449   case $GRAPHVIZ in
6450   [\\/]* | ?:[\\/]*)
6451   ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
6452   ;;
6453   *)
6454   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6455 for as_dir in $PATH
6456 do
6457   IFS=$as_save_IFS
6458   test -z "$as_dir" && as_dir=.
6459   for ac_exec_ext in '' $ac_executable_extensions; do
6460   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6461     ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
6462     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6463     break 2
6464   fi
6465 done
6466 done
6467 IFS=$as_save_IFS
6468
6469   test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
6470   ;;
6471 esac
6472 fi
6473 GRAPHVIZ=$ac_cv_path_GRAPHVIZ
6474 if test -n "$GRAPHVIZ"; then
6475   { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
6476 echo "${ECHO_T}$GRAPHVIZ" >&6; }
6477 else
6478   { echo "$as_me:$LINENO: result: no" >&5
6479 echo "${ECHO_T}no" >&6; }
6480 fi
6481
6482
6483 if test "$GRAPHVIZ" != "echo Graphviz" ; then
6484
6485 cat >>confdefs.h <<\_ACEOF
6486 #define HAVE_GRAPHVIZ 1
6487 _ACEOF
6488
6489     if test "$llvm_cv_os_type" = "MingW" ; then
6490     GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6491   fi
6492
6493 cat >>confdefs.h <<_ACEOF
6494 #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
6495 _ACEOF
6496
6497 fi
6498 # Extract the first word of "dot", so it can be a program name with args.
6499 set dummy dot; ac_word=$2
6500 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6501 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6502 if test "${ac_cv_path_DOT+set}" = set; then
6503   echo $ECHO_N "(cached) $ECHO_C" >&6
6504 else
6505   case $DOT in
6506   [\\/]* | ?:[\\/]*)
6507   ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
6508   ;;
6509   *)
6510   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6511 for as_dir in $PATH
6512 do
6513   IFS=$as_save_IFS
6514   test -z "$as_dir" && as_dir=.
6515   for ac_exec_ext in '' $ac_executable_extensions; do
6516   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6517     ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
6518     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6519     break 2
6520   fi
6521 done
6522 done
6523 IFS=$as_save_IFS
6524
6525   test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
6526   ;;
6527 esac
6528 fi
6529 DOT=$ac_cv_path_DOT
6530 if test -n "$DOT"; then
6531   { echo "$as_me:$LINENO: result: $DOT" >&5
6532 echo "${ECHO_T}$DOT" >&6; }
6533 else
6534   { echo "$as_me:$LINENO: result: no" >&5
6535 echo "${ECHO_T}no" >&6; }
6536 fi
6537
6538
6539 if test "$DOT" != "echo dot" ; then
6540
6541 cat >>confdefs.h <<\_ACEOF
6542 #define HAVE_DOT 1
6543 _ACEOF
6544
6545     if test "$llvm_cv_os_type" = "MingW" ; then
6546     DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6547   fi
6548
6549 cat >>confdefs.h <<_ACEOF
6550 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
6551 _ACEOF
6552
6553 fi
6554 # Extract the first word of "fdp", so it can be a program name with args.
6555 set dummy fdp; ac_word=$2
6556 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6557 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6558 if test "${ac_cv_path_FDP+set}" = set; then
6559   echo $ECHO_N "(cached) $ECHO_C" >&6
6560 else
6561   case $FDP in
6562   [\\/]* | ?:[\\/]*)
6563   ac_cv_path_FDP="$FDP" # Let the user override the test with a path.
6564   ;;
6565   *)
6566   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6567 for as_dir in $PATH
6568 do
6569   IFS=$as_save_IFS
6570   test -z "$as_dir" && as_dir=.
6571   for ac_exec_ext in '' $ac_executable_extensions; do
6572   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6573     ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext"
6574     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6575     break 2
6576   fi
6577 done
6578 done
6579 IFS=$as_save_IFS
6580
6581   test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp"
6582   ;;
6583 esac
6584 fi
6585 FDP=$ac_cv_path_FDP
6586 if test -n "$FDP"; then
6587   { echo "$as_me:$LINENO: result: $FDP" >&5
6588 echo "${ECHO_T}$FDP" >&6; }
6589 else
6590   { echo "$as_me:$LINENO: result: no" >&5
6591 echo "${ECHO_T}no" >&6; }
6592 fi
6593
6594
6595 if test "$FDP" != "echo fdp" ; then
6596
6597 cat >>confdefs.h <<\_ACEOF
6598 #define HAVE_FDP 1
6599 _ACEOF
6600
6601     if test "$llvm_cv_os_type" = "MingW" ; then
6602     FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6603   fi
6604
6605 cat >>confdefs.h <<_ACEOF
6606 #define LLVM_PATH_FDP "$FDP${EXEEXT}"
6607 _ACEOF
6608
6609 fi
6610 # Extract the first word of "neato", so it can be a program name with args.
6611 set dummy neato; ac_word=$2
6612 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6613 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6614 if test "${ac_cv_path_NEATO+set}" = set; then
6615   echo $ECHO_N "(cached) $ECHO_C" >&6
6616 else
6617   case $NEATO in
6618   [\\/]* | ?:[\\/]*)
6619   ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path.
6620   ;;
6621   *)
6622   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6623 for as_dir in $PATH
6624 do
6625   IFS=$as_save_IFS
6626   test -z "$as_dir" && as_dir=.
6627   for ac_exec_ext in '' $ac_executable_extensions; do
6628   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6629     ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext"
6630     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6631     break 2
6632   fi
6633 done
6634 done
6635 IFS=$as_save_IFS
6636
6637   test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato"
6638   ;;
6639 esac
6640 fi
6641 NEATO=$ac_cv_path_NEATO
6642 if test -n "$NEATO"; then
6643   { echo "$as_me:$LINENO: result: $NEATO" >&5
6644 echo "${ECHO_T}$NEATO" >&6; }
6645 else
6646   { echo "$as_me:$LINENO: result: no" >&5
6647 echo "${ECHO_T}no" >&6; }
6648 fi
6649
6650
6651 if test "$NEATO" != "echo neato" ; then
6652
6653 cat >>confdefs.h <<\_ACEOF
6654 #define HAVE_NEATO 1
6655 _ACEOF
6656
6657     if test "$llvm_cv_os_type" = "MingW" ; then
6658     NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6659   fi
6660
6661 cat >>confdefs.h <<_ACEOF
6662 #define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
6663 _ACEOF
6664
6665 fi
6666 # Extract the first word of "twopi", so it can be a program name with args.
6667 set dummy twopi; ac_word=$2
6668 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6669 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6670 if test "${ac_cv_path_TWOPI+set}" = set; then
6671   echo $ECHO_N "(cached) $ECHO_C" >&6
6672 else
6673   case $TWOPI in
6674   [\\/]* | ?:[\\/]*)
6675   ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path.
6676   ;;
6677   *)
6678   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6679 for as_dir in $PATH
6680 do
6681   IFS=$as_save_IFS
6682   test -z "$as_dir" && as_dir=.
6683   for ac_exec_ext in '' $ac_executable_extensions; do
6684   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6685     ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext"
6686     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6687     break 2
6688   fi
6689 done
6690 done
6691 IFS=$as_save_IFS
6692
6693   test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi"
6694   ;;
6695 esac
6696 fi
6697 TWOPI=$ac_cv_path_TWOPI
6698 if test -n "$TWOPI"; then
6699   { echo "$as_me:$LINENO: result: $TWOPI" >&5
6700 echo "${ECHO_T}$TWOPI" >&6; }
6701 else
6702   { echo "$as_me:$LINENO: result: no" >&5
6703 echo "${ECHO_T}no" >&6; }
6704 fi
6705
6706
6707 if test "$TWOPI" != "echo twopi" ; then
6708
6709 cat >>confdefs.h <<\_ACEOF
6710 #define HAVE_TWOPI 1
6711 _ACEOF
6712
6713     if test "$llvm_cv_os_type" = "MingW" ; then
6714     TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6715   fi
6716
6717 cat >>confdefs.h <<_ACEOF
6718 #define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
6719 _ACEOF
6720
6721 fi
6722 # Extract the first word of "circo", so it can be a program name with args.
6723 set dummy circo; ac_word=$2
6724 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6725 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6726 if test "${ac_cv_path_CIRCO+set}" = set; then
6727   echo $ECHO_N "(cached) $ECHO_C" >&6
6728 else
6729   case $CIRCO in
6730   [\\/]* | ?:[\\/]*)
6731   ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path.
6732   ;;
6733   *)
6734   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6735 for as_dir in $PATH
6736 do
6737   IFS=$as_save_IFS
6738   test -z "$as_dir" && as_dir=.
6739   for ac_exec_ext in '' $ac_executable_extensions; do
6740   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6741     ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext"
6742     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6743     break 2
6744   fi
6745 done
6746 done
6747 IFS=$as_save_IFS
6748
6749   test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo"
6750   ;;
6751 esac
6752 fi
6753 CIRCO=$ac_cv_path_CIRCO
6754 if test -n "$CIRCO"; then
6755   { echo "$as_me:$LINENO: result: $CIRCO" >&5
6756 echo "${ECHO_T}$CIRCO" >&6; }
6757 else
6758   { echo "$as_me:$LINENO: result: no" >&5
6759 echo "${ECHO_T}no" >&6; }
6760 fi
6761
6762
6763 if test "$CIRCO" != "echo circo" ; then
6764
6765 cat >>confdefs.h <<\_ACEOF
6766 #define HAVE_CIRCO 1
6767 _ACEOF
6768
6769     if test "$llvm_cv_os_type" = "MingW" ; then
6770     CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6771   fi
6772
6773 cat >>confdefs.h <<_ACEOF
6774 #define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
6775 _ACEOF
6776
6777 fi
6778 for ac_prog in gv gsview32
6779 do
6780   # Extract the first word of "$ac_prog", so it can be a program name with args.
6781 set dummy $ac_prog; ac_word=$2
6782 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6783 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6784 if test "${ac_cv_path_GV+set}" = set; then
6785   echo $ECHO_N "(cached) $ECHO_C" >&6
6786 else
6787   case $GV in
6788   [\\/]* | ?:[\\/]*)
6789   ac_cv_path_GV="$GV" # Let the user override the test with a path.
6790   ;;
6791   *)
6792   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6793 for as_dir in $PATH
6794 do
6795   IFS=$as_save_IFS
6796   test -z "$as_dir" && as_dir=.
6797   for ac_exec_ext in '' $ac_executable_extensions; do
6798   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6799     ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
6800     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6801     break 2
6802   fi
6803 done
6804 done
6805 IFS=$as_save_IFS
6806
6807   ;;
6808 esac
6809 fi
6810 GV=$ac_cv_path_GV
6811 if test -n "$GV"; then
6812   { echo "$as_me:$LINENO: result: $GV" >&5
6813 echo "${ECHO_T}$GV" >&6; }
6814 else
6815   { echo "$as_me:$LINENO: result: no" >&5
6816 echo "${ECHO_T}no" >&6; }
6817 fi
6818
6819
6820   test -n "$GV" && break
6821 done
6822 test -n "$GV" || GV="echo gv"
6823
6824 if test "$GV" != "echo gv" ; then
6825
6826 cat >>confdefs.h <<\_ACEOF
6827 #define HAVE_GV 1
6828 _ACEOF
6829
6830     if test "$llvm_cv_os_type" = "MingW" ; then
6831     GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6832   fi
6833
6834 cat >>confdefs.h <<_ACEOF
6835 #define LLVM_PATH_GV "$GV${EXEEXT}"
6836 _ACEOF
6837
6838 fi
6839 # Extract the first word of "dotty", so it can be a program name with args.
6840 set dummy dotty; ac_word=$2
6841 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6842 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6843 if test "${ac_cv_path_DOTTY+set}" = set; then
6844   echo $ECHO_N "(cached) $ECHO_C" >&6
6845 else
6846   case $DOTTY in
6847   [\\/]* | ?:[\\/]*)
6848   ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
6849   ;;
6850   *)
6851   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6852 for as_dir in $PATH
6853 do
6854   IFS=$as_save_IFS
6855   test -z "$as_dir" && as_dir=.
6856   for ac_exec_ext in '' $ac_executable_extensions; do
6857   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6858     ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
6859     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6860     break 2
6861   fi
6862 done
6863 done
6864 IFS=$as_save_IFS
6865
6866   test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
6867   ;;
6868 esac
6869 fi
6870 DOTTY=$ac_cv_path_DOTTY
6871 if test -n "$DOTTY"; then
6872   { echo "$as_me:$LINENO: result: $DOTTY" >&5
6873 echo "${ECHO_T}$DOTTY" >&6; }
6874 else
6875   { echo "$as_me:$LINENO: result: no" >&5
6876 echo "${ECHO_T}no" >&6; }
6877 fi
6878
6879
6880 if test "$DOTTY" != "echo dotty" ; then
6881
6882 cat >>confdefs.h <<\_ACEOF
6883 #define HAVE_DOTTY 1
6884 _ACEOF
6885
6886     if test "$llvm_cv_os_type" = "MingW" ; then
6887     DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6888   fi
6889
6890 cat >>confdefs.h <<_ACEOF
6891 #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
6892 _ACEOF
6893
6894 fi
6895 # Extract the first word of "xdot.py", so it can be a program name with args.
6896 set dummy xdot.py; ac_word=$2
6897 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6898 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6899 if test "${ac_cv_path_XDOT_PY+set}" = set; then
6900   echo $ECHO_N "(cached) $ECHO_C" >&6
6901 else
6902   case $XDOT_PY in
6903   [\\/]* | ?:[\\/]*)
6904   ac_cv_path_XDOT_PY="$XDOT_PY" # Let the user override the test with a path.
6905   ;;
6906   *)
6907   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6908 for as_dir in $PATH
6909 do
6910   IFS=$as_save_IFS
6911   test -z "$as_dir" && as_dir=.
6912   for ac_exec_ext in '' $ac_executable_extensions; do
6913   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6914     ac_cv_path_XDOT_PY="$as_dir/$ac_word$ac_exec_ext"
6915     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6916     break 2
6917   fi
6918 done
6919 done
6920 IFS=$as_save_IFS
6921
6922   test -z "$ac_cv_path_XDOT_PY" && ac_cv_path_XDOT_PY="echo xdot.py"
6923   ;;
6924 esac
6925 fi
6926 XDOT_PY=$ac_cv_path_XDOT_PY
6927 if test -n "$XDOT_PY"; then
6928   { echo "$as_me:$LINENO: result: $XDOT_PY" >&5
6929 echo "${ECHO_T}$XDOT_PY" >&6; }
6930 else
6931   { echo "$as_me:$LINENO: result: no" >&5
6932 echo "${ECHO_T}no" >&6; }
6933 fi
6934
6935
6936 if test "$XDOT_PY" != "echo xdot.py" ; then
6937
6938 cat >>confdefs.h <<\_ACEOF
6939 #define HAVE_XDOT_PY 1
6940 _ACEOF
6941
6942     if test "$llvm_cv_os_type" = "MingW" ; then
6943     XDOT_PY=`echo $XDOT_PY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6944   fi
6945
6946 cat >>confdefs.h <<_ACEOF
6947 #define LLVM_PATH_XDOT_PY "$XDOT_PY${EXEEXT}"
6948 _ACEOF
6949
6950 fi
6951
6952 # Find a good install program.  We prefer a C program (faster),
6953 # so one script is as good as another.  But avoid the broken or
6954 # incompatible versions:
6955 # SysV /etc/install, /usr/sbin/install
6956 # SunOS /usr/etc/install
6957 # IRIX /sbin/install
6958 # AIX /bin/install
6959 # AmigaOS /C/install, which installs bootblocks on floppy discs
6960 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6961 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
6962 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6963 # OS/2's system install, which has a completely different semantic
6964 # ./install, which can be erroneously created by make from ./install.sh.
6965 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
6966 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
6967 if test -z "$INSTALL"; then
6968 if test "${ac_cv_path_install+set}" = set; then
6969   echo $ECHO_N "(cached) $ECHO_C" >&6
6970 else
6971   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6972 for as_dir in $PATH
6973 do
6974   IFS=$as_save_IFS
6975   test -z "$as_dir" && as_dir=.
6976   # Account for people who put trailing slashes in PATH elements.
6977 case $as_dir/ in
6978   ./ | .// | /cC/* | \
6979   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
6980   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
6981   /usr/ucb/* ) ;;
6982   *)
6983     # OSF1 and SCO ODT 3.0 have their own names for install.
6984     # Don't use installbsd from OSF since it installs stuff as root
6985     # by default.
6986     for ac_prog in ginstall scoinst install; do
6987       for ac_exec_ext in '' $ac_executable_extensions; do
6988         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
6989           if test $ac_prog = install &&
6990             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6991             # AIX install.  It has an incompatible calling convention.
6992             :
6993           elif test $ac_prog = install &&
6994             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6995             # program-specific install script used by HP pwplus--don't use.
6996             :
6997           else
6998             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
6999             break 3
7000           fi
7001         fi
7002       done
7003     done
7004     ;;
7005 esac
7006 done
7007 IFS=$as_save_IFS
7008
7009
7010 fi
7011   if test "${ac_cv_path_install+set}" = set; then
7012     INSTALL=$ac_cv_path_install
7013   else
7014     # As a last resort, use the slow shell script.  Don't cache a
7015     # value for INSTALL within a source directory, because that will
7016     # break other packages using the cache if that directory is
7017     # removed, or if the value is a relative name.
7018     INSTALL=$ac_install_sh
7019   fi
7020 fi
7021 { echo "$as_me:$LINENO: result: $INSTALL" >&5
7022 echo "${ECHO_T}$INSTALL" >&6; }
7023
7024 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7025 # It thinks the first close brace ends the variable substitution.
7026 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7027
7028 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7029
7030 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7031
7032 case "$INSTALL" in
7033  [\\/$]* | ?:[\\/]* ) ;;
7034  *)  INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
7035 esac
7036
7037 # Extract the first word of "bzip2", so it can be a program name with args.
7038 set dummy bzip2; ac_word=$2
7039 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7040 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7041 if test "${ac_cv_path_BZIP2+set}" = set; then
7042   echo $ECHO_N "(cached) $ECHO_C" >&6
7043 else
7044   case $BZIP2 in
7045   [\\/]* | ?:[\\/]*)
7046   ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7047   ;;
7048   *)
7049   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7050 for as_dir in $PATH
7051 do
7052   IFS=$as_save_IFS
7053   test -z "$as_dir" && as_dir=.
7054   for ac_exec_ext in '' $ac_executable_extensions; do
7055   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7056     ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
7057     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7058     break 2
7059   fi
7060 done
7061 done
7062 IFS=$as_save_IFS
7063
7064   ;;
7065 esac
7066 fi
7067 BZIP2=$ac_cv_path_BZIP2
7068 if test -n "$BZIP2"; then
7069   { echo "$as_me:$LINENO: result: $BZIP2" >&5
7070 echo "${ECHO_T}$BZIP2" >&6; }
7071 else
7072   { echo "$as_me:$LINENO: result: no" >&5
7073 echo "${ECHO_T}no" >&6; }
7074 fi
7075
7076
7077 # Extract the first word of "cat", so it can be a program name with args.
7078 set dummy cat; ac_word=$2
7079 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7080 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7081 if test "${ac_cv_path_CAT+set}" = set; then
7082   echo $ECHO_N "(cached) $ECHO_C" >&6
7083 else
7084   case $CAT in
7085   [\\/]* | ?:[\\/]*)
7086   ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
7087   ;;
7088   *)
7089   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7090 for as_dir in $PATH
7091 do
7092   IFS=$as_save_IFS
7093   test -z "$as_dir" && as_dir=.
7094   for ac_exec_ext in '' $ac_executable_extensions; do
7095   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7096     ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
7097     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7098     break 2
7099   fi
7100 done
7101 done
7102 IFS=$as_save_IFS
7103
7104   ;;
7105 esac
7106 fi
7107 CAT=$ac_cv_path_CAT
7108 if test -n "$CAT"; then
7109   { echo "$as_me:$LINENO: result: $CAT" >&5
7110 echo "${ECHO_T}$CAT" >&6; }
7111 else
7112   { echo "$as_me:$LINENO: result: no" >&5
7113 echo "${ECHO_T}no" >&6; }
7114 fi
7115
7116
7117 # Extract the first word of "doxygen", so it can be a program name with args.
7118 set dummy doxygen; ac_word=$2
7119 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7120 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7121 if test "${ac_cv_path_DOXYGEN+set}" = set; then
7122   echo $ECHO_N "(cached) $ECHO_C" >&6
7123 else
7124   case $DOXYGEN in
7125   [\\/]* | ?:[\\/]*)
7126   ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7127   ;;
7128   *)
7129   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7130 for as_dir in $PATH
7131 do
7132   IFS=$as_save_IFS
7133   test -z "$as_dir" && as_dir=.
7134   for ac_exec_ext in '' $ac_executable_extensions; do
7135   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7136     ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
7137     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7138     break 2
7139   fi
7140 done
7141 done
7142 IFS=$as_save_IFS
7143
7144   ;;
7145 esac
7146 fi
7147 DOXYGEN=$ac_cv_path_DOXYGEN
7148 if test -n "$DOXYGEN"; then
7149   { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7150 echo "${ECHO_T}$DOXYGEN" >&6; }
7151 else
7152   { echo "$as_me:$LINENO: result: no" >&5
7153 echo "${ECHO_T}no" >&6; }
7154 fi
7155
7156
7157 # Extract the first word of "groff", so it can be a program name with args.
7158 set dummy groff; ac_word=$2
7159 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7160 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7161 if test "${ac_cv_path_GROFF+set}" = set; then
7162   echo $ECHO_N "(cached) $ECHO_C" >&6
7163 else
7164   case $GROFF in
7165   [\\/]* | ?:[\\/]*)
7166   ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7167   ;;
7168   *)
7169   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7170 for as_dir in $PATH
7171 do
7172   IFS=$as_save_IFS
7173   test -z "$as_dir" && as_dir=.
7174   for ac_exec_ext in '' $ac_executable_extensions; do
7175   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7176     ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7177     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7178     break 2
7179   fi
7180 done
7181 done
7182 IFS=$as_save_IFS
7183
7184   ;;
7185 esac
7186 fi
7187 GROFF=$ac_cv_path_GROFF
7188 if test -n "$GROFF"; then
7189   { echo "$as_me:$LINENO: result: $GROFF" >&5
7190 echo "${ECHO_T}$GROFF" >&6; }
7191 else
7192   { echo "$as_me:$LINENO: result: no" >&5
7193 echo "${ECHO_T}no" >&6; }
7194 fi
7195
7196
7197 # Extract the first word of "gzip", so it can be a program name with args.
7198 set dummy gzip; ac_word=$2
7199 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7200 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7201 if test "${ac_cv_path_GZIPBIN+set}" = set; then
7202   echo $ECHO_N "(cached) $ECHO_C" >&6
7203 else
7204   case $GZIPBIN in
7205   [\\/]* | ?:[\\/]*)
7206   ac_cv_path_GZIPBIN="$GZIPBIN" # Let the user override the test with a path.
7207   ;;
7208   *)
7209   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7210 for as_dir in $PATH
7211 do
7212   IFS=$as_save_IFS
7213   test -z "$as_dir" && as_dir=.
7214   for ac_exec_ext in '' $ac_executable_extensions; do
7215   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7216     ac_cv_path_GZIPBIN="$as_dir/$ac_word$ac_exec_ext"
7217     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7218     break 2
7219   fi
7220 done
7221 done
7222 IFS=$as_save_IFS
7223
7224   ;;
7225 esac
7226 fi
7227 GZIPBIN=$ac_cv_path_GZIPBIN
7228 if test -n "$GZIPBIN"; then
7229   { echo "$as_me:$LINENO: result: $GZIPBIN" >&5
7230 echo "${ECHO_T}$GZIPBIN" >&6; }
7231 else
7232   { echo "$as_me:$LINENO: result: no" >&5
7233 echo "${ECHO_T}no" >&6; }
7234 fi
7235
7236
7237 # Extract the first word of "pdfroff", so it can be a program name with args.
7238 set dummy pdfroff; ac_word=$2
7239 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7240 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7241 if test "${ac_cv_path_PDFROFF+set}" = set; then
7242   echo $ECHO_N "(cached) $ECHO_C" >&6
7243 else
7244   case $PDFROFF in
7245   [\\/]* | ?:[\\/]*)
7246   ac_cv_path_PDFROFF="$PDFROFF" # Let the user override the test with a path.
7247   ;;
7248   *)
7249   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7250 for as_dir in $PATH
7251 do
7252   IFS=$as_save_IFS
7253   test -z "$as_dir" && as_dir=.
7254   for ac_exec_ext in '' $ac_executable_extensions; do
7255   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7256     ac_cv_path_PDFROFF="$as_dir/$ac_word$ac_exec_ext"
7257     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7258     break 2
7259   fi
7260 done
7261 done
7262 IFS=$as_save_IFS
7263
7264   ;;
7265 esac
7266 fi
7267 PDFROFF=$ac_cv_path_PDFROFF
7268 if test -n "$PDFROFF"; then
7269   { echo "$as_me:$LINENO: result: $PDFROFF" >&5
7270 echo "${ECHO_T}$PDFROFF" >&6; }
7271 else
7272   { echo "$as_me:$LINENO: result: no" >&5
7273 echo "${ECHO_T}no" >&6; }
7274 fi
7275
7276
7277 # Extract the first word of "zip", so it can be a program name with args.
7278 set dummy zip; ac_word=$2
7279 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7280 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7281 if test "${ac_cv_path_ZIP+set}" = set; then
7282   echo $ECHO_N "(cached) $ECHO_C" >&6
7283 else
7284   case $ZIP in
7285   [\\/]* | ?:[\\/]*)
7286   ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
7287   ;;
7288   *)
7289   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7290 for as_dir in $PATH
7291 do
7292   IFS=$as_save_IFS
7293   test -z "$as_dir" && as_dir=.
7294   for ac_exec_ext in '' $ac_executable_extensions; do
7295   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7296     ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
7297     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7298     break 2
7299   fi
7300 done
7301 done
7302 IFS=$as_save_IFS
7303
7304   ;;
7305 esac
7306 fi
7307 ZIP=$ac_cv_path_ZIP
7308 if test -n "$ZIP"; then
7309   { echo "$as_me:$LINENO: result: $ZIP" >&5
7310 echo "${ECHO_T}$ZIP" >&6; }
7311 else
7312   { echo "$as_me:$LINENO: result: no" >&5
7313 echo "${ECHO_T}no" >&6; }
7314 fi
7315
7316
7317 for ac_prog in ocamlc
7318 do
7319   # Extract the first word of "$ac_prog", so it can be a program name with args.
7320 set dummy $ac_prog; ac_word=$2
7321 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7322 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7323 if test "${ac_cv_path_OCAMLC+set}" = set; then
7324   echo $ECHO_N "(cached) $ECHO_C" >&6
7325 else
7326   case $OCAMLC in
7327   [\\/]* | ?:[\\/]*)
7328   ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
7329   ;;
7330   *)
7331   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7332 for as_dir in $PATH
7333 do
7334   IFS=$as_save_IFS
7335   test -z "$as_dir" && as_dir=.
7336   for ac_exec_ext in '' $ac_executable_extensions; do
7337   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7338     ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
7339     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7340     break 2
7341   fi
7342 done
7343 done
7344 IFS=$as_save_IFS
7345
7346   ;;
7347 esac
7348 fi
7349 OCAMLC=$ac_cv_path_OCAMLC
7350 if test -n "$OCAMLC"; then
7351   { echo "$as_me:$LINENO: result: $OCAMLC" >&5
7352 echo "${ECHO_T}$OCAMLC" >&6; }
7353 else
7354   { echo "$as_me:$LINENO: result: no" >&5
7355 echo "${ECHO_T}no" >&6; }
7356 fi
7357
7358
7359   test -n "$OCAMLC" && break
7360 done
7361
7362 for ac_prog in ocamlopt
7363 do
7364   # Extract the first word of "$ac_prog", so it can be a program name with args.
7365 set dummy $ac_prog; ac_word=$2
7366 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7367 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7368 if test "${ac_cv_path_OCAMLOPT+set}" = set; then
7369   echo $ECHO_N "(cached) $ECHO_C" >&6
7370 else
7371   case $OCAMLOPT in
7372   [\\/]* | ?:[\\/]*)
7373   ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
7374   ;;
7375   *)
7376   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7377 for as_dir in $PATH
7378 do
7379   IFS=$as_save_IFS
7380   test -z "$as_dir" && as_dir=.
7381   for ac_exec_ext in '' $ac_executable_extensions; do
7382   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7383     ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
7384     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7385     break 2
7386   fi
7387 done
7388 done
7389 IFS=$as_save_IFS
7390
7391   ;;
7392 esac
7393 fi
7394 OCAMLOPT=$ac_cv_path_OCAMLOPT
7395 if test -n "$OCAMLOPT"; then
7396   { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
7397 echo "${ECHO_T}$OCAMLOPT" >&6; }
7398 else
7399   { echo "$as_me:$LINENO: result: no" >&5
7400 echo "${ECHO_T}no" >&6; }
7401 fi
7402
7403
7404   test -n "$OCAMLOPT" && break
7405 done
7406
7407 for ac_prog in ocamldep
7408 do
7409   # Extract the first word of "$ac_prog", so it can be a program name with args.
7410 set dummy $ac_prog; ac_word=$2
7411 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7412 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7413 if test "${ac_cv_path_OCAMLDEP+set}" = set; then
7414   echo $ECHO_N "(cached) $ECHO_C" >&6
7415 else
7416   case $OCAMLDEP in
7417   [\\/]* | ?:[\\/]*)
7418   ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
7419   ;;
7420   *)
7421   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7422 for as_dir in $PATH
7423 do
7424   IFS=$as_save_IFS
7425   test -z "$as_dir" && as_dir=.
7426   for ac_exec_ext in '' $ac_executable_extensions; do
7427   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7428     ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
7429     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7430     break 2
7431   fi
7432 done
7433 done
7434 IFS=$as_save_IFS
7435
7436   ;;
7437 esac
7438 fi
7439 OCAMLDEP=$ac_cv_path_OCAMLDEP
7440 if test -n "$OCAMLDEP"; then
7441   { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
7442 echo "${ECHO_T}$OCAMLDEP" >&6; }
7443 else
7444   { echo "$as_me:$LINENO: result: no" >&5
7445 echo "${ECHO_T}no" >&6; }
7446 fi
7447
7448
7449   test -n "$OCAMLDEP" && break
7450 done
7451
7452 for ac_prog in ocamldoc
7453 do
7454   # Extract the first word of "$ac_prog", so it can be a program name with args.
7455 set dummy $ac_prog; ac_word=$2
7456 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7457 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7458 if test "${ac_cv_path_OCAMLDOC+set}" = set; then
7459   echo $ECHO_N "(cached) $ECHO_C" >&6
7460 else
7461   case $OCAMLDOC in
7462   [\\/]* | ?:[\\/]*)
7463   ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
7464   ;;
7465   *)
7466   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7467 for as_dir in $PATH
7468 do
7469   IFS=$as_save_IFS
7470   test -z "$as_dir" && as_dir=.
7471   for ac_exec_ext in '' $ac_executable_extensions; do
7472   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7473     ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
7474     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7475     break 2
7476   fi
7477 done
7478 done
7479 IFS=$as_save_IFS
7480
7481   ;;
7482 esac
7483 fi
7484 OCAMLDOC=$ac_cv_path_OCAMLDOC
7485 if test -n "$OCAMLDOC"; then
7486   { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
7487 echo "${ECHO_T}$OCAMLDOC" >&6; }
7488 else
7489   { echo "$as_me:$LINENO: result: no" >&5
7490 echo "${ECHO_T}no" >&6; }
7491 fi
7492
7493
7494   test -n "$OCAMLDOC" && break
7495 done
7496
7497 for ac_prog in gas as
7498 do
7499   # Extract the first word of "$ac_prog", so it can be a program name with args.
7500 set dummy $ac_prog; ac_word=$2
7501 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7502 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7503 if test "${ac_cv_path_GAS+set}" = set; then
7504   echo $ECHO_N "(cached) $ECHO_C" >&6
7505 else
7506   case $GAS in
7507   [\\/]* | ?:[\\/]*)
7508   ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
7509   ;;
7510   *)
7511   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7512 for as_dir in $PATH
7513 do
7514   IFS=$as_save_IFS
7515   test -z "$as_dir" && as_dir=.
7516   for ac_exec_ext in '' $ac_executable_extensions; do
7517   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7518     ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
7519     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7520     break 2
7521   fi
7522 done
7523 done
7524 IFS=$as_save_IFS
7525
7526   ;;
7527 esac
7528 fi
7529 GAS=$ac_cv_path_GAS
7530 if test -n "$GAS"; then
7531   { echo "$as_me:$LINENO: result: $GAS" >&5
7532 echo "${ECHO_T}$GAS" >&6; }
7533 else
7534   { echo "$as_me:$LINENO: result: no" >&5
7535 echo "${ECHO_T}no" >&6; }
7536 fi
7537
7538
7539   test -n "$GAS" && break
7540 done
7541
7542
7543 { echo "$as_me:$LINENO: checking for linker version" >&5
7544 echo $ECHO_N "checking for linker version... $ECHO_C" >&6; }
7545 if test "${llvm_cv_link_version+set}" = set; then
7546   echo $ECHO_N "(cached) $ECHO_C" >&6
7547 else
7548
7549    version_string="$(ld -v 2>&1 | head -1)"
7550
7551    # Check for ld64.
7552    if (echo "$version_string" | grep -q "ld64"); then
7553      llvm_cv_link_version=$(echo "$version_string" | sed -e "s#.*ld64-\([^ ]*\)\( (.*)\)\{0,1\}#\1#")
7554    else
7555      llvm_cv_link_version=$(echo "$version_string" | sed -e "s#[^0-9]*\([0-9.]*\).*#\1#")
7556    fi
7557
7558 fi
7559 { echo "$as_me:$LINENO: result: $llvm_cv_link_version" >&5
7560 echo "${ECHO_T}$llvm_cv_link_version" >&6; }
7561
7562 cat >>confdefs.h <<_ACEOF
7563 #define HOST_LINK_VERSION "$llvm_cv_link_version"
7564 _ACEOF
7565
7566
7567
7568 { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
7569 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
7570 if test "${llvm_cv_link_use_r+set}" = set; then
7571   echo $ECHO_N "(cached) $ECHO_C" >&6
7572 else
7573    ac_ext=c
7574 ac_cpp='$CPP $CPPFLAGS'
7575 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7576 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7577 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7578
7579   oldcflags="$CFLAGS"
7580   CFLAGS="$CFLAGS -Wl,-R."
7581   cat >conftest.$ac_ext <<_ACEOF
7582 /* confdefs.h.  */
7583 _ACEOF
7584 cat confdefs.h >>conftest.$ac_ext
7585 cat >>conftest.$ac_ext <<_ACEOF
7586 /* end confdefs.h.  */
7587
7588 int
7589 main ()
7590 {
7591
7592   ;
7593   return 0;
7594 }
7595 _ACEOF
7596 rm -f conftest.$ac_objext conftest$ac_exeext
7597 if { (ac_try="$ac_link"
7598 case "(($ac_try" in
7599   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7600   *) ac_try_echo=$ac_try;;
7601 esac
7602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7603   (eval "$ac_link") 2>conftest.er1
7604   ac_status=$?
7605   grep -v '^ *+' conftest.er1 >conftest.err
7606   rm -f conftest.er1
7607   cat conftest.err >&5
7608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7609   (exit $ac_status); } &&
7610          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7611   { (case "(($ac_try" in
7612   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7613   *) ac_try_echo=$ac_try;;
7614 esac
7615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7616   (eval "$ac_try") 2>&5
7617   ac_status=$?
7618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7619   (exit $ac_status); }; } &&
7620          { ac_try='test -s conftest$ac_exeext'
7621   { (case "(($ac_try" in
7622   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7623   *) ac_try_echo=$ac_try;;
7624 esac
7625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7626   (eval "$ac_try") 2>&5
7627   ac_status=$?
7628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7629   (exit $ac_status); }; }; then
7630   llvm_cv_link_use_r=yes
7631 else
7632   echo "$as_me: failed program was:" >&5
7633 sed 's/^/| /' conftest.$ac_ext >&5
7634
7635         llvm_cv_link_use_r=no
7636 fi
7637
7638 rm -f core conftest.err conftest.$ac_objext \
7639       conftest$ac_exeext conftest.$ac_ext
7640   CFLAGS="$oldcflags"
7641   ac_ext=c
7642 ac_cpp='$CPP $CPPFLAGS'
7643 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7644 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7645 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7646
7647
7648 fi
7649 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
7650 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
7651 if test "$llvm_cv_link_use_r" = yes ; then
7652
7653 cat >>confdefs.h <<\_ACEOF
7654 #define HAVE_LINK_R 1
7655 _ACEOF
7656
7657   fi
7658
7659
7660 { echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5
7661 echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; }
7662 if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
7663   echo $ECHO_N "(cached) $ECHO_C" >&6
7664 else
7665    ac_ext=c
7666 ac_cpp='$CPP $CPPFLAGS'
7667 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7668 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7669 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7670
7671   oldcflags="$CFLAGS"
7672   CFLAGS="$CFLAGS -Wl,-export-dynamic"
7673   cat >conftest.$ac_ext <<_ACEOF
7674 /* confdefs.h.  */
7675 _ACEOF
7676 cat confdefs.h >>conftest.$ac_ext
7677 cat >>conftest.$ac_ext <<_ACEOF
7678 /* end confdefs.h.  */
7679
7680 int
7681 main ()
7682 {
7683
7684   ;
7685   return 0;
7686 }
7687 _ACEOF
7688 rm -f conftest.$ac_objext conftest$ac_exeext
7689 if { (ac_try="$ac_link"
7690 case "(($ac_try" in
7691   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7692   *) ac_try_echo=$ac_try;;
7693 esac
7694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7695   (eval "$ac_link") 2>conftest.er1
7696   ac_status=$?
7697   grep -v '^ *+' conftest.er1 >conftest.err
7698   rm -f conftest.er1
7699   cat conftest.err >&5
7700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7701   (exit $ac_status); } &&
7702          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7703   { (case "(($ac_try" in
7704   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7705   *) ac_try_echo=$ac_try;;
7706 esac
7707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7708   (eval "$ac_try") 2>&5
7709   ac_status=$?
7710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7711   (exit $ac_status); }; } &&
7712          { ac_try='test -s conftest$ac_exeext'
7713   { (case "(($ac_try" in
7714   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7715   *) ac_try_echo=$ac_try;;
7716 esac
7717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7718   (eval "$ac_try") 2>&5
7719   ac_status=$?
7720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7721   (exit $ac_status); }; }; then
7722   llvm_cv_link_use_export_dynamic=yes
7723 else
7724   echo "$as_me: failed program was:" >&5
7725 sed 's/^/| /' conftest.$ac_ext >&5
7726
7727         llvm_cv_link_use_export_dynamic=no
7728 fi
7729
7730 rm -f core conftest.err conftest.$ac_objext \
7731       conftest$ac_exeext conftest.$ac_ext
7732   CFLAGS="$oldcflags"
7733   ac_ext=c
7734 ac_cpp='$CPP $CPPFLAGS'
7735 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7736 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7737 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7738
7739
7740 fi
7741 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
7742 echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
7743 if test "$llvm_cv_link_use_export_dynamic" = yes ; then
7744
7745 cat >>confdefs.h <<\_ACEOF
7746 #define HAVE_LINK_EXPORT_DYNAMIC 1
7747 _ACEOF
7748
7749   fi
7750
7751
7752 { echo "$as_me:$LINENO: checking for compiler -Wl,--version-script option" >&5
7753 echo $ECHO_N "checking for compiler -Wl,--version-script option... $ECHO_C" >&6; }
7754 if test "${llvm_cv_link_use_version_script+set}" = set; then
7755   echo $ECHO_N "(cached) $ECHO_C" >&6
7756 else
7757    ac_ext=c
7758 ac_cpp='$CPP $CPPFLAGS'
7759 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7760 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7761 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7762
7763   oldcflags="$CFLAGS"
7764
7765   # The following code is from the autoconf manual,
7766   # "11.13: Limitations of Usual Tools".
7767   # Create a temporary directory $tmp in $TMPDIR (default /tmp).
7768   # Use mktemp if possible; otherwise fall back on mkdir,
7769   # with $RANDOM to make collisions less likely.
7770   : ${TMPDIR=/tmp}
7771   {
7772     tmp=`
7773       (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null
7774     ` &&
7775     test -n "$tmp" && test -d "$tmp"
7776   } || {
7777     tmp=$TMPDIR/foo$$-$RANDOM
7778     (umask 077 && mkdir "$tmp")
7779   } || exit $?
7780
7781   echo "{" > "$tmp/export.map"
7782   echo "  global: main;" >> "$tmp/export.map"
7783   echo "  local: *;" >> "$tmp/export.map"
7784   echo "};" >> "$tmp/export.map"
7785
7786   CFLAGS="$CFLAGS -Wl,--version-script=$tmp/export.map"
7787   cat >conftest.$ac_ext <<_ACEOF
7788 /* confdefs.h.  */
7789 _ACEOF
7790 cat confdefs.h >>conftest.$ac_ext
7791 cat >>conftest.$ac_ext <<_ACEOF
7792 /* end confdefs.h.  */
7793
7794 int
7795 main ()
7796 {
7797
7798   ;
7799   return 0;
7800 }
7801 _ACEOF
7802 rm -f conftest.$ac_objext conftest$ac_exeext
7803 if { (ac_try="$ac_link"
7804 case "(($ac_try" in
7805   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7806   *) ac_try_echo=$ac_try;;
7807 esac
7808 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7809   (eval "$ac_link") 2>conftest.er1
7810   ac_status=$?
7811   grep -v '^ *+' conftest.er1 >conftest.err
7812   rm -f conftest.er1
7813   cat conftest.err >&5
7814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7815   (exit $ac_status); } &&
7816          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7817   { (case "(($ac_try" in
7818   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7819   *) ac_try_echo=$ac_try;;
7820 esac
7821 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7822   (eval "$ac_try") 2>&5
7823   ac_status=$?
7824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7825   (exit $ac_status); }; } &&
7826          { ac_try='test -s conftest$ac_exeext'
7827   { (case "(($ac_try" in
7828   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7829   *) ac_try_echo=$ac_try;;
7830 esac
7831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7832   (eval "$ac_try") 2>&5
7833   ac_status=$?
7834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7835   (exit $ac_status); }; }; then
7836   llvm_cv_link_use_version_script=yes
7837 else
7838   echo "$as_me: failed program was:" >&5
7839 sed 's/^/| /' conftest.$ac_ext >&5
7840
7841         llvm_cv_link_use_version_script=no
7842 fi
7843
7844 rm -f core conftest.err conftest.$ac_objext \
7845       conftest$ac_exeext conftest.$ac_ext
7846   rm "$tmp/export.map"
7847   rmdir "$tmp"
7848   CFLAGS="$oldcflags"
7849   ac_ext=c
7850 ac_cpp='$CPP $CPPFLAGS'
7851 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7852 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7853 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7854
7855
7856 fi
7857 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_version_script" >&5
7858 echo "${ECHO_T}$llvm_cv_link_use_version_script" >&6; }
7859 if test "$llvm_cv_link_use_version_script" = yes ; then
7860   HAVE_LINK_VERSION_SCRIPT=1
7861
7862   fi
7863
7864
7865
7866
7867 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
7868 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
7869 if test "${ac_cv_c_const+set}" = set; then
7870   echo $ECHO_N "(cached) $ECHO_C" >&6
7871 else
7872   cat >conftest.$ac_ext <<_ACEOF
7873 /* confdefs.h.  */
7874 _ACEOF
7875 cat confdefs.h >>conftest.$ac_ext
7876 cat >>conftest.$ac_ext <<_ACEOF
7877 /* end confdefs.h.  */
7878
7879 int
7880 main ()
7881 {
7882 /* FIXME: Include the comments suggested by Paul. */
7883 #ifndef __cplusplus
7884   /* Ultrix mips cc rejects this.  */
7885   typedef int charset[2];
7886   const charset x;
7887   /* SunOS 4.1.1 cc rejects this.  */
7888   char const *const *ccp;
7889   char **p;
7890   /* NEC SVR4.0.2 mips cc rejects this.  */
7891   struct point {int x, y;};
7892   static struct point const zero = {0,0};
7893   /* AIX XL C 1.02.0.0 rejects this.
7894      It does not let you subtract one const X* pointer from another in
7895      an arm of an if-expression whose if-part is not a constant
7896      expression */
7897   const char *g = "string";
7898   ccp = &g + (g ? g-g : 0);
7899   /* HPUX 7.0 cc rejects these. */
7900   ++ccp;
7901   p = (char**) ccp;
7902   ccp = (char const *const *) p;
7903   { /* SCO 3.2v4 cc rejects this.  */
7904     char *t;
7905     char const *s = 0 ? (char *) 0 : (char const *) 0;
7906
7907     *t++ = 0;
7908     if (s) return 0;
7909   }
7910   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
7911     int x[] = {25, 17};
7912     const int *foo = &x[0];
7913     ++foo;
7914   }
7915   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
7916     typedef const int *iptr;
7917     iptr p = 0;
7918     ++p;
7919   }
7920   { /* AIX XL C 1.02.0.0 rejects this saying
7921        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
7922     struct s { int j; const int *ap[3]; };
7923     struct s *b; b->j = 5;
7924   }
7925   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
7926     const int foo = 10;
7927     if (!foo) return 0;
7928   }
7929   return !x[0] && !zero.x;
7930 #endif
7931
7932   ;
7933   return 0;
7934 }
7935 _ACEOF
7936 rm -f conftest.$ac_objext
7937 if { (ac_try="$ac_compile"
7938 case "(($ac_try" in
7939   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7940   *) ac_try_echo=$ac_try;;
7941 esac
7942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7943   (eval "$ac_compile") 2>conftest.er1
7944   ac_status=$?
7945   grep -v '^ *+' conftest.er1 >conftest.err
7946   rm -f conftest.er1
7947   cat conftest.err >&5
7948   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7949   (exit $ac_status); } &&
7950          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7951   { (case "(($ac_try" in
7952   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7953   *) ac_try_echo=$ac_try;;
7954 esac
7955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7956   (eval "$ac_try") 2>&5
7957   ac_status=$?
7958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7959   (exit $ac_status); }; } &&
7960          { ac_try='test -s conftest.$ac_objext'
7961   { (case "(($ac_try" in
7962   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7963   *) ac_try_echo=$ac_try;;
7964 esac
7965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7966   (eval "$ac_try") 2>&5
7967   ac_status=$?
7968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7969   (exit $ac_status); }; }; then
7970   ac_cv_c_const=yes
7971 else
7972   echo "$as_me: failed program was:" >&5
7973 sed 's/^/| /' conftest.$ac_ext >&5
7974
7975         ac_cv_c_const=no
7976 fi
7977
7978 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7979 fi
7980 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
7981 echo "${ECHO_T}$ac_cv_c_const" >&6; }
7982 if test $ac_cv_c_const = no; then
7983
7984 cat >>confdefs.h <<\_ACEOF
7985 #define const
7986 _ACEOF
7987
7988 fi
7989
7990
7991
7992
7993
7994
7995 ac_header_dirent=no
7996 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
7997   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
7998 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
7999 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8000 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8001   echo $ECHO_N "(cached) $ECHO_C" >&6
8002 else
8003   cat >conftest.$ac_ext <<_ACEOF
8004 /* confdefs.h.  */
8005 _ACEOF
8006 cat confdefs.h >>conftest.$ac_ext
8007 cat >>conftest.$ac_ext <<_ACEOF
8008 /* end confdefs.h.  */
8009 #include <sys/types.h>
8010 #include <$ac_hdr>
8011
8012 int
8013 main ()
8014 {
8015 if ((DIR *) 0)
8016 return 0;
8017   ;
8018   return 0;
8019 }
8020 _ACEOF
8021 rm -f conftest.$ac_objext
8022 if { (ac_try="$ac_compile"
8023 case "(($ac_try" in
8024   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8025   *) ac_try_echo=$ac_try;;
8026 esac
8027 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8028   (eval "$ac_compile") 2>conftest.er1
8029   ac_status=$?
8030   grep -v '^ *+' conftest.er1 >conftest.err
8031   rm -f conftest.er1
8032   cat conftest.err >&5
8033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8034   (exit $ac_status); } &&
8035          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8036   { (case "(($ac_try" in
8037   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8038   *) ac_try_echo=$ac_try;;
8039 esac
8040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8041   (eval "$ac_try") 2>&5
8042   ac_status=$?
8043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8044   (exit $ac_status); }; } &&
8045          { ac_try='test -s conftest.$ac_objext'
8046   { (case "(($ac_try" in
8047   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8048   *) ac_try_echo=$ac_try;;
8049 esac
8050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8051   (eval "$ac_try") 2>&5
8052   ac_status=$?
8053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8054   (exit $ac_status); }; }; then
8055   eval "$as_ac_Header=yes"
8056 else
8057   echo "$as_me: failed program was:" >&5
8058 sed 's/^/| /' conftest.$ac_ext >&5
8059
8060         eval "$as_ac_Header=no"
8061 fi
8062
8063 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8064 fi
8065 ac_res=`eval echo '${'$as_ac_Header'}'`
8066                { echo "$as_me:$LINENO: result: $ac_res" >&5
8067 echo "${ECHO_T}$ac_res" >&6; }
8068 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8069   cat >>confdefs.h <<_ACEOF
8070 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8071 _ACEOF
8072
8073 ac_header_dirent=$ac_hdr; break
8074 fi
8075
8076 done
8077 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8078 if test $ac_header_dirent = dirent.h; then
8079   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8080 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8081 if test "${ac_cv_search_opendir+set}" = set; then
8082   echo $ECHO_N "(cached) $ECHO_C" >&6
8083 else
8084   ac_func_search_save_LIBS=$LIBS
8085 cat >conftest.$ac_ext <<_ACEOF
8086 /* confdefs.h.  */
8087 _ACEOF
8088 cat confdefs.h >>conftest.$ac_ext
8089 cat >>conftest.$ac_ext <<_ACEOF
8090 /* end confdefs.h.  */
8091
8092 /* Override any GCC internal prototype to avoid an error.
8093    Use char because int might match the return type of a GCC
8094    builtin and then its argument prototype would still apply.  */
8095 #ifdef __cplusplus
8096 extern "C"
8097 #endif
8098 char opendir ();
8099 int
8100 main ()
8101 {
8102 return opendir ();
8103   ;
8104   return 0;
8105 }
8106 _ACEOF
8107 for ac_lib in '' dir; do
8108   if test -z "$ac_lib"; then
8109     ac_res="none required"
8110   else
8111     ac_res=-l$ac_lib
8112     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8113   fi
8114   rm -f conftest.$ac_objext conftest$ac_exeext
8115 if { (ac_try="$ac_link"
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_link") 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_exeext'
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   ac_cv_search_opendir=$ac_res
8149 else
8150   echo "$as_me: failed program was:" >&5
8151 sed 's/^/| /' conftest.$ac_ext >&5
8152
8153
8154 fi
8155
8156 rm -f core conftest.err conftest.$ac_objext \
8157       conftest$ac_exeext
8158   if test "${ac_cv_search_opendir+set}" = set; then
8159   break
8160 fi
8161 done
8162 if test "${ac_cv_search_opendir+set}" = set; then
8163   :
8164 else
8165   ac_cv_search_opendir=no
8166 fi
8167 rm conftest.$ac_ext
8168 LIBS=$ac_func_search_save_LIBS
8169 fi
8170 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8171 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8172 ac_res=$ac_cv_search_opendir
8173 if test "$ac_res" != no; then
8174   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8175
8176 fi
8177
8178 else
8179   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8180 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8181 if test "${ac_cv_search_opendir+set}" = set; then
8182   echo $ECHO_N "(cached) $ECHO_C" >&6
8183 else
8184   ac_func_search_save_LIBS=$LIBS
8185 cat >conftest.$ac_ext <<_ACEOF
8186 /* confdefs.h.  */
8187 _ACEOF
8188 cat confdefs.h >>conftest.$ac_ext
8189 cat >>conftest.$ac_ext <<_ACEOF
8190 /* end confdefs.h.  */
8191
8192 /* Override any GCC internal prototype to avoid an error.
8193    Use char because int might match the return type of a GCC
8194    builtin and then its argument prototype would still apply.  */
8195 #ifdef __cplusplus
8196 extern "C"
8197 #endif
8198 char opendir ();
8199 int
8200 main ()
8201 {
8202 return opendir ();
8203   ;
8204   return 0;
8205 }
8206 _ACEOF
8207 for ac_lib in '' x; do
8208   if test -z "$ac_lib"; then
8209     ac_res="none required"
8210   else
8211     ac_res=-l$ac_lib
8212     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8213   fi
8214   rm -f conftest.$ac_objext conftest$ac_exeext
8215 if { (ac_try="$ac_link"
8216 case "(($ac_try" in
8217   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8218   *) ac_try_echo=$ac_try;;
8219 esac
8220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8221   (eval "$ac_link") 2>conftest.er1
8222   ac_status=$?
8223   grep -v '^ *+' conftest.er1 >conftest.err
8224   rm -f conftest.er1
8225   cat conftest.err >&5
8226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8227   (exit $ac_status); } &&
8228          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8229   { (case "(($ac_try" in
8230   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8231   *) ac_try_echo=$ac_try;;
8232 esac
8233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8234   (eval "$ac_try") 2>&5
8235   ac_status=$?
8236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8237   (exit $ac_status); }; } &&
8238          { ac_try='test -s conftest$ac_exeext'
8239   { (case "(($ac_try" in
8240   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8241   *) ac_try_echo=$ac_try;;
8242 esac
8243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8244   (eval "$ac_try") 2>&5
8245   ac_status=$?
8246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8247   (exit $ac_status); }; }; then
8248   ac_cv_search_opendir=$ac_res
8249 else
8250   echo "$as_me: failed program was:" >&5
8251 sed 's/^/| /' conftest.$ac_ext >&5
8252
8253
8254 fi
8255
8256 rm -f core conftest.err conftest.$ac_objext \
8257       conftest$ac_exeext
8258   if test "${ac_cv_search_opendir+set}" = set; then
8259   break
8260 fi
8261 done
8262 if test "${ac_cv_search_opendir+set}" = set; then
8263   :
8264 else
8265   ac_cv_search_opendir=no
8266 fi
8267 rm conftest.$ac_ext
8268 LIBS=$ac_func_search_save_LIBS
8269 fi
8270 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8271 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8272 ac_res=$ac_cv_search_opendir
8273 if test "$ac_res" != no; then
8274   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8275
8276 fi
8277
8278 fi
8279
8280
8281 for ac_header in dlfcn.h
8282 do
8283 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8284 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8285   { echo "$as_me:$LINENO: checking for $ac_header" >&5
8286 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8287 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8288   echo $ECHO_N "(cached) $ECHO_C" >&6
8289 fi
8290 ac_res=`eval echo '${'$as_ac_Header'}'`
8291                { echo "$as_me:$LINENO: result: $ac_res" >&5
8292 echo "${ECHO_T}$ac_res" >&6; }
8293 else
8294   # Is the header compilable?
8295 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8296 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8297 cat >conftest.$ac_ext <<_ACEOF
8298 /* confdefs.h.  */
8299 _ACEOF
8300 cat confdefs.h >>conftest.$ac_ext
8301 cat >>conftest.$ac_ext <<_ACEOF
8302 /* end confdefs.h.  */
8303 $ac_includes_default
8304 #include <$ac_header>
8305 _ACEOF
8306 rm -f conftest.$ac_objext
8307 if { (ac_try="$ac_compile"
8308 case "(($ac_try" in
8309   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8310   *) ac_try_echo=$ac_try;;
8311 esac
8312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8313   (eval "$ac_compile") 2>conftest.er1
8314   ac_status=$?
8315   grep -v '^ *+' conftest.er1 >conftest.err
8316   rm -f conftest.er1
8317   cat conftest.err >&5
8318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8319   (exit $ac_status); } &&
8320          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8321   { (case "(($ac_try" in
8322   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8323   *) ac_try_echo=$ac_try;;
8324 esac
8325 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8326   (eval "$ac_try") 2>&5
8327   ac_status=$?
8328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8329   (exit $ac_status); }; } &&
8330          { ac_try='test -s conftest.$ac_objext'
8331   { (case "(($ac_try" in
8332   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8333   *) ac_try_echo=$ac_try;;
8334 esac
8335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8336   (eval "$ac_try") 2>&5
8337   ac_status=$?
8338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8339   (exit $ac_status); }; }; then
8340   ac_header_compiler=yes
8341 else
8342   echo "$as_me: failed program was:" >&5
8343 sed 's/^/| /' conftest.$ac_ext >&5
8344
8345         ac_header_compiler=no
8346 fi
8347
8348 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8349 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8350 echo "${ECHO_T}$ac_header_compiler" >&6; }
8351
8352 # Is the header present?
8353 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8354 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8355 cat >conftest.$ac_ext <<_ACEOF
8356 /* confdefs.h.  */
8357 _ACEOF
8358 cat confdefs.h >>conftest.$ac_ext
8359 cat >>conftest.$ac_ext <<_ACEOF
8360 /* end confdefs.h.  */
8361 #include <$ac_header>
8362 _ACEOF
8363 if { (ac_try="$ac_cpp conftest.$ac_ext"
8364 case "(($ac_try" in
8365   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8366   *) ac_try_echo=$ac_try;;
8367 esac
8368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8369   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8370   ac_status=$?
8371   grep -v '^ *+' conftest.er1 >conftest.err
8372   rm -f conftest.er1
8373   cat conftest.err >&5
8374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8375   (exit $ac_status); } >/dev/null; then
8376   if test -s conftest.err; then
8377     ac_cpp_err=$ac_c_preproc_warn_flag
8378     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8379   else
8380     ac_cpp_err=
8381   fi
8382 else
8383   ac_cpp_err=yes
8384 fi
8385 if test -z "$ac_cpp_err"; then
8386   ac_header_preproc=yes
8387 else
8388   echo "$as_me: failed program was:" >&5
8389 sed 's/^/| /' conftest.$ac_ext >&5
8390
8391   ac_header_preproc=no
8392 fi
8393
8394 rm -f conftest.err conftest.$ac_ext
8395 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8396 echo "${ECHO_T}$ac_header_preproc" >&6; }
8397
8398 # So?  What about this header?
8399 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8400   yes:no: )
8401     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8402 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8403     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8404 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8405     ac_header_preproc=yes
8406     ;;
8407   no:yes:* )
8408     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8409 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8410     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8411 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8412     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8413 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8414     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8415 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8416     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8417 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8418     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8419 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8420     ( cat <<\_ASBOX
8421 ## ------------------------------------ ##
8422 ## Report this to http://llvm.org/bugs/ ##
8423 ## ------------------------------------ ##
8424 _ASBOX
8425      ) | sed "s/^/$as_me: WARNING:     /" >&2
8426     ;;
8427 esac
8428 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8429 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8430 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8431   echo $ECHO_N "(cached) $ECHO_C" >&6
8432 else
8433   eval "$as_ac_Header=\$ac_header_preproc"
8434 fi
8435 ac_res=`eval echo '${'$as_ac_Header'}'`
8436                { echo "$as_me:$LINENO: result: $ac_res" >&5
8437 echo "${ECHO_T}$ac_res" >&6; }
8438
8439 fi
8440 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8441   cat >>confdefs.h <<_ACEOF
8442 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8443 _ACEOF
8444
8445 fi
8446
8447 done
8448
8449 # Check whether --enable-ltdl-install was given.
8450 if test "${enable_ltdl_install+set}" = set; then
8451   enableval=$enable_ltdl_install;
8452 fi
8453
8454
8455
8456
8457 if test x"${enable_ltdl_install-no}" != xno; then
8458   INSTALL_LTDL_TRUE=
8459   INSTALL_LTDL_FALSE='#'
8460 else
8461   INSTALL_LTDL_TRUE='#'
8462   INSTALL_LTDL_FALSE=
8463 fi
8464
8465
8466
8467 if test x"${enable_ltdl_convenience-no}" != xno; then
8468   CONVENIENCE_LTDL_TRUE=
8469   CONVENIENCE_LTDL_FALSE='#'
8470 else
8471   CONVENIENCE_LTDL_TRUE='#'
8472   CONVENIENCE_LTDL_FALSE=
8473 fi
8474
8475
8476 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8477 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8478 library_names_spec=
8479 libname_spec='lib$name'
8480 soname_spec=
8481 shrext_cmds=".so"
8482 postinstall_cmds=
8483 postuninstall_cmds=
8484 finish_cmds=
8485 finish_eval=
8486 shlibpath_var=
8487 shlibpath_overrides_runpath=unknown
8488 version_type=none
8489 dynamic_linker="$host_os ld.so"
8490 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8491 if test "$GCC" = yes; then
8492   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8493   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8494     # if the path contains ";" then we assume it to be the separator
8495     # otherwise default to the standard path separator (i.e. ":") - it is
8496     # assumed that no part of a normal pathname contains ";" but that should
8497     # okay in the real world where ";" in dirpaths is itself problematic.
8498     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8499   else
8500     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8501   fi
8502 else
8503   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8504 fi
8505 need_lib_prefix=unknown
8506 hardcode_into_libs=no
8507
8508 # when you set need_version to no, make sure it does not cause -set_version
8509 # flags to be left without arguments
8510 need_version=unknown
8511
8512 case $host_os in
8513 aix3*)
8514   version_type=linux
8515   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8516   shlibpath_var=LIBPATH
8517
8518   # AIX 3 has no versioning support, so we append a major version to the name.
8519   soname_spec='${libname}${release}${shared_ext}$major'
8520   ;;
8521
8522 aix4* | aix5*)
8523   version_type=linux
8524   need_lib_prefix=no
8525   need_version=no
8526   hardcode_into_libs=yes
8527   if test "$host_cpu" = ia64; then
8528     # AIX 5 supports IA64
8529     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8530     shlibpath_var=LD_LIBRARY_PATH
8531   else
8532     # With GCC up to 2.95.x, collect2 would create an import file
8533     # for dependence libraries.  The import file would start with
8534     # the line `#! .'.  This would cause the generated library to
8535     # depend on `.', always an invalid library.  This was fixed in
8536     # development snapshots of GCC prior to 3.0.
8537     case $host_os in
8538       aix4 | aix4.[01] | aix4.[01].*)
8539       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8540            echo ' yes '
8541            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8542         :
8543       else
8544         can_build_shared=no
8545       fi
8546       ;;
8547     esac
8548     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8549     # soname into executable. Probably we can add versioning support to
8550     # collect2, so additional links can be useful in future.
8551     if test "$aix_use_runtimelinking" = yes; then
8552       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8553       # instead of lib<name>.a to let people know that these are not
8554       # typical AIX shared libraries.
8555       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8556     else
8557       # We preserve .a as extension for shared libraries through AIX4.2
8558       # and later when we are not doing run time linking.
8559       library_names_spec='${libname}${release}.a $libname.a'
8560       soname_spec='${libname}${release}${shared_ext}$major'
8561     fi
8562     shlibpath_var=LIBPATH
8563   fi
8564   ;;
8565
8566 amigaos*)
8567   library_names_spec='$libname.ixlibrary $libname.a'
8568   # Create ${libname}_ixlibrary.a entries in /sys/libs.
8569   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'
8570   ;;
8571
8572 beos*)
8573   library_names_spec='${libname}${shared_ext}'
8574   dynamic_linker="$host_os ld.so"
8575   shlibpath_var=LIBRARY_PATH
8576   ;;
8577
8578 bsdi[45]*)
8579   version_type=linux
8580   need_version=no
8581   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8582   soname_spec='${libname}${release}${shared_ext}$major'
8583   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8584   shlibpath_var=LD_LIBRARY_PATH
8585   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8586   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8587   # the default ld.so.conf also contains /usr/contrib/lib and
8588   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8589   # libtool to hard-code these into programs
8590   ;;
8591
8592 cygwin* | mingw* | pw32*)
8593   version_type=windows
8594   shrext_cmds=".dll"
8595   need_version=no
8596   need_lib_prefix=no
8597
8598   case $GCC,$host_os in
8599   yes,cygwin* | yes,mingw* | yes,pw32*)
8600     library_names_spec='$libname.dll.a'
8601     # DLL is installed to $(libdir)/../bin by postinstall_cmds
8602     postinstall_cmds='base_file=`basename \${file}`~
8603       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8604       dldir=$destdir/`dirname \$dlpath`~
8605       test -d \$dldir || mkdir -p \$dldir~
8606       $install_prog $dir/$dlname \$dldir/$dlname~
8607       chmod a+x \$dldir/$dlname'
8608     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8609       dlpath=$dir/\$dldll~
8610        $rm \$dlpath'
8611     shlibpath_overrides_runpath=yes
8612
8613     case $host_os in
8614     cygwin*)
8615       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8616       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8617       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8618       ;;
8619     mingw*)
8620       # MinGW DLLs use traditional 'lib' prefix
8621       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8622       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8623       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8624         # It is most probably a Windows format PATH printed by
8625         # mingw gcc, but we are running on Cygwin. Gcc prints its search
8626         # path with ; separators, and with drive letters. We can handle the
8627         # drive letters (cygwin fileutils understands them), so leave them,
8628         # especially as we might pass files found there to a mingw objdump,
8629         # which wouldn't understand a cygwinified path. Ahh.
8630         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8631       else
8632         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8633       fi
8634       ;;
8635     pw32*)
8636       # pw32 DLLs use 'pw' prefix rather than 'lib'
8637       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8638       ;;
8639     esac
8640     ;;
8641
8642   *)
8643     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8644     ;;
8645   esac
8646   dynamic_linker='Win32 ld.exe'
8647   # FIXME: first we should search . and the directory the executable is in
8648   shlibpath_var=PATH
8649   ;;
8650
8651 darwin* | rhapsody*)
8652   dynamic_linker="$host_os dyld"
8653   version_type=darwin
8654   need_lib_prefix=no
8655   need_version=no
8656   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8657   soname_spec='${libname}${release}${major}$shared_ext'
8658   shlibpath_overrides_runpath=yes
8659   shlibpath_var=DYLD_LIBRARY_PATH
8660   shrext_cmds='.dylib'
8661   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8662   if test "$GCC" = yes; then
8663     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"`
8664   else
8665     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8666   fi
8667   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8668   ;;
8669
8670 dgux*)
8671   version_type=linux
8672   need_lib_prefix=no
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   shlibpath_var=LD_LIBRARY_PATH
8677   ;;
8678
8679 freebsd1.*)
8680   dynamic_linker=no
8681   ;;
8682
8683 kfreebsd*-gnu)
8684   version_type=linux
8685   need_lib_prefix=no
8686   need_version=no
8687   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8688   soname_spec='${libname}${release}${shared_ext}$major'
8689   shlibpath_var=LD_LIBRARY_PATH
8690   shlibpath_overrides_runpath=no
8691   hardcode_into_libs=yes
8692   dynamic_linker='GNU ld.so'
8693   ;;
8694
8695 freebsd* | dragonfly*)
8696   # DragonFly does not have aout.  When/if they implement a new
8697   # versioning mechanism, adjust this.
8698   if test -x /usr/bin/objformat; then
8699     objformat=`/usr/bin/objformat`
8700   else
8701     case $host_os in
8702     freebsd[123].*) objformat=aout ;;
8703     *) objformat=elf ;;
8704     esac
8705   fi
8706   version_type=freebsd-$objformat
8707   case $version_type in
8708     freebsd-elf*)
8709       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8710       need_version=no
8711       need_lib_prefix=no
8712       ;;
8713     freebsd-*)
8714       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8715       need_version=yes
8716       ;;
8717   esac
8718   shlibpath_var=LD_LIBRARY_PATH
8719   case $host_os in
8720   freebsd2.*)
8721     shlibpath_overrides_runpath=yes
8722     ;;
8723   freebsd3.[01]* | freebsdelf3.[01]*)
8724     shlibpath_overrides_runpath=yes
8725     hardcode_into_libs=yes
8726     ;;
8727   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8728   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8729     shlibpath_overrides_runpath=no
8730     hardcode_into_libs=yes
8731     ;;
8732   freebsd*) # from 4.6 on
8733     shlibpath_overrides_runpath=yes
8734     hardcode_into_libs=yes
8735     ;;
8736   esac
8737   ;;
8738
8739 gnu*)
8740   version_type=linux
8741   need_lib_prefix=no
8742   need_version=no
8743   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8744   soname_spec='${libname}${release}${shared_ext}$major'
8745   shlibpath_var=LD_LIBRARY_PATH
8746   hardcode_into_libs=yes
8747   ;;
8748
8749 hpux9* | hpux10* | hpux11*)
8750   # Give a soname corresponding to the major version so that dld.sl refuses to
8751   # link against other versions.
8752   version_type=sunos
8753   need_lib_prefix=no
8754   need_version=no
8755   case $host_cpu in
8756   ia64*)
8757     shrext_cmds='.so'
8758     hardcode_into_libs=yes
8759     dynamic_linker="$host_os dld.so"
8760     shlibpath_var=LD_LIBRARY_PATH
8761     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8762     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8763     soname_spec='${libname}${release}${shared_ext}$major'
8764     if test "X$HPUX_IA64_MODE" = X32; then
8765       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8766     else
8767       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8768     fi
8769     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8770     ;;
8771    hppa*64*)
8772      shrext_cmds='.sl'
8773      hardcode_into_libs=yes
8774      dynamic_linker="$host_os dld.sl"
8775      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8776      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8777      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8778      soname_spec='${libname}${release}${shared_ext}$major'
8779      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8780      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8781      ;;
8782    *)
8783     shrext_cmds='.sl'
8784     dynamic_linker="$host_os dld.sl"
8785     shlibpath_var=SHLIB_PATH
8786     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8787     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8788     soname_spec='${libname}${release}${shared_ext}$major'
8789     ;;
8790   esac
8791   # HP-UX runs *really* slowly unless shared libraries are mode 555.
8792   postinstall_cmds='chmod 555 $lib'
8793   ;;
8794
8795 interix3*)
8796   version_type=linux
8797   need_lib_prefix=no
8798   need_version=no
8799   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8800   soname_spec='${libname}${release}${shared_ext}$major'
8801   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8802   shlibpath_var=LD_LIBRARY_PATH
8803   shlibpath_overrides_runpath=no
8804   hardcode_into_libs=yes
8805   ;;
8806
8807 irix5* | irix6* | nonstopux*)
8808   case $host_os in
8809     nonstopux*) version_type=nonstopux ;;
8810     *)
8811         if test "$lt_cv_prog_gnu_ld" = yes; then
8812                 version_type=linux
8813         else
8814                 version_type=irix
8815         fi ;;
8816   esac
8817   need_lib_prefix=no
8818   need_version=no
8819   soname_spec='${libname}${release}${shared_ext}$major'
8820   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8821   case $host_os in
8822   irix5* | nonstopux*)
8823     libsuff= shlibsuff=
8824     ;;
8825   *)
8826     case $LD in # libtool.m4 will add one of these switches to LD
8827     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8828       libsuff= shlibsuff= libmagic=32-bit;;
8829     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8830       libsuff=32 shlibsuff=N32 libmagic=N32;;
8831     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8832       libsuff=64 shlibsuff=64 libmagic=64-bit;;
8833     *) libsuff= shlibsuff= libmagic=never-match;;
8834     esac
8835     ;;
8836   esac
8837   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8838   shlibpath_overrides_runpath=no
8839   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8840   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8841   hardcode_into_libs=yes
8842   ;;
8843
8844 # No shared lib support for Linux oldld, aout, or coff.
8845 linux*oldld* | linux*aout* | linux*coff*)
8846   dynamic_linker=no
8847   ;;
8848
8849 # This must be Linux ELF.
8850 linux*)
8851   version_type=linux
8852   need_lib_prefix=no
8853   need_version=no
8854   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8855   soname_spec='${libname}${release}${shared_ext}$major'
8856   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8857   shlibpath_var=LD_LIBRARY_PATH
8858   shlibpath_overrides_runpath=no
8859   # This implies no fast_install, which is unacceptable.
8860   # Some rework will be needed to allow for fast_install
8861   # before this can be enabled.
8862   hardcode_into_libs=yes
8863
8864   # Append ld.so.conf contents to the search path
8865   if test -f /etc/ld.so.conf; then
8866     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' ' '`
8867     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8868   fi
8869
8870   # We used to test for /lib/ld.so.1 and disable shared libraries on
8871   # powerpc, because MkLinux only supported shared libraries with the
8872   # GNU dynamic linker.  Since this was broken with cross compilers,
8873   # most powerpc-linux boxes support dynamic linking these days and
8874   # people can always --disable-shared, the test was removed, and we
8875   # assume the GNU/Linux dynamic linker is in use.
8876   dynamic_linker='GNU/Linux ld.so'
8877   ;;
8878
8879 knetbsd*-gnu)
8880   version_type=linux
8881   need_lib_prefix=no
8882   need_version=no
8883   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8884   soname_spec='${libname}${release}${shared_ext}$major'
8885   shlibpath_var=LD_LIBRARY_PATH
8886   shlibpath_overrides_runpath=no
8887   hardcode_into_libs=yes
8888   dynamic_linker='GNU ld.so'
8889   ;;
8890
8891 netbsd*)
8892   version_type=sunos
8893   need_lib_prefix=no
8894   need_version=no
8895   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8896     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8897     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8898     dynamic_linker='NetBSD (a.out) ld.so'
8899   else
8900     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8901     soname_spec='${libname}${release}${shared_ext}$major'
8902     dynamic_linker='NetBSD ld.elf_so'
8903   fi
8904   shlibpath_var=LD_LIBRARY_PATH
8905   shlibpath_overrides_runpath=yes
8906   hardcode_into_libs=yes
8907   ;;
8908
8909 newsos6)
8910   version_type=linux
8911   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8912   shlibpath_var=LD_LIBRARY_PATH
8913   shlibpath_overrides_runpath=yes
8914   ;;
8915
8916 nto-qnx*)
8917   version_type=linux
8918   need_lib_prefix=no
8919   need_version=no
8920   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8921   soname_spec='${libname}${release}${shared_ext}$major'
8922   shlibpath_var=LD_LIBRARY_PATH
8923   shlibpath_overrides_runpath=yes
8924   ;;
8925
8926 openbsd*)
8927   version_type=sunos
8928   sys_lib_dlsearch_path_spec="/usr/lib"
8929   need_lib_prefix=no
8930   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
8931   case $host_os in
8932     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
8933     *)                         need_version=no  ;;
8934   esac
8935   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8936   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8937   shlibpath_var=LD_LIBRARY_PATH
8938   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8939     case $host_os in
8940       openbsd2.[89] | openbsd2.[89].*)
8941         shlibpath_overrides_runpath=no
8942         ;;
8943       *)
8944         shlibpath_overrides_runpath=yes
8945         ;;
8946       esac
8947   else
8948     shlibpath_overrides_runpath=yes
8949   fi
8950   ;;
8951
8952 os2*)
8953   libname_spec='$name'
8954   shrext_cmds=".dll"
8955   need_lib_prefix=no
8956   library_names_spec='$libname${shared_ext} $libname.a'
8957   dynamic_linker='OS/2 ld.exe'
8958   shlibpath_var=LIBPATH
8959   ;;
8960
8961 osf3* | osf4* | osf5*)
8962   version_type=osf
8963   need_lib_prefix=no
8964   need_version=no
8965   soname_spec='${libname}${release}${shared_ext}$major'
8966   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8967   shlibpath_var=LD_LIBRARY_PATH
8968   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8969   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8970   ;;
8971
8972 solaris*)
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=yes
8980   hardcode_into_libs=yes
8981   # ldd complains unless libraries are executable
8982   postinstall_cmds='chmod +x $lib'
8983   ;;
8984
8985 sunos4*)
8986   version_type=sunos
8987   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8988   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8989   shlibpath_var=LD_LIBRARY_PATH
8990   shlibpath_overrides_runpath=yes
8991   if test "$with_gnu_ld" = yes; then
8992     need_lib_prefix=no
8993   fi
8994   need_version=yes
8995   ;;
8996
8997 sysv4 | sysv4.3*)
8998   version_type=linux
8999   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9000   soname_spec='${libname}${release}${shared_ext}$major'
9001   shlibpath_var=LD_LIBRARY_PATH
9002   case $host_vendor in
9003     sni)
9004       shlibpath_overrides_runpath=no
9005       need_lib_prefix=no
9006       export_dynamic_flag_spec='${wl}-Blargedynsym'
9007       runpath_var=LD_RUN_PATH
9008       ;;
9009     siemens)
9010       need_lib_prefix=no
9011       ;;
9012     motorola)
9013       need_lib_prefix=no
9014       need_version=no
9015       shlibpath_overrides_runpath=no
9016       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9017       ;;
9018   esac
9019   ;;
9020
9021 sysv4*MP*)
9022   if test -d /usr/nec ;then
9023     version_type=linux
9024     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9025     soname_spec='$libname${shared_ext}.$major'
9026     shlibpath_var=LD_LIBRARY_PATH
9027   fi
9028   ;;
9029
9030 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9031   version_type=freebsd-elf
9032   need_lib_prefix=no
9033   need_version=no
9034   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9035   soname_spec='${libname}${release}${shared_ext}$major'
9036   shlibpath_var=LD_LIBRARY_PATH
9037   hardcode_into_libs=yes
9038   if test "$with_gnu_ld" = yes; then
9039     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9040     shlibpath_overrides_runpath=no
9041   else
9042     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9043     shlibpath_overrides_runpath=yes
9044     case $host_os in
9045       sco3.2v5*)
9046         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9047         ;;
9048     esac
9049   fi
9050   sys_lib_dlsearch_path_spec='/usr/lib'
9051   ;;
9052
9053 uts4*)
9054   version_type=linux
9055   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9056   soname_spec='${libname}${release}${shared_ext}$major'
9057   shlibpath_var=LD_LIBRARY_PATH
9058   ;;
9059
9060 *)
9061   dynamic_linker=no
9062   ;;
9063 esac
9064 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9065 echo "${ECHO_T}$dynamic_linker" >&6; }
9066 test "$dynamic_linker" = no && can_build_shared=no
9067
9068 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9069 if test "$GCC" = yes; then
9070   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9071 fi
9072
9073
9074 { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9075 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
9076 if test "${libltdl_cv_shlibext+set}" = set; then
9077   echo $ECHO_N "(cached) $ECHO_C" >&6
9078 else
9079
9080 module=yes
9081 eval libltdl_cv_shlibext=$shrext_cmds
9082
9083 fi
9084 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9085 echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
9086 if test -n "$libltdl_cv_shlibext"; then
9087
9088 cat >>confdefs.h <<_ACEOF
9089 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9090 _ACEOF
9091
9092 fi
9093
9094
9095 { echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
9096 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
9097 if test "${libltdl_cv_shlibpath_var+set}" = set; then
9098   echo $ECHO_N "(cached) $ECHO_C" >&6
9099 else
9100   libltdl_cv_shlibpath_var="$shlibpath_var"
9101 fi
9102 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
9103 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
9104 if test -n "$libltdl_cv_shlibpath_var"; then
9105
9106 cat >>confdefs.h <<_ACEOF
9107 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
9108 _ACEOF
9109
9110 fi
9111
9112
9113 { echo "$as_me:$LINENO: checking for the default library search path" >&5
9114 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
9115 if test "${libltdl_cv_sys_search_path+set}" = set; then
9116   echo $ECHO_N "(cached) $ECHO_C" >&6
9117 else
9118   libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9119 fi
9120 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9121 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
9122 if test -n "$libltdl_cv_sys_search_path"; then
9123   sys_search_path=
9124   for dir in $libltdl_cv_sys_search_path; do
9125     if test -z "$sys_search_path"; then
9126       sys_search_path="$dir"
9127     else
9128       sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9129     fi
9130   done
9131
9132 cat >>confdefs.h <<_ACEOF
9133 #define LTDL_SYSSEARCHPATH "$sys_search_path"
9134 _ACEOF
9135
9136 fi
9137
9138 { echo "$as_me:$LINENO: checking for objdir" >&5
9139 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9140 if test "${libltdl_cv_objdir+set}" = set; then
9141   echo $ECHO_N "(cached) $ECHO_C" >&6
9142 else
9143   libltdl_cv_objdir="$objdir"
9144   if test -n "$objdir"; then
9145     :
9146   else
9147     rm -f .libs 2>/dev/null
9148     mkdir .libs 2>/dev/null
9149     if test -d .libs; then
9150       libltdl_cv_objdir=.libs
9151     else
9152       # MS-DOS does not allow filenames that begin with a dot.
9153       libltdl_cv_objdir=_libs
9154     fi
9155   rmdir .libs 2>/dev/null
9156   fi
9157
9158 fi
9159 { echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9160 echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
9161
9162 cat >>confdefs.h <<_ACEOF
9163 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
9164 _ACEOF
9165
9166
9167
9168
9169
9170
9171 # Check for command to grab the raw symbol name followed by C symbol from nm.
9172 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9173 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
9174 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9175   echo $ECHO_N "(cached) $ECHO_C" >&6
9176 else
9177
9178 # These are sane defaults that work on at least a few old systems.
9179 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
9180
9181 # Character class describing NM global symbol codes.
9182 symcode='[BCDEGRST]'
9183
9184 # Regexp to match symbols that can be accessed directly from C.
9185 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9186
9187 # Transform an extracted symbol line into a proper C declaration
9188 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9189
9190 # Transform an extracted symbol line into symbol name and symbol address
9191 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'"
9192
9193 # Define system-specific variables.
9194 case $host_os in
9195 aix*)
9196   symcode='[BCDT]'
9197   ;;
9198 cygwin* | mingw* | pw32*)
9199   symcode='[ABCDGISTW]'
9200   ;;
9201 hpux*) # Its linker distinguishes data from code symbols
9202   if test "$host_cpu" = ia64; then
9203     symcode='[ABCDEGRST]'
9204   fi
9205   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9206   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'"
9207   ;;
9208 linux*)
9209   if test "$host_cpu" = ia64; then
9210     symcode='[ABCDGIRSTW]'
9211     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9212     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'"
9213   fi
9214   ;;
9215 irix* | nonstopux*)
9216   symcode='[BCDEGRST]'
9217   ;;
9218 osf*)
9219   symcode='[BCDEGQRST]'
9220   ;;
9221 solaris*)
9222   symcode='[BDRT]'
9223   ;;
9224 sco3.2v5*)
9225   symcode='[DT]'
9226   ;;
9227 sysv4.2uw2*)
9228   symcode='[DT]'
9229   ;;
9230 sysv5* | sco5v6* | unixware* | OpenUNIX*)
9231   symcode='[ABDT]'
9232   ;;
9233 sysv4)
9234   symcode='[DFNSTU]'
9235   ;;
9236 esac
9237
9238 # Handle CRLF in mingw tool chain
9239 opt_cr=
9240 case $build_os in
9241 mingw*)
9242   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9243   ;;
9244 esac
9245
9246 # If we're using GNU nm, then use its standard symbol codes.
9247 case `$NM -V 2>&1` in
9248 *GNU* | *'with BFD'*)
9249   symcode='[ABCDGIRSTW]' ;;
9250 esac
9251
9252 # Try without a prefix undercore, then with it.
9253 for ac_symprfx in "" "_"; do
9254
9255   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9256   symxfrm="\\1 $ac_symprfx\\2 \\2"
9257
9258   # Write the raw and C identifiers.
9259   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9260
9261   # Check to see that the pipe works correctly.
9262   pipe_works=no
9263
9264   rm -f conftest*
9265   cat > conftest.$ac_ext <<EOF
9266 #ifdef __cplusplus
9267 extern "C" {
9268 #endif
9269 char nm_test_var;
9270 void nm_test_func(){}
9271 #ifdef __cplusplus
9272 }
9273 #endif
9274 int main(){nm_test_var='a';nm_test_func();return(0);}
9275 EOF
9276
9277   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9278   (eval $ac_compile) 2>&5
9279   ac_status=$?
9280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9281   (exit $ac_status); }; then
9282     # Now try to grab the symbols.
9283     nlist=conftest.nm
9284     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
9285   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9286   ac_status=$?
9287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9288   (exit $ac_status); } && test -s "$nlist"; then
9289       # Try sorting and uniquifying the output.
9290       if sort "$nlist" | uniq > "$nlist"T; then
9291         mv -f "$nlist"T "$nlist"
9292       else
9293         rm -f "$nlist"T
9294       fi
9295
9296       # Make sure that we snagged all the symbols we need.
9297       if grep ' nm_test_var$' "$nlist" >/dev/null; then
9298         if grep ' nm_test_func$' "$nlist" >/dev/null; then
9299           cat <<EOF > conftest.$ac_ext
9300 #ifdef __cplusplus
9301 extern "C" {
9302 #endif
9303
9304 EOF
9305           # Now generate the symbol file.
9306           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9307
9308           cat <<EOF >> conftest.$ac_ext
9309 #if defined (__STDC__) && __STDC__
9310 # define lt_ptr_t void *
9311 #else
9312 # define lt_ptr_t char *
9313 # define const
9314 #endif
9315
9316 /* The mapping between symbol names and symbols. */
9317 const struct {
9318   const char *name;
9319   lt_ptr_t address;
9320 }
9321 lt_preloaded_symbols[] =
9322 {
9323 EOF
9324           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9325           cat <<\EOF >> conftest.$ac_ext
9326   {0, (lt_ptr_t) 0}
9327 };
9328
9329 #ifdef __cplusplus
9330 }
9331 #endif
9332 EOF
9333           # Now try linking the two files.
9334           mv conftest.$ac_objext conftstm.$ac_objext
9335           lt_save_LIBS="$LIBS"
9336           lt_save_CFLAGS="$CFLAGS"
9337           LIBS="conftstm.$ac_objext"
9338           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9339           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9340   (eval $ac_link) 2>&5
9341   ac_status=$?
9342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9343   (exit $ac_status); } && test -s conftest${ac_exeext}; then
9344             pipe_works=yes
9345           fi
9346           LIBS="$lt_save_LIBS"
9347           CFLAGS="$lt_save_CFLAGS"
9348         else
9349           echo "cannot find nm_test_func in $nlist" >&5
9350         fi
9351       else
9352         echo "cannot find nm_test_var in $nlist" >&5
9353       fi
9354     else
9355       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9356     fi
9357   else
9358     echo "$progname: failed program was:" >&5
9359     cat conftest.$ac_ext >&5
9360   fi
9361   rm -f conftest* conftst*
9362
9363   # Do not use the global_symbol_pipe unless it works.
9364   if test "$pipe_works" = yes; then
9365     break
9366   else
9367     lt_cv_sys_global_symbol_pipe=
9368   fi
9369 done
9370
9371 fi
9372
9373 if test -z "$lt_cv_sys_global_symbol_pipe"; then
9374   lt_cv_sys_global_symbol_to_cdecl=
9375 fi
9376 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9377   { echo "$as_me:$LINENO: result: failed" >&5
9378 echo "${ECHO_T}failed" >&6; }
9379 else
9380   { echo "$as_me:$LINENO: result: ok" >&5
9381 echo "${ECHO_T}ok" >&6; }
9382 fi
9383
9384
9385 { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
9386 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
9387 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
9388   echo $ECHO_N "(cached) $ECHO_C" >&6
9389 else
9390   if test -n "$lt_cv_sys_global_symbol_pipe"; then
9391     libltdl_cv_preloaded_symbols=yes
9392   else
9393     libltdl_cv_preloaded_symbols=no
9394   fi
9395
9396 fi
9397 { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
9398 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
9399 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
9400
9401 cat >>confdefs.h <<\_ACEOF
9402 #define HAVE_PRELOADED_SYMBOLS 1
9403 _ACEOF
9404
9405 fi
9406
9407 LIBADD_DL=
9408
9409 ac_ext=c
9410 ac_cpp='$CPP $CPPFLAGS'
9411 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9412 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9413 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9414
9415
9416 { echo "$as_me:$LINENO: checking for shl_load" >&5
9417 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9418 if test "${ac_cv_func_shl_load+set}" = set; then
9419   echo $ECHO_N "(cached) $ECHO_C" >&6
9420 else
9421   cat >conftest.$ac_ext <<_ACEOF
9422 /* confdefs.h.  */
9423 _ACEOF
9424 cat confdefs.h >>conftest.$ac_ext
9425 cat >>conftest.$ac_ext <<_ACEOF
9426 /* end confdefs.h.  */
9427 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9428    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9429 #define shl_load innocuous_shl_load
9430
9431 /* System header to define __stub macros and hopefully few prototypes,
9432     which can conflict with char shl_load (); below.
9433     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9434     <limits.h> exists even on freestanding compilers.  */
9435
9436 #ifdef __STDC__
9437 # include <limits.h>
9438 #else
9439 # include <assert.h>
9440 #endif
9441
9442 #undef shl_load
9443
9444 /* Override any GCC internal prototype to avoid an error.
9445    Use char because int might match the return type of a GCC
9446    builtin and then its argument prototype would still apply.  */
9447 #ifdef __cplusplus
9448 extern "C"
9449 #endif
9450 char shl_load ();
9451 /* The GNU C library defines this for functions which it implements
9452     to always fail with ENOSYS.  Some functions are actually named
9453     something starting with __ and the normal name is an alias.  */
9454 #if defined __stub_shl_load || defined __stub___shl_load
9455 choke me
9456 #endif
9457
9458 int
9459 main ()
9460 {
9461 return shl_load ();
9462   ;
9463   return 0;
9464 }
9465 _ACEOF
9466 rm -f conftest.$ac_objext conftest$ac_exeext
9467 if { (ac_try="$ac_link"
9468 case "(($ac_try" in
9469   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9470   *) ac_try_echo=$ac_try;;
9471 esac
9472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9473   (eval "$ac_link") 2>conftest.er1
9474   ac_status=$?
9475   grep -v '^ *+' conftest.er1 >conftest.err
9476   rm -f conftest.er1
9477   cat conftest.err >&5
9478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9479   (exit $ac_status); } &&
9480          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9481   { (case "(($ac_try" in
9482   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9483   *) ac_try_echo=$ac_try;;
9484 esac
9485 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9486   (eval "$ac_try") 2>&5
9487   ac_status=$?
9488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9489   (exit $ac_status); }; } &&
9490          { ac_try='test -s conftest$ac_exeext'
9491   { (case "(($ac_try" in
9492   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9493   *) ac_try_echo=$ac_try;;
9494 esac
9495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9496   (eval "$ac_try") 2>&5
9497   ac_status=$?
9498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9499   (exit $ac_status); }; }; then
9500   ac_cv_func_shl_load=yes
9501 else
9502   echo "$as_me: failed program was:" >&5
9503 sed 's/^/| /' conftest.$ac_ext >&5
9504
9505         ac_cv_func_shl_load=no
9506 fi
9507
9508 rm -f core conftest.err conftest.$ac_objext \
9509       conftest$ac_exeext conftest.$ac_ext
9510 fi
9511 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9512 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9513 if test $ac_cv_func_shl_load = yes; then
9514
9515 cat >>confdefs.h <<\_ACEOF
9516 #define HAVE_SHL_LOAD 1
9517 _ACEOF
9518
9519 else
9520   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9521 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9522 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9523   echo $ECHO_N "(cached) $ECHO_C" >&6
9524 else
9525   ac_check_lib_save_LIBS=$LIBS
9526 LIBS="-ldld  $LIBS"
9527 cat >conftest.$ac_ext <<_ACEOF
9528 /* confdefs.h.  */
9529 _ACEOF
9530 cat confdefs.h >>conftest.$ac_ext
9531 cat >>conftest.$ac_ext <<_ACEOF
9532 /* end confdefs.h.  */
9533
9534 /* Override any GCC internal prototype to avoid an error.
9535    Use char because int might match the return type of a GCC
9536    builtin and then its argument prototype would still apply.  */
9537 #ifdef __cplusplus
9538 extern "C"
9539 #endif
9540 char shl_load ();
9541 int
9542 main ()
9543 {
9544 return shl_load ();
9545   ;
9546   return 0;
9547 }
9548 _ACEOF
9549 rm -f conftest.$ac_objext conftest$ac_exeext
9550 if { (ac_try="$ac_link"
9551 case "(($ac_try" in
9552   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9553   *) ac_try_echo=$ac_try;;
9554 esac
9555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9556   (eval "$ac_link") 2>conftest.er1
9557   ac_status=$?
9558   grep -v '^ *+' conftest.er1 >conftest.err
9559   rm -f conftest.er1
9560   cat conftest.err >&5
9561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9562   (exit $ac_status); } &&
9563          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9564   { (case "(($ac_try" in
9565   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9566   *) ac_try_echo=$ac_try;;
9567 esac
9568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9569   (eval "$ac_try") 2>&5
9570   ac_status=$?
9571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9572   (exit $ac_status); }; } &&
9573          { ac_try='test -s conftest$ac_exeext'
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); }; }; then
9583   ac_cv_lib_dld_shl_load=yes
9584 else
9585   echo "$as_me: failed program was:" >&5
9586 sed 's/^/| /' conftest.$ac_ext >&5
9587
9588         ac_cv_lib_dld_shl_load=no
9589 fi
9590
9591 rm -f core conftest.err conftest.$ac_objext \
9592       conftest$ac_exeext conftest.$ac_ext
9593 LIBS=$ac_check_lib_save_LIBS
9594 fi
9595 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9596 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9597 if test $ac_cv_lib_dld_shl_load = yes; then
9598
9599 cat >>confdefs.h <<\_ACEOF
9600 #define HAVE_SHL_LOAD 1
9601 _ACEOF
9602
9603         LIBADD_DL="$LIBADD_DL -ldld"
9604 else
9605   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9606 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9607 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9608   echo $ECHO_N "(cached) $ECHO_C" >&6
9609 else
9610   ac_check_lib_save_LIBS=$LIBS
9611 LIBS="-ldl  $LIBS"
9612 cat >conftest.$ac_ext <<_ACEOF
9613 /* confdefs.h.  */
9614 _ACEOF
9615 cat confdefs.h >>conftest.$ac_ext
9616 cat >>conftest.$ac_ext <<_ACEOF
9617 /* end confdefs.h.  */
9618
9619 /* Override any GCC internal prototype to avoid an error.
9620    Use char because int might match the return type of a GCC
9621    builtin and then its argument prototype would still apply.  */
9622 #ifdef __cplusplus
9623 extern "C"
9624 #endif
9625 char dlopen ();
9626 int
9627 main ()
9628 {
9629 return dlopen ();
9630   ;
9631   return 0;
9632 }
9633 _ACEOF
9634 rm -f conftest.$ac_objext conftest$ac_exeext
9635 if { (ac_try="$ac_link"
9636 case "(($ac_try" in
9637   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9638   *) ac_try_echo=$ac_try;;
9639 esac
9640 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9641   (eval "$ac_link") 2>conftest.er1
9642   ac_status=$?
9643   grep -v '^ *+' conftest.er1 >conftest.err
9644   rm -f conftest.er1
9645   cat conftest.err >&5
9646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9647   (exit $ac_status); } &&
9648          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9649   { (case "(($ac_try" in
9650   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9651   *) ac_try_echo=$ac_try;;
9652 esac
9653 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9654   (eval "$ac_try") 2>&5
9655   ac_status=$?
9656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9657   (exit $ac_status); }; } &&
9658          { ac_try='test -s conftest$ac_exeext'
9659   { (case "(($ac_try" in
9660   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9661   *) ac_try_echo=$ac_try;;
9662 esac
9663 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9664   (eval "$ac_try") 2>&5
9665   ac_status=$?
9666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9667   (exit $ac_status); }; }; then
9668   ac_cv_lib_dl_dlopen=yes
9669 else
9670   echo "$as_me: failed program was:" >&5
9671 sed 's/^/| /' conftest.$ac_ext >&5
9672
9673         ac_cv_lib_dl_dlopen=no
9674 fi
9675
9676 rm -f core conftest.err conftest.$ac_objext \
9677       conftest$ac_exeext conftest.$ac_ext
9678 LIBS=$ac_check_lib_save_LIBS
9679 fi
9680 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9681 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9682 if test $ac_cv_lib_dl_dlopen = yes; then
9683
9684 cat >>confdefs.h <<\_ACEOF
9685 #define HAVE_LIBDL 1
9686 _ACEOF
9687
9688                 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
9689 else
9690   cat >conftest.$ac_ext <<_ACEOF
9691 /* confdefs.h.  */
9692 _ACEOF
9693 cat confdefs.h >>conftest.$ac_ext
9694 cat >>conftest.$ac_ext <<_ACEOF
9695 /* end confdefs.h.  */
9696 #if HAVE_DLFCN_H
9697 #  include <dlfcn.h>
9698 #endif
9699
9700 int
9701 main ()
9702 {
9703 dlopen(0, 0);
9704   ;
9705   return 0;
9706 }
9707 _ACEOF
9708 rm -f conftest.$ac_objext conftest$ac_exeext
9709 if { (ac_try="$ac_link"
9710 case "(($ac_try" in
9711   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9712   *) ac_try_echo=$ac_try;;
9713 esac
9714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9715   (eval "$ac_link") 2>conftest.er1
9716   ac_status=$?
9717   grep -v '^ *+' conftest.er1 >conftest.err
9718   rm -f conftest.er1
9719   cat conftest.err >&5
9720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9721   (exit $ac_status); } &&
9722          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9723   { (case "(($ac_try" in
9724   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9725   *) ac_try_echo=$ac_try;;
9726 esac
9727 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9728   (eval "$ac_try") 2>&5
9729   ac_status=$?
9730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9731   (exit $ac_status); }; } &&
9732          { ac_try='test -s conftest$ac_exeext'
9733   { (case "(($ac_try" in
9734   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9735   *) ac_try_echo=$ac_try;;
9736 esac
9737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9738   (eval "$ac_try") 2>&5
9739   ac_status=$?
9740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9741   (exit $ac_status); }; }; then
9742
9743 cat >>confdefs.h <<\_ACEOF
9744 #define HAVE_LIBDL 1
9745 _ACEOF
9746  libltdl_cv_func_dlopen="yes"
9747 else
9748   echo "$as_me: failed program was:" >&5
9749 sed 's/^/| /' conftest.$ac_ext >&5
9750
9751         { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9752 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
9753 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9754   echo $ECHO_N "(cached) $ECHO_C" >&6
9755 else
9756   ac_check_lib_save_LIBS=$LIBS
9757 LIBS="-lsvld  $LIBS"
9758 cat >conftest.$ac_ext <<_ACEOF
9759 /* confdefs.h.  */
9760 _ACEOF
9761 cat confdefs.h >>conftest.$ac_ext
9762 cat >>conftest.$ac_ext <<_ACEOF
9763 /* end confdefs.h.  */
9764
9765 /* Override any GCC internal prototype to avoid an error.
9766    Use char because int might match the return type of a GCC
9767    builtin and then its argument prototype would still apply.  */
9768 #ifdef __cplusplus
9769 extern "C"
9770 #endif
9771 char dlopen ();
9772 int
9773 main ()
9774 {
9775 return dlopen ();
9776   ;
9777   return 0;
9778 }
9779 _ACEOF
9780 rm -f conftest.$ac_objext conftest$ac_exeext
9781 if { (ac_try="$ac_link"
9782 case "(($ac_try" in
9783   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9784   *) ac_try_echo=$ac_try;;
9785 esac
9786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9787   (eval "$ac_link") 2>conftest.er1
9788   ac_status=$?
9789   grep -v '^ *+' conftest.er1 >conftest.err
9790   rm -f conftest.er1
9791   cat conftest.err >&5
9792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9793   (exit $ac_status); } &&
9794          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9795   { (case "(($ac_try" in
9796   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9797   *) ac_try_echo=$ac_try;;
9798 esac
9799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9800   (eval "$ac_try") 2>&5
9801   ac_status=$?
9802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9803   (exit $ac_status); }; } &&
9804          { ac_try='test -s conftest$ac_exeext'
9805   { (case "(($ac_try" in
9806   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9807   *) ac_try_echo=$ac_try;;
9808 esac
9809 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9810   (eval "$ac_try") 2>&5
9811   ac_status=$?
9812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9813   (exit $ac_status); }; }; then
9814   ac_cv_lib_svld_dlopen=yes
9815 else
9816   echo "$as_me: failed program was:" >&5
9817 sed 's/^/| /' conftest.$ac_ext >&5
9818
9819         ac_cv_lib_svld_dlopen=no
9820 fi
9821
9822 rm -f core conftest.err conftest.$ac_objext \
9823       conftest$ac_exeext conftest.$ac_ext
9824 LIBS=$ac_check_lib_save_LIBS
9825 fi
9826 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9827 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
9828 if test $ac_cv_lib_svld_dlopen = yes; then
9829
9830 cat >>confdefs.h <<\_ACEOF
9831 #define HAVE_LIBDL 1
9832 _ACEOF
9833
9834                     LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
9835 else
9836   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9837 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
9838 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9839   echo $ECHO_N "(cached) $ECHO_C" >&6
9840 else
9841   ac_check_lib_save_LIBS=$LIBS
9842 LIBS="-ldld  $LIBS"
9843 cat >conftest.$ac_ext <<_ACEOF
9844 /* confdefs.h.  */
9845 _ACEOF
9846 cat confdefs.h >>conftest.$ac_ext
9847 cat >>conftest.$ac_ext <<_ACEOF
9848 /* end confdefs.h.  */
9849
9850 /* Override any GCC internal prototype to avoid an error.
9851    Use char because int might match the return type of a GCC
9852    builtin and then its argument prototype would still apply.  */
9853 #ifdef __cplusplus
9854 extern "C"
9855 #endif
9856 char dld_link ();
9857 int
9858 main ()
9859 {
9860 return dld_link ();
9861   ;
9862   return 0;
9863 }
9864 _ACEOF
9865 rm -f conftest.$ac_objext conftest$ac_exeext
9866 if { (ac_try="$ac_link"
9867 case "(($ac_try" in
9868   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9869   *) ac_try_echo=$ac_try;;
9870 esac
9871 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9872   (eval "$ac_link") 2>conftest.er1
9873   ac_status=$?
9874   grep -v '^ *+' conftest.er1 >conftest.err
9875   rm -f conftest.er1
9876   cat conftest.err >&5
9877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9878   (exit $ac_status); } &&
9879          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9880   { (case "(($ac_try" in
9881   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9882   *) ac_try_echo=$ac_try;;
9883 esac
9884 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9885   (eval "$ac_try") 2>&5
9886   ac_status=$?
9887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9888   (exit $ac_status); }; } &&
9889          { ac_try='test -s conftest$ac_exeext'
9890   { (case "(($ac_try" in
9891   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9892   *) ac_try_echo=$ac_try;;
9893 esac
9894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9895   (eval "$ac_try") 2>&5
9896   ac_status=$?
9897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9898   (exit $ac_status); }; }; then
9899   ac_cv_lib_dld_dld_link=yes
9900 else
9901   echo "$as_me: failed program was:" >&5
9902 sed 's/^/| /' conftest.$ac_ext >&5
9903
9904         ac_cv_lib_dld_dld_link=no
9905 fi
9906
9907 rm -f core conftest.err conftest.$ac_objext \
9908       conftest$ac_exeext conftest.$ac_ext
9909 LIBS=$ac_check_lib_save_LIBS
9910 fi
9911 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9912 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
9913 if test $ac_cv_lib_dld_dld_link = yes; then
9914
9915 cat >>confdefs.h <<\_ACEOF
9916 #define HAVE_DLD 1
9917 _ACEOF
9918
9919                 LIBADD_DL="$LIBADD_DL -ldld"
9920 else
9921   { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
9922 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
9923 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
9924   echo $ECHO_N "(cached) $ECHO_C" >&6
9925 else
9926   cat >conftest.$ac_ext <<_ACEOF
9927 /* confdefs.h.  */
9928 _ACEOF
9929 cat confdefs.h >>conftest.$ac_ext
9930 cat >>conftest.$ac_ext <<_ACEOF
9931 /* end confdefs.h.  */
9932 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
9933    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9934 #define _dyld_func_lookup innocuous__dyld_func_lookup
9935
9936 /* System header to define __stub macros and hopefully few prototypes,
9937     which can conflict with char _dyld_func_lookup (); below.
9938     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9939     <limits.h> exists even on freestanding compilers.  */
9940
9941 #ifdef __STDC__
9942 # include <limits.h>
9943 #else
9944 # include <assert.h>
9945 #endif
9946
9947 #undef _dyld_func_lookup
9948
9949 /* Override any GCC internal prototype to avoid an error.
9950    Use char because int might match the return type of a GCC
9951    builtin and then its argument prototype would still apply.  */
9952 #ifdef __cplusplus
9953 extern "C"
9954 #endif
9955 char _dyld_func_lookup ();
9956 /* The GNU C library defines this for functions which it implements
9957     to always fail with ENOSYS.  Some functions are actually named
9958     something starting with __ and the normal name is an alias.  */
9959 #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
9960 choke me
9961 #endif
9962
9963 int
9964 main ()
9965 {
9966 return _dyld_func_lookup ();
9967   ;
9968   return 0;
9969 }
9970 _ACEOF
9971 rm -f conftest.$ac_objext conftest$ac_exeext
9972 if { (ac_try="$ac_link"
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_link") 2>conftest.er1
9979   ac_status=$?
9980   grep -v '^ *+' conftest.er1 >conftest.err
9981   rm -f conftest.er1
9982   cat conftest.err >&5
9983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9984   (exit $ac_status); } &&
9985          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9986   { (case "(($ac_try" in
9987   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9988   *) ac_try_echo=$ac_try;;
9989 esac
9990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9991   (eval "$ac_try") 2>&5
9992   ac_status=$?
9993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9994   (exit $ac_status); }; } &&
9995          { ac_try='test -s conftest$ac_exeext'
9996   { (case "(($ac_try" in
9997   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9998   *) ac_try_echo=$ac_try;;
9999 esac
10000 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10001   (eval "$ac_try") 2>&5
10002   ac_status=$?
10003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10004   (exit $ac_status); }; }; then
10005   ac_cv_func__dyld_func_lookup=yes
10006 else
10007   echo "$as_me: failed program was:" >&5
10008 sed 's/^/| /' conftest.$ac_ext >&5
10009
10010         ac_cv_func__dyld_func_lookup=no
10011 fi
10012
10013 rm -f core conftest.err conftest.$ac_objext \
10014       conftest$ac_exeext conftest.$ac_ext
10015 fi
10016 { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10017 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
10018 if test $ac_cv_func__dyld_func_lookup = yes; then
10019
10020 cat >>confdefs.h <<\_ACEOF
10021 #define HAVE_DYLD 1
10022 _ACEOF
10023
10024 fi
10025
10026
10027 fi
10028
10029
10030 fi
10031
10032
10033 fi
10034
10035 rm -f core conftest.err conftest.$ac_objext \
10036       conftest$ac_exeext conftest.$ac_ext
10037
10038 fi
10039
10040
10041 fi
10042
10043
10044 fi
10045
10046
10047 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10048 then
10049   lt_save_LIBS="$LIBS"
10050   LIBS="$LIBS $LIBADD_DL"
10051
10052 for ac_func in dlerror
10053 do
10054 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10055 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10056 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10057 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10058   echo $ECHO_N "(cached) $ECHO_C" >&6
10059 else
10060   cat >conftest.$ac_ext <<_ACEOF
10061 /* confdefs.h.  */
10062 _ACEOF
10063 cat confdefs.h >>conftest.$ac_ext
10064 cat >>conftest.$ac_ext <<_ACEOF
10065 /* end confdefs.h.  */
10066 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10067    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10068 #define $ac_func innocuous_$ac_func
10069
10070 /* System header to define __stub macros and hopefully few prototypes,
10071     which can conflict with char $ac_func (); below.
10072     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10073     <limits.h> exists even on freestanding compilers.  */
10074
10075 #ifdef __STDC__
10076 # include <limits.h>
10077 #else
10078 # include <assert.h>
10079 #endif
10080
10081 #undef $ac_func
10082
10083 /* Override any GCC internal prototype to avoid an error.
10084    Use char because int might match the return type of a GCC
10085    builtin and then its argument prototype would still apply.  */
10086 #ifdef __cplusplus
10087 extern "C"
10088 #endif
10089 char $ac_func ();
10090 /* The GNU C library defines this for functions which it implements
10091     to always fail with ENOSYS.  Some functions are actually named
10092     something starting with __ and the normal name is an alias.  */
10093 #if defined __stub_$ac_func || defined __stub___$ac_func
10094 choke me
10095 #endif
10096
10097 int
10098 main ()
10099 {
10100 return $ac_func ();
10101   ;
10102   return 0;
10103 }
10104 _ACEOF
10105 rm -f conftest.$ac_objext conftest$ac_exeext
10106 if { (ac_try="$ac_link"
10107 case "(($ac_try" in
10108   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10109   *) ac_try_echo=$ac_try;;
10110 esac
10111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10112   (eval "$ac_link") 2>conftest.er1
10113   ac_status=$?
10114   grep -v '^ *+' conftest.er1 >conftest.err
10115   rm -f conftest.er1
10116   cat conftest.err >&5
10117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10118   (exit $ac_status); } &&
10119          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10120   { (case "(($ac_try" in
10121   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10122   *) ac_try_echo=$ac_try;;
10123 esac
10124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10125   (eval "$ac_try") 2>&5
10126   ac_status=$?
10127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10128   (exit $ac_status); }; } &&
10129          { ac_try='test -s conftest$ac_exeext'
10130   { (case "(($ac_try" in
10131   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10132   *) ac_try_echo=$ac_try;;
10133 esac
10134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10135   (eval "$ac_try") 2>&5
10136   ac_status=$?
10137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10138   (exit $ac_status); }; }; then
10139   eval "$as_ac_var=yes"
10140 else
10141   echo "$as_me: failed program was:" >&5
10142 sed 's/^/| /' conftest.$ac_ext >&5
10143
10144         eval "$as_ac_var=no"
10145 fi
10146
10147 rm -f core conftest.err conftest.$ac_objext \
10148       conftest$ac_exeext conftest.$ac_ext
10149 fi
10150 ac_res=`eval echo '${'$as_ac_var'}'`
10151                { echo "$as_me:$LINENO: result: $ac_res" >&5
10152 echo "${ECHO_T}$ac_res" >&6; }
10153 if test `eval echo '${'$as_ac_var'}'` = yes; then
10154   cat >>confdefs.h <<_ACEOF
10155 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10156 _ACEOF
10157
10158 fi
10159 done
10160
10161   LIBS="$lt_save_LIBS"
10162 fi
10163 ac_ext=c
10164 ac_cpp='$CPP $CPPFLAGS'
10165 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10166 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10167 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10168
10169
10170
10171 { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10172 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
10173 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10174   echo $ECHO_N "(cached) $ECHO_C" >&6
10175 else
10176   ac_cv_sys_symbol_underscore=no
10177   cat > conftest.$ac_ext <<EOF
10178 void nm_test_func(){}
10179 int main(){nm_test_func;return 0;}
10180 EOF
10181   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10182   (eval $ac_compile) 2>&5
10183   ac_status=$?
10184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10185   (exit $ac_status); }; then
10186     # Now try to grab the symbols.
10187     ac_nlist=conftest.nm
10188     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
10189   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10190   ac_status=$?
10191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10192   (exit $ac_status); } && test -s "$ac_nlist"; then
10193       # See whether the symbols have a leading underscore.
10194       if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10195         ac_cv_sys_symbol_underscore=yes
10196       else
10197         if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10198           :
10199         else
10200           echo "configure: cannot find nm_test_func in $ac_nlist" >&5
10201         fi
10202       fi
10203     else
10204       echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
10205     fi
10206   else
10207     echo "configure: failed program was:" >&5
10208     cat conftest.c >&5
10209   fi
10210   rm -rf conftest*
10211
10212 fi
10213 { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
10214 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
10215
10216
10217 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10218   if test x"$libltdl_cv_func_dlopen" = xyes ||
10219      test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
10220         { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
10221 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
10222 if test "${libltdl_cv_need_uscore+set}" = set; then
10223   echo $ECHO_N "(cached) $ECHO_C" >&6
10224 else
10225   libltdl_cv_need_uscore=unknown
10226           save_LIBS="$LIBS"
10227           LIBS="$LIBS $LIBADD_DL"
10228           if test "$cross_compiling" = yes; then :
10229   libltdl_cv_need_uscore=cross
10230 else
10231   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10232   lt_status=$lt_dlunknown
10233   cat > conftest.$ac_ext <<EOF
10234 #line 10234 "configure"
10235 #include "confdefs.h"
10236
10237 #if HAVE_DLFCN_H
10238 #include <dlfcn.h>
10239 #endif
10240
10241 #include <stdio.h>
10242
10243 #ifdef RTLD_GLOBAL
10244 #  define LT_DLGLOBAL           RTLD_GLOBAL
10245 #else
10246 #  ifdef DL_GLOBAL
10247 #    define LT_DLGLOBAL         DL_GLOBAL
10248 #  else
10249 #    define LT_DLGLOBAL         0
10250 #  endif
10251 #endif
10252
10253 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10254    find out it does not work in some platform. */
10255 #ifndef LT_DLLAZY_OR_NOW
10256 #  ifdef RTLD_LAZY
10257 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10258 #  else
10259 #    ifdef DL_LAZY
10260 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10261 #    else
10262 #      ifdef RTLD_NOW
10263 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10264 #      else
10265 #        ifdef DL_NOW
10266 #          define LT_DLLAZY_OR_NOW      DL_NOW
10267 #        else
10268 #          define LT_DLLAZY_OR_NOW      0
10269 #        endif
10270 #      endif
10271 #    endif
10272 #  endif
10273 #endif
10274
10275 #ifdef __cplusplus
10276 extern "C" void exit (int);
10277 #endif
10278
10279 void fnord() { int i=42;}
10280 int main ()
10281 {
10282   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10283   int status = $lt_dlunknown;
10284
10285   if (self)
10286     {
10287       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10288       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10289       /* dlclose (self); */
10290     }
10291   else
10292     puts (dlerror ());
10293
10294     exit (status);
10295 }
10296 EOF
10297   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10298   (eval $ac_link) 2>&5
10299   ac_status=$?
10300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10301   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10302     (./conftest; exit; ) >&5 2>/dev/null
10303     lt_status=$?
10304     case x$lt_status in
10305       x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
10306       x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
10307       x$lt_dlunknown|x*)  ;;
10308     esac
10309   else :
10310     # compilation failed
10311
10312   fi
10313 fi
10314 rm -fr conftest*
10315
10316           LIBS="$save_LIBS"
10317
10318 fi
10319 { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
10320 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
10321   fi
10322 fi
10323
10324 if test x"$libltdl_cv_need_uscore" = xyes; then
10325
10326 cat >>confdefs.h <<\_ACEOF
10327 #define NEED_USCORE 1
10328 _ACEOF
10329
10330 fi
10331
10332
10333 { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
10334 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
10335 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
10336   echo $ECHO_N "(cached) $ECHO_C" >&6
10337 else
10338   # PORTME does your system automatically load deplibs for dlopen?
10339   # or its logical equivalent (e.g. shl_load for HP-UX < 11)
10340   # For now, we just catch OSes we know something about -- in the
10341   # future, we'll try test this programmatically.
10342   libltdl_cv_sys_dlopen_deplibs=unknown
10343   case "$host_os" in
10344   aix3*|aix4.1.*|aix4.2.*)
10345     # Unknown whether this is true for these versions of AIX, but
10346     # we want this `case' here to explicitly catch those versions.
10347     libltdl_cv_sys_dlopen_deplibs=unknown
10348     ;;
10349   aix[45]*)
10350     libltdl_cv_sys_dlopen_deplibs=yes
10351     ;;
10352   darwin*)
10353     # Assuming the user has installed a libdl from somewhere, this is true
10354     # If you are looking for one http://www.opendarwin.org/projects/dlcompat
10355     libltdl_cv_sys_dlopen_deplibs=yes
10356     ;;
10357   gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
10358     # GNU and its variants, using gnu ld.so (Glibc)
10359     libltdl_cv_sys_dlopen_deplibs=yes
10360     ;;
10361   hpux10*|hpux11*)
10362     libltdl_cv_sys_dlopen_deplibs=yes
10363     ;;
10364   interix*)
10365     libltdl_cv_sys_dlopen_deplibs=yes
10366     ;;
10367   irix[12345]*|irix6.[01]*)
10368     # Catch all versions of IRIX before 6.2, and indicate that we don't
10369     # know how it worked for any of those versions.
10370     libltdl_cv_sys_dlopen_deplibs=unknown
10371     ;;
10372   irix*)
10373     # The case above catches anything before 6.2, and it's known that
10374     # at 6.2 and later dlopen does load deplibs.
10375     libltdl_cv_sys_dlopen_deplibs=yes
10376     ;;
10377   netbsd*)
10378     libltdl_cv_sys_dlopen_deplibs=yes
10379     ;;
10380   openbsd*)
10381     libltdl_cv_sys_dlopen_deplibs=yes
10382     ;;
10383   osf[1234]*)
10384     # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
10385     # it did *not* use an RPATH in a shared library to find objects the
10386     # library depends on, so we explicitly say `no'.
10387     libltdl_cv_sys_dlopen_deplibs=no
10388     ;;
10389   osf5.0|osf5.0a|osf5.1)
10390     # dlopen *does* load deplibs and with the right loader patch applied
10391     # it even uses RPATH in a shared library to search for shared objects
10392     # that the library depends on, but there's no easy way to know if that
10393     # patch is installed.  Since this is the case, all we can really
10394     # say is unknown -- it depends on the patch being installed.  If
10395     # it is, this changes to `yes'.  Without it, it would be `no'.
10396     libltdl_cv_sys_dlopen_deplibs=unknown
10397     ;;
10398   osf*)
10399     # the two cases above should catch all versions of osf <= 5.1.  Read
10400     # the comments above for what we know about them.
10401     # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
10402     # is used to find them so we can finally say `yes'.
10403     libltdl_cv_sys_dlopen_deplibs=yes
10404     ;;
10405   solaris*)
10406     libltdl_cv_sys_dlopen_deplibs=yes
10407     ;;
10408   sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10409     libltdl_cv_sys_dlopen_deplibs=yes
10410     ;;
10411   esac
10412
10413 fi
10414 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
10415 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
10416 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
10417
10418 cat >>confdefs.h <<\_ACEOF
10419 #define LTDL_DLOPEN_DEPLIBS 1
10420 _ACEOF
10421
10422 fi
10423
10424
10425 for ac_header in argz.h
10426 do
10427 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10428 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10429   { echo "$as_me:$LINENO: checking for $ac_header" >&5
10430 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10431 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10432   echo $ECHO_N "(cached) $ECHO_C" >&6
10433 fi
10434 ac_res=`eval echo '${'$as_ac_Header'}'`
10435                { echo "$as_me:$LINENO: result: $ac_res" >&5
10436 echo "${ECHO_T}$ac_res" >&6; }
10437 else
10438   # Is the header compilable?
10439 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10440 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10441 cat >conftest.$ac_ext <<_ACEOF
10442 /* confdefs.h.  */
10443 _ACEOF
10444 cat confdefs.h >>conftest.$ac_ext
10445 cat >>conftest.$ac_ext <<_ACEOF
10446 /* end confdefs.h.  */
10447 $ac_includes_default
10448 #include <$ac_header>
10449 _ACEOF
10450 rm -f conftest.$ac_objext
10451 if { (ac_try="$ac_compile"
10452 case "(($ac_try" in
10453   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10454   *) ac_try_echo=$ac_try;;
10455 esac
10456 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10457   (eval "$ac_compile") 2>conftest.er1
10458   ac_status=$?
10459   grep -v '^ *+' conftest.er1 >conftest.err
10460   rm -f conftest.er1
10461   cat conftest.err >&5
10462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10463   (exit $ac_status); } &&
10464          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10465   { (case "(($ac_try" in
10466   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10467   *) ac_try_echo=$ac_try;;
10468 esac
10469 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10470   (eval "$ac_try") 2>&5
10471   ac_status=$?
10472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10473   (exit $ac_status); }; } &&
10474          { ac_try='test -s conftest.$ac_objext'
10475   { (case "(($ac_try" in
10476   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10477   *) ac_try_echo=$ac_try;;
10478 esac
10479 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10480   (eval "$ac_try") 2>&5
10481   ac_status=$?
10482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10483   (exit $ac_status); }; }; then
10484   ac_header_compiler=yes
10485 else
10486   echo "$as_me: failed program was:" >&5
10487 sed 's/^/| /' conftest.$ac_ext >&5
10488
10489         ac_header_compiler=no
10490 fi
10491
10492 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10493 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10494 echo "${ECHO_T}$ac_header_compiler" >&6; }
10495
10496 # Is the header present?
10497 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10498 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10499 cat >conftest.$ac_ext <<_ACEOF
10500 /* confdefs.h.  */
10501 _ACEOF
10502 cat confdefs.h >>conftest.$ac_ext
10503 cat >>conftest.$ac_ext <<_ACEOF
10504 /* end confdefs.h.  */
10505 #include <$ac_header>
10506 _ACEOF
10507 if { (ac_try="$ac_cpp conftest.$ac_ext"
10508 case "(($ac_try" in
10509   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10510   *) ac_try_echo=$ac_try;;
10511 esac
10512 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10513   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10514   ac_status=$?
10515   grep -v '^ *+' conftest.er1 >conftest.err
10516   rm -f conftest.er1
10517   cat conftest.err >&5
10518   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10519   (exit $ac_status); } >/dev/null; then
10520   if test -s conftest.err; then
10521     ac_cpp_err=$ac_c_preproc_warn_flag
10522     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10523   else
10524     ac_cpp_err=
10525   fi
10526 else
10527   ac_cpp_err=yes
10528 fi
10529 if test -z "$ac_cpp_err"; then
10530   ac_header_preproc=yes
10531 else
10532   echo "$as_me: failed program was:" >&5
10533 sed 's/^/| /' conftest.$ac_ext >&5
10534
10535   ac_header_preproc=no
10536 fi
10537
10538 rm -f conftest.err conftest.$ac_ext
10539 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10540 echo "${ECHO_T}$ac_header_preproc" >&6; }
10541
10542 # So?  What about this header?
10543 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10544   yes:no: )
10545     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10546 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10547     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10548 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10549     ac_header_preproc=yes
10550     ;;
10551   no:yes:* )
10552     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10553 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10554     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10555 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10556     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10557 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10558     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10559 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10560     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10561 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10562     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10563 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10564     ( cat <<\_ASBOX
10565 ## ------------------------------------ ##
10566 ## Report this to http://llvm.org/bugs/ ##
10567 ## ------------------------------------ ##
10568 _ASBOX
10569      ) | sed "s/^/$as_me: WARNING:     /" >&2
10570     ;;
10571 esac
10572 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10573 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10574 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10575   echo $ECHO_N "(cached) $ECHO_C" >&6
10576 else
10577   eval "$as_ac_Header=\$ac_header_preproc"
10578 fi
10579 ac_res=`eval echo '${'$as_ac_Header'}'`
10580                { echo "$as_me:$LINENO: result: $ac_res" >&5
10581 echo "${ECHO_T}$ac_res" >&6; }
10582
10583 fi
10584 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10585   cat >>confdefs.h <<_ACEOF
10586 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10587 _ACEOF
10588
10589 fi
10590
10591 done
10592
10593
10594 { echo "$as_me:$LINENO: checking for error_t" >&5
10595 echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
10596 if test "${ac_cv_type_error_t+set}" = set; then
10597   echo $ECHO_N "(cached) $ECHO_C" >&6
10598 else
10599   cat >conftest.$ac_ext <<_ACEOF
10600 /* confdefs.h.  */
10601 _ACEOF
10602 cat confdefs.h >>conftest.$ac_ext
10603 cat >>conftest.$ac_ext <<_ACEOF
10604 /* end confdefs.h.  */
10605 #if HAVE_ARGZ_H
10606 #  include <argz.h>
10607 #endif
10608
10609 typedef error_t ac__type_new_;
10610 int
10611 main ()
10612 {
10613 if ((ac__type_new_ *) 0)
10614   return 0;
10615 if (sizeof (ac__type_new_))
10616   return 0;
10617   ;
10618   return 0;
10619 }
10620 _ACEOF
10621 rm -f conftest.$ac_objext
10622 if { (ac_try="$ac_compile"
10623 case "(($ac_try" in
10624   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10625   *) ac_try_echo=$ac_try;;
10626 esac
10627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10628   (eval "$ac_compile") 2>conftest.er1
10629   ac_status=$?
10630   grep -v '^ *+' conftest.er1 >conftest.err
10631   rm -f conftest.er1
10632   cat conftest.err >&5
10633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10634   (exit $ac_status); } &&
10635          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10636   { (case "(($ac_try" in
10637   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10638   *) ac_try_echo=$ac_try;;
10639 esac
10640 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10641   (eval "$ac_try") 2>&5
10642   ac_status=$?
10643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10644   (exit $ac_status); }; } &&
10645          { ac_try='test -s conftest.$ac_objext'
10646   { (case "(($ac_try" in
10647   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10648   *) ac_try_echo=$ac_try;;
10649 esac
10650 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10651   (eval "$ac_try") 2>&5
10652   ac_status=$?
10653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10654   (exit $ac_status); }; }; then
10655   ac_cv_type_error_t=yes
10656 else
10657   echo "$as_me: failed program was:" >&5
10658 sed 's/^/| /' conftest.$ac_ext >&5
10659
10660         ac_cv_type_error_t=no
10661 fi
10662
10663 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10664 fi
10665 { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
10666 echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
10667 if test $ac_cv_type_error_t = yes; then
10668
10669 cat >>confdefs.h <<_ACEOF
10670 #define HAVE_ERROR_T 1
10671 _ACEOF
10672
10673
10674 else
10675
10676 cat >>confdefs.h <<\_ACEOF
10677 #define error_t int
10678 _ACEOF
10679
10680 fi
10681
10682
10683
10684
10685
10686
10687
10688 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
10689 do
10690 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10691 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10692 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10693 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10694   echo $ECHO_N "(cached) $ECHO_C" >&6
10695 else
10696   cat >conftest.$ac_ext <<_ACEOF
10697 /* confdefs.h.  */
10698 _ACEOF
10699 cat confdefs.h >>conftest.$ac_ext
10700 cat >>conftest.$ac_ext <<_ACEOF
10701 /* end confdefs.h.  */
10702 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10703    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10704 #define $ac_func innocuous_$ac_func
10705
10706 /* System header to define __stub macros and hopefully few prototypes,
10707     which can conflict with char $ac_func (); below.
10708     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10709     <limits.h> exists even on freestanding compilers.  */
10710
10711 #ifdef __STDC__
10712 # include <limits.h>
10713 #else
10714 # include <assert.h>
10715 #endif
10716
10717 #undef $ac_func
10718
10719 /* Override any GCC internal prototype to avoid an error.
10720    Use char because int might match the return type of a GCC
10721    builtin and then its argument prototype would still apply.  */
10722 #ifdef __cplusplus
10723 extern "C"
10724 #endif
10725 char $ac_func ();
10726 /* The GNU C library defines this for functions which it implements
10727     to always fail with ENOSYS.  Some functions are actually named
10728     something starting with __ and the normal name is an alias.  */
10729 #if defined __stub_$ac_func || defined __stub___$ac_func
10730 choke me
10731 #endif
10732
10733 int
10734 main ()
10735 {
10736 return $ac_func ();
10737   ;
10738   return 0;
10739 }
10740 _ACEOF
10741 rm -f conftest.$ac_objext conftest$ac_exeext
10742 if { (ac_try="$ac_link"
10743 case "(($ac_try" in
10744   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10745   *) ac_try_echo=$ac_try;;
10746 esac
10747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10748   (eval "$ac_link") 2>conftest.er1
10749   ac_status=$?
10750   grep -v '^ *+' conftest.er1 >conftest.err
10751   rm -f conftest.er1
10752   cat conftest.err >&5
10753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10754   (exit $ac_status); } &&
10755          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10756   { (case "(($ac_try" in
10757   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10758   *) ac_try_echo=$ac_try;;
10759 esac
10760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10761   (eval "$ac_try") 2>&5
10762   ac_status=$?
10763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10764   (exit $ac_status); }; } &&
10765          { ac_try='test -s conftest$ac_exeext'
10766   { (case "(($ac_try" in
10767   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10768   *) ac_try_echo=$ac_try;;
10769 esac
10770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10771   (eval "$ac_try") 2>&5
10772   ac_status=$?
10773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10774   (exit $ac_status); }; }; then
10775   eval "$as_ac_var=yes"
10776 else
10777   echo "$as_me: failed program was:" >&5
10778 sed 's/^/| /' conftest.$ac_ext >&5
10779
10780         eval "$as_ac_var=no"
10781 fi
10782
10783 rm -f core conftest.err conftest.$ac_objext \
10784       conftest$ac_exeext conftest.$ac_ext
10785 fi
10786 ac_res=`eval echo '${'$as_ac_var'}'`
10787                { echo "$as_me:$LINENO: result: $ac_res" >&5
10788 echo "${ECHO_T}$ac_res" >&6; }
10789 if test `eval echo '${'$as_ac_var'}'` = yes; then
10790   cat >>confdefs.h <<_ACEOF
10791 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10792 _ACEOF
10793
10794 fi
10795 done
10796
10797
10798
10799
10800
10801
10802
10803
10804
10805
10806
10807
10808
10809
10810
10811
10812
10813
10814
10815
10816
10817
10818
10819
10820
10821
10822
10823
10824 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
10825                   stdio.h unistd.h
10826 do
10827 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10828 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10829   { echo "$as_me:$LINENO: checking for $ac_header" >&5
10830 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10831 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10832   echo $ECHO_N "(cached) $ECHO_C" >&6
10833 fi
10834 ac_res=`eval echo '${'$as_ac_Header'}'`
10835                { echo "$as_me:$LINENO: result: $ac_res" >&5
10836 echo "${ECHO_T}$ac_res" >&6; }
10837 else
10838   # Is the header compilable?
10839 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10840 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10841 cat >conftest.$ac_ext <<_ACEOF
10842 /* confdefs.h.  */
10843 _ACEOF
10844 cat confdefs.h >>conftest.$ac_ext
10845 cat >>conftest.$ac_ext <<_ACEOF
10846 /* end confdefs.h.  */
10847 $ac_includes_default
10848 #include <$ac_header>
10849 _ACEOF
10850 rm -f conftest.$ac_objext
10851 if { (ac_try="$ac_compile"
10852 case "(($ac_try" in
10853   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10854   *) ac_try_echo=$ac_try;;
10855 esac
10856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10857   (eval "$ac_compile") 2>conftest.er1
10858   ac_status=$?
10859   grep -v '^ *+' conftest.er1 >conftest.err
10860   rm -f conftest.er1
10861   cat conftest.err >&5
10862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10863   (exit $ac_status); } &&
10864          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10865   { (case "(($ac_try" in
10866   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10867   *) ac_try_echo=$ac_try;;
10868 esac
10869 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10870   (eval "$ac_try") 2>&5
10871   ac_status=$?
10872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10873   (exit $ac_status); }; } &&
10874          { ac_try='test -s conftest.$ac_objext'
10875   { (case "(($ac_try" in
10876   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10877   *) ac_try_echo=$ac_try;;
10878 esac
10879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10880   (eval "$ac_try") 2>&5
10881   ac_status=$?
10882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10883   (exit $ac_status); }; }; then
10884   ac_header_compiler=yes
10885 else
10886   echo "$as_me: failed program was:" >&5
10887 sed 's/^/| /' conftest.$ac_ext >&5
10888
10889         ac_header_compiler=no
10890 fi
10891
10892 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10893 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10894 echo "${ECHO_T}$ac_header_compiler" >&6; }
10895
10896 # Is the header present?
10897 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10898 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10899 cat >conftest.$ac_ext <<_ACEOF
10900 /* confdefs.h.  */
10901 _ACEOF
10902 cat confdefs.h >>conftest.$ac_ext
10903 cat >>conftest.$ac_ext <<_ACEOF
10904 /* end confdefs.h.  */
10905 #include <$ac_header>
10906 _ACEOF
10907 if { (ac_try="$ac_cpp conftest.$ac_ext"
10908 case "(($ac_try" in
10909   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10910   *) ac_try_echo=$ac_try;;
10911 esac
10912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10913   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10914   ac_status=$?
10915   grep -v '^ *+' conftest.er1 >conftest.err
10916   rm -f conftest.er1
10917   cat conftest.err >&5
10918   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10919   (exit $ac_status); } >/dev/null; then
10920   if test -s conftest.err; then
10921     ac_cpp_err=$ac_c_preproc_warn_flag
10922     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10923   else
10924     ac_cpp_err=
10925   fi
10926 else
10927   ac_cpp_err=yes
10928 fi
10929 if test -z "$ac_cpp_err"; then
10930   ac_header_preproc=yes
10931 else
10932   echo "$as_me: failed program was:" >&5
10933 sed 's/^/| /' conftest.$ac_ext >&5
10934
10935   ac_header_preproc=no
10936 fi
10937
10938 rm -f conftest.err conftest.$ac_ext
10939 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10940 echo "${ECHO_T}$ac_header_preproc" >&6; }
10941
10942 # So?  What about this header?
10943 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10944   yes:no: )
10945     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10946 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10947     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10948 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10949     ac_header_preproc=yes
10950     ;;
10951   no:yes:* )
10952     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10953 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10954     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10955 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10956     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10957 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10958     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10959 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10960     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10961 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10962     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10963 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10964     ( cat <<\_ASBOX
10965 ## ------------------------------------ ##
10966 ## Report this to http://llvm.org/bugs/ ##
10967 ## ------------------------------------ ##
10968 _ASBOX
10969      ) | sed "s/^/$as_me: WARNING:     /" >&2
10970     ;;
10971 esac
10972 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10973 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10974 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10975   echo $ECHO_N "(cached) $ECHO_C" >&6
10976 else
10977   eval "$as_ac_Header=\$ac_header_preproc"
10978 fi
10979 ac_res=`eval echo '${'$as_ac_Header'}'`
10980                { echo "$as_me:$LINENO: result: $ac_res" >&5
10981 echo "${ECHO_T}$ac_res" >&6; }
10982
10983 fi
10984 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10985   cat >>confdefs.h <<_ACEOF
10986 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10987 _ACEOF
10988
10989 fi
10990
10991 done
10992
10993
10994
10995
10996
10997 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
10998 do
10999 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11000 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11001   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11002 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11003 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11004   echo $ECHO_N "(cached) $ECHO_C" >&6
11005 fi
11006 ac_res=`eval echo '${'$as_ac_Header'}'`
11007                { echo "$as_me:$LINENO: result: $ac_res" >&5
11008 echo "${ECHO_T}$ac_res" >&6; }
11009 else
11010   # Is the header compilable?
11011 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11012 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11013 cat >conftest.$ac_ext <<_ACEOF
11014 /* confdefs.h.  */
11015 _ACEOF
11016 cat confdefs.h >>conftest.$ac_ext
11017 cat >>conftest.$ac_ext <<_ACEOF
11018 /* end confdefs.h.  */
11019 $ac_includes_default
11020 #include <$ac_header>
11021 _ACEOF
11022 rm -f conftest.$ac_objext
11023 if { (ac_try="$ac_compile"
11024 case "(($ac_try" in
11025   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11026   *) ac_try_echo=$ac_try;;
11027 esac
11028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11029   (eval "$ac_compile") 2>conftest.er1
11030   ac_status=$?
11031   grep -v '^ *+' conftest.er1 >conftest.err
11032   rm -f conftest.er1
11033   cat conftest.err >&5
11034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11035   (exit $ac_status); } &&
11036          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11037   { (case "(($ac_try" in
11038   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11039   *) ac_try_echo=$ac_try;;
11040 esac
11041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11042   (eval "$ac_try") 2>&5
11043   ac_status=$?
11044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11045   (exit $ac_status); }; } &&
11046          { ac_try='test -s conftest.$ac_objext'
11047   { (case "(($ac_try" in
11048   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11049   *) ac_try_echo=$ac_try;;
11050 esac
11051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11052   (eval "$ac_try") 2>&5
11053   ac_status=$?
11054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11055   (exit $ac_status); }; }; then
11056   ac_header_compiler=yes
11057 else
11058   echo "$as_me: failed program was:" >&5
11059 sed 's/^/| /' conftest.$ac_ext >&5
11060
11061         ac_header_compiler=no
11062 fi
11063
11064 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11065 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11066 echo "${ECHO_T}$ac_header_compiler" >&6; }
11067
11068 # Is the header present?
11069 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11070 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11071 cat >conftest.$ac_ext <<_ACEOF
11072 /* confdefs.h.  */
11073 _ACEOF
11074 cat confdefs.h >>conftest.$ac_ext
11075 cat >>conftest.$ac_ext <<_ACEOF
11076 /* end confdefs.h.  */
11077 #include <$ac_header>
11078 _ACEOF
11079 if { (ac_try="$ac_cpp conftest.$ac_ext"
11080 case "(($ac_try" in
11081   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11082   *) ac_try_echo=$ac_try;;
11083 esac
11084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11085   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11086   ac_status=$?
11087   grep -v '^ *+' conftest.er1 >conftest.err
11088   rm -f conftest.er1
11089   cat conftest.err >&5
11090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11091   (exit $ac_status); } >/dev/null; then
11092   if test -s conftest.err; then
11093     ac_cpp_err=$ac_c_preproc_warn_flag
11094     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11095   else
11096     ac_cpp_err=
11097   fi
11098 else
11099   ac_cpp_err=yes
11100 fi
11101 if test -z "$ac_cpp_err"; then
11102   ac_header_preproc=yes
11103 else
11104   echo "$as_me: failed program was:" >&5
11105 sed 's/^/| /' conftest.$ac_ext >&5
11106
11107   ac_header_preproc=no
11108 fi
11109
11110 rm -f conftest.err conftest.$ac_ext
11111 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11112 echo "${ECHO_T}$ac_header_preproc" >&6; }
11113
11114 # So?  What about this header?
11115 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11116   yes:no: )
11117     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11118 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11119     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11120 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11121     ac_header_preproc=yes
11122     ;;
11123   no:yes:* )
11124     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11125 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11126     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11127 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11128     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11129 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11130     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11131 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11132     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11133 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11134     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11135 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11136     ( cat <<\_ASBOX
11137 ## ------------------------------------ ##
11138 ## Report this to http://llvm.org/bugs/ ##
11139 ## ------------------------------------ ##
11140 _ASBOX
11141      ) | sed "s/^/$as_me: WARNING:     /" >&2
11142     ;;
11143 esac
11144 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11145 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11146 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11147   echo $ECHO_N "(cached) $ECHO_C" >&6
11148 else
11149   eval "$as_ac_Header=\$ac_header_preproc"
11150 fi
11151 ac_res=`eval echo '${'$as_ac_Header'}'`
11152                { echo "$as_me:$LINENO: result: $ac_res" >&5
11153 echo "${ECHO_T}$ac_res" >&6; }
11154
11155 fi
11156 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11157   cat >>confdefs.h <<_ACEOF
11158 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11159 _ACEOF
11160
11161 fi
11162
11163 done
11164
11165
11166
11167 for ac_header in string.h strings.h
11168 do
11169 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11170 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11171   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11172 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11173 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11174   echo $ECHO_N "(cached) $ECHO_C" >&6
11175 fi
11176 ac_res=`eval echo '${'$as_ac_Header'}'`
11177                { echo "$as_me:$LINENO: result: $ac_res" >&5
11178 echo "${ECHO_T}$ac_res" >&6; }
11179 else
11180   # Is the header compilable?
11181 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11182 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11183 cat >conftest.$ac_ext <<_ACEOF
11184 /* confdefs.h.  */
11185 _ACEOF
11186 cat confdefs.h >>conftest.$ac_ext
11187 cat >>conftest.$ac_ext <<_ACEOF
11188 /* end confdefs.h.  */
11189 $ac_includes_default
11190 #include <$ac_header>
11191 _ACEOF
11192 rm -f conftest.$ac_objext
11193 if { (ac_try="$ac_compile"
11194 case "(($ac_try" in
11195   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11196   *) ac_try_echo=$ac_try;;
11197 esac
11198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11199   (eval "$ac_compile") 2>conftest.er1
11200   ac_status=$?
11201   grep -v '^ *+' conftest.er1 >conftest.err
11202   rm -f conftest.er1
11203   cat conftest.err >&5
11204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11205   (exit $ac_status); } &&
11206          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11207   { (case "(($ac_try" in
11208   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11209   *) ac_try_echo=$ac_try;;
11210 esac
11211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11212   (eval "$ac_try") 2>&5
11213   ac_status=$?
11214   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11215   (exit $ac_status); }; } &&
11216          { ac_try='test -s conftest.$ac_objext'
11217   { (case "(($ac_try" in
11218   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11219   *) ac_try_echo=$ac_try;;
11220 esac
11221 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11222   (eval "$ac_try") 2>&5
11223   ac_status=$?
11224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11225   (exit $ac_status); }; }; then
11226   ac_header_compiler=yes
11227 else
11228   echo "$as_me: failed program was:" >&5
11229 sed 's/^/| /' conftest.$ac_ext >&5
11230
11231         ac_header_compiler=no
11232 fi
11233
11234 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11235 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11236 echo "${ECHO_T}$ac_header_compiler" >&6; }
11237
11238 # Is the header present?
11239 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11240 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11241 cat >conftest.$ac_ext <<_ACEOF
11242 /* confdefs.h.  */
11243 _ACEOF
11244 cat confdefs.h >>conftest.$ac_ext
11245 cat >>conftest.$ac_ext <<_ACEOF
11246 /* end confdefs.h.  */
11247 #include <$ac_header>
11248 _ACEOF
11249 if { (ac_try="$ac_cpp conftest.$ac_ext"
11250 case "(($ac_try" in
11251   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11252   *) ac_try_echo=$ac_try;;
11253 esac
11254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11255   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11256   ac_status=$?
11257   grep -v '^ *+' conftest.er1 >conftest.err
11258   rm -f conftest.er1
11259   cat conftest.err >&5
11260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11261   (exit $ac_status); } >/dev/null; then
11262   if test -s conftest.err; then
11263     ac_cpp_err=$ac_c_preproc_warn_flag
11264     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11265   else
11266     ac_cpp_err=
11267   fi
11268 else
11269   ac_cpp_err=yes
11270 fi
11271 if test -z "$ac_cpp_err"; then
11272   ac_header_preproc=yes
11273 else
11274   echo "$as_me: failed program was:" >&5
11275 sed 's/^/| /' conftest.$ac_ext >&5
11276
11277   ac_header_preproc=no
11278 fi
11279
11280 rm -f conftest.err conftest.$ac_ext
11281 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11282 echo "${ECHO_T}$ac_header_preproc" >&6; }
11283
11284 # So?  What about this header?
11285 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11286   yes:no: )
11287     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11288 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11289     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11290 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11291     ac_header_preproc=yes
11292     ;;
11293   no:yes:* )
11294     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11295 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11296     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11297 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11298     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11299 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11300     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11301 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11302     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11303 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11304     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11305 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11306     ( cat <<\_ASBOX
11307 ## ------------------------------------ ##
11308 ## Report this to http://llvm.org/bugs/ ##
11309 ## ------------------------------------ ##
11310 _ASBOX
11311      ) | sed "s/^/$as_me: WARNING:     /" >&2
11312     ;;
11313 esac
11314 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11315 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11316 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11317   echo $ECHO_N "(cached) $ECHO_C" >&6
11318 else
11319   eval "$as_ac_Header=\$ac_header_preproc"
11320 fi
11321 ac_res=`eval echo '${'$as_ac_Header'}'`
11322                { echo "$as_me:$LINENO: result: $ac_res" >&5
11323 echo "${ECHO_T}$ac_res" >&6; }
11324
11325 fi
11326 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11327   cat >>confdefs.h <<_ACEOF
11328 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11329 _ACEOF
11330  break
11331 fi
11332
11333 done
11334
11335
11336
11337
11338 for ac_func in strchr index
11339 do
11340 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11341 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11342 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11343 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11344   echo $ECHO_N "(cached) $ECHO_C" >&6
11345 else
11346   cat >conftest.$ac_ext <<_ACEOF
11347 /* confdefs.h.  */
11348 _ACEOF
11349 cat confdefs.h >>conftest.$ac_ext
11350 cat >>conftest.$ac_ext <<_ACEOF
11351 /* end confdefs.h.  */
11352 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11353    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11354 #define $ac_func innocuous_$ac_func
11355
11356 /* System header to define __stub macros and hopefully few prototypes,
11357     which can conflict with char $ac_func (); below.
11358     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11359     <limits.h> exists even on freestanding compilers.  */
11360
11361 #ifdef __STDC__
11362 # include <limits.h>
11363 #else
11364 # include <assert.h>
11365 #endif
11366
11367 #undef $ac_func
11368
11369 /* Override any GCC internal prototype to avoid an error.
11370    Use char because int might match the return type of a GCC
11371    builtin and then its argument prototype would still apply.  */
11372 #ifdef __cplusplus
11373 extern "C"
11374 #endif
11375 char $ac_func ();
11376 /* The GNU C library defines this for functions which it implements
11377     to always fail with ENOSYS.  Some functions are actually named
11378     something starting with __ and the normal name is an alias.  */
11379 #if defined __stub_$ac_func || defined __stub___$ac_func
11380 choke me
11381 #endif
11382
11383 int
11384 main ()
11385 {
11386 return $ac_func ();
11387   ;
11388   return 0;
11389 }
11390 _ACEOF
11391 rm -f conftest.$ac_objext conftest$ac_exeext
11392 if { (ac_try="$ac_link"
11393 case "(($ac_try" in
11394   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11395   *) ac_try_echo=$ac_try;;
11396 esac
11397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11398   (eval "$ac_link") 2>conftest.er1
11399   ac_status=$?
11400   grep -v '^ *+' conftest.er1 >conftest.err
11401   rm -f conftest.er1
11402   cat conftest.err >&5
11403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11404   (exit $ac_status); } &&
11405          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11406   { (case "(($ac_try" in
11407   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11408   *) ac_try_echo=$ac_try;;
11409 esac
11410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11411   (eval "$ac_try") 2>&5
11412   ac_status=$?
11413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11414   (exit $ac_status); }; } &&
11415          { ac_try='test -s conftest$ac_exeext'
11416   { (case "(($ac_try" in
11417   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11418   *) ac_try_echo=$ac_try;;
11419 esac
11420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11421   (eval "$ac_try") 2>&5
11422   ac_status=$?
11423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11424   (exit $ac_status); }; }; then
11425   eval "$as_ac_var=yes"
11426 else
11427   echo "$as_me: failed program was:" >&5
11428 sed 's/^/| /' conftest.$ac_ext >&5
11429
11430         eval "$as_ac_var=no"
11431 fi
11432
11433 rm -f core conftest.err conftest.$ac_objext \
11434       conftest$ac_exeext conftest.$ac_ext
11435 fi
11436 ac_res=`eval echo '${'$as_ac_var'}'`
11437                { echo "$as_me:$LINENO: result: $ac_res" >&5
11438 echo "${ECHO_T}$ac_res" >&6; }
11439 if test `eval echo '${'$as_ac_var'}'` = yes; then
11440   cat >>confdefs.h <<_ACEOF
11441 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11442 _ACEOF
11443  break
11444 fi
11445 done
11446
11447
11448
11449 for ac_func in strrchr rindex
11450 do
11451 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11452 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11453 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11454 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11455   echo $ECHO_N "(cached) $ECHO_C" >&6
11456 else
11457   cat >conftest.$ac_ext <<_ACEOF
11458 /* confdefs.h.  */
11459 _ACEOF
11460 cat confdefs.h >>conftest.$ac_ext
11461 cat >>conftest.$ac_ext <<_ACEOF
11462 /* end confdefs.h.  */
11463 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11464    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11465 #define $ac_func innocuous_$ac_func
11466
11467 /* System header to define __stub macros and hopefully few prototypes,
11468     which can conflict with char $ac_func (); below.
11469     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11470     <limits.h> exists even on freestanding compilers.  */
11471
11472 #ifdef __STDC__
11473 # include <limits.h>
11474 #else
11475 # include <assert.h>
11476 #endif
11477
11478 #undef $ac_func
11479
11480 /* Override any GCC internal prototype to avoid an error.
11481    Use char because int might match the return type of a GCC
11482    builtin and then its argument prototype would still apply.  */
11483 #ifdef __cplusplus
11484 extern "C"
11485 #endif
11486 char $ac_func ();
11487 /* The GNU C library defines this for functions which it implements
11488     to always fail with ENOSYS.  Some functions are actually named
11489     something starting with __ and the normal name is an alias.  */
11490 #if defined __stub_$ac_func || defined __stub___$ac_func
11491 choke me
11492 #endif
11493
11494 int
11495 main ()
11496 {
11497 return $ac_func ();
11498   ;
11499   return 0;
11500 }
11501 _ACEOF
11502 rm -f conftest.$ac_objext conftest$ac_exeext
11503 if { (ac_try="$ac_link"
11504 case "(($ac_try" in
11505   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11506   *) ac_try_echo=$ac_try;;
11507 esac
11508 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11509   (eval "$ac_link") 2>conftest.er1
11510   ac_status=$?
11511   grep -v '^ *+' conftest.er1 >conftest.err
11512   rm -f conftest.er1
11513   cat conftest.err >&5
11514   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11515   (exit $ac_status); } &&
11516          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11517   { (case "(($ac_try" in
11518   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11519   *) ac_try_echo=$ac_try;;
11520 esac
11521 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11522   (eval "$ac_try") 2>&5
11523   ac_status=$?
11524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11525   (exit $ac_status); }; } &&
11526          { ac_try='test -s conftest$ac_exeext'
11527   { (case "(($ac_try" in
11528   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11529   *) ac_try_echo=$ac_try;;
11530 esac
11531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11532   (eval "$ac_try") 2>&5
11533   ac_status=$?
11534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11535   (exit $ac_status); }; }; then
11536   eval "$as_ac_var=yes"
11537 else
11538   echo "$as_me: failed program was:" >&5
11539 sed 's/^/| /' conftest.$ac_ext >&5
11540
11541         eval "$as_ac_var=no"
11542 fi
11543
11544 rm -f core conftest.err conftest.$ac_objext \
11545       conftest$ac_exeext conftest.$ac_ext
11546 fi
11547 ac_res=`eval echo '${'$as_ac_var'}'`
11548                { echo "$as_me:$LINENO: result: $ac_res" >&5
11549 echo "${ECHO_T}$ac_res" >&6; }
11550 if test `eval echo '${'$as_ac_var'}'` = yes; then
11551   cat >>confdefs.h <<_ACEOF
11552 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11553 _ACEOF
11554  break
11555 fi
11556 done
11557
11558
11559
11560 for ac_func in memcpy bcopy
11561 do
11562 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11563 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11564 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11565 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11566   echo $ECHO_N "(cached) $ECHO_C" >&6
11567 else
11568   cat >conftest.$ac_ext <<_ACEOF
11569 /* confdefs.h.  */
11570 _ACEOF
11571 cat confdefs.h >>conftest.$ac_ext
11572 cat >>conftest.$ac_ext <<_ACEOF
11573 /* end confdefs.h.  */
11574 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11575    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11576 #define $ac_func innocuous_$ac_func
11577
11578 /* System header to define __stub macros and hopefully few prototypes,
11579     which can conflict with char $ac_func (); below.
11580     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11581     <limits.h> exists even on freestanding compilers.  */
11582
11583 #ifdef __STDC__
11584 # include <limits.h>
11585 #else
11586 # include <assert.h>
11587 #endif
11588
11589 #undef $ac_func
11590
11591 /* Override any GCC internal prototype to avoid an error.
11592    Use char because int might match the return type of a GCC
11593    builtin and then its argument prototype would still apply.  */
11594 #ifdef __cplusplus
11595 extern "C"
11596 #endif
11597 char $ac_func ();
11598 /* The GNU C library defines this for functions which it implements
11599     to always fail with ENOSYS.  Some functions are actually named
11600     something starting with __ and the normal name is an alias.  */
11601 #if defined __stub_$ac_func || defined __stub___$ac_func
11602 choke me
11603 #endif
11604
11605 int
11606 main ()
11607 {
11608 return $ac_func ();
11609   ;
11610   return 0;
11611 }
11612 _ACEOF
11613 rm -f conftest.$ac_objext conftest$ac_exeext
11614 if { (ac_try="$ac_link"
11615 case "(($ac_try" in
11616   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11617   *) ac_try_echo=$ac_try;;
11618 esac
11619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11620   (eval "$ac_link") 2>conftest.er1
11621   ac_status=$?
11622   grep -v '^ *+' conftest.er1 >conftest.err
11623   rm -f conftest.er1
11624   cat conftest.err >&5
11625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11626   (exit $ac_status); } &&
11627          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11628   { (case "(($ac_try" in
11629   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11630   *) ac_try_echo=$ac_try;;
11631 esac
11632 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11633   (eval "$ac_try") 2>&5
11634   ac_status=$?
11635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11636   (exit $ac_status); }; } &&
11637          { ac_try='test -s conftest$ac_exeext'
11638   { (case "(($ac_try" in
11639   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11640   *) ac_try_echo=$ac_try;;
11641 esac
11642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11643   (eval "$ac_try") 2>&5
11644   ac_status=$?
11645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11646   (exit $ac_status); }; }; then
11647   eval "$as_ac_var=yes"
11648 else
11649   echo "$as_me: failed program was:" >&5
11650 sed 's/^/| /' conftest.$ac_ext >&5
11651
11652         eval "$as_ac_var=no"
11653 fi
11654
11655 rm -f core conftest.err conftest.$ac_objext \
11656       conftest$ac_exeext conftest.$ac_ext
11657 fi
11658 ac_res=`eval echo '${'$as_ac_var'}'`
11659                { echo "$as_me:$LINENO: result: $ac_res" >&5
11660 echo "${ECHO_T}$ac_res" >&6; }
11661 if test `eval echo '${'$as_ac_var'}'` = yes; then
11662   cat >>confdefs.h <<_ACEOF
11663 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11664 _ACEOF
11665  break
11666 fi
11667 done
11668
11669
11670
11671 for ac_func in memmove strcmp
11672 do
11673 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11674 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11675 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11676 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11677   echo $ECHO_N "(cached) $ECHO_C" >&6
11678 else
11679   cat >conftest.$ac_ext <<_ACEOF
11680 /* confdefs.h.  */
11681 _ACEOF
11682 cat confdefs.h >>conftest.$ac_ext
11683 cat >>conftest.$ac_ext <<_ACEOF
11684 /* end confdefs.h.  */
11685 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11686    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11687 #define $ac_func innocuous_$ac_func
11688
11689 /* System header to define __stub macros and hopefully few prototypes,
11690     which can conflict with char $ac_func (); below.
11691     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11692     <limits.h> exists even on freestanding compilers.  */
11693
11694 #ifdef __STDC__
11695 # include <limits.h>
11696 #else
11697 # include <assert.h>
11698 #endif
11699
11700 #undef $ac_func
11701
11702 /* Override any GCC internal prototype to avoid an error.
11703    Use char because int might match the return type of a GCC
11704    builtin and then its argument prototype would still apply.  */
11705 #ifdef __cplusplus
11706 extern "C"
11707 #endif
11708 char $ac_func ();
11709 /* The GNU C library defines this for functions which it implements
11710     to always fail with ENOSYS.  Some functions are actually named
11711     something starting with __ and the normal name is an alias.  */
11712 #if defined __stub_$ac_func || defined __stub___$ac_func
11713 choke me
11714 #endif
11715
11716 int
11717 main ()
11718 {
11719 return $ac_func ();
11720   ;
11721   return 0;
11722 }
11723 _ACEOF
11724 rm -f conftest.$ac_objext conftest$ac_exeext
11725 if { (ac_try="$ac_link"
11726 case "(($ac_try" in
11727   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11728   *) ac_try_echo=$ac_try;;
11729 esac
11730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11731   (eval "$ac_link") 2>conftest.er1
11732   ac_status=$?
11733   grep -v '^ *+' conftest.er1 >conftest.err
11734   rm -f conftest.er1
11735   cat conftest.err >&5
11736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11737   (exit $ac_status); } &&
11738          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11739   { (case "(($ac_try" in
11740   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11741   *) ac_try_echo=$ac_try;;
11742 esac
11743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11744   (eval "$ac_try") 2>&5
11745   ac_status=$?
11746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11747   (exit $ac_status); }; } &&
11748          { ac_try='test -s conftest$ac_exeext'
11749   { (case "(($ac_try" in
11750   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11751   *) ac_try_echo=$ac_try;;
11752 esac
11753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11754   (eval "$ac_try") 2>&5
11755   ac_status=$?
11756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11757   (exit $ac_status); }; }; then
11758   eval "$as_ac_var=yes"
11759 else
11760   echo "$as_me: failed program was:" >&5
11761 sed 's/^/| /' conftest.$ac_ext >&5
11762
11763         eval "$as_ac_var=no"
11764 fi
11765
11766 rm -f core conftest.err conftest.$ac_objext \
11767       conftest$ac_exeext conftest.$ac_ext
11768 fi
11769 ac_res=`eval echo '${'$as_ac_var'}'`
11770                { echo "$as_me:$LINENO: result: $ac_res" >&5
11771 echo "${ECHO_T}$ac_res" >&6; }
11772 if test `eval echo '${'$as_ac_var'}'` = yes; then
11773   cat >>confdefs.h <<_ACEOF
11774 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11775 _ACEOF
11776
11777 fi
11778 done
11779
11780
11781
11782
11783 for ac_func in closedir opendir readdir
11784 do
11785 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11786 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11787 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11788 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11789   echo $ECHO_N "(cached) $ECHO_C" >&6
11790 else
11791   cat >conftest.$ac_ext <<_ACEOF
11792 /* confdefs.h.  */
11793 _ACEOF
11794 cat confdefs.h >>conftest.$ac_ext
11795 cat >>conftest.$ac_ext <<_ACEOF
11796 /* end confdefs.h.  */
11797 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11798    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11799 #define $ac_func innocuous_$ac_func
11800
11801 /* System header to define __stub macros and hopefully few prototypes,
11802     which can conflict with char $ac_func (); below.
11803     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11804     <limits.h> exists even on freestanding compilers.  */
11805
11806 #ifdef __STDC__
11807 # include <limits.h>
11808 #else
11809 # include <assert.h>
11810 #endif
11811
11812 #undef $ac_func
11813
11814 /* Override any GCC internal prototype to avoid an error.
11815    Use char because int might match the return type of a GCC
11816    builtin and then its argument prototype would still apply.  */
11817 #ifdef __cplusplus
11818 extern "C"
11819 #endif
11820 char $ac_func ();
11821 /* The GNU C library defines this for functions which it implements
11822     to always fail with ENOSYS.  Some functions are actually named
11823     something starting with __ and the normal name is an alias.  */
11824 #if defined __stub_$ac_func || defined __stub___$ac_func
11825 choke me
11826 #endif
11827
11828 int
11829 main ()
11830 {
11831 return $ac_func ();
11832   ;
11833   return 0;
11834 }
11835 _ACEOF
11836 rm -f conftest.$ac_objext conftest$ac_exeext
11837 if { (ac_try="$ac_link"
11838 case "(($ac_try" in
11839   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11840   *) ac_try_echo=$ac_try;;
11841 esac
11842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11843   (eval "$ac_link") 2>conftest.er1
11844   ac_status=$?
11845   grep -v '^ *+' conftest.er1 >conftest.err
11846   rm -f conftest.er1
11847   cat conftest.err >&5
11848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11849   (exit $ac_status); } &&
11850          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11851   { (case "(($ac_try" in
11852   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11853   *) ac_try_echo=$ac_try;;
11854 esac
11855 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11856   (eval "$ac_try") 2>&5
11857   ac_status=$?
11858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11859   (exit $ac_status); }; } &&
11860          { ac_try='test -s conftest$ac_exeext'
11861   { (case "(($ac_try" in
11862   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11863   *) ac_try_echo=$ac_try;;
11864 esac
11865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11866   (eval "$ac_try") 2>&5
11867   ac_status=$?
11868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11869   (exit $ac_status); }; }; then
11870   eval "$as_ac_var=yes"
11871 else
11872   echo "$as_me: failed program was:" >&5
11873 sed 's/^/| /' conftest.$ac_ext >&5
11874
11875         eval "$as_ac_var=no"
11876 fi
11877
11878 rm -f core conftest.err conftest.$ac_objext \
11879       conftest$ac_exeext conftest.$ac_ext
11880 fi
11881 ac_res=`eval echo '${'$as_ac_var'}'`
11882                { echo "$as_me:$LINENO: result: $ac_res" >&5
11883 echo "${ECHO_T}$ac_res" >&6; }
11884 if test `eval echo '${'$as_ac_var'}'` = yes; then
11885   cat >>confdefs.h <<_ACEOF
11886 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11887 _ACEOF
11888
11889 fi
11890 done
11891
11892
11893
11894 { echo "$as_me:$LINENO: checking tool compatibility" >&5
11895 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
11896
11897 ICC=no
11898 IXX=no
11899 case $CC in
11900   icc*|icpc*)
11901     ICC=yes
11902     IXX=yes
11903     ;;
11904    *)
11905     ;;
11906 esac
11907
11908 if test "$GCC" != "yes" && test "$ICC" != "yes"
11909 then
11910   { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
11911 echo "$as_me: error: gcc|icc required but not found" >&2;}
11912    { (exit 1); exit 1; }; }
11913 fi
11914
11915 if test "$GXX" != "yes" && test "$IXX" != "yes"
11916 then
11917   { { echo "$as_me:$LINENO: error: g++|clang++|icc required but not found" >&5
11918 echo "$as_me: error: g++|clang++|icc required but not found" >&2;}
11919    { (exit 1); exit 1; }; }
11920 fi
11921
11922 if test "$GCC" = "yes"
11923 then
11924   cat >conftest.$ac_ext <<_ACEOF
11925 #if !defined(__GNUC__) || __GNUC__ < 3
11926 #error Unsupported GCC version
11927 #endif
11928
11929 _ACEOF
11930 rm -f conftest.$ac_objext
11931 if { (ac_try="$ac_compile"
11932 case "(($ac_try" in
11933   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11934   *) ac_try_echo=$ac_try;;
11935 esac
11936 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11937   (eval "$ac_compile") 2>conftest.er1
11938   ac_status=$?
11939   grep -v '^ *+' conftest.er1 >conftest.err
11940   rm -f conftest.er1
11941   cat conftest.err >&5
11942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11943   (exit $ac_status); } &&
11944          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11945   { (case "(($ac_try" in
11946   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11947   *) ac_try_echo=$ac_try;;
11948 esac
11949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11950   (eval "$ac_try") 2>&5
11951   ac_status=$?
11952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11953   (exit $ac_status); }; } &&
11954          { ac_try='test -s conftest.$ac_objext'
11955   { (case "(($ac_try" in
11956   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11957   *) ac_try_echo=$ac_try;;
11958 esac
11959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11960   (eval "$ac_try") 2>&5
11961   ac_status=$?
11962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11963   (exit $ac_status); }; }; then
11964   :
11965 else
11966   echo "$as_me: failed program was:" >&5
11967 sed 's/^/| /' conftest.$ac_ext >&5
11968
11969         { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
11970 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
11971    { (exit 1); exit 1; }; }
11972 fi
11973
11974 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11975 fi
11976
11977 if test -z "$llvm_cv_gnu_make_command"
11978 then
11979   { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
11980 echo "$as_me: error: GNU Make required but not found" >&2;}
11981    { (exit 1); exit 1; }; }
11982 fi
11983
11984 { echo "$as_me:$LINENO: result: ok" >&5
11985 echo "${ECHO_T}ok" >&6; }
11986
11987 { echo "$as_me:$LINENO: checking optional compiler flags" >&5
11988 echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
11989 NO_VARIADIC_MACROS=`$CXX -Werror -Wno-variadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
11990
11991 NO_MISSING_FIELD_INITIALIZERS=`$CXX -Werror -Wno-missing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
11992
11993 COVERED_SWITCH_DEFAULT=`$CXX -Werror -Wcovered-switch-default -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wcovered-switch-default`
11994
11995 { echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT" >&5
11996 echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT" >&6; }
11997
11998
11999
12000 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
12001 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
12002 if test "${ac_cv_lib_m_sin+set}" = set; then
12003   echo $ECHO_N "(cached) $ECHO_C" >&6
12004 else
12005   ac_check_lib_save_LIBS=$LIBS
12006 LIBS="-lm  $LIBS"
12007 cat >conftest.$ac_ext <<_ACEOF
12008 /* confdefs.h.  */
12009 _ACEOF
12010 cat confdefs.h >>conftest.$ac_ext
12011 cat >>conftest.$ac_ext <<_ACEOF
12012 /* end confdefs.h.  */
12013
12014 /* Override any GCC internal prototype to avoid an error.
12015    Use char because int might match the return type of a GCC
12016    builtin and then its argument prototype would still apply.  */
12017 #ifdef __cplusplus
12018 extern "C"
12019 #endif
12020 char sin ();
12021 int
12022 main ()
12023 {
12024 return sin ();
12025   ;
12026   return 0;
12027 }
12028 _ACEOF
12029 rm -f conftest.$ac_objext conftest$ac_exeext
12030 if { (ac_try="$ac_link"
12031 case "(($ac_try" in
12032   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12033   *) ac_try_echo=$ac_try;;
12034 esac
12035 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12036   (eval "$ac_link") 2>conftest.er1
12037   ac_status=$?
12038   grep -v '^ *+' conftest.er1 >conftest.err
12039   rm -f conftest.er1
12040   cat conftest.err >&5
12041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12042   (exit $ac_status); } &&
12043          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12044   { (case "(($ac_try" in
12045   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12046   *) ac_try_echo=$ac_try;;
12047 esac
12048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12049   (eval "$ac_try") 2>&5
12050   ac_status=$?
12051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12052   (exit $ac_status); }; } &&
12053          { ac_try='test -s conftest$ac_exeext'
12054   { (case "(($ac_try" in
12055   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12056   *) ac_try_echo=$ac_try;;
12057 esac
12058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12059   (eval "$ac_try") 2>&5
12060   ac_status=$?
12061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12062   (exit $ac_status); }; }; then
12063   ac_cv_lib_m_sin=yes
12064 else
12065   echo "$as_me: failed program was:" >&5
12066 sed 's/^/| /' conftest.$ac_ext >&5
12067
12068         ac_cv_lib_m_sin=no
12069 fi
12070
12071 rm -f core conftest.err conftest.$ac_objext \
12072       conftest$ac_exeext conftest.$ac_ext
12073 LIBS=$ac_check_lib_save_LIBS
12074 fi
12075 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
12076 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
12077 if test $ac_cv_lib_m_sin = yes; then
12078   cat >>confdefs.h <<_ACEOF
12079 #define HAVE_LIBM 1
12080 _ACEOF
12081
12082   LIBS="-lm $LIBS"
12083
12084 fi
12085
12086 if test "$llvm_cv_os_type" = "MingW" ; then
12087
12088 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
12089 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
12090 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
12091   echo $ECHO_N "(cached) $ECHO_C" >&6
12092 else
12093   ac_check_lib_save_LIBS=$LIBS
12094 LIBS="-limagehlp  $LIBS"
12095 cat >conftest.$ac_ext <<_ACEOF
12096 /* confdefs.h.  */
12097 _ACEOF
12098 cat confdefs.h >>conftest.$ac_ext
12099 cat >>conftest.$ac_ext <<_ACEOF
12100 /* end confdefs.h.  */
12101
12102
12103 int
12104 main ()
12105 {
12106 return main ();
12107   ;
12108   return 0;
12109 }
12110 _ACEOF
12111 rm -f conftest.$ac_objext conftest$ac_exeext
12112 if { (ac_try="$ac_link"
12113 case "(($ac_try" in
12114   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12115   *) ac_try_echo=$ac_try;;
12116 esac
12117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12118   (eval "$ac_link") 2>conftest.er1
12119   ac_status=$?
12120   grep -v '^ *+' conftest.er1 >conftest.err
12121   rm -f conftest.er1
12122   cat conftest.err >&5
12123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12124   (exit $ac_status); } &&
12125          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12126   { (case "(($ac_try" in
12127   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12128   *) ac_try_echo=$ac_try;;
12129 esac
12130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12131   (eval "$ac_try") 2>&5
12132   ac_status=$?
12133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12134   (exit $ac_status); }; } &&
12135          { ac_try='test -s conftest$ac_exeext'
12136   { (case "(($ac_try" in
12137   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12138   *) ac_try_echo=$ac_try;;
12139 esac
12140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12141   (eval "$ac_try") 2>&5
12142   ac_status=$?
12143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12144   (exit $ac_status); }; }; then
12145   ac_cv_lib_imagehlp_main=yes
12146 else
12147   echo "$as_me: failed program was:" >&5
12148 sed 's/^/| /' conftest.$ac_ext >&5
12149
12150         ac_cv_lib_imagehlp_main=no
12151 fi
12152
12153 rm -f core conftest.err conftest.$ac_objext \
12154       conftest$ac_exeext conftest.$ac_ext
12155 LIBS=$ac_check_lib_save_LIBS
12156 fi
12157 { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
12158 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
12159 if test $ac_cv_lib_imagehlp_main = yes; then
12160   cat >>confdefs.h <<_ACEOF
12161 #define HAVE_LIBIMAGEHLP 1
12162 _ACEOF
12163
12164   LIBS="-limagehlp $LIBS"
12165
12166 fi
12167
12168
12169 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
12170 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
12171 if test "${ac_cv_lib_psapi_main+set}" = set; then
12172   echo $ECHO_N "(cached) $ECHO_C" >&6
12173 else
12174   ac_check_lib_save_LIBS=$LIBS
12175 LIBS="-lpsapi  $LIBS"
12176 cat >conftest.$ac_ext <<_ACEOF
12177 /* confdefs.h.  */
12178 _ACEOF
12179 cat confdefs.h >>conftest.$ac_ext
12180 cat >>conftest.$ac_ext <<_ACEOF
12181 /* end confdefs.h.  */
12182
12183
12184 int
12185 main ()
12186 {
12187 return main ();
12188   ;
12189   return 0;
12190 }
12191 _ACEOF
12192 rm -f conftest.$ac_objext conftest$ac_exeext
12193 if { (ac_try="$ac_link"
12194 case "(($ac_try" in
12195   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12196   *) ac_try_echo=$ac_try;;
12197 esac
12198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12199   (eval "$ac_link") 2>conftest.er1
12200   ac_status=$?
12201   grep -v '^ *+' conftest.er1 >conftest.err
12202   rm -f conftest.er1
12203   cat conftest.err >&5
12204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12205   (exit $ac_status); } &&
12206          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12207   { (case "(($ac_try" in
12208   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12209   *) ac_try_echo=$ac_try;;
12210 esac
12211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12212   (eval "$ac_try") 2>&5
12213   ac_status=$?
12214   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12215   (exit $ac_status); }; } &&
12216          { ac_try='test -s conftest$ac_exeext'
12217   { (case "(($ac_try" in
12218   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12219   *) ac_try_echo=$ac_try;;
12220 esac
12221 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12222   (eval "$ac_try") 2>&5
12223   ac_status=$?
12224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12225   (exit $ac_status); }; }; then
12226   ac_cv_lib_psapi_main=yes
12227 else
12228   echo "$as_me: failed program was:" >&5
12229 sed 's/^/| /' conftest.$ac_ext >&5
12230
12231         ac_cv_lib_psapi_main=no
12232 fi
12233
12234 rm -f core conftest.err conftest.$ac_objext \
12235       conftest$ac_exeext conftest.$ac_ext
12236 LIBS=$ac_check_lib_save_LIBS
12237 fi
12238 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
12239 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
12240 if test $ac_cv_lib_psapi_main = yes; then
12241   cat >>confdefs.h <<_ACEOF
12242 #define HAVE_LIBPSAPI 1
12243 _ACEOF
12244
12245   LIBS="-lpsapi $LIBS"
12246
12247 fi
12248
12249 fi
12250
12251 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
12252 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
12253 if test "${ac_cv_search_dlopen+set}" = set; then
12254   echo $ECHO_N "(cached) $ECHO_C" >&6
12255 else
12256   ac_func_search_save_LIBS=$LIBS
12257 cat >conftest.$ac_ext <<_ACEOF
12258 /* confdefs.h.  */
12259 _ACEOF
12260 cat confdefs.h >>conftest.$ac_ext
12261 cat >>conftest.$ac_ext <<_ACEOF
12262 /* end confdefs.h.  */
12263
12264 /* Override any GCC internal prototype to avoid an error.
12265    Use char because int might match the return type of a GCC
12266    builtin and then its argument prototype would still apply.  */
12267 #ifdef __cplusplus
12268 extern "C"
12269 #endif
12270 char dlopen ();
12271 int
12272 main ()
12273 {
12274 return dlopen ();
12275   ;
12276   return 0;
12277 }
12278 _ACEOF
12279 for ac_lib in '' dl; do
12280   if test -z "$ac_lib"; then
12281     ac_res="none required"
12282   else
12283     ac_res=-l$ac_lib
12284     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12285   fi
12286   rm -f conftest.$ac_objext conftest$ac_exeext
12287 if { (ac_try="$ac_link"
12288 case "(($ac_try" in
12289   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12290   *) ac_try_echo=$ac_try;;
12291 esac
12292 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12293   (eval "$ac_link") 2>conftest.er1
12294   ac_status=$?
12295   grep -v '^ *+' conftest.er1 >conftest.err
12296   rm -f conftest.er1
12297   cat conftest.err >&5
12298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12299   (exit $ac_status); } &&
12300          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12301   { (case "(($ac_try" in
12302   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12303   *) ac_try_echo=$ac_try;;
12304 esac
12305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12306   (eval "$ac_try") 2>&5
12307   ac_status=$?
12308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12309   (exit $ac_status); }; } &&
12310          { ac_try='test -s conftest$ac_exeext'
12311   { (case "(($ac_try" in
12312   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12313   *) ac_try_echo=$ac_try;;
12314 esac
12315 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12316   (eval "$ac_try") 2>&5
12317   ac_status=$?
12318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12319   (exit $ac_status); }; }; then
12320   ac_cv_search_dlopen=$ac_res
12321 else
12322   echo "$as_me: failed program was:" >&5
12323 sed 's/^/| /' conftest.$ac_ext >&5
12324
12325
12326 fi
12327
12328 rm -f core conftest.err conftest.$ac_objext \
12329       conftest$ac_exeext
12330   if test "${ac_cv_search_dlopen+set}" = set; then
12331   break
12332 fi
12333 done
12334 if test "${ac_cv_search_dlopen+set}" = set; then
12335   :
12336 else
12337   ac_cv_search_dlopen=no
12338 fi
12339 rm conftest.$ac_ext
12340 LIBS=$ac_func_search_save_LIBS
12341 fi
12342 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
12343 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
12344 ac_res=$ac_cv_search_dlopen
12345 if test "$ac_res" != no; then
12346   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12347
12348 cat >>confdefs.h <<\_ACEOF
12349 #define HAVE_DLOPEN 1
12350 _ACEOF
12351
12352 else
12353   { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
12354 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
12355 fi
12356
12357
12358 if test "$llvm_cv_enable_libffi" = "yes" ; then
12359   { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
12360 echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
12361 if test "${ac_cv_search_ffi_call+set}" = set; then
12362   echo $ECHO_N "(cached) $ECHO_C" >&6
12363 else
12364   ac_func_search_save_LIBS=$LIBS
12365 cat >conftest.$ac_ext <<_ACEOF
12366 /* confdefs.h.  */
12367 _ACEOF
12368 cat confdefs.h >>conftest.$ac_ext
12369 cat >>conftest.$ac_ext <<_ACEOF
12370 /* end confdefs.h.  */
12371
12372 /* Override any GCC internal prototype to avoid an error.
12373    Use char because int might match the return type of a GCC
12374    builtin and then its argument prototype would still apply.  */
12375 #ifdef __cplusplus
12376 extern "C"
12377 #endif
12378 char ffi_call ();
12379 int
12380 main ()
12381 {
12382 return ffi_call ();
12383   ;
12384   return 0;
12385 }
12386 _ACEOF
12387 for ac_lib in '' ffi; do
12388   if test -z "$ac_lib"; then
12389     ac_res="none required"
12390   else
12391     ac_res=-l$ac_lib
12392     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12393   fi
12394   rm -f conftest.$ac_objext conftest$ac_exeext
12395 if { (ac_try="$ac_link"
12396 case "(($ac_try" in
12397   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12398   *) ac_try_echo=$ac_try;;
12399 esac
12400 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12401   (eval "$ac_link") 2>conftest.er1
12402   ac_status=$?
12403   grep -v '^ *+' conftest.er1 >conftest.err
12404   rm -f conftest.er1
12405   cat conftest.err >&5
12406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12407   (exit $ac_status); } &&
12408          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12409   { (case "(($ac_try" in
12410   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12411   *) ac_try_echo=$ac_try;;
12412 esac
12413 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12414   (eval "$ac_try") 2>&5
12415   ac_status=$?
12416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12417   (exit $ac_status); }; } &&
12418          { ac_try='test -s conftest$ac_exeext'
12419   { (case "(($ac_try" in
12420   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12421   *) ac_try_echo=$ac_try;;
12422 esac
12423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12424   (eval "$ac_try") 2>&5
12425   ac_status=$?
12426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12427   (exit $ac_status); }; }; then
12428   ac_cv_search_ffi_call=$ac_res
12429 else
12430   echo "$as_me: failed program was:" >&5
12431 sed 's/^/| /' conftest.$ac_ext >&5
12432
12433
12434 fi
12435
12436 rm -f core conftest.err conftest.$ac_objext \
12437       conftest$ac_exeext
12438   if test "${ac_cv_search_ffi_call+set}" = set; then
12439   break
12440 fi
12441 done
12442 if test "${ac_cv_search_ffi_call+set}" = set; then
12443   :
12444 else
12445   ac_cv_search_ffi_call=no
12446 fi
12447 rm conftest.$ac_ext
12448 LIBS=$ac_func_search_save_LIBS
12449 fi
12450 { echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
12451 echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
12452 ac_res=$ac_cv_search_ffi_call
12453 if test "$ac_res" != no; then
12454   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12455
12456 cat >>confdefs.h <<\_ACEOF
12457 #define HAVE_FFI_CALL 1
12458 _ACEOF
12459
12460 else
12461   { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
12462 echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
12463    { (exit 1); exit 1; }; }
12464 fi
12465
12466 fi
12467
12468 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
12469 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
12470 if test "${ac_cv_search_mallinfo+set}" = set; then
12471   echo $ECHO_N "(cached) $ECHO_C" >&6
12472 else
12473   ac_func_search_save_LIBS=$LIBS
12474 cat >conftest.$ac_ext <<_ACEOF
12475 /* confdefs.h.  */
12476 _ACEOF
12477 cat confdefs.h >>conftest.$ac_ext
12478 cat >>conftest.$ac_ext <<_ACEOF
12479 /* end confdefs.h.  */
12480
12481 /* Override any GCC internal prototype to avoid an error.
12482    Use char because int might match the return type of a GCC
12483    builtin and then its argument prototype would still apply.  */
12484 #ifdef __cplusplus
12485 extern "C"
12486 #endif
12487 char mallinfo ();
12488 int
12489 main ()
12490 {
12491 return mallinfo ();
12492   ;
12493   return 0;
12494 }
12495 _ACEOF
12496 for ac_lib in '' malloc; do
12497   if test -z "$ac_lib"; then
12498     ac_res="none required"
12499   else
12500     ac_res=-l$ac_lib
12501     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12502   fi
12503   rm -f conftest.$ac_objext conftest$ac_exeext
12504 if { (ac_try="$ac_link"
12505 case "(($ac_try" in
12506   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12507   *) ac_try_echo=$ac_try;;
12508 esac
12509 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12510   (eval "$ac_link") 2>conftest.er1
12511   ac_status=$?
12512   grep -v '^ *+' conftest.er1 >conftest.err
12513   rm -f conftest.er1
12514   cat conftest.err >&5
12515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12516   (exit $ac_status); } &&
12517          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12518   { (case "(($ac_try" in
12519   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12520   *) ac_try_echo=$ac_try;;
12521 esac
12522 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12523   (eval "$ac_try") 2>&5
12524   ac_status=$?
12525   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12526   (exit $ac_status); }; } &&
12527          { ac_try='test -s conftest$ac_exeext'
12528   { (case "(($ac_try" in
12529   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12530   *) ac_try_echo=$ac_try;;
12531 esac
12532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12533   (eval "$ac_try") 2>&5
12534   ac_status=$?
12535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12536   (exit $ac_status); }; }; then
12537   ac_cv_search_mallinfo=$ac_res
12538 else
12539   echo "$as_me: failed program was:" >&5
12540 sed 's/^/| /' conftest.$ac_ext >&5
12541
12542
12543 fi
12544
12545 rm -f core conftest.err conftest.$ac_objext \
12546       conftest$ac_exeext
12547   if test "${ac_cv_search_mallinfo+set}" = set; then
12548   break
12549 fi
12550 done
12551 if test "${ac_cv_search_mallinfo+set}" = set; then
12552   :
12553 else
12554   ac_cv_search_mallinfo=no
12555 fi
12556 rm conftest.$ac_ext
12557 LIBS=$ac_func_search_save_LIBS
12558 fi
12559 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
12560 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
12561 ac_res=$ac_cv_search_mallinfo
12562 if test "$ac_res" != no; then
12563   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12564
12565 cat >>confdefs.h <<\_ACEOF
12566 #define HAVE_MALLINFO 1
12567 _ACEOF
12568
12569 fi
12570
12571
12572 if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
12573
12574 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
12575 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
12576 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
12577   echo $ECHO_N "(cached) $ECHO_C" >&6
12578 else
12579   ac_check_lib_save_LIBS=$LIBS
12580 LIBS="-lpthread  $LIBS"
12581 cat >conftest.$ac_ext <<_ACEOF
12582 /* confdefs.h.  */
12583 _ACEOF
12584 cat confdefs.h >>conftest.$ac_ext
12585 cat >>conftest.$ac_ext <<_ACEOF
12586 /* end confdefs.h.  */
12587
12588 /* Override any GCC internal prototype to avoid an error.
12589    Use char because int might match the return type of a GCC
12590    builtin and then its argument prototype would still apply.  */
12591 #ifdef __cplusplus
12592 extern "C"
12593 #endif
12594 char pthread_mutex_init ();
12595 int
12596 main ()
12597 {
12598 return pthread_mutex_init ();
12599   ;
12600   return 0;
12601 }
12602 _ACEOF
12603 rm -f conftest.$ac_objext conftest$ac_exeext
12604 if { (ac_try="$ac_link"
12605 case "(($ac_try" in
12606   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12607   *) ac_try_echo=$ac_try;;
12608 esac
12609 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12610   (eval "$ac_link") 2>conftest.er1
12611   ac_status=$?
12612   grep -v '^ *+' conftest.er1 >conftest.err
12613   rm -f conftest.er1
12614   cat conftest.err >&5
12615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12616   (exit $ac_status); } &&
12617          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12618   { (case "(($ac_try" in
12619   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12620   *) ac_try_echo=$ac_try;;
12621 esac
12622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12623   (eval "$ac_try") 2>&5
12624   ac_status=$?
12625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12626   (exit $ac_status); }; } &&
12627          { ac_try='test -s conftest$ac_exeext'
12628   { (case "(($ac_try" in
12629   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12630   *) ac_try_echo=$ac_try;;
12631 esac
12632 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12633   (eval "$ac_try") 2>&5
12634   ac_status=$?
12635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12636   (exit $ac_status); }; }; then
12637   ac_cv_lib_pthread_pthread_mutex_init=yes
12638 else
12639   echo "$as_me: failed program was:" >&5
12640 sed 's/^/| /' conftest.$ac_ext >&5
12641
12642         ac_cv_lib_pthread_pthread_mutex_init=no
12643 fi
12644
12645 rm -f core conftest.err conftest.$ac_objext \
12646       conftest$ac_exeext conftest.$ac_ext
12647 LIBS=$ac_check_lib_save_LIBS
12648 fi
12649 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
12650 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
12651 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
12652   cat >>confdefs.h <<_ACEOF
12653 #define HAVE_LIBPTHREAD 1
12654 _ACEOF
12655
12656   LIBS="-lpthread $LIBS"
12657
12658 fi
12659
12660   { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
12661 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
12662 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12663   echo $ECHO_N "(cached) $ECHO_C" >&6
12664 else
12665   ac_func_search_save_LIBS=$LIBS
12666 cat >conftest.$ac_ext <<_ACEOF
12667 /* confdefs.h.  */
12668 _ACEOF
12669 cat confdefs.h >>conftest.$ac_ext
12670 cat >>conftest.$ac_ext <<_ACEOF
12671 /* end confdefs.h.  */
12672
12673 /* Override any GCC internal prototype to avoid an error.
12674    Use char because int might match the return type of a GCC
12675    builtin and then its argument prototype would still apply.  */
12676 #ifdef __cplusplus
12677 extern "C"
12678 #endif
12679 char pthread_mutex_lock ();
12680 int
12681 main ()
12682 {
12683 return pthread_mutex_lock ();
12684   ;
12685   return 0;
12686 }
12687 _ACEOF
12688 for ac_lib in '' pthread; do
12689   if test -z "$ac_lib"; then
12690     ac_res="none required"
12691   else
12692     ac_res=-l$ac_lib
12693     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12694   fi
12695   rm -f conftest.$ac_objext conftest$ac_exeext
12696 if { (ac_try="$ac_link"
12697 case "(($ac_try" in
12698   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12699   *) ac_try_echo=$ac_try;;
12700 esac
12701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12702   (eval "$ac_link") 2>conftest.er1
12703   ac_status=$?
12704   grep -v '^ *+' conftest.er1 >conftest.err
12705   rm -f conftest.er1
12706   cat conftest.err >&5
12707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12708   (exit $ac_status); } &&
12709          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12710   { (case "(($ac_try" in
12711   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12712   *) ac_try_echo=$ac_try;;
12713 esac
12714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12715   (eval "$ac_try") 2>&5
12716   ac_status=$?
12717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12718   (exit $ac_status); }; } &&
12719          { ac_try='test -s conftest$ac_exeext'
12720   { (case "(($ac_try" in
12721   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12722   *) ac_try_echo=$ac_try;;
12723 esac
12724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12725   (eval "$ac_try") 2>&5
12726   ac_status=$?
12727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12728   (exit $ac_status); }; }; then
12729   ac_cv_search_pthread_mutex_lock=$ac_res
12730 else
12731   echo "$as_me: failed program was:" >&5
12732 sed 's/^/| /' conftest.$ac_ext >&5
12733
12734
12735 fi
12736
12737 rm -f core conftest.err conftest.$ac_objext \
12738       conftest$ac_exeext
12739   if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12740   break
12741 fi
12742 done
12743 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12744   :
12745 else
12746   ac_cv_search_pthread_mutex_lock=no
12747 fi
12748 rm conftest.$ac_ext
12749 LIBS=$ac_func_search_save_LIBS
12750 fi
12751 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
12752 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
12753 ac_res=$ac_cv_search_pthread_mutex_lock
12754 if test "$ac_res" != no; then
12755   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12756
12757 cat >>confdefs.h <<\_ACEOF
12758 #define HAVE_PTHREAD_MUTEX_LOCK 1
12759 _ACEOF
12760
12761 fi
12762
12763   { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
12764 echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
12765 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
12766   echo $ECHO_N "(cached) $ECHO_C" >&6
12767 else
12768   ac_func_search_save_LIBS=$LIBS
12769 cat >conftest.$ac_ext <<_ACEOF
12770 /* confdefs.h.  */
12771 _ACEOF
12772 cat confdefs.h >>conftest.$ac_ext
12773 cat >>conftest.$ac_ext <<_ACEOF
12774 /* end confdefs.h.  */
12775
12776 /* Override any GCC internal prototype to avoid an error.
12777    Use char because int might match the return type of a GCC
12778    builtin and then its argument prototype would still apply.  */
12779 #ifdef __cplusplus
12780 extern "C"
12781 #endif
12782 char pthread_rwlock_init ();
12783 int
12784 main ()
12785 {
12786 return pthread_rwlock_init ();
12787   ;
12788   return 0;
12789 }
12790 _ACEOF
12791 for ac_lib in '' pthread; do
12792   if test -z "$ac_lib"; then
12793     ac_res="none required"
12794   else
12795     ac_res=-l$ac_lib
12796     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12797   fi
12798   rm -f conftest.$ac_objext conftest$ac_exeext
12799 if { (ac_try="$ac_link"
12800 case "(($ac_try" in
12801   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12802   *) ac_try_echo=$ac_try;;
12803 esac
12804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12805   (eval "$ac_link") 2>conftest.er1
12806   ac_status=$?
12807   grep -v '^ *+' conftest.er1 >conftest.err
12808   rm -f conftest.er1
12809   cat conftest.err >&5
12810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12811   (exit $ac_status); } &&
12812          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
12822          { ac_try='test -s conftest$ac_exeext'
12823   { (case "(($ac_try" in
12824   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12825   *) ac_try_echo=$ac_try;;
12826 esac
12827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12828   (eval "$ac_try") 2>&5
12829   ac_status=$?
12830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12831   (exit $ac_status); }; }; then
12832   ac_cv_search_pthread_rwlock_init=$ac_res
12833 else
12834   echo "$as_me: failed program was:" >&5
12835 sed 's/^/| /' conftest.$ac_ext >&5
12836
12837
12838 fi
12839
12840 rm -f core conftest.err conftest.$ac_objext \
12841       conftest$ac_exeext
12842   if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
12843   break
12844 fi
12845 done
12846 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
12847   :
12848 else
12849   ac_cv_search_pthread_rwlock_init=no
12850 fi
12851 rm conftest.$ac_ext
12852 LIBS=$ac_func_search_save_LIBS
12853 fi
12854 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
12855 echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
12856 ac_res=$ac_cv_search_pthread_rwlock_init
12857 if test "$ac_res" != no; then
12858   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12859
12860 cat >>confdefs.h <<\_ACEOF
12861 #define HAVE_PTHREAD_RWLOCK_INIT 1
12862 _ACEOF
12863
12864 fi
12865
12866   { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
12867 echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
12868 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
12869   echo $ECHO_N "(cached) $ECHO_C" >&6
12870 else
12871   ac_func_search_save_LIBS=$LIBS
12872 cat >conftest.$ac_ext <<_ACEOF
12873 /* confdefs.h.  */
12874 _ACEOF
12875 cat confdefs.h >>conftest.$ac_ext
12876 cat >>conftest.$ac_ext <<_ACEOF
12877 /* end confdefs.h.  */
12878
12879 /* Override any GCC internal prototype to avoid an error.
12880    Use char because int might match the return type of a GCC
12881    builtin and then its argument prototype would still apply.  */
12882 #ifdef __cplusplus
12883 extern "C"
12884 #endif
12885 char pthread_getspecific ();
12886 int
12887 main ()
12888 {
12889 return pthread_getspecific ();
12890   ;
12891   return 0;
12892 }
12893 _ACEOF
12894 for ac_lib in '' pthread; do
12895   if test -z "$ac_lib"; then
12896     ac_res="none required"
12897   else
12898     ac_res=-l$ac_lib
12899     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12900   fi
12901   rm -f conftest.$ac_objext conftest$ac_exeext
12902 if { (ac_try="$ac_link"
12903 case "(($ac_try" in
12904   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12905   *) ac_try_echo=$ac_try;;
12906 esac
12907 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12908   (eval "$ac_link") 2>conftest.er1
12909   ac_status=$?
12910   grep -v '^ *+' conftest.er1 >conftest.err
12911   rm -f conftest.er1
12912   cat conftest.err >&5
12913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12914   (exit $ac_status); } &&
12915          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
12925          { ac_try='test -s conftest$ac_exeext'
12926   { (case "(($ac_try" in
12927   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12928   *) ac_try_echo=$ac_try;;
12929 esac
12930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12931   (eval "$ac_try") 2>&5
12932   ac_status=$?
12933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12934   (exit $ac_status); }; }; then
12935   ac_cv_search_pthread_getspecific=$ac_res
12936 else
12937   echo "$as_me: failed program was:" >&5
12938 sed 's/^/| /' conftest.$ac_ext >&5
12939
12940
12941 fi
12942
12943 rm -f core conftest.err conftest.$ac_objext \
12944       conftest$ac_exeext
12945   if test "${ac_cv_search_pthread_getspecific+set}" = set; then
12946   break
12947 fi
12948 done
12949 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
12950   :
12951 else
12952   ac_cv_search_pthread_getspecific=no
12953 fi
12954 rm conftest.$ac_ext
12955 LIBS=$ac_func_search_save_LIBS
12956 fi
12957 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
12958 echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
12959 ac_res=$ac_cv_search_pthread_getspecific
12960 if test "$ac_res" != no; then
12961   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12962
12963 cat >>confdefs.h <<\_ACEOF
12964 #define HAVE_PTHREAD_GETSPECIFIC 1
12965 _ACEOF
12966
12967 fi
12968
12969 fi
12970
12971
12972 # Check whether --with-udis86 was given.
12973 if test "${with_udis86+set}" = set; then
12974   withval=$with_udis86;
12975       USE_UDIS86=1
12976
12977       case "$withval" in
12978         /usr/lib|yes) ;;
12979         *) LDFLAGS="$LDFLAGS -L${withval}" ;;
12980       esac
12981
12982 { echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
12983 echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
12984 if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
12985   echo $ECHO_N "(cached) $ECHO_C" >&6
12986 else
12987   ac_check_lib_save_LIBS=$LIBS
12988 LIBS="-ludis86  $LIBS"
12989 cat >conftest.$ac_ext <<_ACEOF
12990 /* confdefs.h.  */
12991 _ACEOF
12992 cat confdefs.h >>conftest.$ac_ext
12993 cat >>conftest.$ac_ext <<_ACEOF
12994 /* end confdefs.h.  */
12995
12996 /* Override any GCC internal prototype to avoid an error.
12997    Use char because int might match the return type of a GCC
12998    builtin and then its argument prototype would still apply.  */
12999 #ifdef __cplusplus
13000 extern "C"
13001 #endif
13002 char ud_init ();
13003 int
13004 main ()
13005 {
13006 return ud_init ();
13007   ;
13008   return 0;
13009 }
13010 _ACEOF
13011 rm -f conftest.$ac_objext conftest$ac_exeext
13012 if { (ac_try="$ac_link"
13013 case "(($ac_try" in
13014   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13015   *) ac_try_echo=$ac_try;;
13016 esac
13017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13018   (eval "$ac_link") 2>conftest.er1
13019   ac_status=$?
13020   grep -v '^ *+' conftest.er1 >conftest.err
13021   rm -f conftest.er1
13022   cat conftest.err >&5
13023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13024   (exit $ac_status); } &&
13025          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13026   { (case "(($ac_try" in
13027   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13028   *) ac_try_echo=$ac_try;;
13029 esac
13030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13031   (eval "$ac_try") 2>&5
13032   ac_status=$?
13033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13034   (exit $ac_status); }; } &&
13035          { ac_try='test -s conftest$ac_exeext'
13036   { (case "(($ac_try" in
13037   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13038   *) ac_try_echo=$ac_try;;
13039 esac
13040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13041   (eval "$ac_try") 2>&5
13042   ac_status=$?
13043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13044   (exit $ac_status); }; }; then
13045   ac_cv_lib_udis86_ud_init=yes
13046 else
13047   echo "$as_me: failed program was:" >&5
13048 sed 's/^/| /' conftest.$ac_ext >&5
13049
13050         ac_cv_lib_udis86_ud_init=no
13051 fi
13052
13053 rm -f core conftest.err conftest.$ac_objext \
13054       conftest$ac_exeext conftest.$ac_ext
13055 LIBS=$ac_check_lib_save_LIBS
13056 fi
13057 { echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
13058 echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
13059 if test $ac_cv_lib_udis86_ud_init = yes; then
13060   cat >>confdefs.h <<_ACEOF
13061 #define HAVE_LIBUDIS86 1
13062 _ACEOF
13063
13064   LIBS="-ludis86 $LIBS"
13065
13066 else
13067
13068         echo "Error! You need to have libudis86 around."
13069         exit -1
13070
13071 fi
13072
13073
13074 else
13075   USE_UDIS86=0
13076
13077 fi
13078
13079
13080 cat >>confdefs.h <<_ACEOF
13081 #define USE_UDIS86 $USE_UDIS86
13082 _ACEOF
13083
13084
13085
13086 # Check whether --with-oprofile was given.
13087 if test "${with_oprofile+set}" = set; then
13088   withval=$with_oprofile;
13089       USE_OPROFILE=1
13090
13091       case "$withval" in
13092         /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
13093         no) llvm_cv_oppath=
13094             USE_OPROFILE=0
13095  ;;
13096         *) llvm_cv_oppath="${withval}/lib/oprofile"
13097            CPPFLAGS="-I${withval}/include";;
13098       esac
13099       case $llvm_cv_os_type in
13100         Linux)
13101           if test -n "$llvm_cv_oppath" ; then
13102             LIBS="$LIBS -lopagent -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
13103                                                             { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
13104 echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
13105 if test "${ac_cv_search_bfd_init+set}" = set; then
13106   echo $ECHO_N "(cached) $ECHO_C" >&6
13107 else
13108   ac_func_search_save_LIBS=$LIBS
13109 cat >conftest.$ac_ext <<_ACEOF
13110 /* confdefs.h.  */
13111 _ACEOF
13112 cat confdefs.h >>conftest.$ac_ext
13113 cat >>conftest.$ac_ext <<_ACEOF
13114 /* end confdefs.h.  */
13115
13116 /* Override any GCC internal prototype to avoid an error.
13117    Use char because int might match the return type of a GCC
13118    builtin and then its argument prototype would still apply.  */
13119 #ifdef __cplusplus
13120 extern "C"
13121 #endif
13122 char bfd_init ();
13123 int
13124 main ()
13125 {
13126 return bfd_init ();
13127   ;
13128   return 0;
13129 }
13130 _ACEOF
13131 for ac_lib in '' bfd; do
13132   if test -z "$ac_lib"; then
13133     ac_res="none required"
13134   else
13135     ac_res=-l$ac_lib
13136     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13137   fi
13138   rm -f conftest.$ac_objext conftest$ac_exeext
13139 if { (ac_try="$ac_link"
13140 case "(($ac_try" in
13141   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13142   *) ac_try_echo=$ac_try;;
13143 esac
13144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13145   (eval "$ac_link") 2>conftest.er1
13146   ac_status=$?
13147   grep -v '^ *+' conftest.er1 >conftest.err
13148   rm -f conftest.er1
13149   cat conftest.err >&5
13150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13151   (exit $ac_status); } &&
13152          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13153   { (case "(($ac_try" in
13154   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13155   *) ac_try_echo=$ac_try;;
13156 esac
13157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13158   (eval "$ac_try") 2>&5
13159   ac_status=$?
13160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13161   (exit $ac_status); }; } &&
13162          { ac_try='test -s conftest$ac_exeext'
13163   { (case "(($ac_try" in
13164   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13165   *) ac_try_echo=$ac_try;;
13166 esac
13167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13168   (eval "$ac_try") 2>&5
13169   ac_status=$?
13170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13171   (exit $ac_status); }; }; then
13172   ac_cv_search_bfd_init=$ac_res
13173 else
13174   echo "$as_me: failed program was:" >&5
13175 sed 's/^/| /' conftest.$ac_ext >&5
13176
13177
13178 fi
13179
13180 rm -f core conftest.err conftest.$ac_objext \
13181       conftest$ac_exeext
13182   if test "${ac_cv_search_bfd_init+set}" = set; then
13183   break
13184 fi
13185 done
13186 if test "${ac_cv_search_bfd_init+set}" = set; then
13187   :
13188 else
13189   ac_cv_search_bfd_init=no
13190 fi
13191 rm conftest.$ac_ext
13192 LIBS=$ac_func_search_save_LIBS
13193 fi
13194 { echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
13195 echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
13196 ac_res=$ac_cv_search_bfd_init
13197 if test "$ac_res" != no; then
13198   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13199
13200 fi
13201
13202             { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
13203 echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
13204 if test "${ac_cv_search_op_open_agent+set}" = set; then
13205   echo $ECHO_N "(cached) $ECHO_C" >&6
13206 else
13207   ac_func_search_save_LIBS=$LIBS
13208 cat >conftest.$ac_ext <<_ACEOF
13209 /* confdefs.h.  */
13210 _ACEOF
13211 cat confdefs.h >>conftest.$ac_ext
13212 cat >>conftest.$ac_ext <<_ACEOF
13213 /* end confdefs.h.  */
13214
13215 /* Override any GCC internal prototype to avoid an error.
13216    Use char because int might match the return type of a GCC
13217    builtin and then its argument prototype would still apply.  */
13218 #ifdef __cplusplus
13219 extern "C"
13220 #endif
13221 char op_open_agent ();
13222 int
13223 main ()
13224 {
13225 return op_open_agent ();
13226   ;
13227   return 0;
13228 }
13229 _ACEOF
13230 for ac_lib in '' opagent; do
13231   if test -z "$ac_lib"; then
13232     ac_res="none required"
13233   else
13234     ac_res=-l$ac_lib
13235     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13236   fi
13237   rm -f conftest.$ac_objext conftest$ac_exeext
13238 if { (ac_try="$ac_link"
13239 case "(($ac_try" in
13240   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13241   *) ac_try_echo=$ac_try;;
13242 esac
13243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13244   (eval "$ac_link") 2>conftest.er1
13245   ac_status=$?
13246   grep -v '^ *+' conftest.er1 >conftest.err
13247   rm -f conftest.er1
13248   cat conftest.err >&5
13249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13250   (exit $ac_status); } &&
13251          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13252   { (case "(($ac_try" in
13253   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13254   *) ac_try_echo=$ac_try;;
13255 esac
13256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13257   (eval "$ac_try") 2>&5
13258   ac_status=$?
13259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13260   (exit $ac_status); }; } &&
13261          { ac_try='test -s conftest$ac_exeext'
13262   { (case "(($ac_try" in
13263   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13264   *) ac_try_echo=$ac_try;;
13265 esac
13266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13267   (eval "$ac_try") 2>&5
13268   ac_status=$?
13269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13270   (exit $ac_status); }; }; then
13271   ac_cv_search_op_open_agent=$ac_res
13272 else
13273   echo "$as_me: failed program was:" >&5
13274 sed 's/^/| /' conftest.$ac_ext >&5
13275
13276
13277 fi
13278
13279 rm -f core conftest.err conftest.$ac_objext \
13280       conftest$ac_exeext
13281   if test "${ac_cv_search_op_open_agent+set}" = set; then
13282   break
13283 fi
13284 done
13285 if test "${ac_cv_search_op_open_agent+set}" = set; then
13286   :
13287 else
13288   ac_cv_search_op_open_agent=no
13289 fi
13290 rm conftest.$ac_ext
13291 LIBS=$ac_func_search_save_LIBS
13292 fi
13293 { echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
13294 echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
13295 ac_res=$ac_cv_search_op_open_agent
13296 if test "$ac_res" != no; then
13297   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13298
13299 else
13300
13301               echo "Error! You need to have libopagent around."
13302               exit -1
13303
13304 fi
13305
13306             if test "${ac_cv_header_opagent_h+set}" = set; then
13307   { echo "$as_me:$LINENO: checking for opagent.h" >&5
13308 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13309 if test "${ac_cv_header_opagent_h+set}" = set; then
13310   echo $ECHO_N "(cached) $ECHO_C" >&6
13311 fi
13312 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13313 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13314 else
13315   # Is the header compilable?
13316 { echo "$as_me:$LINENO: checking opagent.h usability" >&5
13317 echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
13318 cat >conftest.$ac_ext <<_ACEOF
13319 /* confdefs.h.  */
13320 _ACEOF
13321 cat confdefs.h >>conftest.$ac_ext
13322 cat >>conftest.$ac_ext <<_ACEOF
13323 /* end confdefs.h.  */
13324 $ac_includes_default
13325 #include <opagent.h>
13326 _ACEOF
13327 rm -f conftest.$ac_objext
13328 if { (ac_try="$ac_compile"
13329 case "(($ac_try" in
13330   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13331   *) ac_try_echo=$ac_try;;
13332 esac
13333 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13334   (eval "$ac_compile") 2>conftest.er1
13335   ac_status=$?
13336   grep -v '^ *+' conftest.er1 >conftest.err
13337   rm -f conftest.er1
13338   cat conftest.err >&5
13339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13340   (exit $ac_status); } &&
13341          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13342   { (case "(($ac_try" in
13343   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13344   *) ac_try_echo=$ac_try;;
13345 esac
13346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13347   (eval "$ac_try") 2>&5
13348   ac_status=$?
13349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13350   (exit $ac_status); }; } &&
13351          { ac_try='test -s conftest.$ac_objext'
13352   { (case "(($ac_try" in
13353   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13354   *) ac_try_echo=$ac_try;;
13355 esac
13356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13357   (eval "$ac_try") 2>&5
13358   ac_status=$?
13359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13360   (exit $ac_status); }; }; then
13361   ac_header_compiler=yes
13362 else
13363   echo "$as_me: failed program was:" >&5
13364 sed 's/^/| /' conftest.$ac_ext >&5
13365
13366         ac_header_compiler=no
13367 fi
13368
13369 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13370 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13371 echo "${ECHO_T}$ac_header_compiler" >&6; }
13372
13373 # Is the header present?
13374 { echo "$as_me:$LINENO: checking opagent.h presence" >&5
13375 echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
13376 cat >conftest.$ac_ext <<_ACEOF
13377 /* confdefs.h.  */
13378 _ACEOF
13379 cat confdefs.h >>conftest.$ac_ext
13380 cat >>conftest.$ac_ext <<_ACEOF
13381 /* end confdefs.h.  */
13382 #include <opagent.h>
13383 _ACEOF
13384 if { (ac_try="$ac_cpp conftest.$ac_ext"
13385 case "(($ac_try" in
13386   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13387   *) ac_try_echo=$ac_try;;
13388 esac
13389 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13390   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13391   ac_status=$?
13392   grep -v '^ *+' conftest.er1 >conftest.err
13393   rm -f conftest.er1
13394   cat conftest.err >&5
13395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13396   (exit $ac_status); } >/dev/null; then
13397   if test -s conftest.err; then
13398     ac_cpp_err=$ac_c_preproc_warn_flag
13399     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13400   else
13401     ac_cpp_err=
13402   fi
13403 else
13404   ac_cpp_err=yes
13405 fi
13406 if test -z "$ac_cpp_err"; then
13407   ac_header_preproc=yes
13408 else
13409   echo "$as_me: failed program was:" >&5
13410 sed 's/^/| /' conftest.$ac_ext >&5
13411
13412   ac_header_preproc=no
13413 fi
13414
13415 rm -f conftest.err conftest.$ac_ext
13416 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13417 echo "${ECHO_T}$ac_header_preproc" >&6; }
13418
13419 # So?  What about this header?
13420 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13421   yes:no: )
13422     { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
13423 echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13424     { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
13425 echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
13426     ac_header_preproc=yes
13427     ;;
13428   no:yes:* )
13429     { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
13430 echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
13431     { echo "$as_me:$LINENO: WARNING: opagent.h:     check for missing prerequisite headers?" >&5
13432 echo "$as_me: WARNING: opagent.h:     check for missing prerequisite headers?" >&2;}
13433     { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
13434 echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
13435     { echo "$as_me:$LINENO: WARNING: opagent.h:     section \"Present But Cannot Be Compiled\"" >&5
13436 echo "$as_me: WARNING: opagent.h:     section \"Present But Cannot Be Compiled\"" >&2;}
13437     { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
13438 echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
13439     { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
13440 echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
13441     ( cat <<\_ASBOX
13442 ## ------------------------------------ ##
13443 ## Report this to http://llvm.org/bugs/ ##
13444 ## ------------------------------------ ##
13445 _ASBOX
13446      ) | sed "s/^/$as_me: WARNING:     /" >&2
13447     ;;
13448 esac
13449 { echo "$as_me:$LINENO: checking for opagent.h" >&5
13450 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13451 if test "${ac_cv_header_opagent_h+set}" = set; then
13452   echo $ECHO_N "(cached) $ECHO_C" >&6
13453 else
13454   ac_cv_header_opagent_h=$ac_header_preproc
13455 fi
13456 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13457 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13458
13459 fi
13460 if test $ac_cv_header_opagent_h = yes; then
13461   :
13462 else
13463
13464               echo "Error! You need to have opagent.h around."
13465               exit -1
13466
13467 fi
13468
13469
13470           fi ;;
13471         *)
13472           { { echo "$as_me:$LINENO: error: OProfile support is available on Linux only." >&5
13473 echo "$as_me: error: OProfile support is available on Linux only." >&2;}
13474    { (exit 1); exit 1; }; } ;;
13475       esac
13476
13477 else
13478
13479       USE_OPROFILE=0
13480
13481
13482 fi
13483
13484
13485 cat >>confdefs.h <<_ACEOF
13486 #define LLVM_USE_OPROFILE $USE_OPROFILE
13487 _ACEOF
13488
13489
13490
13491 # Check whether --with-intel-jitevents was given.
13492 if test "${with_intel_jitevents+set}" = set; then
13493   withval=$with_intel_jitevents;
13494       case $llvm_cv_os_type in
13495         Linux|Win32|Cygwin|MingW) ;;
13496         *)
13497           { { echo "$as_me:$LINENO: error:
13498             Intel JIT API support is available on Linux and Windows only.\"" >&5
13499 echo "$as_me: error:
13500             Intel JIT API support is available on Linux and Windows only.\"" >&2;}
13501    { (exit 1); exit 1; }; } ;;
13502       esac
13503
13504       USE_INTEL_JITEVENTS=1
13505
13506       case "$llvm_cv_target_arch" in
13507         x86)    llvm_intel_jitevents_archdir="lib32";;
13508         x86_64) llvm_intel_jitevents_archdir="lib64";;
13509         *)      echo "Target architecture $llvm_cv_target_arch does not support Intel JIT Events API"
13510                 exit -1;;
13511       esac
13512       INTEL_JITEVENTS_INCDIR="/opt/intel/vtune_amplifier_xe_2011/include"
13513       INTEL_JITEVENTS_LIBDIR="/opt/intel/vtune_amplifier_xe_2011/$llvm_intel_jitevents_archdir"
13514       case "$withval" in
13515         /* | [A-Za-z]:[\\/]*) INTEL_JITEVENTS_INCDIR=$withval/include
13516                                   INTEL_JITEVENTS_LIBDIR=$withval/$llvm_intel_jitevents_archdir ;;
13517         *) ;;
13518       esac
13519
13520
13521
13522
13523       LIBS="$LIBS -L${INTEL_JITEVENTS_LIBDIR}"
13524       CPPFLAGS="$CPPFLAGS -I$INTEL_JITEVENTS_INCDIR"
13525
13526       { echo "$as_me:$LINENO: checking for library containing iJIT_IsProfilingActive" >&5
13527 echo $ECHO_N "checking for library containing iJIT_IsProfilingActive... $ECHO_C" >&6; }
13528 if test "${ac_cv_search_iJIT_IsProfilingActive+set}" = set; then
13529   echo $ECHO_N "(cached) $ECHO_C" >&6
13530 else
13531   ac_func_search_save_LIBS=$LIBS
13532 cat >conftest.$ac_ext <<_ACEOF
13533 /* confdefs.h.  */
13534 _ACEOF
13535 cat confdefs.h >>conftest.$ac_ext
13536 cat >>conftest.$ac_ext <<_ACEOF
13537 /* end confdefs.h.  */
13538
13539 /* Override any GCC internal prototype to avoid an error.
13540    Use char because int might match the return type of a GCC
13541    builtin and then its argument prototype would still apply.  */
13542 #ifdef __cplusplus
13543 extern "C"
13544 #endif
13545 char iJIT_IsProfilingActive ();
13546 int
13547 main ()
13548 {
13549 return iJIT_IsProfilingActive ();
13550   ;
13551   return 0;
13552 }
13553 _ACEOF
13554 for ac_lib in '' jitprofiling; do
13555   if test -z "$ac_lib"; then
13556     ac_res="none required"
13557   else
13558     ac_res=-l$ac_lib
13559     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13560   fi
13561   rm -f conftest.$ac_objext conftest$ac_exeext
13562 if { (ac_try="$ac_link"
13563 case "(($ac_try" in
13564   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13565   *) ac_try_echo=$ac_try;;
13566 esac
13567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13568   (eval "$ac_link") 2>conftest.er1
13569   ac_status=$?
13570   grep -v '^ *+' conftest.er1 >conftest.err
13571   rm -f conftest.er1
13572   cat conftest.err >&5
13573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13574   (exit $ac_status); } &&
13575          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13576   { (case "(($ac_try" in
13577   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13578   *) ac_try_echo=$ac_try;;
13579 esac
13580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13581   (eval "$ac_try") 2>&5
13582   ac_status=$?
13583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13584   (exit $ac_status); }; } &&
13585          { ac_try='test -s conftest$ac_exeext'
13586   { (case "(($ac_try" in
13587   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13588   *) ac_try_echo=$ac_try;;
13589 esac
13590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13591   (eval "$ac_try") 2>&5
13592   ac_status=$?
13593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13594   (exit $ac_status); }; }; then
13595   ac_cv_search_iJIT_IsProfilingActive=$ac_res
13596 else
13597   echo "$as_me: failed program was:" >&5
13598 sed 's/^/| /' conftest.$ac_ext >&5
13599
13600
13601 fi
13602
13603 rm -f core conftest.err conftest.$ac_objext \
13604       conftest$ac_exeext
13605   if test "${ac_cv_search_iJIT_IsProfilingActive+set}" = set; then
13606   break
13607 fi
13608 done
13609 if test "${ac_cv_search_iJIT_IsProfilingActive+set}" = set; then
13610   :
13611 else
13612   ac_cv_search_iJIT_IsProfilingActive=no
13613 fi
13614 rm conftest.$ac_ext
13615 LIBS=$ac_func_search_save_LIBS
13616 fi
13617 { echo "$as_me:$LINENO: result: $ac_cv_search_iJIT_IsProfilingActive" >&5
13618 echo "${ECHO_T}$ac_cv_search_iJIT_IsProfilingActive" >&6; }
13619 ac_res=$ac_cv_search_iJIT_IsProfilingActive
13620 if test "$ac_res" != no; then
13621   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13622
13623 else
13624
13625         echo "Error! Cannot find libjitprofiling.a. Please check path specified in flag --with-intel-jitevents"
13626         exit -1
13627
13628 fi
13629
13630       if test "${ac_cv_header_jitprofiling_h+set}" = set; then
13631   { echo "$as_me:$LINENO: checking for jitprofiling.h" >&5
13632 echo $ECHO_N "checking for jitprofiling.h... $ECHO_C" >&6; }
13633 if test "${ac_cv_header_jitprofiling_h+set}" = set; then
13634   echo $ECHO_N "(cached) $ECHO_C" >&6
13635 fi
13636 { echo "$as_me:$LINENO: result: $ac_cv_header_jitprofiling_h" >&5
13637 echo "${ECHO_T}$ac_cv_header_jitprofiling_h" >&6; }
13638 else
13639   # Is the header compilable?
13640 { echo "$as_me:$LINENO: checking jitprofiling.h usability" >&5
13641 echo $ECHO_N "checking jitprofiling.h usability... $ECHO_C" >&6; }
13642 cat >conftest.$ac_ext <<_ACEOF
13643 /* confdefs.h.  */
13644 _ACEOF
13645 cat confdefs.h >>conftest.$ac_ext
13646 cat >>conftest.$ac_ext <<_ACEOF
13647 /* end confdefs.h.  */
13648 $ac_includes_default
13649 #include <jitprofiling.h>
13650 _ACEOF
13651 rm -f conftest.$ac_objext
13652 if { (ac_try="$ac_compile"
13653 case "(($ac_try" in
13654   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13655   *) ac_try_echo=$ac_try;;
13656 esac
13657 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13658   (eval "$ac_compile") 2>conftest.er1
13659   ac_status=$?
13660   grep -v '^ *+' conftest.er1 >conftest.err
13661   rm -f conftest.er1
13662   cat conftest.err >&5
13663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13664   (exit $ac_status); } &&
13665          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13666   { (case "(($ac_try" in
13667   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13668   *) ac_try_echo=$ac_try;;
13669 esac
13670 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13671   (eval "$ac_try") 2>&5
13672   ac_status=$?
13673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13674   (exit $ac_status); }; } &&
13675          { ac_try='test -s conftest.$ac_objext'
13676   { (case "(($ac_try" in
13677   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13678   *) ac_try_echo=$ac_try;;
13679 esac
13680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13681   (eval "$ac_try") 2>&5
13682   ac_status=$?
13683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13684   (exit $ac_status); }; }; then
13685   ac_header_compiler=yes
13686 else
13687   echo "$as_me: failed program was:" >&5
13688 sed 's/^/| /' conftest.$ac_ext >&5
13689
13690         ac_header_compiler=no
13691 fi
13692
13693 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13694 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13695 echo "${ECHO_T}$ac_header_compiler" >&6; }
13696
13697 # Is the header present?
13698 { echo "$as_me:$LINENO: checking jitprofiling.h presence" >&5
13699 echo $ECHO_N "checking jitprofiling.h presence... $ECHO_C" >&6; }
13700 cat >conftest.$ac_ext <<_ACEOF
13701 /* confdefs.h.  */
13702 _ACEOF
13703 cat confdefs.h >>conftest.$ac_ext
13704 cat >>conftest.$ac_ext <<_ACEOF
13705 /* end confdefs.h.  */
13706 #include <jitprofiling.h>
13707 _ACEOF
13708 if { (ac_try="$ac_cpp conftest.$ac_ext"
13709 case "(($ac_try" in
13710   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13711   *) ac_try_echo=$ac_try;;
13712 esac
13713 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13714   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13715   ac_status=$?
13716   grep -v '^ *+' conftest.er1 >conftest.err
13717   rm -f conftest.er1
13718   cat conftest.err >&5
13719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13720   (exit $ac_status); } >/dev/null; then
13721   if test -s conftest.err; then
13722     ac_cpp_err=$ac_c_preproc_warn_flag
13723     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13724   else
13725     ac_cpp_err=
13726   fi
13727 else
13728   ac_cpp_err=yes
13729 fi
13730 if test -z "$ac_cpp_err"; then
13731   ac_header_preproc=yes
13732 else
13733   echo "$as_me: failed program was:" >&5
13734 sed 's/^/| /' conftest.$ac_ext >&5
13735
13736   ac_header_preproc=no
13737 fi
13738
13739 rm -f conftest.err conftest.$ac_ext
13740 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13741 echo "${ECHO_T}$ac_header_preproc" >&6; }
13742
13743 # So?  What about this header?
13744 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13745   yes:no: )
13746     { echo "$as_me:$LINENO: WARNING: jitprofiling.h: accepted by the compiler, rejected by the preprocessor!" >&5
13747 echo "$as_me: WARNING: jitprofiling.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13748     { echo "$as_me:$LINENO: WARNING: jitprofiling.h: proceeding with the compiler's result" >&5
13749 echo "$as_me: WARNING: jitprofiling.h: proceeding with the compiler's result" >&2;}
13750     ac_header_preproc=yes
13751     ;;
13752   no:yes:* )
13753     { echo "$as_me:$LINENO: WARNING: jitprofiling.h: present but cannot be compiled" >&5
13754 echo "$as_me: WARNING: jitprofiling.h: present but cannot be compiled" >&2;}
13755     { echo "$as_me:$LINENO: WARNING: jitprofiling.h:     check for missing prerequisite headers?" >&5
13756 echo "$as_me: WARNING: jitprofiling.h:     check for missing prerequisite headers?" >&2;}
13757     { echo "$as_me:$LINENO: WARNING: jitprofiling.h: see the Autoconf documentation" >&5
13758 echo "$as_me: WARNING: jitprofiling.h: see the Autoconf documentation" >&2;}
13759     { echo "$as_me:$LINENO: WARNING: jitprofiling.h:     section \"Present But Cannot Be Compiled\"" >&5
13760 echo "$as_me: WARNING: jitprofiling.h:     section \"Present But Cannot Be Compiled\"" >&2;}
13761     { echo "$as_me:$LINENO: WARNING: jitprofiling.h: proceeding with the preprocessor's result" >&5
13762 echo "$as_me: WARNING: jitprofiling.h: proceeding with the preprocessor's result" >&2;}
13763     { echo "$as_me:$LINENO: WARNING: jitprofiling.h: in the future, the compiler will take precedence" >&5
13764 echo "$as_me: WARNING: jitprofiling.h: in the future, the compiler will take precedence" >&2;}
13765     ( cat <<\_ASBOX
13766 ## ------------------------------------ ##
13767 ## Report this to http://llvm.org/bugs/ ##
13768 ## ------------------------------------ ##
13769 _ASBOX
13770      ) | sed "s/^/$as_me: WARNING:     /" >&2
13771     ;;
13772 esac
13773 { echo "$as_me:$LINENO: checking for jitprofiling.h" >&5
13774 echo $ECHO_N "checking for jitprofiling.h... $ECHO_C" >&6; }
13775 if test "${ac_cv_header_jitprofiling_h+set}" = set; then
13776   echo $ECHO_N "(cached) $ECHO_C" >&6
13777 else
13778   ac_cv_header_jitprofiling_h=$ac_header_preproc
13779 fi
13780 { echo "$as_me:$LINENO: result: $ac_cv_header_jitprofiling_h" >&5
13781 echo "${ECHO_T}$ac_cv_header_jitprofiling_h" >&6; }
13782
13783 fi
13784 if test $ac_cv_header_jitprofiling_h = yes; then
13785   :
13786 else
13787
13788         echo "Error! Cannot find jitprofiling.h. Please check path specified in flag --with-intel-jitevents"
13789         exit -1
13790
13791 fi
13792
13793
13794
13795
13796 else
13797
13798       USE_INTEL_JITEVENTS=0
13799
13800
13801 fi
13802
13803
13804 cat >>confdefs.h <<_ACEOF
13805 #define LLVM_USE_INTEL_JITEVENTS $USE_INTEL_JITEVENTS
13806 _ACEOF
13807
13808
13809
13810
13811
13812
13813
13814
13815 ac_header_dirent=no
13816 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
13817   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
13818 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
13819 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
13820 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13821   echo $ECHO_N "(cached) $ECHO_C" >&6
13822 else
13823   cat >conftest.$ac_ext <<_ACEOF
13824 /* confdefs.h.  */
13825 _ACEOF
13826 cat confdefs.h >>conftest.$ac_ext
13827 cat >>conftest.$ac_ext <<_ACEOF
13828 /* end confdefs.h.  */
13829 #include <sys/types.h>
13830 #include <$ac_hdr>
13831
13832 int
13833 main ()
13834 {
13835 if ((DIR *) 0)
13836 return 0;
13837   ;
13838   return 0;
13839 }
13840 _ACEOF
13841 rm -f conftest.$ac_objext
13842 if { (ac_try="$ac_compile"
13843 case "(($ac_try" in
13844   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13845   *) ac_try_echo=$ac_try;;
13846 esac
13847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13848   (eval "$ac_compile") 2>conftest.er1
13849   ac_status=$?
13850   grep -v '^ *+' conftest.er1 >conftest.err
13851   rm -f conftest.er1
13852   cat conftest.err >&5
13853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13854   (exit $ac_status); } &&
13855          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13856   { (case "(($ac_try" in
13857   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13858   *) ac_try_echo=$ac_try;;
13859 esac
13860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13861   (eval "$ac_try") 2>&5
13862   ac_status=$?
13863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13864   (exit $ac_status); }; } &&
13865          { ac_try='test -s conftest.$ac_objext'
13866   { (case "(($ac_try" in
13867   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13868   *) ac_try_echo=$ac_try;;
13869 esac
13870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13871   (eval "$ac_try") 2>&5
13872   ac_status=$?
13873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13874   (exit $ac_status); }; }; then
13875   eval "$as_ac_Header=yes"
13876 else
13877   echo "$as_me: failed program was:" >&5
13878 sed 's/^/| /' conftest.$ac_ext >&5
13879
13880         eval "$as_ac_Header=no"
13881 fi
13882
13883 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13884 fi
13885 ac_res=`eval echo '${'$as_ac_Header'}'`
13886                { echo "$as_me:$LINENO: result: $ac_res" >&5
13887 echo "${ECHO_T}$ac_res" >&6; }
13888 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13889   cat >>confdefs.h <<_ACEOF
13890 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
13891 _ACEOF
13892
13893 ac_header_dirent=$ac_hdr; break
13894 fi
13895
13896 done
13897 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
13898 if test $ac_header_dirent = dirent.h; then
13899   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
13900 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
13901 if test "${ac_cv_search_opendir+set}" = set; then
13902   echo $ECHO_N "(cached) $ECHO_C" >&6
13903 else
13904   ac_func_search_save_LIBS=$LIBS
13905 cat >conftest.$ac_ext <<_ACEOF
13906 /* confdefs.h.  */
13907 _ACEOF
13908 cat confdefs.h >>conftest.$ac_ext
13909 cat >>conftest.$ac_ext <<_ACEOF
13910 /* end confdefs.h.  */
13911
13912 /* Override any GCC internal prototype to avoid an error.
13913    Use char because int might match the return type of a GCC
13914    builtin and then its argument prototype would still apply.  */
13915 #ifdef __cplusplus
13916 extern "C"
13917 #endif
13918 char opendir ();
13919 int
13920 main ()
13921 {
13922 return opendir ();
13923   ;
13924   return 0;
13925 }
13926 _ACEOF
13927 for ac_lib in '' dir; do
13928   if test -z "$ac_lib"; then
13929     ac_res="none required"
13930   else
13931     ac_res=-l$ac_lib
13932     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13933   fi
13934   rm -f conftest.$ac_objext conftest$ac_exeext
13935 if { (ac_try="$ac_link"
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_link") 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_exeext'
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   ac_cv_search_opendir=$ac_res
13969 else
13970   echo "$as_me: failed program was:" >&5
13971 sed 's/^/| /' conftest.$ac_ext >&5
13972
13973
13974 fi
13975
13976 rm -f core conftest.err conftest.$ac_objext \
13977       conftest$ac_exeext
13978   if test "${ac_cv_search_opendir+set}" = set; then
13979   break
13980 fi
13981 done
13982 if test "${ac_cv_search_opendir+set}" = set; then
13983   :
13984 else
13985   ac_cv_search_opendir=no
13986 fi
13987 rm conftest.$ac_ext
13988 LIBS=$ac_func_search_save_LIBS
13989 fi
13990 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
13991 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
13992 ac_res=$ac_cv_search_opendir
13993 if test "$ac_res" != no; then
13994   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13995
13996 fi
13997
13998 else
13999   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
14000 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
14001 if test "${ac_cv_search_opendir+set}" = set; then
14002   echo $ECHO_N "(cached) $ECHO_C" >&6
14003 else
14004   ac_func_search_save_LIBS=$LIBS
14005 cat >conftest.$ac_ext <<_ACEOF
14006 /* confdefs.h.  */
14007 _ACEOF
14008 cat confdefs.h >>conftest.$ac_ext
14009 cat >>conftest.$ac_ext <<_ACEOF
14010 /* end confdefs.h.  */
14011
14012 /* Override any GCC internal prototype to avoid an error.
14013    Use char because int might match the return type of a GCC
14014    builtin and then its argument prototype would still apply.  */
14015 #ifdef __cplusplus
14016 extern "C"
14017 #endif
14018 char opendir ();
14019 int
14020 main ()
14021 {
14022 return opendir ();
14023   ;
14024   return 0;
14025 }
14026 _ACEOF
14027 for ac_lib in '' x; do
14028   if test -z "$ac_lib"; then
14029     ac_res="none required"
14030   else
14031     ac_res=-l$ac_lib
14032     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14033   fi
14034   rm -f conftest.$ac_objext conftest$ac_exeext
14035 if { (ac_try="$ac_link"
14036 case "(($ac_try" in
14037   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14038   *) ac_try_echo=$ac_try;;
14039 esac
14040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14041   (eval "$ac_link") 2>conftest.er1
14042   ac_status=$?
14043   grep -v '^ *+' conftest.er1 >conftest.err
14044   rm -f conftest.er1
14045   cat conftest.err >&5
14046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14047   (exit $ac_status); } &&
14048          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14049   { (case "(($ac_try" in
14050   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14051   *) ac_try_echo=$ac_try;;
14052 esac
14053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14054   (eval "$ac_try") 2>&5
14055   ac_status=$?
14056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14057   (exit $ac_status); }; } &&
14058          { ac_try='test -s conftest$ac_exeext'
14059   { (case "(($ac_try" in
14060   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14061   *) ac_try_echo=$ac_try;;
14062 esac
14063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14064   (eval "$ac_try") 2>&5
14065   ac_status=$?
14066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14067   (exit $ac_status); }; }; then
14068   ac_cv_search_opendir=$ac_res
14069 else
14070   echo "$as_me: failed program was:" >&5
14071 sed 's/^/| /' conftest.$ac_ext >&5
14072
14073
14074 fi
14075
14076 rm -f core conftest.err conftest.$ac_objext \
14077       conftest$ac_exeext
14078   if test "${ac_cv_search_opendir+set}" = set; then
14079   break
14080 fi
14081 done
14082 if test "${ac_cv_search_opendir+set}" = set; then
14083   :
14084 else
14085   ac_cv_search_opendir=no
14086 fi
14087 rm conftest.$ac_ext
14088 LIBS=$ac_func_search_save_LIBS
14089 fi
14090 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14091 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
14092 ac_res=$ac_cv_search_opendir
14093 if test "$ac_res" != no; then
14094   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14095
14096 fi
14097
14098 fi
14099
14100 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
14101 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
14102 if test "${ac_cv_header_mmap_anon+set}" = set; then
14103   echo $ECHO_N "(cached) $ECHO_C" >&6
14104 else
14105    ac_ext=c
14106 ac_cpp='$CPP $CPPFLAGS'
14107 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14108 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14109 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14110
14111   cat >conftest.$ac_ext <<_ACEOF
14112 /* confdefs.h.  */
14113 _ACEOF
14114 cat confdefs.h >>conftest.$ac_ext
14115 cat >>conftest.$ac_ext <<_ACEOF
14116 /* end confdefs.h.  */
14117 #include <sys/mman.h>
14118 #include <unistd.h>
14119 #include <fcntl.h>
14120 int
14121 main ()
14122 {
14123 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
14124   ;
14125   return 0;
14126 }
14127 _ACEOF
14128 rm -f conftest.$ac_objext
14129 if { (ac_try="$ac_compile"
14130 case "(($ac_try" in
14131   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14132   *) ac_try_echo=$ac_try;;
14133 esac
14134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14135   (eval "$ac_compile") 2>conftest.er1
14136   ac_status=$?
14137   grep -v '^ *+' conftest.er1 >conftest.err
14138   rm -f conftest.er1
14139   cat conftest.err >&5
14140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14141   (exit $ac_status); } &&
14142          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14143   { (case "(($ac_try" in
14144   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14145   *) ac_try_echo=$ac_try;;
14146 esac
14147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14148   (eval "$ac_try") 2>&5
14149   ac_status=$?
14150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14151   (exit $ac_status); }; } &&
14152          { ac_try='test -s conftest.$ac_objext'
14153   { (case "(($ac_try" in
14154   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14155   *) ac_try_echo=$ac_try;;
14156 esac
14157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14158   (eval "$ac_try") 2>&5
14159   ac_status=$?
14160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14161   (exit $ac_status); }; }; then
14162   ac_cv_header_mmap_anon=yes
14163 else
14164   echo "$as_me: failed program was:" >&5
14165 sed 's/^/| /' conftest.$ac_ext >&5
14166
14167         ac_cv_header_mmap_anon=no
14168 fi
14169
14170 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14171   ac_ext=c
14172 ac_cpp='$CPP $CPPFLAGS'
14173 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14174 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14175 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14176
14177
14178 fi
14179 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
14180 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
14181 if test "$ac_cv_header_mmap_anon" = yes; then
14182
14183 cat >>confdefs.h <<\_ACEOF
14184 #define HAVE_MMAP_ANONYMOUS 1
14185 _ACEOF
14186
14187 fi
14188
14189 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
14190 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
14191 if test "${ac_cv_header_stat_broken+set}" = set; then
14192   echo $ECHO_N "(cached) $ECHO_C" >&6
14193 else
14194   cat >conftest.$ac_ext <<_ACEOF
14195 /* confdefs.h.  */
14196 _ACEOF
14197 cat confdefs.h >>conftest.$ac_ext
14198 cat >>conftest.$ac_ext <<_ACEOF
14199 /* end confdefs.h.  */
14200 #include <sys/types.h>
14201 #include <sys/stat.h>
14202
14203 #if defined S_ISBLK && defined S_IFDIR
14204 # if S_ISBLK (S_IFDIR)
14205 You lose.
14206 # endif
14207 #endif
14208
14209 #if defined S_ISBLK && defined S_IFCHR
14210 # if S_ISBLK (S_IFCHR)
14211 You lose.
14212 # endif
14213 #endif
14214
14215 #if defined S_ISLNK && defined S_IFREG
14216 # if S_ISLNK (S_IFREG)
14217 You lose.
14218 # endif
14219 #endif
14220
14221 #if defined S_ISSOCK && defined S_IFREG
14222 # if S_ISSOCK (S_IFREG)
14223 You lose.
14224 # endif
14225 #endif
14226
14227 _ACEOF
14228 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14229   $EGREP "You lose" >/dev/null 2>&1; then
14230   ac_cv_header_stat_broken=yes
14231 else
14232   ac_cv_header_stat_broken=no
14233 fi
14234 rm -f conftest*
14235
14236 fi
14237 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
14238 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
14239 if test $ac_cv_header_stat_broken = yes; then
14240
14241 cat >>confdefs.h <<\_ACEOF
14242 #define STAT_MACROS_BROKEN 1
14243 _ACEOF
14244
14245 fi
14246
14247 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
14248 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
14249 if test "${ac_cv_header_sys_wait_h+set}" = set; then
14250   echo $ECHO_N "(cached) $ECHO_C" >&6
14251 else
14252   cat >conftest.$ac_ext <<_ACEOF
14253 /* confdefs.h.  */
14254 _ACEOF
14255 cat confdefs.h >>conftest.$ac_ext
14256 cat >>conftest.$ac_ext <<_ACEOF
14257 /* end confdefs.h.  */
14258 #include <sys/types.h>
14259 #include <sys/wait.h>
14260 #ifndef WEXITSTATUS
14261 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
14262 #endif
14263 #ifndef WIFEXITED
14264 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
14265 #endif
14266
14267 int
14268 main ()
14269 {
14270   int s;
14271   wait (&s);
14272   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
14273   ;
14274   return 0;
14275 }
14276 _ACEOF
14277 rm -f conftest.$ac_objext
14278 if { (ac_try="$ac_compile"
14279 case "(($ac_try" in
14280   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14281   *) ac_try_echo=$ac_try;;
14282 esac
14283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14284   (eval "$ac_compile") 2>conftest.er1
14285   ac_status=$?
14286   grep -v '^ *+' conftest.er1 >conftest.err
14287   rm -f conftest.er1
14288   cat conftest.err >&5
14289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14290   (exit $ac_status); } &&
14291          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14292   { (case "(($ac_try" in
14293   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14294   *) ac_try_echo=$ac_try;;
14295 esac
14296 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14297   (eval "$ac_try") 2>&5
14298   ac_status=$?
14299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14300   (exit $ac_status); }; } &&
14301          { ac_try='test -s conftest.$ac_objext'
14302   { (case "(($ac_try" in
14303   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14304   *) ac_try_echo=$ac_try;;
14305 esac
14306 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14307   (eval "$ac_try") 2>&5
14308   ac_status=$?
14309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14310   (exit $ac_status); }; }; then
14311   ac_cv_header_sys_wait_h=yes
14312 else
14313   echo "$as_me: failed program was:" >&5
14314 sed 's/^/| /' conftest.$ac_ext >&5
14315
14316         ac_cv_header_sys_wait_h=no
14317 fi
14318
14319 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14320 fi
14321 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
14322 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
14323 if test $ac_cv_header_sys_wait_h = yes; then
14324
14325 cat >>confdefs.h <<\_ACEOF
14326 #define HAVE_SYS_WAIT_H 1
14327 _ACEOF
14328
14329 fi
14330
14331 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
14332 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
14333 if test "${ac_cv_header_time+set}" = set; then
14334   echo $ECHO_N "(cached) $ECHO_C" >&6
14335 else
14336   cat >conftest.$ac_ext <<_ACEOF
14337 /* confdefs.h.  */
14338 _ACEOF
14339 cat confdefs.h >>conftest.$ac_ext
14340 cat >>conftest.$ac_ext <<_ACEOF
14341 /* end confdefs.h.  */
14342 #include <sys/types.h>
14343 #include <sys/time.h>
14344 #include <time.h>
14345
14346 int
14347 main ()
14348 {
14349 if ((struct tm *) 0)
14350 return 0;
14351   ;
14352   return 0;
14353 }
14354 _ACEOF
14355 rm -f conftest.$ac_objext
14356 if { (ac_try="$ac_compile"
14357 case "(($ac_try" in
14358   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14359   *) ac_try_echo=$ac_try;;
14360 esac
14361 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14362   (eval "$ac_compile") 2>conftest.er1
14363   ac_status=$?
14364   grep -v '^ *+' conftest.er1 >conftest.err
14365   rm -f conftest.er1
14366   cat conftest.err >&5
14367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14368   (exit $ac_status); } &&
14369          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14370   { (case "(($ac_try" in
14371   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14372   *) ac_try_echo=$ac_try;;
14373 esac
14374 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14375   (eval "$ac_try") 2>&5
14376   ac_status=$?
14377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14378   (exit $ac_status); }; } &&
14379          { ac_try='test -s conftest.$ac_objext'
14380   { (case "(($ac_try" in
14381   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14382   *) ac_try_echo=$ac_try;;
14383 esac
14384 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14385   (eval "$ac_try") 2>&5
14386   ac_status=$?
14387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14388   (exit $ac_status); }; }; then
14389   ac_cv_header_time=yes
14390 else
14391   echo "$as_me: failed program was:" >&5
14392 sed 's/^/| /' conftest.$ac_ext >&5
14393
14394         ac_cv_header_time=no
14395 fi
14396
14397 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14398 fi
14399 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
14400 echo "${ECHO_T}$ac_cv_header_time" >&6; }
14401 if test $ac_cv_header_time = yes; then
14402
14403 cat >>confdefs.h <<\_ACEOF
14404 #define TIME_WITH_SYS_TIME 1
14405 _ACEOF
14406
14407 fi
14408
14409
14410
14411
14412
14413
14414
14415
14416 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
14417 do
14418 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14419 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14420   { echo "$as_me:$LINENO: checking for $ac_header" >&5
14421 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14422 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14423   echo $ECHO_N "(cached) $ECHO_C" >&6
14424 fi
14425 ac_res=`eval echo '${'$as_ac_Header'}'`
14426                { echo "$as_me:$LINENO: result: $ac_res" >&5
14427 echo "${ECHO_T}$ac_res" >&6; }
14428 else
14429   # Is the header compilable?
14430 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14431 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14432 cat >conftest.$ac_ext <<_ACEOF
14433 /* confdefs.h.  */
14434 _ACEOF
14435 cat confdefs.h >>conftest.$ac_ext
14436 cat >>conftest.$ac_ext <<_ACEOF
14437 /* end confdefs.h.  */
14438 $ac_includes_default
14439 #include <$ac_header>
14440 _ACEOF
14441 rm -f conftest.$ac_objext
14442 if { (ac_try="$ac_compile"
14443 case "(($ac_try" in
14444   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14445   *) ac_try_echo=$ac_try;;
14446 esac
14447 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14448   (eval "$ac_compile") 2>conftest.er1
14449   ac_status=$?
14450   grep -v '^ *+' conftest.er1 >conftest.err
14451   rm -f conftest.er1
14452   cat conftest.err >&5
14453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14454   (exit $ac_status); } &&
14455          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14456   { (case "(($ac_try" in
14457   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14458   *) ac_try_echo=$ac_try;;
14459 esac
14460 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14461   (eval "$ac_try") 2>&5
14462   ac_status=$?
14463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14464   (exit $ac_status); }; } &&
14465          { ac_try='test -s conftest.$ac_objext'
14466   { (case "(($ac_try" in
14467   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14468   *) ac_try_echo=$ac_try;;
14469 esac
14470 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14471   (eval "$ac_try") 2>&5
14472   ac_status=$?
14473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14474   (exit $ac_status); }; }; then
14475   ac_header_compiler=yes
14476 else
14477   echo "$as_me: failed program was:" >&5
14478 sed 's/^/| /' conftest.$ac_ext >&5
14479
14480         ac_header_compiler=no
14481 fi
14482
14483 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14484 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14485 echo "${ECHO_T}$ac_header_compiler" >&6; }
14486
14487 # Is the header present?
14488 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14489 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14490 cat >conftest.$ac_ext <<_ACEOF
14491 /* confdefs.h.  */
14492 _ACEOF
14493 cat confdefs.h >>conftest.$ac_ext
14494 cat >>conftest.$ac_ext <<_ACEOF
14495 /* end confdefs.h.  */
14496 #include <$ac_header>
14497 _ACEOF
14498 if { (ac_try="$ac_cpp conftest.$ac_ext"
14499 case "(($ac_try" in
14500   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14501   *) ac_try_echo=$ac_try;;
14502 esac
14503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14504   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14505   ac_status=$?
14506   grep -v '^ *+' conftest.er1 >conftest.err
14507   rm -f conftest.er1
14508   cat conftest.err >&5
14509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14510   (exit $ac_status); } >/dev/null; then
14511   if test -s conftest.err; then
14512     ac_cpp_err=$ac_c_preproc_warn_flag
14513     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14514   else
14515     ac_cpp_err=
14516   fi
14517 else
14518   ac_cpp_err=yes
14519 fi
14520 if test -z "$ac_cpp_err"; then
14521   ac_header_preproc=yes
14522 else
14523   echo "$as_me: failed program was:" >&5
14524 sed 's/^/| /' conftest.$ac_ext >&5
14525
14526   ac_header_preproc=no
14527 fi
14528
14529 rm -f conftest.err conftest.$ac_ext
14530 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14531 echo "${ECHO_T}$ac_header_preproc" >&6; }
14532
14533 # So?  What about this header?
14534 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14535   yes:no: )
14536     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14537 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14538     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14539 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14540     ac_header_preproc=yes
14541     ;;
14542   no:yes:* )
14543     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14544 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14545     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14546 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14547     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14548 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14549     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14550 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14551     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14552 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14553     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14554 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14555     ( cat <<\_ASBOX
14556 ## ------------------------------------ ##
14557 ## Report this to http://llvm.org/bugs/ ##
14558 ## ------------------------------------ ##
14559 _ASBOX
14560      ) | sed "s/^/$as_me: WARNING:     /" >&2
14561     ;;
14562 esac
14563 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14564 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14565 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14566   echo $ECHO_N "(cached) $ECHO_C" >&6
14567 else
14568   eval "$as_ac_Header=\$ac_header_preproc"
14569 fi
14570 ac_res=`eval echo '${'$as_ac_Header'}'`
14571                { echo "$as_me:$LINENO: result: $ac_res" >&5
14572 echo "${ECHO_T}$ac_res" >&6; }
14573
14574 fi
14575 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14576   cat >>confdefs.h <<_ACEOF
14577 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14578 _ACEOF
14579
14580 fi
14581
14582 done
14583
14584
14585
14586
14587
14588
14589
14590 for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
14591 do
14592 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14593 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14594   { echo "$as_me:$LINENO: checking for $ac_header" >&5
14595 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14596 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14597   echo $ECHO_N "(cached) $ECHO_C" >&6
14598 fi
14599 ac_res=`eval echo '${'$as_ac_Header'}'`
14600                { echo "$as_me:$LINENO: result: $ac_res" >&5
14601 echo "${ECHO_T}$ac_res" >&6; }
14602 else
14603   # Is the header compilable?
14604 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14605 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14606 cat >conftest.$ac_ext <<_ACEOF
14607 /* confdefs.h.  */
14608 _ACEOF
14609 cat confdefs.h >>conftest.$ac_ext
14610 cat >>conftest.$ac_ext <<_ACEOF
14611 /* end confdefs.h.  */
14612 $ac_includes_default
14613 #include <$ac_header>
14614 _ACEOF
14615 rm -f conftest.$ac_objext
14616 if { (ac_try="$ac_compile"
14617 case "(($ac_try" in
14618   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14619   *) ac_try_echo=$ac_try;;
14620 esac
14621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14622   (eval "$ac_compile") 2>conftest.er1
14623   ac_status=$?
14624   grep -v '^ *+' conftest.er1 >conftest.err
14625   rm -f conftest.er1
14626   cat conftest.err >&5
14627   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14628   (exit $ac_status); } &&
14629          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14630   { (case "(($ac_try" in
14631   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14632   *) ac_try_echo=$ac_try;;
14633 esac
14634 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14635   (eval "$ac_try") 2>&5
14636   ac_status=$?
14637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14638   (exit $ac_status); }; } &&
14639          { ac_try='test -s conftest.$ac_objext'
14640   { (case "(($ac_try" in
14641   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14642   *) ac_try_echo=$ac_try;;
14643 esac
14644 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14645   (eval "$ac_try") 2>&5
14646   ac_status=$?
14647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14648   (exit $ac_status); }; }; then
14649   ac_header_compiler=yes
14650 else
14651   echo "$as_me: failed program was:" >&5
14652 sed 's/^/| /' conftest.$ac_ext >&5
14653
14654         ac_header_compiler=no
14655 fi
14656
14657 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14658 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14659 echo "${ECHO_T}$ac_header_compiler" >&6; }
14660
14661 # Is the header present?
14662 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14663 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14664 cat >conftest.$ac_ext <<_ACEOF
14665 /* confdefs.h.  */
14666 _ACEOF
14667 cat confdefs.h >>conftest.$ac_ext
14668 cat >>conftest.$ac_ext <<_ACEOF
14669 /* end confdefs.h.  */
14670 #include <$ac_header>
14671 _ACEOF
14672 if { (ac_try="$ac_cpp conftest.$ac_ext"
14673 case "(($ac_try" in
14674   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14675   *) ac_try_echo=$ac_try;;
14676 esac
14677 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14678   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14679   ac_status=$?
14680   grep -v '^ *+' conftest.er1 >conftest.err
14681   rm -f conftest.er1
14682   cat conftest.err >&5
14683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14684   (exit $ac_status); } >/dev/null; then
14685   if test -s conftest.err; then
14686     ac_cpp_err=$ac_c_preproc_warn_flag
14687     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14688   else
14689     ac_cpp_err=
14690   fi
14691 else
14692   ac_cpp_err=yes
14693 fi
14694 if test -z "$ac_cpp_err"; then
14695   ac_header_preproc=yes
14696 else
14697   echo "$as_me: failed program was:" >&5
14698 sed 's/^/| /' conftest.$ac_ext >&5
14699
14700   ac_header_preproc=no
14701 fi
14702
14703 rm -f conftest.err conftest.$ac_ext
14704 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14705 echo "${ECHO_T}$ac_header_preproc" >&6; }
14706
14707 # So?  What about this header?
14708 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14709   yes:no: )
14710     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14711 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14712     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14713 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14714     ac_header_preproc=yes
14715     ;;
14716   no:yes:* )
14717     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14718 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14719     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14720 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14721     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14722 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14723     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14724 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14725     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14726 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14727     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14728 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14729     ( cat <<\_ASBOX
14730 ## ------------------------------------ ##
14731 ## Report this to http://llvm.org/bugs/ ##
14732 ## ------------------------------------ ##
14733 _ASBOX
14734      ) | sed "s/^/$as_me: WARNING:     /" >&2
14735     ;;
14736 esac
14737 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14738 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14739 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14740   echo $ECHO_N "(cached) $ECHO_C" >&6
14741 else
14742   eval "$as_ac_Header=\$ac_header_preproc"
14743 fi
14744 ac_res=`eval echo '${'$as_ac_Header'}'`
14745                { echo "$as_me:$LINENO: result: $ac_res" >&5
14746 echo "${ECHO_T}$ac_res" >&6; }
14747
14748 fi
14749 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14750   cat >>confdefs.h <<_ACEOF
14751 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14752 _ACEOF
14753
14754 fi
14755
14756 done
14757
14758
14759
14760 for ac_header in utime.h windows.h
14761 do
14762 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14763 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14764   { echo "$as_me:$LINENO: checking for $ac_header" >&5
14765 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14766 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14767   echo $ECHO_N "(cached) $ECHO_C" >&6
14768 fi
14769 ac_res=`eval echo '${'$as_ac_Header'}'`
14770                { echo "$as_me:$LINENO: result: $ac_res" >&5
14771 echo "${ECHO_T}$ac_res" >&6; }
14772 else
14773   # Is the header compilable?
14774 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14775 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14776 cat >conftest.$ac_ext <<_ACEOF
14777 /* confdefs.h.  */
14778 _ACEOF
14779 cat confdefs.h >>conftest.$ac_ext
14780 cat >>conftest.$ac_ext <<_ACEOF
14781 /* end confdefs.h.  */
14782 $ac_includes_default
14783 #include <$ac_header>
14784 _ACEOF
14785 rm -f conftest.$ac_objext
14786 if { (ac_try="$ac_compile"
14787 case "(($ac_try" in
14788   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14789   *) ac_try_echo=$ac_try;;
14790 esac
14791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14792   (eval "$ac_compile") 2>conftest.er1
14793   ac_status=$?
14794   grep -v '^ *+' conftest.er1 >conftest.err
14795   rm -f conftest.er1
14796   cat conftest.err >&5
14797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14798   (exit $ac_status); } &&
14799          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14800   { (case "(($ac_try" in
14801   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14802   *) ac_try_echo=$ac_try;;
14803 esac
14804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14805   (eval "$ac_try") 2>&5
14806   ac_status=$?
14807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14808   (exit $ac_status); }; } &&
14809          { ac_try='test -s conftest.$ac_objext'
14810   { (case "(($ac_try" in
14811   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14812   *) ac_try_echo=$ac_try;;
14813 esac
14814 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14815   (eval "$ac_try") 2>&5
14816   ac_status=$?
14817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14818   (exit $ac_status); }; }; then
14819   ac_header_compiler=yes
14820 else
14821   echo "$as_me: failed program was:" >&5
14822 sed 's/^/| /' conftest.$ac_ext >&5
14823
14824         ac_header_compiler=no
14825 fi
14826
14827 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14828 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14829 echo "${ECHO_T}$ac_header_compiler" >&6; }
14830
14831 # Is the header present?
14832 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14833 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14834 cat >conftest.$ac_ext <<_ACEOF
14835 /* confdefs.h.  */
14836 _ACEOF
14837 cat confdefs.h >>conftest.$ac_ext
14838 cat >>conftest.$ac_ext <<_ACEOF
14839 /* end confdefs.h.  */
14840 #include <$ac_header>
14841 _ACEOF
14842 if { (ac_try="$ac_cpp conftest.$ac_ext"
14843 case "(($ac_try" in
14844   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14845   *) ac_try_echo=$ac_try;;
14846 esac
14847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14848   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14849   ac_status=$?
14850   grep -v '^ *+' conftest.er1 >conftest.err
14851   rm -f conftest.er1
14852   cat conftest.err >&5
14853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14854   (exit $ac_status); } >/dev/null; then
14855   if test -s conftest.err; then
14856     ac_cpp_err=$ac_c_preproc_warn_flag
14857     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14858   else
14859     ac_cpp_err=
14860   fi
14861 else
14862   ac_cpp_err=yes
14863 fi
14864 if test -z "$ac_cpp_err"; then
14865   ac_header_preproc=yes
14866 else
14867   echo "$as_me: failed program was:" >&5
14868 sed 's/^/| /' conftest.$ac_ext >&5
14869
14870   ac_header_preproc=no
14871 fi
14872
14873 rm -f conftest.err conftest.$ac_ext
14874 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14875 echo "${ECHO_T}$ac_header_preproc" >&6; }
14876
14877 # So?  What about this header?
14878 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14879   yes:no: )
14880     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14881 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14882     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14883 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14884     ac_header_preproc=yes
14885     ;;
14886   no:yes:* )
14887     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14888 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14889     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14890 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14891     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14892 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14893     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14894 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14895     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14896 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14897     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14898 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14899     ( cat <<\_ASBOX
14900 ## ------------------------------------ ##
14901 ## Report this to http://llvm.org/bugs/ ##
14902 ## ------------------------------------ ##
14903 _ASBOX
14904      ) | sed "s/^/$as_me: WARNING:     /" >&2
14905     ;;
14906 esac
14907 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14908 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14909 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14910   echo $ECHO_N "(cached) $ECHO_C" >&6
14911 else
14912   eval "$as_ac_Header=\$ac_header_preproc"
14913 fi
14914 ac_res=`eval echo '${'$as_ac_Header'}'`
14915                { echo "$as_me:$LINENO: result: $ac_res" >&5
14916 echo "${ECHO_T}$ac_res" >&6; }
14917
14918 fi
14919 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14920   cat >>confdefs.h <<_ACEOF
14921 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14922 _ACEOF
14923
14924 fi
14925
14926 done
14927
14928
14929
14930
14931
14932
14933 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h sys/uio.h
14934 do
14935 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14936 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14937   { echo "$as_me:$LINENO: checking for $ac_header" >&5
14938 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14939 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14940   echo $ECHO_N "(cached) $ECHO_C" >&6
14941 fi
14942 ac_res=`eval echo '${'$as_ac_Header'}'`
14943                { echo "$as_me:$LINENO: result: $ac_res" >&5
14944 echo "${ECHO_T}$ac_res" >&6; }
14945 else
14946   # Is the header compilable?
14947 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14948 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14949 cat >conftest.$ac_ext <<_ACEOF
14950 /* confdefs.h.  */
14951 _ACEOF
14952 cat confdefs.h >>conftest.$ac_ext
14953 cat >>conftest.$ac_ext <<_ACEOF
14954 /* end confdefs.h.  */
14955 $ac_includes_default
14956 #include <$ac_header>
14957 _ACEOF
14958 rm -f conftest.$ac_objext
14959 if { (ac_try="$ac_compile"
14960 case "(($ac_try" in
14961   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14962   *) ac_try_echo=$ac_try;;
14963 esac
14964 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14965   (eval "$ac_compile") 2>conftest.er1
14966   ac_status=$?
14967   grep -v '^ *+' conftest.er1 >conftest.err
14968   rm -f conftest.er1
14969   cat conftest.err >&5
14970   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14971   (exit $ac_status); } &&
14972          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14973   { (case "(($ac_try" in
14974   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14975   *) ac_try_echo=$ac_try;;
14976 esac
14977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14978   (eval "$ac_try") 2>&5
14979   ac_status=$?
14980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14981   (exit $ac_status); }; } &&
14982          { ac_try='test -s conftest.$ac_objext'
14983   { (case "(($ac_try" in
14984   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14985   *) ac_try_echo=$ac_try;;
14986 esac
14987 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14988   (eval "$ac_try") 2>&5
14989   ac_status=$?
14990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14991   (exit $ac_status); }; }; then
14992   ac_header_compiler=yes
14993 else
14994   echo "$as_me: failed program was:" >&5
14995 sed 's/^/| /' conftest.$ac_ext >&5
14996
14997         ac_header_compiler=no
14998 fi
14999
15000 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15001 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15002 echo "${ECHO_T}$ac_header_compiler" >&6; }
15003
15004 # Is the header present?
15005 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15006 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15007 cat >conftest.$ac_ext <<_ACEOF
15008 /* confdefs.h.  */
15009 _ACEOF
15010 cat confdefs.h >>conftest.$ac_ext
15011 cat >>conftest.$ac_ext <<_ACEOF
15012 /* end confdefs.h.  */
15013 #include <$ac_header>
15014 _ACEOF
15015 if { (ac_try="$ac_cpp conftest.$ac_ext"
15016 case "(($ac_try" in
15017   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15018   *) ac_try_echo=$ac_try;;
15019 esac
15020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15021   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15022   ac_status=$?
15023   grep -v '^ *+' conftest.er1 >conftest.err
15024   rm -f conftest.er1
15025   cat conftest.err >&5
15026   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15027   (exit $ac_status); } >/dev/null; then
15028   if test -s conftest.err; then
15029     ac_cpp_err=$ac_c_preproc_warn_flag
15030     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15031   else
15032     ac_cpp_err=
15033   fi
15034 else
15035   ac_cpp_err=yes
15036 fi
15037 if test -z "$ac_cpp_err"; then
15038   ac_header_preproc=yes
15039 else
15040   echo "$as_me: failed program was:" >&5
15041 sed 's/^/| /' conftest.$ac_ext >&5
15042
15043   ac_header_preproc=no
15044 fi
15045
15046 rm -f conftest.err conftest.$ac_ext
15047 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15048 echo "${ECHO_T}$ac_header_preproc" >&6; }
15049
15050 # So?  What about this header?
15051 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15052   yes:no: )
15053     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15054 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15055     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15056 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15057     ac_header_preproc=yes
15058     ;;
15059   no:yes:* )
15060     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15061 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15062     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15063 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15064     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15065 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15066     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15067 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15068     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15069 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15070     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15071 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15072     ( cat <<\_ASBOX
15073 ## ------------------------------------ ##
15074 ## Report this to http://llvm.org/bugs/ ##
15075 ## ------------------------------------ ##
15076 _ASBOX
15077      ) | sed "s/^/$as_me: WARNING:     /" >&2
15078     ;;
15079 esac
15080 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15081 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15082 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15083   echo $ECHO_N "(cached) $ECHO_C" >&6
15084 else
15085   eval "$as_ac_Header=\$ac_header_preproc"
15086 fi
15087 ac_res=`eval echo '${'$as_ac_Header'}'`
15088                { echo "$as_me:$LINENO: result: $ac_res" >&5
15089 echo "${ECHO_T}$ac_res" >&6; }
15090
15091 fi
15092 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15093   cat >>confdefs.h <<_ACEOF
15094 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15095 _ACEOF
15096
15097 fi
15098
15099 done
15100
15101
15102
15103
15104
15105 for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h
15106 do
15107 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15108 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15109   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15110 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15111 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15112   echo $ECHO_N "(cached) $ECHO_C" >&6
15113 fi
15114 ac_res=`eval echo '${'$as_ac_Header'}'`
15115                { echo "$as_me:$LINENO: result: $ac_res" >&5
15116 echo "${ECHO_T}$ac_res" >&6; }
15117 else
15118   # Is the header compilable?
15119 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15120 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15121 cat >conftest.$ac_ext <<_ACEOF
15122 /* confdefs.h.  */
15123 _ACEOF
15124 cat confdefs.h >>conftest.$ac_ext
15125 cat >>conftest.$ac_ext <<_ACEOF
15126 /* end confdefs.h.  */
15127 $ac_includes_default
15128 #include <$ac_header>
15129 _ACEOF
15130 rm -f conftest.$ac_objext
15131 if { (ac_try="$ac_compile"
15132 case "(($ac_try" in
15133   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15134   *) ac_try_echo=$ac_try;;
15135 esac
15136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15137   (eval "$ac_compile") 2>conftest.er1
15138   ac_status=$?
15139   grep -v '^ *+' conftest.er1 >conftest.err
15140   rm -f conftest.er1
15141   cat conftest.err >&5
15142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15143   (exit $ac_status); } &&
15144          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15145   { (case "(($ac_try" in
15146   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15147   *) ac_try_echo=$ac_try;;
15148 esac
15149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15150   (eval "$ac_try") 2>&5
15151   ac_status=$?
15152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15153   (exit $ac_status); }; } &&
15154          { ac_try='test -s conftest.$ac_objext'
15155   { (case "(($ac_try" in
15156   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15157   *) ac_try_echo=$ac_try;;
15158 esac
15159 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15160   (eval "$ac_try") 2>&5
15161   ac_status=$?
15162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15163   (exit $ac_status); }; }; then
15164   ac_header_compiler=yes
15165 else
15166   echo "$as_me: failed program was:" >&5
15167 sed 's/^/| /' conftest.$ac_ext >&5
15168
15169         ac_header_compiler=no
15170 fi
15171
15172 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15173 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15174 echo "${ECHO_T}$ac_header_compiler" >&6; }
15175
15176 # Is the header present?
15177 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15178 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15179 cat >conftest.$ac_ext <<_ACEOF
15180 /* confdefs.h.  */
15181 _ACEOF
15182 cat confdefs.h >>conftest.$ac_ext
15183 cat >>conftest.$ac_ext <<_ACEOF
15184 /* end confdefs.h.  */
15185 #include <$ac_header>
15186 _ACEOF
15187 if { (ac_try="$ac_cpp conftest.$ac_ext"
15188 case "(($ac_try" in
15189   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15190   *) ac_try_echo=$ac_try;;
15191 esac
15192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15193   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15194   ac_status=$?
15195   grep -v '^ *+' conftest.er1 >conftest.err
15196   rm -f conftest.er1
15197   cat conftest.err >&5
15198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15199   (exit $ac_status); } >/dev/null; then
15200   if test -s conftest.err; then
15201     ac_cpp_err=$ac_c_preproc_warn_flag
15202     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15203   else
15204     ac_cpp_err=
15205   fi
15206 else
15207   ac_cpp_err=yes
15208 fi
15209 if test -z "$ac_cpp_err"; then
15210   ac_header_preproc=yes
15211 else
15212   echo "$as_me: failed program was:" >&5
15213 sed 's/^/| /' conftest.$ac_ext >&5
15214
15215   ac_header_preproc=no
15216 fi
15217
15218 rm -f conftest.err conftest.$ac_ext
15219 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15220 echo "${ECHO_T}$ac_header_preproc" >&6; }
15221
15222 # So?  What about this header?
15223 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15224   yes:no: )
15225     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15226 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15227     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15228 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15229     ac_header_preproc=yes
15230     ;;
15231   no:yes:* )
15232     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15233 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15234     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15235 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15236     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15237 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15238     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15239 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15240     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15241 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15242     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15243 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15244     ( cat <<\_ASBOX
15245 ## ------------------------------------ ##
15246 ## Report this to http://llvm.org/bugs/ ##
15247 ## ------------------------------------ ##
15248 _ASBOX
15249      ) | sed "s/^/$as_me: WARNING:     /" >&2
15250     ;;
15251 esac
15252 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15253 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15254 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15255   echo $ECHO_N "(cached) $ECHO_C" >&6
15256 else
15257   eval "$as_ac_Header=\$ac_header_preproc"
15258 fi
15259 ac_res=`eval echo '${'$as_ac_Header'}'`
15260                { echo "$as_me:$LINENO: result: $ac_res" >&5
15261 echo "${ECHO_T}$ac_res" >&6; }
15262
15263 fi
15264 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15265   cat >>confdefs.h <<_ACEOF
15266 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15267 _ACEOF
15268
15269 fi
15270
15271 done
15272
15273
15274 for ac_header in valgrind/valgrind.h
15275 do
15276 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15277 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15278   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15279 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15280 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15281   echo $ECHO_N "(cached) $ECHO_C" >&6
15282 fi
15283 ac_res=`eval echo '${'$as_ac_Header'}'`
15284                { echo "$as_me:$LINENO: result: $ac_res" >&5
15285 echo "${ECHO_T}$ac_res" >&6; }
15286 else
15287   # Is the header compilable?
15288 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15289 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15290 cat >conftest.$ac_ext <<_ACEOF
15291 /* confdefs.h.  */
15292 _ACEOF
15293 cat confdefs.h >>conftest.$ac_ext
15294 cat >>conftest.$ac_ext <<_ACEOF
15295 /* end confdefs.h.  */
15296 $ac_includes_default
15297 #include <$ac_header>
15298 _ACEOF
15299 rm -f conftest.$ac_objext
15300 if { (ac_try="$ac_compile"
15301 case "(($ac_try" in
15302   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15303   *) ac_try_echo=$ac_try;;
15304 esac
15305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15306   (eval "$ac_compile") 2>conftest.er1
15307   ac_status=$?
15308   grep -v '^ *+' conftest.er1 >conftest.err
15309   rm -f conftest.er1
15310   cat conftest.err >&5
15311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15312   (exit $ac_status); } &&
15313          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15314   { (case "(($ac_try" in
15315   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15316   *) ac_try_echo=$ac_try;;
15317 esac
15318 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15319   (eval "$ac_try") 2>&5
15320   ac_status=$?
15321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15322   (exit $ac_status); }; } &&
15323          { ac_try='test -s conftest.$ac_objext'
15324   { (case "(($ac_try" in
15325   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15326   *) ac_try_echo=$ac_try;;
15327 esac
15328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15329   (eval "$ac_try") 2>&5
15330   ac_status=$?
15331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15332   (exit $ac_status); }; }; then
15333   ac_header_compiler=yes
15334 else
15335   echo "$as_me: failed program was:" >&5
15336 sed 's/^/| /' conftest.$ac_ext >&5
15337
15338         ac_header_compiler=no
15339 fi
15340
15341 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15342 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15343 echo "${ECHO_T}$ac_header_compiler" >&6; }
15344
15345 # Is the header present?
15346 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15347 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15348 cat >conftest.$ac_ext <<_ACEOF
15349 /* confdefs.h.  */
15350 _ACEOF
15351 cat confdefs.h >>conftest.$ac_ext
15352 cat >>conftest.$ac_ext <<_ACEOF
15353 /* end confdefs.h.  */
15354 #include <$ac_header>
15355 _ACEOF
15356 if { (ac_try="$ac_cpp conftest.$ac_ext"
15357 case "(($ac_try" in
15358   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15359   *) ac_try_echo=$ac_try;;
15360 esac
15361 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15362   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15363   ac_status=$?
15364   grep -v '^ *+' conftest.er1 >conftest.err
15365   rm -f conftest.er1
15366   cat conftest.err >&5
15367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15368   (exit $ac_status); } >/dev/null; then
15369   if test -s conftest.err; then
15370     ac_cpp_err=$ac_c_preproc_warn_flag
15371     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15372   else
15373     ac_cpp_err=
15374   fi
15375 else
15376   ac_cpp_err=yes
15377 fi
15378 if test -z "$ac_cpp_err"; then
15379   ac_header_preproc=yes
15380 else
15381   echo "$as_me: failed program was:" >&5
15382 sed 's/^/| /' conftest.$ac_ext >&5
15383
15384   ac_header_preproc=no
15385 fi
15386
15387 rm -f conftest.err conftest.$ac_ext
15388 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15389 echo "${ECHO_T}$ac_header_preproc" >&6; }
15390
15391 # So?  What about this header?
15392 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15393   yes:no: )
15394     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15395 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15396     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15397 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15398     ac_header_preproc=yes
15399     ;;
15400   no:yes:* )
15401     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15402 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15403     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15404 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15405     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15406 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15407     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15408 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15409     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15410 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15411     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15412 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15413     ( cat <<\_ASBOX
15414 ## ------------------------------------ ##
15415 ## Report this to http://llvm.org/bugs/ ##
15416 ## ------------------------------------ ##
15417 _ASBOX
15418      ) | sed "s/^/$as_me: WARNING:     /" >&2
15419     ;;
15420 esac
15421 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15422 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15423 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15424   echo $ECHO_N "(cached) $ECHO_C" >&6
15425 else
15426   eval "$as_ac_Header=\$ac_header_preproc"
15427 fi
15428 ac_res=`eval echo '${'$as_ac_Header'}'`
15429                { echo "$as_me:$LINENO: result: $ac_res" >&5
15430 echo "${ECHO_T}$ac_res" >&6; }
15431
15432 fi
15433 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15434   cat >>confdefs.h <<_ACEOF
15435 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15436 _ACEOF
15437
15438 fi
15439
15440 done
15441
15442
15443 for ac_header in fenv.h
15444 do
15445 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15446 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15447   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15448 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15449 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15450   echo $ECHO_N "(cached) $ECHO_C" >&6
15451 fi
15452 ac_res=`eval echo '${'$as_ac_Header'}'`
15453                { echo "$as_me:$LINENO: result: $ac_res" >&5
15454 echo "${ECHO_T}$ac_res" >&6; }
15455 else
15456   # Is the header compilable?
15457 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15458 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15459 cat >conftest.$ac_ext <<_ACEOF
15460 /* confdefs.h.  */
15461 _ACEOF
15462 cat confdefs.h >>conftest.$ac_ext
15463 cat >>conftest.$ac_ext <<_ACEOF
15464 /* end confdefs.h.  */
15465 $ac_includes_default
15466 #include <$ac_header>
15467 _ACEOF
15468 rm -f conftest.$ac_objext
15469 if { (ac_try="$ac_compile"
15470 case "(($ac_try" in
15471   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15472   *) ac_try_echo=$ac_try;;
15473 esac
15474 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15475   (eval "$ac_compile") 2>conftest.er1
15476   ac_status=$?
15477   grep -v '^ *+' conftest.er1 >conftest.err
15478   rm -f conftest.er1
15479   cat conftest.err >&5
15480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15481   (exit $ac_status); } &&
15482          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15483   { (case "(($ac_try" in
15484   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15485   *) ac_try_echo=$ac_try;;
15486 esac
15487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15488   (eval "$ac_try") 2>&5
15489   ac_status=$?
15490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15491   (exit $ac_status); }; } &&
15492          { ac_try='test -s conftest.$ac_objext'
15493   { (case "(($ac_try" in
15494   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15495   *) ac_try_echo=$ac_try;;
15496 esac
15497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15498   (eval "$ac_try") 2>&5
15499   ac_status=$?
15500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15501   (exit $ac_status); }; }; then
15502   ac_header_compiler=yes
15503 else
15504   echo "$as_me: failed program was:" >&5
15505 sed 's/^/| /' conftest.$ac_ext >&5
15506
15507         ac_header_compiler=no
15508 fi
15509
15510 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15511 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15512 echo "${ECHO_T}$ac_header_compiler" >&6; }
15513
15514 # Is the header present?
15515 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15516 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15517 cat >conftest.$ac_ext <<_ACEOF
15518 /* confdefs.h.  */
15519 _ACEOF
15520 cat confdefs.h >>conftest.$ac_ext
15521 cat >>conftest.$ac_ext <<_ACEOF
15522 /* end confdefs.h.  */
15523 #include <$ac_header>
15524 _ACEOF
15525 if { (ac_try="$ac_cpp conftest.$ac_ext"
15526 case "(($ac_try" in
15527   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15528   *) ac_try_echo=$ac_try;;
15529 esac
15530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15531   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15532   ac_status=$?
15533   grep -v '^ *+' conftest.er1 >conftest.err
15534   rm -f conftest.er1
15535   cat conftest.err >&5
15536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15537   (exit $ac_status); } >/dev/null; then
15538   if test -s conftest.err; then
15539     ac_cpp_err=$ac_c_preproc_warn_flag
15540     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15541   else
15542     ac_cpp_err=
15543   fi
15544 else
15545   ac_cpp_err=yes
15546 fi
15547 if test -z "$ac_cpp_err"; then
15548   ac_header_preproc=yes
15549 else
15550   echo "$as_me: failed program was:" >&5
15551 sed 's/^/| /' conftest.$ac_ext >&5
15552
15553   ac_header_preproc=no
15554 fi
15555
15556 rm -f conftest.err conftest.$ac_ext
15557 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15558 echo "${ECHO_T}$ac_header_preproc" >&6; }
15559
15560 # So?  What about this header?
15561 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15562   yes:no: )
15563     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15564 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15565     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15566 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15567     ac_header_preproc=yes
15568     ;;
15569   no:yes:* )
15570     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15571 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15572     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15573 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15574     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15575 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15576     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15577 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15578     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15579 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15580     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15581 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15582     ( cat <<\_ASBOX
15583 ## ------------------------------------ ##
15584 ## Report this to http://llvm.org/bugs/ ##
15585 ## ------------------------------------ ##
15586 _ASBOX
15587      ) | sed "s/^/$as_me: WARNING:     /" >&2
15588     ;;
15589 esac
15590 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15591 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15592 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15593   echo $ECHO_N "(cached) $ECHO_C" >&6
15594 else
15595   eval "$as_ac_Header=\$ac_header_preproc"
15596 fi
15597 ac_res=`eval echo '${'$as_ac_Header'}'`
15598                { echo "$as_me:$LINENO: result: $ac_res" >&5
15599 echo "${ECHO_T}$ac_res" >&6; }
15600
15601 fi
15602 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15603   cat >>confdefs.h <<_ACEOF
15604 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15605 _ACEOF
15606
15607 fi
15608
15609 done
15610
15611 if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
15612
15613 for ac_header in pthread.h
15614 do
15615 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15616 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15617   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15618 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15619 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15620   echo $ECHO_N "(cached) $ECHO_C" >&6
15621 fi
15622 ac_res=`eval echo '${'$as_ac_Header'}'`
15623                { echo "$as_me:$LINENO: result: $ac_res" >&5
15624 echo "${ECHO_T}$ac_res" >&6; }
15625 else
15626   # Is the header compilable?
15627 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15628 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15629 cat >conftest.$ac_ext <<_ACEOF
15630 /* confdefs.h.  */
15631 _ACEOF
15632 cat confdefs.h >>conftest.$ac_ext
15633 cat >>conftest.$ac_ext <<_ACEOF
15634 /* end confdefs.h.  */
15635 $ac_includes_default
15636 #include <$ac_header>
15637 _ACEOF
15638 rm -f conftest.$ac_objext
15639 if { (ac_try="$ac_compile"
15640 case "(($ac_try" in
15641   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15642   *) ac_try_echo=$ac_try;;
15643 esac
15644 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15645   (eval "$ac_compile") 2>conftest.er1
15646   ac_status=$?
15647   grep -v '^ *+' conftest.er1 >conftest.err
15648   rm -f conftest.er1
15649   cat conftest.err >&5
15650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15651   (exit $ac_status); } &&
15652          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15653   { (case "(($ac_try" in
15654   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15655   *) ac_try_echo=$ac_try;;
15656 esac
15657 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15658   (eval "$ac_try") 2>&5
15659   ac_status=$?
15660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15661   (exit $ac_status); }; } &&
15662          { ac_try='test -s conftest.$ac_objext'
15663   { (case "(($ac_try" in
15664   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15665   *) ac_try_echo=$ac_try;;
15666 esac
15667 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15668   (eval "$ac_try") 2>&5
15669   ac_status=$?
15670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15671   (exit $ac_status); }; }; then
15672   ac_header_compiler=yes
15673 else
15674   echo "$as_me: failed program was:" >&5
15675 sed 's/^/| /' conftest.$ac_ext >&5
15676
15677         ac_header_compiler=no
15678 fi
15679
15680 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15681 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15682 echo "${ECHO_T}$ac_header_compiler" >&6; }
15683
15684 # Is the header present?
15685 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15686 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15687 cat >conftest.$ac_ext <<_ACEOF
15688 /* confdefs.h.  */
15689 _ACEOF
15690 cat confdefs.h >>conftest.$ac_ext
15691 cat >>conftest.$ac_ext <<_ACEOF
15692 /* end confdefs.h.  */
15693 #include <$ac_header>
15694 _ACEOF
15695 if { (ac_try="$ac_cpp conftest.$ac_ext"
15696 case "(($ac_try" in
15697   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15698   *) ac_try_echo=$ac_try;;
15699 esac
15700 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15701   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15702   ac_status=$?
15703   grep -v '^ *+' conftest.er1 >conftest.err
15704   rm -f conftest.er1
15705   cat conftest.err >&5
15706   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15707   (exit $ac_status); } >/dev/null; then
15708   if test -s conftest.err; then
15709     ac_cpp_err=$ac_c_preproc_warn_flag
15710     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15711   else
15712     ac_cpp_err=
15713   fi
15714 else
15715   ac_cpp_err=yes
15716 fi
15717 if test -z "$ac_cpp_err"; then
15718   ac_header_preproc=yes
15719 else
15720   echo "$as_me: failed program was:" >&5
15721 sed 's/^/| /' conftest.$ac_ext >&5
15722
15723   ac_header_preproc=no
15724 fi
15725
15726 rm -f conftest.err conftest.$ac_ext
15727 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15728 echo "${ECHO_T}$ac_header_preproc" >&6; }
15729
15730 # So?  What about this header?
15731 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15732   yes:no: )
15733     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15734 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15735     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15736 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15737     ac_header_preproc=yes
15738     ;;
15739   no:yes:* )
15740     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15741 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15742     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15743 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15744     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15745 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15746     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15747 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15748     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15749 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15750     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15751 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15752     ( cat <<\_ASBOX
15753 ## ------------------------------------ ##
15754 ## Report this to http://llvm.org/bugs/ ##
15755 ## ------------------------------------ ##
15756 _ASBOX
15757      ) | sed "s/^/$as_me: WARNING:     /" >&2
15758     ;;
15759 esac
15760 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15761 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15762 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15763   echo $ECHO_N "(cached) $ECHO_C" >&6
15764 else
15765   eval "$as_ac_Header=\$ac_header_preproc"
15766 fi
15767 ac_res=`eval echo '${'$as_ac_Header'}'`
15768                { echo "$as_me:$LINENO: result: $ac_res" >&5
15769 echo "${ECHO_T}$ac_res" >&6; }
15770
15771 fi
15772 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15773   cat >>confdefs.h <<_ACEOF
15774 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15775 _ACEOF
15776  HAVE_PTHREAD=1
15777
15778 else
15779   HAVE_PTHREAD=0
15780
15781 fi
15782
15783 done
15784
15785 else
15786   HAVE_PTHREAD=0
15787
15788 fi
15789
15790 if test "$llvm_cv_enable_libffi" = "yes" ; then
15791
15792
15793 for ac_header in ffi.h ffi/ffi.h
15794 do
15795 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15796 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15797   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15798 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15799 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15800   echo $ECHO_N "(cached) $ECHO_C" >&6
15801 fi
15802 ac_res=`eval echo '${'$as_ac_Header'}'`
15803                { echo "$as_me:$LINENO: result: $ac_res" >&5
15804 echo "${ECHO_T}$ac_res" >&6; }
15805 else
15806   # Is the header compilable?
15807 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15808 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15809 cat >conftest.$ac_ext <<_ACEOF
15810 /* confdefs.h.  */
15811 _ACEOF
15812 cat confdefs.h >>conftest.$ac_ext
15813 cat >>conftest.$ac_ext <<_ACEOF
15814 /* end confdefs.h.  */
15815 $ac_includes_default
15816 #include <$ac_header>
15817 _ACEOF
15818 rm -f conftest.$ac_objext
15819 if { (ac_try="$ac_compile"
15820 case "(($ac_try" in
15821   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15822   *) ac_try_echo=$ac_try;;
15823 esac
15824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15825   (eval "$ac_compile") 2>conftest.er1
15826   ac_status=$?
15827   grep -v '^ *+' conftest.er1 >conftest.err
15828   rm -f conftest.er1
15829   cat conftest.err >&5
15830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15831   (exit $ac_status); } &&
15832          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15833   { (case "(($ac_try" in
15834   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15835   *) ac_try_echo=$ac_try;;
15836 esac
15837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15838   (eval "$ac_try") 2>&5
15839   ac_status=$?
15840   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15841   (exit $ac_status); }; } &&
15842          { ac_try='test -s conftest.$ac_objext'
15843   { (case "(($ac_try" in
15844   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15845   *) ac_try_echo=$ac_try;;
15846 esac
15847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15848   (eval "$ac_try") 2>&5
15849   ac_status=$?
15850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15851   (exit $ac_status); }; }; then
15852   ac_header_compiler=yes
15853 else
15854   echo "$as_me: failed program was:" >&5
15855 sed 's/^/| /' conftest.$ac_ext >&5
15856
15857         ac_header_compiler=no
15858 fi
15859
15860 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15861 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15862 echo "${ECHO_T}$ac_header_compiler" >&6; }
15863
15864 # Is the header present?
15865 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15866 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15867 cat >conftest.$ac_ext <<_ACEOF
15868 /* confdefs.h.  */
15869 _ACEOF
15870 cat confdefs.h >>conftest.$ac_ext
15871 cat >>conftest.$ac_ext <<_ACEOF
15872 /* end confdefs.h.  */
15873 #include <$ac_header>
15874 _ACEOF
15875 if { (ac_try="$ac_cpp conftest.$ac_ext"
15876 case "(($ac_try" in
15877   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15878   *) ac_try_echo=$ac_try;;
15879 esac
15880 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15881   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15882   ac_status=$?
15883   grep -v '^ *+' conftest.er1 >conftest.err
15884   rm -f conftest.er1
15885   cat conftest.err >&5
15886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15887   (exit $ac_status); } >/dev/null; then
15888   if test -s conftest.err; then
15889     ac_cpp_err=$ac_c_preproc_warn_flag
15890     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15891   else
15892     ac_cpp_err=
15893   fi
15894 else
15895   ac_cpp_err=yes
15896 fi
15897 if test -z "$ac_cpp_err"; then
15898   ac_header_preproc=yes
15899 else
15900   echo "$as_me: failed program was:" >&5
15901 sed 's/^/| /' conftest.$ac_ext >&5
15902
15903   ac_header_preproc=no
15904 fi
15905
15906 rm -f conftest.err conftest.$ac_ext
15907 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15908 echo "${ECHO_T}$ac_header_preproc" >&6; }
15909
15910 # So?  What about this header?
15911 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15912   yes:no: )
15913     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15914 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15915     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15916 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15917     ac_header_preproc=yes
15918     ;;
15919   no:yes:* )
15920     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15921 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15922     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15923 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15924     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15925 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15926     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15927 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15928     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15929 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15930     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15931 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15932     ( cat <<\_ASBOX
15933 ## ------------------------------------ ##
15934 ## Report this to http://llvm.org/bugs/ ##
15935 ## ------------------------------------ ##
15936 _ASBOX
15937      ) | sed "s/^/$as_me: WARNING:     /" >&2
15938     ;;
15939 esac
15940 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15941 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15942 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15943   echo $ECHO_N "(cached) $ECHO_C" >&6
15944 else
15945   eval "$as_ac_Header=\$ac_header_preproc"
15946 fi
15947 ac_res=`eval echo '${'$as_ac_Header'}'`
15948                { echo "$as_me:$LINENO: result: $ac_res" >&5
15949 echo "${ECHO_T}$ac_res" >&6; }
15950
15951 fi
15952 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15953   cat >>confdefs.h <<_ACEOF
15954 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15955 _ACEOF
15956
15957 fi
15958
15959 done
15960
15961 fi
15962
15963
15964 for ac_header in CrashReporterClient.h
15965 do
15966 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15967 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15968   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15969 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15970 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15971   echo $ECHO_N "(cached) $ECHO_C" >&6
15972 fi
15973 ac_res=`eval echo '${'$as_ac_Header'}'`
15974                { echo "$as_me:$LINENO: result: $ac_res" >&5
15975 echo "${ECHO_T}$ac_res" >&6; }
15976 else
15977   # Is the header compilable?
15978 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15979 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15980 cat >conftest.$ac_ext <<_ACEOF
15981 /* confdefs.h.  */
15982 _ACEOF
15983 cat confdefs.h >>conftest.$ac_ext
15984 cat >>conftest.$ac_ext <<_ACEOF
15985 /* end confdefs.h.  */
15986 $ac_includes_default
15987 #include <$ac_header>
15988 _ACEOF
15989 rm -f conftest.$ac_objext
15990 if { (ac_try="$ac_compile"
15991 case "(($ac_try" in
15992   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15993   *) ac_try_echo=$ac_try;;
15994 esac
15995 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15996   (eval "$ac_compile") 2>conftest.er1
15997   ac_status=$?
15998   grep -v '^ *+' conftest.er1 >conftest.err
15999   rm -f conftest.er1
16000   cat conftest.err >&5
16001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16002   (exit $ac_status); } &&
16003          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16004   { (case "(($ac_try" in
16005   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16006   *) ac_try_echo=$ac_try;;
16007 esac
16008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16009   (eval "$ac_try") 2>&5
16010   ac_status=$?
16011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16012   (exit $ac_status); }; } &&
16013          { ac_try='test -s conftest.$ac_objext'
16014   { (case "(($ac_try" in
16015   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16016   *) ac_try_echo=$ac_try;;
16017 esac
16018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16019   (eval "$ac_try") 2>&5
16020   ac_status=$?
16021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16022   (exit $ac_status); }; }; then
16023   ac_header_compiler=yes
16024 else
16025   echo "$as_me: failed program was:" >&5
16026 sed 's/^/| /' conftest.$ac_ext >&5
16027
16028         ac_header_compiler=no
16029 fi
16030
16031 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16032 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16033 echo "${ECHO_T}$ac_header_compiler" >&6; }
16034
16035 # Is the header present?
16036 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16037 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16038 cat >conftest.$ac_ext <<_ACEOF
16039 /* confdefs.h.  */
16040 _ACEOF
16041 cat confdefs.h >>conftest.$ac_ext
16042 cat >>conftest.$ac_ext <<_ACEOF
16043 /* end confdefs.h.  */
16044 #include <$ac_header>
16045 _ACEOF
16046 if { (ac_try="$ac_cpp conftest.$ac_ext"
16047 case "(($ac_try" in
16048   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16049   *) ac_try_echo=$ac_try;;
16050 esac
16051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16052   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16053   ac_status=$?
16054   grep -v '^ *+' conftest.er1 >conftest.err
16055   rm -f conftest.er1
16056   cat conftest.err >&5
16057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16058   (exit $ac_status); } >/dev/null; then
16059   if test -s conftest.err; then
16060     ac_cpp_err=$ac_c_preproc_warn_flag
16061     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16062   else
16063     ac_cpp_err=
16064   fi
16065 else
16066   ac_cpp_err=yes
16067 fi
16068 if test -z "$ac_cpp_err"; then
16069   ac_header_preproc=yes
16070 else
16071   echo "$as_me: failed program was:" >&5
16072 sed 's/^/| /' conftest.$ac_ext >&5
16073
16074   ac_header_preproc=no
16075 fi
16076
16077 rm -f conftest.err conftest.$ac_ext
16078 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16079 echo "${ECHO_T}$ac_header_preproc" >&6; }
16080
16081 # So?  What about this header?
16082 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16083   yes:no: )
16084     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16085 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16086     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16087 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16088     ac_header_preproc=yes
16089     ;;
16090   no:yes:* )
16091     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16092 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16093     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16094 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16095     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16096 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16097     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16098 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16099     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16100 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16101     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16102 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16103     ( cat <<\_ASBOX
16104 ## ------------------------------------ ##
16105 ## Report this to http://llvm.org/bugs/ ##
16106 ## ------------------------------------ ##
16107 _ASBOX
16108      ) | sed "s/^/$as_me: WARNING:     /" >&2
16109     ;;
16110 esac
16111 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16112 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16113 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16114   echo $ECHO_N "(cached) $ECHO_C" >&6
16115 else
16116   eval "$as_ac_Header=\$ac_header_preproc"
16117 fi
16118 ac_res=`eval echo '${'$as_ac_Header'}'`
16119                { echo "$as_me:$LINENO: result: $ac_res" >&5
16120 echo "${ECHO_T}$ac_res" >&6; }
16121
16122 fi
16123 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16124   cat >>confdefs.h <<_ACEOF
16125 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16126 _ACEOF
16127
16128 fi
16129
16130 done
16131
16132
16133 { echo "$as_me:$LINENO: checking __crashreporter_info__" >&5
16134 echo $ECHO_N "checking __crashreporter_info__... $ECHO_C" >&6; }
16135 cat >conftest.$ac_ext <<_ACEOF
16136 /* confdefs.h.  */
16137 _ACEOF
16138 cat confdefs.h >>conftest.$ac_ext
16139 cat >>conftest.$ac_ext <<_ACEOF
16140 /* end confdefs.h.  */
16141 extern const char *__crashreporter_info__;
16142       int main() {
16143         __crashreporter_info__ = "test";
16144         return 0;
16145       }
16146
16147 _ACEOF
16148 rm -f conftest.$ac_objext conftest$ac_exeext
16149 if { (ac_try="$ac_link"
16150 case "(($ac_try" in
16151   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16152   *) ac_try_echo=$ac_try;;
16153 esac
16154 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16155   (eval "$ac_link") 2>conftest.er1
16156   ac_status=$?
16157   grep -v '^ *+' conftest.er1 >conftest.err
16158   rm -f conftest.er1
16159   cat conftest.err >&5
16160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16161   (exit $ac_status); } &&
16162          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16163   { (case "(($ac_try" in
16164   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16165   *) ac_try_echo=$ac_try;;
16166 esac
16167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16168   (eval "$ac_try") 2>&5
16169   ac_status=$?
16170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16171   (exit $ac_status); }; } &&
16172          { ac_try='test -s conftest$ac_exeext'
16173   { (case "(($ac_try" in
16174   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16175   *) ac_try_echo=$ac_try;;
16176 esac
16177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16178   (eval "$ac_try") 2>&5
16179   ac_status=$?
16180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16181   (exit $ac_status); }; }; then
16182   { echo "$as_me:$LINENO: result: yes" >&5
16183 echo "${ECHO_T}yes" >&6; }
16184
16185 cat >>confdefs.h <<\_ACEOF
16186 #define HAVE_CRASHREPORTER_INFO 1
16187 _ACEOF
16188
16189 else
16190   echo "$as_me: failed program was:" >&5
16191 sed 's/^/| /' conftest.$ac_ext >&5
16192
16193         { echo "$as_me:$LINENO: result: no" >&5
16194 echo "${ECHO_T}no" >&6; }
16195
16196 cat >>confdefs.h <<\_ACEOF
16197 #define HAVE_CRASHREPORTER_INFO 0
16198 _ACEOF
16199
16200 fi
16201
16202 rm -f core conftest.err conftest.$ac_objext \
16203       conftest$ac_exeext conftest.$ac_ext
16204
16205
16206
16207
16208   { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
16209 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
16210 if test "${ac_cv_huge_val_sanity+set}" = set; then
16211   echo $ECHO_N "(cached) $ECHO_C" >&6
16212 else
16213
16214     ac_ext=cpp
16215 ac_cpp='$CXXCPP $CPPFLAGS'
16216 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16217 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16218 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16219
16220     ac_save_CXXFLAGS=$CXXFLAGS
16221     CXXFLAGS="$CXXFLAGS -pedantic"
16222     if test "$cross_compiling" = yes; then
16223   ac_cv_huge_val_sanity=yes
16224 else
16225   cat >conftest.$ac_ext <<_ACEOF
16226 /* confdefs.h.  */
16227 _ACEOF
16228 cat confdefs.h >>conftest.$ac_ext
16229 cat >>conftest.$ac_ext <<_ACEOF
16230 /* end confdefs.h.  */
16231 #include <math.h>
16232 int
16233 main ()
16234 {
16235 double x = HUGE_VAL; return x != x;
16236   ;
16237   return 0;
16238 }
16239 _ACEOF
16240 rm -f conftest$ac_exeext
16241 if { (ac_try="$ac_link"
16242 case "(($ac_try" in
16243   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16244   *) ac_try_echo=$ac_try;;
16245 esac
16246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16247   (eval "$ac_link") 2>&5
16248   ac_status=$?
16249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16250   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16251   { (case "(($ac_try" in
16252   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16253   *) ac_try_echo=$ac_try;;
16254 esac
16255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16256   (eval "$ac_try") 2>&5
16257   ac_status=$?
16258   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16259   (exit $ac_status); }; }; then
16260   ac_cv_huge_val_sanity=yes
16261 else
16262   echo "$as_me: program exited with status $ac_status" >&5
16263 echo "$as_me: failed program was:" >&5
16264 sed 's/^/| /' conftest.$ac_ext >&5
16265
16266 ( exit $ac_status )
16267 ac_cv_huge_val_sanity=no
16268 fi
16269 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16270 fi
16271
16272
16273     CXXFLAGS=$ac_save_CXXFLAGS
16274     ac_ext=c
16275 ac_cpp='$CPP $CPPFLAGS'
16276 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16277 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16278 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16279
16280
16281 fi
16282 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
16283 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
16284   HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
16285
16286
16287 { echo "$as_me:$LINENO: checking for pid_t" >&5
16288 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
16289 if test "${ac_cv_type_pid_t+set}" = set; then
16290   echo $ECHO_N "(cached) $ECHO_C" >&6
16291 else
16292   cat >conftest.$ac_ext <<_ACEOF
16293 /* confdefs.h.  */
16294 _ACEOF
16295 cat confdefs.h >>conftest.$ac_ext
16296 cat >>conftest.$ac_ext <<_ACEOF
16297 /* end confdefs.h.  */
16298 $ac_includes_default
16299 typedef pid_t ac__type_new_;
16300 int
16301 main ()
16302 {
16303 if ((ac__type_new_ *) 0)
16304   return 0;
16305 if (sizeof (ac__type_new_))
16306   return 0;
16307   ;
16308   return 0;
16309 }
16310 _ACEOF
16311 rm -f conftest.$ac_objext
16312 if { (ac_try="$ac_compile"
16313 case "(($ac_try" in
16314   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16315   *) ac_try_echo=$ac_try;;
16316 esac
16317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16318   (eval "$ac_compile") 2>conftest.er1
16319   ac_status=$?
16320   grep -v '^ *+' conftest.er1 >conftest.err
16321   rm -f conftest.er1
16322   cat conftest.err >&5
16323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16324   (exit $ac_status); } &&
16325          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16326   { (case "(($ac_try" in
16327   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16328   *) ac_try_echo=$ac_try;;
16329 esac
16330 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16331   (eval "$ac_try") 2>&5
16332   ac_status=$?
16333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16334   (exit $ac_status); }; } &&
16335          { ac_try='test -s conftest.$ac_objext'
16336   { (case "(($ac_try" in
16337   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16338   *) ac_try_echo=$ac_try;;
16339 esac
16340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16341   (eval "$ac_try") 2>&5
16342   ac_status=$?
16343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16344   (exit $ac_status); }; }; then
16345   ac_cv_type_pid_t=yes
16346 else
16347   echo "$as_me: failed program was:" >&5
16348 sed 's/^/| /' conftest.$ac_ext >&5
16349
16350         ac_cv_type_pid_t=no
16351 fi
16352
16353 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16354 fi
16355 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
16356 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
16357 if test $ac_cv_type_pid_t = yes; then
16358   :
16359 else
16360
16361 cat >>confdefs.h <<_ACEOF
16362 #define pid_t int
16363 _ACEOF
16364
16365 fi
16366
16367 { echo "$as_me:$LINENO: checking for size_t" >&5
16368 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
16369 if test "${ac_cv_type_size_t+set}" = set; then
16370   echo $ECHO_N "(cached) $ECHO_C" >&6
16371 else
16372   cat >conftest.$ac_ext <<_ACEOF
16373 /* confdefs.h.  */
16374 _ACEOF
16375 cat confdefs.h >>conftest.$ac_ext
16376 cat >>conftest.$ac_ext <<_ACEOF
16377 /* end confdefs.h.  */
16378 $ac_includes_default
16379 typedef size_t ac__type_new_;
16380 int
16381 main ()
16382 {
16383 if ((ac__type_new_ *) 0)
16384   return 0;
16385 if (sizeof (ac__type_new_))
16386   return 0;
16387   ;
16388   return 0;
16389 }
16390 _ACEOF
16391 rm -f conftest.$ac_objext
16392 if { (ac_try="$ac_compile"
16393 case "(($ac_try" in
16394   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16395   *) ac_try_echo=$ac_try;;
16396 esac
16397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16398   (eval "$ac_compile") 2>conftest.er1
16399   ac_status=$?
16400   grep -v '^ *+' conftest.er1 >conftest.err
16401   rm -f conftest.er1
16402   cat conftest.err >&5
16403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16404   (exit $ac_status); } &&
16405          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16406   { (case "(($ac_try" in
16407   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16408   *) ac_try_echo=$ac_try;;
16409 esac
16410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16411   (eval "$ac_try") 2>&5
16412   ac_status=$?
16413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16414   (exit $ac_status); }; } &&
16415          { ac_try='test -s conftest.$ac_objext'
16416   { (case "(($ac_try" in
16417   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16418   *) ac_try_echo=$ac_try;;
16419 esac
16420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16421   (eval "$ac_try") 2>&5
16422   ac_status=$?
16423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16424   (exit $ac_status); }; }; then
16425   ac_cv_type_size_t=yes
16426 else
16427   echo "$as_me: failed program was:" >&5
16428 sed 's/^/| /' conftest.$ac_ext >&5
16429
16430         ac_cv_type_size_t=no
16431 fi
16432
16433 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16434 fi
16435 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
16436 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
16437 if test $ac_cv_type_size_t = yes; then
16438   :
16439 else
16440
16441 cat >>confdefs.h <<_ACEOF
16442 #define size_t unsigned int
16443 _ACEOF
16444
16445 fi
16446
16447
16448 cat >>confdefs.h <<_ACEOF
16449 #define RETSIGTYPE void
16450 _ACEOF
16451
16452 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
16453 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
16454 if test "${ac_cv_struct_tm+set}" = set; then
16455   echo $ECHO_N "(cached) $ECHO_C" >&6
16456 else
16457   cat >conftest.$ac_ext <<_ACEOF
16458 /* confdefs.h.  */
16459 _ACEOF
16460 cat confdefs.h >>conftest.$ac_ext
16461 cat >>conftest.$ac_ext <<_ACEOF
16462 /* end confdefs.h.  */
16463 #include <sys/types.h>
16464 #include <time.h>
16465
16466 int
16467 main ()
16468 {
16469 struct tm *tp; tp->tm_sec;
16470   ;
16471   return 0;
16472 }
16473 _ACEOF
16474 rm -f conftest.$ac_objext
16475 if { (ac_try="$ac_compile"
16476 case "(($ac_try" in
16477   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16478   *) ac_try_echo=$ac_try;;
16479 esac
16480 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16481   (eval "$ac_compile") 2>conftest.er1
16482   ac_status=$?
16483   grep -v '^ *+' conftest.er1 >conftest.err
16484   rm -f conftest.er1
16485   cat conftest.err >&5
16486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16487   (exit $ac_status); } &&
16488          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16489   { (case "(($ac_try" in
16490   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16491   *) ac_try_echo=$ac_try;;
16492 esac
16493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16494   (eval "$ac_try") 2>&5
16495   ac_status=$?
16496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16497   (exit $ac_status); }; } &&
16498          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
16508   ac_cv_struct_tm=time.h
16509 else
16510   echo "$as_me: failed program was:" >&5
16511 sed 's/^/| /' conftest.$ac_ext >&5
16512
16513         ac_cv_struct_tm=sys/time.h
16514 fi
16515
16516 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16517 fi
16518 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
16519 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
16520 if test $ac_cv_struct_tm = sys/time.h; then
16521
16522 cat >>confdefs.h <<\_ACEOF
16523 #define TM_IN_SYS_TIME 1
16524 _ACEOF
16525
16526 fi
16527
16528 { echo "$as_me:$LINENO: checking for int64_t" >&5
16529 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
16530 if test "${ac_cv_type_int64_t+set}" = set; then
16531   echo $ECHO_N "(cached) $ECHO_C" >&6
16532 else
16533   cat >conftest.$ac_ext <<_ACEOF
16534 /* confdefs.h.  */
16535 _ACEOF
16536 cat confdefs.h >>conftest.$ac_ext
16537 cat >>conftest.$ac_ext <<_ACEOF
16538 /* end confdefs.h.  */
16539 $ac_includes_default
16540 typedef int64_t ac__type_new_;
16541 int
16542 main ()
16543 {
16544 if ((ac__type_new_ *) 0)
16545   return 0;
16546 if (sizeof (ac__type_new_))
16547   return 0;
16548   ;
16549   return 0;
16550 }
16551 _ACEOF
16552 rm -f conftest.$ac_objext
16553 if { (ac_try="$ac_compile"
16554 case "(($ac_try" in
16555   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16556   *) ac_try_echo=$ac_try;;
16557 esac
16558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16559   (eval "$ac_compile") 2>conftest.er1
16560   ac_status=$?
16561   grep -v '^ *+' conftest.er1 >conftest.err
16562   rm -f conftest.er1
16563   cat conftest.err >&5
16564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16565   (exit $ac_status); } &&
16566          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16567   { (case "(($ac_try" in
16568   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16569   *) ac_try_echo=$ac_try;;
16570 esac
16571 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16572   (eval "$ac_try") 2>&5
16573   ac_status=$?
16574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16575   (exit $ac_status); }; } &&
16576          { ac_try='test -s conftest.$ac_objext'
16577   { (case "(($ac_try" in
16578   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16579   *) ac_try_echo=$ac_try;;
16580 esac
16581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16582   (eval "$ac_try") 2>&5
16583   ac_status=$?
16584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16585   (exit $ac_status); }; }; then
16586   ac_cv_type_int64_t=yes
16587 else
16588   echo "$as_me: failed program was:" >&5
16589 sed 's/^/| /' conftest.$ac_ext >&5
16590
16591         ac_cv_type_int64_t=no
16592 fi
16593
16594 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16595 fi
16596 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
16597 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
16598 if test $ac_cv_type_int64_t = yes; then
16599
16600 cat >>confdefs.h <<_ACEOF
16601 #define HAVE_INT64_T 1
16602 _ACEOF
16603
16604
16605 else
16606   { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
16607 echo "$as_me: error: Type int64_t required but not found" >&2;}
16608    { (exit 1); exit 1; }; }
16609 fi
16610
16611 { echo "$as_me:$LINENO: checking for uint64_t" >&5
16612 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
16613 if test "${ac_cv_type_uint64_t+set}" = set; then
16614   echo $ECHO_N "(cached) $ECHO_C" >&6
16615 else
16616   cat >conftest.$ac_ext <<_ACEOF
16617 /* confdefs.h.  */
16618 _ACEOF
16619 cat confdefs.h >>conftest.$ac_ext
16620 cat >>conftest.$ac_ext <<_ACEOF
16621 /* end confdefs.h.  */
16622 $ac_includes_default
16623 typedef uint64_t ac__type_new_;
16624 int
16625 main ()
16626 {
16627 if ((ac__type_new_ *) 0)
16628   return 0;
16629 if (sizeof (ac__type_new_))
16630   return 0;
16631   ;
16632   return 0;
16633 }
16634 _ACEOF
16635 rm -f conftest.$ac_objext
16636 if { (ac_try="$ac_compile"
16637 case "(($ac_try" in
16638   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16639   *) ac_try_echo=$ac_try;;
16640 esac
16641 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16642   (eval "$ac_compile") 2>conftest.er1
16643   ac_status=$?
16644   grep -v '^ *+' conftest.er1 >conftest.err
16645   rm -f conftest.er1
16646   cat conftest.err >&5
16647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16648   (exit $ac_status); } &&
16649          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16650   { (case "(($ac_try" in
16651   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16652   *) ac_try_echo=$ac_try;;
16653 esac
16654 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16655   (eval "$ac_try") 2>&5
16656   ac_status=$?
16657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16658   (exit $ac_status); }; } &&
16659          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
16669   ac_cv_type_uint64_t=yes
16670 else
16671   echo "$as_me: failed program was:" >&5
16672 sed 's/^/| /' conftest.$ac_ext >&5
16673
16674         ac_cv_type_uint64_t=no
16675 fi
16676
16677 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16678 fi
16679 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
16680 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
16681 if test $ac_cv_type_uint64_t = yes; then
16682
16683 cat >>confdefs.h <<_ACEOF
16684 #define HAVE_UINT64_T 1
16685 _ACEOF
16686
16687
16688 else
16689   { echo "$as_me:$LINENO: checking for u_int64_t" >&5
16690 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
16691 if test "${ac_cv_type_u_int64_t+set}" = set; then
16692   echo $ECHO_N "(cached) $ECHO_C" >&6
16693 else
16694   cat >conftest.$ac_ext <<_ACEOF
16695 /* confdefs.h.  */
16696 _ACEOF
16697 cat confdefs.h >>conftest.$ac_ext
16698 cat >>conftest.$ac_ext <<_ACEOF
16699 /* end confdefs.h.  */
16700 $ac_includes_default
16701 typedef u_int64_t ac__type_new_;
16702 int
16703 main ()
16704 {
16705 if ((ac__type_new_ *) 0)
16706   return 0;
16707 if (sizeof (ac__type_new_))
16708   return 0;
16709   ;
16710   return 0;
16711 }
16712 _ACEOF
16713 rm -f conftest.$ac_objext
16714 if { (ac_try="$ac_compile"
16715 case "(($ac_try" in
16716   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16717   *) ac_try_echo=$ac_try;;
16718 esac
16719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16720   (eval "$ac_compile") 2>conftest.er1
16721   ac_status=$?
16722   grep -v '^ *+' conftest.er1 >conftest.err
16723   rm -f conftest.er1
16724   cat conftest.err >&5
16725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16726   (exit $ac_status); } &&
16727          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16728   { (case "(($ac_try" in
16729   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16730   *) ac_try_echo=$ac_try;;
16731 esac
16732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16733   (eval "$ac_try") 2>&5
16734   ac_status=$?
16735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16736   (exit $ac_status); }; } &&
16737          { ac_try='test -s conftest.$ac_objext'
16738   { (case "(($ac_try" in
16739   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16740   *) ac_try_echo=$ac_try;;
16741 esac
16742 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16743   (eval "$ac_try") 2>&5
16744   ac_status=$?
16745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16746   (exit $ac_status); }; }; then
16747   ac_cv_type_u_int64_t=yes
16748 else
16749   echo "$as_me: failed program was:" >&5
16750 sed 's/^/| /' conftest.$ac_ext >&5
16751
16752         ac_cv_type_u_int64_t=no
16753 fi
16754
16755 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16756 fi
16757 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
16758 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
16759 if test $ac_cv_type_u_int64_t = yes; then
16760
16761 cat >>confdefs.h <<_ACEOF
16762 #define HAVE_U_INT64_T 1
16763 _ACEOF
16764
16765
16766 else
16767   { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
16768 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
16769    { (exit 1); exit 1; }; }
16770 fi
16771
16772 fi
16773
16774
16775
16776
16777
16778
16779
16780
16781
16782
16783 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
16784 do
16785 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16786 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16787 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16788 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16789   echo $ECHO_N "(cached) $ECHO_C" >&6
16790 else
16791   cat >conftest.$ac_ext <<_ACEOF
16792 /* confdefs.h.  */
16793 _ACEOF
16794 cat confdefs.h >>conftest.$ac_ext
16795 cat >>conftest.$ac_ext <<_ACEOF
16796 /* end confdefs.h.  */
16797 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16798    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16799 #define $ac_func innocuous_$ac_func
16800
16801 /* System header to define __stub macros and hopefully few prototypes,
16802     which can conflict with char $ac_func (); below.
16803     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16804     <limits.h> exists even on freestanding compilers.  */
16805
16806 #ifdef __STDC__
16807 # include <limits.h>
16808 #else
16809 # include <assert.h>
16810 #endif
16811
16812 #undef $ac_func
16813
16814 /* Override any GCC internal prototype to avoid an error.
16815    Use char because int might match the return type of a GCC
16816    builtin and then its argument prototype would still apply.  */
16817 #ifdef __cplusplus
16818 extern "C"
16819 #endif
16820 char $ac_func ();
16821 /* The GNU C library defines this for functions which it implements
16822     to always fail with ENOSYS.  Some functions are actually named
16823     something starting with __ and the normal name is an alias.  */
16824 #if defined __stub_$ac_func || defined __stub___$ac_func
16825 choke me
16826 #endif
16827
16828 int
16829 main ()
16830 {
16831 return $ac_func ();
16832   ;
16833   return 0;
16834 }
16835 _ACEOF
16836 rm -f conftest.$ac_objext conftest$ac_exeext
16837 if { (ac_try="$ac_link"
16838 case "(($ac_try" in
16839   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16840   *) ac_try_echo=$ac_try;;
16841 esac
16842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16843   (eval "$ac_link") 2>conftest.er1
16844   ac_status=$?
16845   grep -v '^ *+' conftest.er1 >conftest.err
16846   rm -f conftest.er1
16847   cat conftest.err >&5
16848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16849   (exit $ac_status); } &&
16850          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16851   { (case "(($ac_try" in
16852   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16853   *) ac_try_echo=$ac_try;;
16854 esac
16855 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16856   (eval "$ac_try") 2>&5
16857   ac_status=$?
16858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16859   (exit $ac_status); }; } &&
16860          { ac_try='test -s conftest$ac_exeext'
16861   { (case "(($ac_try" in
16862   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16863   *) ac_try_echo=$ac_try;;
16864 esac
16865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16866   (eval "$ac_try") 2>&5
16867   ac_status=$?
16868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16869   (exit $ac_status); }; }; then
16870   eval "$as_ac_var=yes"
16871 else
16872   echo "$as_me: failed program was:" >&5
16873 sed 's/^/| /' conftest.$ac_ext >&5
16874
16875         eval "$as_ac_var=no"
16876 fi
16877
16878 rm -f core conftest.err conftest.$ac_objext \
16879       conftest$ac_exeext conftest.$ac_ext
16880 fi
16881 ac_res=`eval echo '${'$as_ac_var'}'`
16882                { echo "$as_me:$LINENO: result: $ac_res" >&5
16883 echo "${ECHO_T}$ac_res" >&6; }
16884 if test `eval echo '${'$as_ac_var'}'` = yes; then
16885   cat >>confdefs.h <<_ACEOF
16886 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16887 _ACEOF
16888
16889 fi
16890 done
16891
16892
16893
16894
16895
16896 for ac_func in powf fmodf strtof round
16897 do
16898 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16899 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16900 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16901 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16902   echo $ECHO_N "(cached) $ECHO_C" >&6
16903 else
16904   cat >conftest.$ac_ext <<_ACEOF
16905 /* confdefs.h.  */
16906 _ACEOF
16907 cat confdefs.h >>conftest.$ac_ext
16908 cat >>conftest.$ac_ext <<_ACEOF
16909 /* end confdefs.h.  */
16910 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16911    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16912 #define $ac_func innocuous_$ac_func
16913
16914 /* System header to define __stub macros and hopefully few prototypes,
16915     which can conflict with char $ac_func (); below.
16916     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16917     <limits.h> exists even on freestanding compilers.  */
16918
16919 #ifdef __STDC__
16920 # include <limits.h>
16921 #else
16922 # include <assert.h>
16923 #endif
16924
16925 #undef $ac_func
16926
16927 /* Override any GCC internal prototype to avoid an error.
16928    Use char because int might match the return type of a GCC
16929    builtin and then its argument prototype would still apply.  */
16930 #ifdef __cplusplus
16931 extern "C"
16932 #endif
16933 char $ac_func ();
16934 /* The GNU C library defines this for functions which it implements
16935     to always fail with ENOSYS.  Some functions are actually named
16936     something starting with __ and the normal name is an alias.  */
16937 #if defined __stub_$ac_func || defined __stub___$ac_func
16938 choke me
16939 #endif
16940
16941 int
16942 main ()
16943 {
16944 return $ac_func ();
16945   ;
16946   return 0;
16947 }
16948 _ACEOF
16949 rm -f conftest.$ac_objext conftest$ac_exeext
16950 if { (ac_try="$ac_link"
16951 case "(($ac_try" in
16952   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16953   *) ac_try_echo=$ac_try;;
16954 esac
16955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16956   (eval "$ac_link") 2>conftest.er1
16957   ac_status=$?
16958   grep -v '^ *+' conftest.er1 >conftest.err
16959   rm -f conftest.er1
16960   cat conftest.err >&5
16961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16962   (exit $ac_status); } &&
16963          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16964   { (case "(($ac_try" in
16965   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16966   *) ac_try_echo=$ac_try;;
16967 esac
16968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16969   (eval "$ac_try") 2>&5
16970   ac_status=$?
16971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16972   (exit $ac_status); }; } &&
16973          { ac_try='test -s conftest$ac_exeext'
16974   { (case "(($ac_try" in
16975   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16976   *) ac_try_echo=$ac_try;;
16977 esac
16978 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16979   (eval "$ac_try") 2>&5
16980   ac_status=$?
16981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16982   (exit $ac_status); }; }; then
16983   eval "$as_ac_var=yes"
16984 else
16985   echo "$as_me: failed program was:" >&5
16986 sed 's/^/| /' conftest.$ac_ext >&5
16987
16988         eval "$as_ac_var=no"
16989 fi
16990
16991 rm -f core conftest.err conftest.$ac_objext \
16992       conftest$ac_exeext conftest.$ac_ext
16993 fi
16994 ac_res=`eval echo '${'$as_ac_var'}'`
16995                { echo "$as_me:$LINENO: result: $ac_res" >&5
16996 echo "${ECHO_T}$ac_res" >&6; }
16997 if test `eval echo '${'$as_ac_var'}'` = yes; then
16998   cat >>confdefs.h <<_ACEOF
16999 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17000 _ACEOF
17001
17002 fi
17003 done
17004
17005
17006
17007
17008
17009
17010 for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
17011 do
17012 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17013 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17014 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17015 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17016   echo $ECHO_N "(cached) $ECHO_C" >&6
17017 else
17018   cat >conftest.$ac_ext <<_ACEOF
17019 /* confdefs.h.  */
17020 _ACEOF
17021 cat confdefs.h >>conftest.$ac_ext
17022 cat >>conftest.$ac_ext <<_ACEOF
17023 /* end confdefs.h.  */
17024 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17025    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17026 #define $ac_func innocuous_$ac_func
17027
17028 /* System header to define __stub macros and hopefully few prototypes,
17029     which can conflict with char $ac_func (); below.
17030     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17031     <limits.h> exists even on freestanding compilers.  */
17032
17033 #ifdef __STDC__
17034 # include <limits.h>
17035 #else
17036 # include <assert.h>
17037 #endif
17038
17039 #undef $ac_func
17040
17041 /* Override any GCC internal prototype to avoid an error.
17042    Use char because int might match the return type of a GCC
17043    builtin and then its argument prototype would still apply.  */
17044 #ifdef __cplusplus
17045 extern "C"
17046 #endif
17047 char $ac_func ();
17048 /* The GNU C library defines this for functions which it implements
17049     to always fail with ENOSYS.  Some functions are actually named
17050     something starting with __ and the normal name is an alias.  */
17051 #if defined __stub_$ac_func || defined __stub___$ac_func
17052 choke me
17053 #endif
17054
17055 int
17056 main ()
17057 {
17058 return $ac_func ();
17059   ;
17060   return 0;
17061 }
17062 _ACEOF
17063 rm -f conftest.$ac_objext conftest$ac_exeext
17064 if { (ac_try="$ac_link"
17065 case "(($ac_try" in
17066   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17067   *) ac_try_echo=$ac_try;;
17068 esac
17069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17070   (eval "$ac_link") 2>conftest.er1
17071   ac_status=$?
17072   grep -v '^ *+' conftest.er1 >conftest.err
17073   rm -f conftest.er1
17074   cat conftest.err >&5
17075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17076   (exit $ac_status); } &&
17077          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17078   { (case "(($ac_try" in
17079   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17080   *) ac_try_echo=$ac_try;;
17081 esac
17082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17083   (eval "$ac_try") 2>&5
17084   ac_status=$?
17085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17086   (exit $ac_status); }; } &&
17087          { ac_try='test -s conftest$ac_exeext'
17088   { (case "(($ac_try" in
17089   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17090   *) ac_try_echo=$ac_try;;
17091 esac
17092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17093   (eval "$ac_try") 2>&5
17094   ac_status=$?
17095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17096   (exit $ac_status); }; }; then
17097   eval "$as_ac_var=yes"
17098 else
17099   echo "$as_me: failed program was:" >&5
17100 sed 's/^/| /' conftest.$ac_ext >&5
17101
17102         eval "$as_ac_var=no"
17103 fi
17104
17105 rm -f core conftest.err conftest.$ac_objext \
17106       conftest$ac_exeext conftest.$ac_ext
17107 fi
17108 ac_res=`eval echo '${'$as_ac_var'}'`
17109                { echo "$as_me:$LINENO: result: $ac_res" >&5
17110 echo "${ECHO_T}$ac_res" >&6; }
17111 if test `eval echo '${'$as_ac_var'}'` = yes; then
17112   cat >>confdefs.h <<_ACEOF
17113 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17114 _ACEOF
17115
17116 fi
17117 done
17118
17119
17120
17121
17122 for ac_func in isatty mkdtemp mkstemp
17123 do
17124 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17125 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17126 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17127 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17128   echo $ECHO_N "(cached) $ECHO_C" >&6
17129 else
17130   cat >conftest.$ac_ext <<_ACEOF
17131 /* confdefs.h.  */
17132 _ACEOF
17133 cat confdefs.h >>conftest.$ac_ext
17134 cat >>conftest.$ac_ext <<_ACEOF
17135 /* end confdefs.h.  */
17136 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17137    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17138 #define $ac_func innocuous_$ac_func
17139
17140 /* System header to define __stub macros and hopefully few prototypes,
17141     which can conflict with char $ac_func (); below.
17142     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17143     <limits.h> exists even on freestanding compilers.  */
17144
17145 #ifdef __STDC__
17146 # include <limits.h>
17147 #else
17148 # include <assert.h>
17149 #endif
17150
17151 #undef $ac_func
17152
17153 /* Override any GCC internal prototype to avoid an error.
17154    Use char because int might match the return type of a GCC
17155    builtin and then its argument prototype would still apply.  */
17156 #ifdef __cplusplus
17157 extern "C"
17158 #endif
17159 char $ac_func ();
17160 /* The GNU C library defines this for functions which it implements
17161     to always fail with ENOSYS.  Some functions are actually named
17162     something starting with __ and the normal name is an alias.  */
17163 #if defined __stub_$ac_func || defined __stub___$ac_func
17164 choke me
17165 #endif
17166
17167 int
17168 main ()
17169 {
17170 return $ac_func ();
17171   ;
17172   return 0;
17173 }
17174 _ACEOF
17175 rm -f conftest.$ac_objext conftest$ac_exeext
17176 if { (ac_try="$ac_link"
17177 case "(($ac_try" in
17178   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17179   *) ac_try_echo=$ac_try;;
17180 esac
17181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17182   (eval "$ac_link") 2>conftest.er1
17183   ac_status=$?
17184   grep -v '^ *+' conftest.er1 >conftest.err
17185   rm -f conftest.er1
17186   cat conftest.err >&5
17187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17188   (exit $ac_status); } &&
17189          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17190   { (case "(($ac_try" in
17191   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17192   *) ac_try_echo=$ac_try;;
17193 esac
17194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17195   (eval "$ac_try") 2>&5
17196   ac_status=$?
17197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17198   (exit $ac_status); }; } &&
17199          { ac_try='test -s conftest$ac_exeext'
17200   { (case "(($ac_try" in
17201   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17202   *) ac_try_echo=$ac_try;;
17203 esac
17204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17205   (eval "$ac_try") 2>&5
17206   ac_status=$?
17207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17208   (exit $ac_status); }; }; then
17209   eval "$as_ac_var=yes"
17210 else
17211   echo "$as_me: failed program was:" >&5
17212 sed 's/^/| /' conftest.$ac_ext >&5
17213
17214         eval "$as_ac_var=no"
17215 fi
17216
17217 rm -f core conftest.err conftest.$ac_objext \
17218       conftest$ac_exeext conftest.$ac_ext
17219 fi
17220 ac_res=`eval echo '${'$as_ac_var'}'`
17221                { echo "$as_me:$LINENO: result: $ac_res" >&5
17222 echo "${ECHO_T}$ac_res" >&6; }
17223 if test `eval echo '${'$as_ac_var'}'` = yes; then
17224   cat >>confdefs.h <<_ACEOF
17225 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17226 _ACEOF
17227
17228 fi
17229 done
17230
17231
17232
17233
17234
17235
17236
17237
17238 for ac_func in mktemp posix_spawn pread realpath sbrk setrlimit strdup
17239 do
17240 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17241 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17242 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17243 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17244   echo $ECHO_N "(cached) $ECHO_C" >&6
17245 else
17246   cat >conftest.$ac_ext <<_ACEOF
17247 /* confdefs.h.  */
17248 _ACEOF
17249 cat confdefs.h >>conftest.$ac_ext
17250 cat >>conftest.$ac_ext <<_ACEOF
17251 /* end confdefs.h.  */
17252 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17253    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17254 #define $ac_func innocuous_$ac_func
17255
17256 /* System header to define __stub macros and hopefully few prototypes,
17257     which can conflict with char $ac_func (); below.
17258     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17259     <limits.h> exists even on freestanding compilers.  */
17260
17261 #ifdef __STDC__
17262 # include <limits.h>
17263 #else
17264 # include <assert.h>
17265 #endif
17266
17267 #undef $ac_func
17268
17269 /* Override any GCC internal prototype to avoid an error.
17270    Use char because int might match the return type of a GCC
17271    builtin and then its argument prototype would still apply.  */
17272 #ifdef __cplusplus
17273 extern "C"
17274 #endif
17275 char $ac_func ();
17276 /* The GNU C library defines this for functions which it implements
17277     to always fail with ENOSYS.  Some functions are actually named
17278     something starting with __ and the normal name is an alias.  */
17279 #if defined __stub_$ac_func || defined __stub___$ac_func
17280 choke me
17281 #endif
17282
17283 int
17284 main ()
17285 {
17286 return $ac_func ();
17287   ;
17288   return 0;
17289 }
17290 _ACEOF
17291 rm -f conftest.$ac_objext conftest$ac_exeext
17292 if { (ac_try="$ac_link"
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_link") 2>conftest.er1
17299   ac_status=$?
17300   grep -v '^ *+' conftest.er1 >conftest.err
17301   rm -f conftest.er1
17302   cat conftest.err >&5
17303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17304   (exit $ac_status); } &&
17305          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17306   { (case "(($ac_try" in
17307   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17308   *) ac_try_echo=$ac_try;;
17309 esac
17310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17311   (eval "$ac_try") 2>&5
17312   ac_status=$?
17313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17314   (exit $ac_status); }; } &&
17315          { ac_try='test -s conftest$ac_exeext'
17316   { (case "(($ac_try" in
17317   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17318   *) ac_try_echo=$ac_try;;
17319 esac
17320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17321   (eval "$ac_try") 2>&5
17322   ac_status=$?
17323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17324   (exit $ac_status); }; }; then
17325   eval "$as_ac_var=yes"
17326 else
17327   echo "$as_me: failed program was:" >&5
17328 sed 's/^/| /' conftest.$ac_ext >&5
17329
17330         eval "$as_ac_var=no"
17331 fi
17332
17333 rm -f core conftest.err conftest.$ac_objext \
17334       conftest$ac_exeext conftest.$ac_ext
17335 fi
17336 ac_res=`eval echo '${'$as_ac_var'}'`
17337                { echo "$as_me:$LINENO: result: $ac_res" >&5
17338 echo "${ECHO_T}$ac_res" >&6; }
17339 if test `eval echo '${'$as_ac_var'}'` = yes; then
17340   cat >>confdefs.h <<_ACEOF
17341 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17342 _ACEOF
17343
17344 fi
17345 done
17346
17347
17348
17349
17350
17351 for ac_func in strerror strerror_r setenv arc4random
17352 do
17353 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17354 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17355 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17356 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17357   echo $ECHO_N "(cached) $ECHO_C" >&6
17358 else
17359   cat >conftest.$ac_ext <<_ACEOF
17360 /* confdefs.h.  */
17361 _ACEOF
17362 cat confdefs.h >>conftest.$ac_ext
17363 cat >>conftest.$ac_ext <<_ACEOF
17364 /* end confdefs.h.  */
17365 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17366    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17367 #define $ac_func innocuous_$ac_func
17368
17369 /* System header to define __stub macros and hopefully few prototypes,
17370     which can conflict with char $ac_func (); below.
17371     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17372     <limits.h> exists even on freestanding compilers.  */
17373
17374 #ifdef __STDC__
17375 # include <limits.h>
17376 #else
17377 # include <assert.h>
17378 #endif
17379
17380 #undef $ac_func
17381
17382 /* Override any GCC internal prototype to avoid an error.
17383    Use char because int might match the return type of a GCC
17384    builtin and then its argument prototype would still apply.  */
17385 #ifdef __cplusplus
17386 extern "C"
17387 #endif
17388 char $ac_func ();
17389 /* The GNU C library defines this for functions which it implements
17390     to always fail with ENOSYS.  Some functions are actually named
17391     something starting with __ and the normal name is an alias.  */
17392 #if defined __stub_$ac_func || defined __stub___$ac_func
17393 choke me
17394 #endif
17395
17396 int
17397 main ()
17398 {
17399 return $ac_func ();
17400   ;
17401   return 0;
17402 }
17403 _ACEOF
17404 rm -f conftest.$ac_objext conftest$ac_exeext
17405 if { (ac_try="$ac_link"
17406 case "(($ac_try" in
17407   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17408   *) ac_try_echo=$ac_try;;
17409 esac
17410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17411   (eval "$ac_link") 2>conftest.er1
17412   ac_status=$?
17413   grep -v '^ *+' conftest.er1 >conftest.err
17414   rm -f conftest.er1
17415   cat conftest.err >&5
17416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17417   (exit $ac_status); } &&
17418          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17419   { (case "(($ac_try" in
17420   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17421   *) ac_try_echo=$ac_try;;
17422 esac
17423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17424   (eval "$ac_try") 2>&5
17425   ac_status=$?
17426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17427   (exit $ac_status); }; } &&
17428          { ac_try='test -s conftest$ac_exeext'
17429   { (case "(($ac_try" in
17430   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17431   *) ac_try_echo=$ac_try;;
17432 esac
17433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17434   (eval "$ac_try") 2>&5
17435   ac_status=$?
17436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17437   (exit $ac_status); }; }; then
17438   eval "$as_ac_var=yes"
17439 else
17440   echo "$as_me: failed program was:" >&5
17441 sed 's/^/| /' conftest.$ac_ext >&5
17442
17443         eval "$as_ac_var=no"
17444 fi
17445
17446 rm -f core conftest.err conftest.$ac_objext \
17447       conftest$ac_exeext conftest.$ac_ext
17448 fi
17449 ac_res=`eval echo '${'$as_ac_var'}'`
17450                { echo "$as_me:$LINENO: result: $ac_res" >&5
17451 echo "${ECHO_T}$ac_res" >&6; }
17452 if test `eval echo '${'$as_ac_var'}'` = yes; then
17453   cat >>confdefs.h <<_ACEOF
17454 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17455 _ACEOF
17456
17457 fi
17458 done
17459
17460
17461
17462
17463
17464 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
17465 do
17466 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17467 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17468 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17469 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17470   echo $ECHO_N "(cached) $ECHO_C" >&6
17471 else
17472   cat >conftest.$ac_ext <<_ACEOF
17473 /* confdefs.h.  */
17474 _ACEOF
17475 cat confdefs.h >>conftest.$ac_ext
17476 cat >>conftest.$ac_ext <<_ACEOF
17477 /* end confdefs.h.  */
17478 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17479    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17480 #define $ac_func innocuous_$ac_func
17481
17482 /* System header to define __stub macros and hopefully few prototypes,
17483     which can conflict with char $ac_func (); below.
17484     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17485     <limits.h> exists even on freestanding compilers.  */
17486
17487 #ifdef __STDC__
17488 # include <limits.h>
17489 #else
17490 # include <assert.h>
17491 #endif
17492
17493 #undef $ac_func
17494
17495 /* Override any GCC internal prototype to avoid an error.
17496    Use char because int might match the return type of a GCC
17497    builtin and then its argument prototype would still apply.  */
17498 #ifdef __cplusplus
17499 extern "C"
17500 #endif
17501 char $ac_func ();
17502 /* The GNU C library defines this for functions which it implements
17503     to always fail with ENOSYS.  Some functions are actually named
17504     something starting with __ and the normal name is an alias.  */
17505 #if defined __stub_$ac_func || defined __stub___$ac_func
17506 choke me
17507 #endif
17508
17509 int
17510 main ()
17511 {
17512 return $ac_func ();
17513   ;
17514   return 0;
17515 }
17516 _ACEOF
17517 rm -f conftest.$ac_objext conftest$ac_exeext
17518 if { (ac_try="$ac_link"
17519 case "(($ac_try" in
17520   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17521   *) ac_try_echo=$ac_try;;
17522 esac
17523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17524   (eval "$ac_link") 2>conftest.er1
17525   ac_status=$?
17526   grep -v '^ *+' conftest.er1 >conftest.err
17527   rm -f conftest.er1
17528   cat conftest.err >&5
17529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17530   (exit $ac_status); } &&
17531          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17532   { (case "(($ac_try" in
17533   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17534   *) ac_try_echo=$ac_try;;
17535 esac
17536 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17537   (eval "$ac_try") 2>&5
17538   ac_status=$?
17539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17540   (exit $ac_status); }; } &&
17541          { ac_try='test -s conftest$ac_exeext'
17542   { (case "(($ac_try" in
17543   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17544   *) ac_try_echo=$ac_try;;
17545 esac
17546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17547   (eval "$ac_try") 2>&5
17548   ac_status=$?
17549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17550   (exit $ac_status); }; }; then
17551   eval "$as_ac_var=yes"
17552 else
17553   echo "$as_me: failed program was:" >&5
17554 sed 's/^/| /' conftest.$ac_ext >&5
17555
17556         eval "$as_ac_var=no"
17557 fi
17558
17559 rm -f core conftest.err conftest.$ac_objext \
17560       conftest$ac_exeext conftest.$ac_ext
17561 fi
17562 ac_res=`eval echo '${'$as_ac_var'}'`
17563                { echo "$as_me:$LINENO: result: $ac_res" >&5
17564 echo "${ECHO_T}$ac_res" >&6; }
17565 if test `eval echo '${'$as_ac_var'}'` = yes; then
17566   cat >>confdefs.h <<_ACEOF
17567 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17568 _ACEOF
17569
17570 fi
17571 done
17572
17573
17574
17575
17576
17577
17578 for ac_func in setjmp longjmp sigsetjmp siglongjmp writev
17579 do
17580 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17581 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17582 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17583 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17584   echo $ECHO_N "(cached) $ECHO_C" >&6
17585 else
17586   cat >conftest.$ac_ext <<_ACEOF
17587 /* confdefs.h.  */
17588 _ACEOF
17589 cat confdefs.h >>conftest.$ac_ext
17590 cat >>conftest.$ac_ext <<_ACEOF
17591 /* end confdefs.h.  */
17592 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17593    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17594 #define $ac_func innocuous_$ac_func
17595
17596 /* System header to define __stub macros and hopefully few prototypes,
17597     which can conflict with char $ac_func (); below.
17598     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17599     <limits.h> exists even on freestanding compilers.  */
17600
17601 #ifdef __STDC__
17602 # include <limits.h>
17603 #else
17604 # include <assert.h>
17605 #endif
17606
17607 #undef $ac_func
17608
17609 /* Override any GCC internal prototype to avoid an error.
17610    Use char because int might match the return type of a GCC
17611    builtin and then its argument prototype would still apply.  */
17612 #ifdef __cplusplus
17613 extern "C"
17614 #endif
17615 char $ac_func ();
17616 /* The GNU C library defines this for functions which it implements
17617     to always fail with ENOSYS.  Some functions are actually named
17618     something starting with __ and the normal name is an alias.  */
17619 #if defined __stub_$ac_func || defined __stub___$ac_func
17620 choke me
17621 #endif
17622
17623 int
17624 main ()
17625 {
17626 return $ac_func ();
17627   ;
17628   return 0;
17629 }
17630 _ACEOF
17631 rm -f conftest.$ac_objext conftest$ac_exeext
17632 if { (ac_try="$ac_link"
17633 case "(($ac_try" in
17634   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17635   *) ac_try_echo=$ac_try;;
17636 esac
17637 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17638   (eval "$ac_link") 2>conftest.er1
17639   ac_status=$?
17640   grep -v '^ *+' conftest.er1 >conftest.err
17641   rm -f conftest.er1
17642   cat conftest.err >&5
17643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17644   (exit $ac_status); } &&
17645          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17646   { (case "(($ac_try" in
17647   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17648   *) ac_try_echo=$ac_try;;
17649 esac
17650 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17651   (eval "$ac_try") 2>&5
17652   ac_status=$?
17653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17654   (exit $ac_status); }; } &&
17655          { ac_try='test -s conftest$ac_exeext'
17656   { (case "(($ac_try" in
17657   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17658   *) ac_try_echo=$ac_try;;
17659 esac
17660 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17661   (eval "$ac_try") 2>&5
17662   ac_status=$?
17663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17664   (exit $ac_status); }; }; then
17665   eval "$as_ac_var=yes"
17666 else
17667   echo "$as_me: failed program was:" >&5
17668 sed 's/^/| /' conftest.$ac_ext >&5
17669
17670         eval "$as_ac_var=no"
17671 fi
17672
17673 rm -f core conftest.err conftest.$ac_objext \
17674       conftest$ac_exeext conftest.$ac_ext
17675 fi
17676 ac_res=`eval echo '${'$as_ac_var'}'`
17677                { echo "$as_me:$LINENO: result: $ac_res" >&5
17678 echo "${ECHO_T}$ac_res" >&6; }
17679 if test `eval echo '${'$as_ac_var'}'` = yes; then
17680   cat >>confdefs.h <<_ACEOF
17681 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17682 _ACEOF
17683
17684 fi
17685 done
17686
17687 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
17688 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
17689 if test "${llvm_cv_c_printf_a+set}" = set; then
17690   echo $ECHO_N "(cached) $ECHO_C" >&6
17691 else
17692   ac_ext=c
17693 ac_cpp='$CPP $CPPFLAGS'
17694 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17695 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17696 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17697
17698  if test "$cross_compiling" = yes; then
17699   llvmac_cv_c_printf_a=no
17700 else
17701   cat >conftest.$ac_ext <<_ACEOF
17702
17703   /* confdefs.h.  */
17704 _ACEOF
17705 cat confdefs.h >>conftest.$ac_ext
17706 cat >>conftest.$ac_ext <<_ACEOF
17707 /* end confdefs.h.  */
17708
17709 #include <stdio.h>
17710 #include <stdlib.h>
17711
17712 int
17713 main ()
17714 {
17715
17716 volatile double A, B;
17717 char Buffer[100];
17718 A = 1;
17719 A /= 10.0;
17720 sprintf(Buffer, "%a", A);
17721 B = atof(Buffer);
17722 if (A != B)
17723   return (1);
17724 if (A != 0x1.999999999999ap-4)
17725   return (1);
17726 return (0);
17727   ;
17728   return 0;
17729 }
17730 _ACEOF
17731 rm -f conftest$ac_exeext
17732 if { (ac_try="$ac_link"
17733 case "(($ac_try" in
17734   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17735   *) ac_try_echo=$ac_try;;
17736 esac
17737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17738   (eval "$ac_link") 2>&5
17739   ac_status=$?
17740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17741   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17742   { (case "(($ac_try" in
17743   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17744   *) ac_try_echo=$ac_try;;
17745 esac
17746 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17747   (eval "$ac_try") 2>&5
17748   ac_status=$?
17749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17750   (exit $ac_status); }; }; then
17751   llvm_cv_c_printf_a=yes
17752 else
17753   echo "$as_me: program exited with status $ac_status" >&5
17754 echo "$as_me: failed program was:" >&5
17755 sed 's/^/| /' conftest.$ac_ext >&5
17756
17757 ( exit $ac_status )
17758 llvmac_cv_c_printf_a=no
17759 fi
17760 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17761 fi
17762
17763
17764  ac_ext=c
17765 ac_cpp='$CPP $CPPFLAGS'
17766 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17767 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17768 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17769
17770 fi
17771 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
17772 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
17773  if test "$llvm_cv_c_printf_a" = "yes"; then
17774
17775 cat >>confdefs.h <<\_ACEOF
17776 #define HAVE_PRINTF_A 1
17777 _ACEOF
17778
17779  fi
17780
17781
17782 { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
17783 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
17784 if test "${ac_cv_func_rand48+set}" = set; then
17785   echo $ECHO_N "(cached) $ECHO_C" >&6
17786 else
17787   ac_ext=cpp
17788 ac_cpp='$CXXCPP $CPPFLAGS'
17789 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17790 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17791 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17792
17793    cat >conftest.$ac_ext <<_ACEOF
17794 /* confdefs.h.  */
17795 _ACEOF
17796 cat confdefs.h >>conftest.$ac_ext
17797 cat >>conftest.$ac_ext <<_ACEOF
17798 /* end confdefs.h.  */
17799 #include <stdlib.h>
17800 int
17801 main ()
17802 {
17803 srand48(0);lrand48();drand48();
17804   ;
17805   return 0;
17806 }
17807 _ACEOF
17808 rm -f conftest.$ac_objext
17809 if { (ac_try="$ac_compile"
17810 case "(($ac_try" in
17811   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17812   *) ac_try_echo=$ac_try;;
17813 esac
17814 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17815   (eval "$ac_compile") 2>conftest.er1
17816   ac_status=$?
17817   grep -v '^ *+' conftest.er1 >conftest.err
17818   rm -f conftest.er1
17819   cat conftest.err >&5
17820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17821   (exit $ac_status); } &&
17822          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
17823   { (case "(($ac_try" in
17824   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17825   *) ac_try_echo=$ac_try;;
17826 esac
17827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17828   (eval "$ac_try") 2>&5
17829   ac_status=$?
17830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17831   (exit $ac_status); }; } &&
17832          { ac_try='test -s conftest.$ac_objext'
17833   { (case "(($ac_try" in
17834   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17835   *) ac_try_echo=$ac_try;;
17836 esac
17837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17838   (eval "$ac_try") 2>&5
17839   ac_status=$?
17840   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17841   (exit $ac_status); }; }; then
17842   ac_cv_func_rand48=yes
17843 else
17844   echo "$as_me: failed program was:" >&5
17845 sed 's/^/| /' conftest.$ac_ext >&5
17846
17847         ac_cv_func_rand48=no
17848 fi
17849
17850 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17851   ac_ext=c
17852 ac_cpp='$CPP $CPPFLAGS'
17853 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17854 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17855 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17856
17857 fi
17858 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
17859 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
17860
17861 if test "$ac_cv_func_rand48" = "yes" ; then
17862
17863 cat >>confdefs.h <<\_ACEOF
17864 #define HAVE_RAND48 1
17865 _ACEOF
17866
17867 fi
17868
17869
17870 { echo "$as_me:$LINENO: checking whether strerror_s is declared" >&5
17871 echo $ECHO_N "checking whether strerror_s is declared... $ECHO_C" >&6; }
17872 if test "${ac_cv_have_decl_strerror_s+set}" = set; then
17873   echo $ECHO_N "(cached) $ECHO_C" >&6
17874 else
17875   cat >conftest.$ac_ext <<_ACEOF
17876 /* confdefs.h.  */
17877 _ACEOF
17878 cat confdefs.h >>conftest.$ac_ext
17879 cat >>conftest.$ac_ext <<_ACEOF
17880 /* end confdefs.h.  */
17881 $ac_includes_default
17882 int
17883 main ()
17884 {
17885 #ifndef strerror_s
17886   char *p = (char *) strerror_s;
17887   return !p;
17888 #endif
17889
17890   ;
17891   return 0;
17892 }
17893 _ACEOF
17894 rm -f conftest.$ac_objext
17895 if { (ac_try="$ac_compile"
17896 case "(($ac_try" in
17897   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17898   *) ac_try_echo=$ac_try;;
17899 esac
17900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17901   (eval "$ac_compile") 2>conftest.er1
17902   ac_status=$?
17903   grep -v '^ *+' conftest.er1 >conftest.err
17904   rm -f conftest.er1
17905   cat conftest.err >&5
17906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17907   (exit $ac_status); } &&
17908          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17909   { (case "(($ac_try" in
17910   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17911   *) ac_try_echo=$ac_try;;
17912 esac
17913 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17914   (eval "$ac_try") 2>&5
17915   ac_status=$?
17916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17917   (exit $ac_status); }; } &&
17918          { ac_try='test -s conftest.$ac_objext'
17919   { (case "(($ac_try" in
17920   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17921   *) ac_try_echo=$ac_try;;
17922 esac
17923 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17924   (eval "$ac_try") 2>&5
17925   ac_status=$?
17926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17927   (exit $ac_status); }; }; then
17928   ac_cv_have_decl_strerror_s=yes
17929 else
17930   echo "$as_me: failed program was:" >&5
17931 sed 's/^/| /' conftest.$ac_ext >&5
17932
17933         ac_cv_have_decl_strerror_s=no
17934 fi
17935
17936 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17937 fi
17938 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_s" >&5
17939 echo "${ECHO_T}$ac_cv_have_decl_strerror_s" >&6; }
17940 if test $ac_cv_have_decl_strerror_s = yes; then
17941
17942 cat >>confdefs.h <<_ACEOF
17943 #define HAVE_DECL_STRERROR_S 1
17944 _ACEOF
17945
17946
17947 else
17948   cat >>confdefs.h <<_ACEOF
17949 #define HAVE_DECL_STRERROR_S 0
17950 _ACEOF
17951
17952
17953 fi
17954
17955
17956
17957 if test "$llvm_cv_os_type" = "MingW" ; then
17958   { echo "$as_me:$LINENO: checking for _alloca in -lgcc" >&5
17959 echo $ECHO_N "checking for _alloca in -lgcc... $ECHO_C" >&6; }
17960 if test "${ac_cv_lib_gcc__alloca+set}" = set; then
17961   echo $ECHO_N "(cached) $ECHO_C" >&6
17962 else
17963   ac_check_lib_save_LIBS=$LIBS
17964 LIBS="-lgcc  $LIBS"
17965 cat >conftest.$ac_ext <<_ACEOF
17966 /* confdefs.h.  */
17967 _ACEOF
17968 cat confdefs.h >>conftest.$ac_ext
17969 cat >>conftest.$ac_ext <<_ACEOF
17970 /* end confdefs.h.  */
17971
17972 /* Override any GCC internal prototype to avoid an error.
17973    Use char because int might match the return type of a GCC
17974    builtin and then its argument prototype would still apply.  */
17975 #ifdef __cplusplus
17976 extern "C"
17977 #endif
17978 char _alloca ();
17979 int
17980 main ()
17981 {
17982 return _alloca ();
17983   ;
17984   return 0;
17985 }
17986 _ACEOF
17987 rm -f conftest.$ac_objext conftest$ac_exeext
17988 if { (ac_try="$ac_link"
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_link") 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_exeext'
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_lib_gcc__alloca=yes
18022 else
18023   echo "$as_me: failed program was:" >&5
18024 sed 's/^/| /' conftest.$ac_ext >&5
18025
18026         ac_cv_lib_gcc__alloca=no
18027 fi
18028
18029 rm -f core conftest.err conftest.$ac_objext \
18030       conftest$ac_exeext conftest.$ac_ext
18031 LIBS=$ac_check_lib_save_LIBS
18032 fi
18033 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc__alloca" >&5
18034 echo "${ECHO_T}$ac_cv_lib_gcc__alloca" >&6; }
18035 if test $ac_cv_lib_gcc__alloca = yes; then
18036
18037 cat >>confdefs.h <<\_ACEOF
18038 #define HAVE__ALLOCA 1
18039 _ACEOF
18040
18041 fi
18042
18043   { echo "$as_me:$LINENO: checking for __alloca in -lgcc" >&5
18044 echo $ECHO_N "checking for __alloca in -lgcc... $ECHO_C" >&6; }
18045 if test "${ac_cv_lib_gcc___alloca+set}" = set; then
18046   echo $ECHO_N "(cached) $ECHO_C" >&6
18047 else
18048   ac_check_lib_save_LIBS=$LIBS
18049 LIBS="-lgcc  $LIBS"
18050 cat >conftest.$ac_ext <<_ACEOF
18051 /* confdefs.h.  */
18052 _ACEOF
18053 cat confdefs.h >>conftest.$ac_ext
18054 cat >>conftest.$ac_ext <<_ACEOF
18055 /* end confdefs.h.  */
18056
18057 /* Override any GCC internal prototype to avoid an error.
18058    Use char because int might match the return type of a GCC
18059    builtin and then its argument prototype would still apply.  */
18060 #ifdef __cplusplus
18061 extern "C"
18062 #endif
18063 char __alloca ();
18064 int
18065 main ()
18066 {
18067 return __alloca ();
18068   ;
18069   return 0;
18070 }
18071 _ACEOF
18072 rm -f conftest.$ac_objext conftest$ac_exeext
18073 if { (ac_try="$ac_link"
18074 case "(($ac_try" in
18075   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18076   *) ac_try_echo=$ac_try;;
18077 esac
18078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18079   (eval "$ac_link") 2>conftest.er1
18080   ac_status=$?
18081   grep -v '^ *+' conftest.er1 >conftest.err
18082   rm -f conftest.er1
18083   cat conftest.err >&5
18084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18085   (exit $ac_status); } &&
18086          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18087   { (case "(($ac_try" in
18088   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18089   *) ac_try_echo=$ac_try;;
18090 esac
18091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18092   (eval "$ac_try") 2>&5
18093   ac_status=$?
18094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18095   (exit $ac_status); }; } &&
18096          { ac_try='test -s conftest$ac_exeext'
18097   { (case "(($ac_try" in
18098   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18099   *) ac_try_echo=$ac_try;;
18100 esac
18101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18102   (eval "$ac_try") 2>&5
18103   ac_status=$?
18104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18105   (exit $ac_status); }; }; then
18106   ac_cv_lib_gcc___alloca=yes
18107 else
18108   echo "$as_me: failed program was:" >&5
18109 sed 's/^/| /' conftest.$ac_ext >&5
18110
18111         ac_cv_lib_gcc___alloca=no
18112 fi
18113
18114 rm -f core conftest.err conftest.$ac_objext \
18115       conftest$ac_exeext conftest.$ac_ext
18116 LIBS=$ac_check_lib_save_LIBS
18117 fi
18118 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___alloca" >&5
18119 echo "${ECHO_T}$ac_cv_lib_gcc___alloca" >&6; }
18120 if test $ac_cv_lib_gcc___alloca = yes; then
18121
18122 cat >>confdefs.h <<\_ACEOF
18123 #define HAVE___ALLOCA 1
18124 _ACEOF
18125
18126 fi
18127
18128   { echo "$as_me:$LINENO: checking for __chkstk in -lgcc" >&5
18129 echo $ECHO_N "checking for __chkstk in -lgcc... $ECHO_C" >&6; }
18130 if test "${ac_cv_lib_gcc___chkstk+set}" = set; then
18131   echo $ECHO_N "(cached) $ECHO_C" >&6
18132 else
18133   ac_check_lib_save_LIBS=$LIBS
18134 LIBS="-lgcc  $LIBS"
18135 cat >conftest.$ac_ext <<_ACEOF
18136 /* confdefs.h.  */
18137 _ACEOF
18138 cat confdefs.h >>conftest.$ac_ext
18139 cat >>conftest.$ac_ext <<_ACEOF
18140 /* end confdefs.h.  */
18141
18142 /* Override any GCC internal prototype to avoid an error.
18143    Use char because int might match the return type of a GCC
18144    builtin and then its argument prototype would still apply.  */
18145 #ifdef __cplusplus
18146 extern "C"
18147 #endif
18148 char __chkstk ();
18149 int
18150 main ()
18151 {
18152 return __chkstk ();
18153   ;
18154   return 0;
18155 }
18156 _ACEOF
18157 rm -f conftest.$ac_objext conftest$ac_exeext
18158 if { (ac_try="$ac_link"
18159 case "(($ac_try" in
18160   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18161   *) ac_try_echo=$ac_try;;
18162 esac
18163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18164   (eval "$ac_link") 2>conftest.er1
18165   ac_status=$?
18166   grep -v '^ *+' conftest.er1 >conftest.err
18167   rm -f conftest.er1
18168   cat conftest.err >&5
18169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18170   (exit $ac_status); } &&
18171          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18172   { (case "(($ac_try" in
18173   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18174   *) ac_try_echo=$ac_try;;
18175 esac
18176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18177   (eval "$ac_try") 2>&5
18178   ac_status=$?
18179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18180   (exit $ac_status); }; } &&
18181          { ac_try='test -s conftest$ac_exeext'
18182   { (case "(($ac_try" in
18183   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18184   *) ac_try_echo=$ac_try;;
18185 esac
18186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18187   (eval "$ac_try") 2>&5
18188   ac_status=$?
18189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18190   (exit $ac_status); }; }; then
18191   ac_cv_lib_gcc___chkstk=yes
18192 else
18193   echo "$as_me: failed program was:" >&5
18194 sed 's/^/| /' conftest.$ac_ext >&5
18195
18196         ac_cv_lib_gcc___chkstk=no
18197 fi
18198
18199 rm -f core conftest.err conftest.$ac_objext \
18200       conftest$ac_exeext conftest.$ac_ext
18201 LIBS=$ac_check_lib_save_LIBS
18202 fi
18203 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___chkstk" >&5
18204 echo "${ECHO_T}$ac_cv_lib_gcc___chkstk" >&6; }
18205 if test $ac_cv_lib_gcc___chkstk = yes; then
18206
18207 cat >>confdefs.h <<\_ACEOF
18208 #define HAVE___CHKSTK 1
18209 _ACEOF
18210
18211 fi
18212
18213   { echo "$as_me:$LINENO: checking for ___chkstk in -lgcc" >&5
18214 echo $ECHO_N "checking for ___chkstk in -lgcc... $ECHO_C" >&6; }
18215 if test "${ac_cv_lib_gcc____chkstk+set}" = set; then
18216   echo $ECHO_N "(cached) $ECHO_C" >&6
18217 else
18218   ac_check_lib_save_LIBS=$LIBS
18219 LIBS="-lgcc  $LIBS"
18220 cat >conftest.$ac_ext <<_ACEOF
18221 /* confdefs.h.  */
18222 _ACEOF
18223 cat confdefs.h >>conftest.$ac_ext
18224 cat >>conftest.$ac_ext <<_ACEOF
18225 /* end confdefs.h.  */
18226
18227 /* Override any GCC internal prototype to avoid an error.
18228    Use char because int might match the return type of a GCC
18229    builtin and then its argument prototype would still apply.  */
18230 #ifdef __cplusplus
18231 extern "C"
18232 #endif
18233 char ___chkstk ();
18234 int
18235 main ()
18236 {
18237 return ___chkstk ();
18238   ;
18239   return 0;
18240 }
18241 _ACEOF
18242 rm -f conftest.$ac_objext conftest$ac_exeext
18243 if { (ac_try="$ac_link"
18244 case "(($ac_try" in
18245   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18246   *) ac_try_echo=$ac_try;;
18247 esac
18248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18249   (eval "$ac_link") 2>conftest.er1
18250   ac_status=$?
18251   grep -v '^ *+' conftest.er1 >conftest.err
18252   rm -f conftest.er1
18253   cat conftest.err >&5
18254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18255   (exit $ac_status); } &&
18256          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18257   { (case "(($ac_try" in
18258   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18259   *) ac_try_echo=$ac_try;;
18260 esac
18261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18262   (eval "$ac_try") 2>&5
18263   ac_status=$?
18264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18265   (exit $ac_status); }; } &&
18266          { ac_try='test -s conftest$ac_exeext'
18267   { (case "(($ac_try" in
18268   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18269   *) ac_try_echo=$ac_try;;
18270 esac
18271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18272   (eval "$ac_try") 2>&5
18273   ac_status=$?
18274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18275   (exit $ac_status); }; }; then
18276   ac_cv_lib_gcc____chkstk=yes
18277 else
18278   echo "$as_me: failed program was:" >&5
18279 sed 's/^/| /' conftest.$ac_ext >&5
18280
18281         ac_cv_lib_gcc____chkstk=no
18282 fi
18283
18284 rm -f core conftest.err conftest.$ac_objext \
18285       conftest$ac_exeext conftest.$ac_ext
18286 LIBS=$ac_check_lib_save_LIBS
18287 fi
18288 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc____chkstk" >&5
18289 echo "${ECHO_T}$ac_cv_lib_gcc____chkstk" >&6; }
18290 if test $ac_cv_lib_gcc____chkstk = yes; then
18291
18292 cat >>confdefs.h <<\_ACEOF
18293 #define HAVE____CHKSTK 1
18294 _ACEOF
18295
18296 fi
18297
18298
18299   { echo "$as_me:$LINENO: checking for __ashldi3 in -lgcc" >&5
18300 echo $ECHO_N "checking for __ashldi3 in -lgcc... $ECHO_C" >&6; }
18301 if test "${ac_cv_lib_gcc___ashldi3+set}" = set; then
18302   echo $ECHO_N "(cached) $ECHO_C" >&6
18303 else
18304   ac_check_lib_save_LIBS=$LIBS
18305 LIBS="-lgcc  $LIBS"
18306 cat >conftest.$ac_ext <<_ACEOF
18307 /* confdefs.h.  */
18308 _ACEOF
18309 cat confdefs.h >>conftest.$ac_ext
18310 cat >>conftest.$ac_ext <<_ACEOF
18311 /* end confdefs.h.  */
18312
18313 /* Override any GCC internal prototype to avoid an error.
18314    Use char because int might match the return type of a GCC
18315    builtin and then its argument prototype would still apply.  */
18316 #ifdef __cplusplus
18317 extern "C"
18318 #endif
18319 char __ashldi3 ();
18320 int
18321 main ()
18322 {
18323 return __ashldi3 ();
18324   ;
18325   return 0;
18326 }
18327 _ACEOF
18328 rm -f conftest.$ac_objext conftest$ac_exeext
18329 if { (ac_try="$ac_link"
18330 case "(($ac_try" in
18331   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18332   *) ac_try_echo=$ac_try;;
18333 esac
18334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18335   (eval "$ac_link") 2>conftest.er1
18336   ac_status=$?
18337   grep -v '^ *+' conftest.er1 >conftest.err
18338   rm -f conftest.er1
18339   cat conftest.err >&5
18340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18341   (exit $ac_status); } &&
18342          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18343   { (case "(($ac_try" in
18344   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18345   *) ac_try_echo=$ac_try;;
18346 esac
18347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18348   (eval "$ac_try") 2>&5
18349   ac_status=$?
18350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18351   (exit $ac_status); }; } &&
18352          { ac_try='test -s conftest$ac_exeext'
18353   { (case "(($ac_try" in
18354   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18355   *) ac_try_echo=$ac_try;;
18356 esac
18357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18358   (eval "$ac_try") 2>&5
18359   ac_status=$?
18360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18361   (exit $ac_status); }; }; then
18362   ac_cv_lib_gcc___ashldi3=yes
18363 else
18364   echo "$as_me: failed program was:" >&5
18365 sed 's/^/| /' conftest.$ac_ext >&5
18366
18367         ac_cv_lib_gcc___ashldi3=no
18368 fi
18369
18370 rm -f core conftest.err conftest.$ac_objext \
18371       conftest$ac_exeext conftest.$ac_ext
18372 LIBS=$ac_check_lib_save_LIBS
18373 fi
18374 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashldi3" >&5
18375 echo "${ECHO_T}$ac_cv_lib_gcc___ashldi3" >&6; }
18376 if test $ac_cv_lib_gcc___ashldi3 = yes; then
18377
18378 cat >>confdefs.h <<\_ACEOF
18379 #define HAVE___ASHLDI3 1
18380 _ACEOF
18381
18382 fi
18383
18384   { echo "$as_me:$LINENO: checking for __ashrdi3 in -lgcc" >&5
18385 echo $ECHO_N "checking for __ashrdi3 in -lgcc... $ECHO_C" >&6; }
18386 if test "${ac_cv_lib_gcc___ashrdi3+set}" = set; then
18387   echo $ECHO_N "(cached) $ECHO_C" >&6
18388 else
18389   ac_check_lib_save_LIBS=$LIBS
18390 LIBS="-lgcc  $LIBS"
18391 cat >conftest.$ac_ext <<_ACEOF
18392 /* confdefs.h.  */
18393 _ACEOF
18394 cat confdefs.h >>conftest.$ac_ext
18395 cat >>conftest.$ac_ext <<_ACEOF
18396 /* end confdefs.h.  */
18397
18398 /* Override any GCC internal prototype to avoid an error.
18399    Use char because int might match the return type of a GCC
18400    builtin and then its argument prototype would still apply.  */
18401 #ifdef __cplusplus
18402 extern "C"
18403 #endif
18404 char __ashrdi3 ();
18405 int
18406 main ()
18407 {
18408 return __ashrdi3 ();
18409   ;
18410   return 0;
18411 }
18412 _ACEOF
18413 rm -f conftest.$ac_objext conftest$ac_exeext
18414 if { (ac_try="$ac_link"
18415 case "(($ac_try" in
18416   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18417   *) ac_try_echo=$ac_try;;
18418 esac
18419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18420   (eval "$ac_link") 2>conftest.er1
18421   ac_status=$?
18422   grep -v '^ *+' conftest.er1 >conftest.err
18423   rm -f conftest.er1
18424   cat conftest.err >&5
18425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18426   (exit $ac_status); } &&
18427          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18428   { (case "(($ac_try" in
18429   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18430   *) ac_try_echo=$ac_try;;
18431 esac
18432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18433   (eval "$ac_try") 2>&5
18434   ac_status=$?
18435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18436   (exit $ac_status); }; } &&
18437          { ac_try='test -s conftest$ac_exeext'
18438   { (case "(($ac_try" in
18439   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18440   *) ac_try_echo=$ac_try;;
18441 esac
18442 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18443   (eval "$ac_try") 2>&5
18444   ac_status=$?
18445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18446   (exit $ac_status); }; }; then
18447   ac_cv_lib_gcc___ashrdi3=yes
18448 else
18449   echo "$as_me: failed program was:" >&5
18450 sed 's/^/| /' conftest.$ac_ext >&5
18451
18452         ac_cv_lib_gcc___ashrdi3=no
18453 fi
18454
18455 rm -f core conftest.err conftest.$ac_objext \
18456       conftest$ac_exeext conftest.$ac_ext
18457 LIBS=$ac_check_lib_save_LIBS
18458 fi
18459 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashrdi3" >&5
18460 echo "${ECHO_T}$ac_cv_lib_gcc___ashrdi3" >&6; }
18461 if test $ac_cv_lib_gcc___ashrdi3 = yes; then
18462
18463 cat >>confdefs.h <<\_ACEOF
18464 #define HAVE___ASHRDI3 1
18465 _ACEOF
18466
18467 fi
18468
18469   { echo "$as_me:$LINENO: checking for __divdi3 in -lgcc" >&5
18470 echo $ECHO_N "checking for __divdi3 in -lgcc... $ECHO_C" >&6; }
18471 if test "${ac_cv_lib_gcc___divdi3+set}" = set; then
18472   echo $ECHO_N "(cached) $ECHO_C" >&6
18473 else
18474   ac_check_lib_save_LIBS=$LIBS
18475 LIBS="-lgcc  $LIBS"
18476 cat >conftest.$ac_ext <<_ACEOF
18477 /* confdefs.h.  */
18478 _ACEOF
18479 cat confdefs.h >>conftest.$ac_ext
18480 cat >>conftest.$ac_ext <<_ACEOF
18481 /* end confdefs.h.  */
18482
18483 /* Override any GCC internal prototype to avoid an error.
18484    Use char because int might match the return type of a GCC
18485    builtin and then its argument prototype would still apply.  */
18486 #ifdef __cplusplus
18487 extern "C"
18488 #endif
18489 char __divdi3 ();
18490 int
18491 main ()
18492 {
18493 return __divdi3 ();
18494   ;
18495   return 0;
18496 }
18497 _ACEOF
18498 rm -f conftest.$ac_objext conftest$ac_exeext
18499 if { (ac_try="$ac_link"
18500 case "(($ac_try" in
18501   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18502   *) ac_try_echo=$ac_try;;
18503 esac
18504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18505   (eval "$ac_link") 2>conftest.er1
18506   ac_status=$?
18507   grep -v '^ *+' conftest.er1 >conftest.err
18508   rm -f conftest.er1
18509   cat conftest.err >&5
18510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18511   (exit $ac_status); } &&
18512          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18513   { (case "(($ac_try" in
18514   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18515   *) ac_try_echo=$ac_try;;
18516 esac
18517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18518   (eval "$ac_try") 2>&5
18519   ac_status=$?
18520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18521   (exit $ac_status); }; } &&
18522          { ac_try='test -s conftest$ac_exeext'
18523   { (case "(($ac_try" in
18524   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18525   *) ac_try_echo=$ac_try;;
18526 esac
18527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18528   (eval "$ac_try") 2>&5
18529   ac_status=$?
18530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18531   (exit $ac_status); }; }; then
18532   ac_cv_lib_gcc___divdi3=yes
18533 else
18534   echo "$as_me: failed program was:" >&5
18535 sed 's/^/| /' conftest.$ac_ext >&5
18536
18537         ac_cv_lib_gcc___divdi3=no
18538 fi
18539
18540 rm -f core conftest.err conftest.$ac_objext \
18541       conftest$ac_exeext conftest.$ac_ext
18542 LIBS=$ac_check_lib_save_LIBS
18543 fi
18544 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___divdi3" >&5
18545 echo "${ECHO_T}$ac_cv_lib_gcc___divdi3" >&6; }
18546 if test $ac_cv_lib_gcc___divdi3 = yes; then
18547
18548 cat >>confdefs.h <<\_ACEOF
18549 #define HAVE___DIVDI3 1
18550 _ACEOF
18551
18552 fi
18553
18554   { echo "$as_me:$LINENO: checking for __fixdfdi in -lgcc" >&5
18555 echo $ECHO_N "checking for __fixdfdi in -lgcc... $ECHO_C" >&6; }
18556 if test "${ac_cv_lib_gcc___fixdfdi+set}" = set; then
18557   echo $ECHO_N "(cached) $ECHO_C" >&6
18558 else
18559   ac_check_lib_save_LIBS=$LIBS
18560 LIBS="-lgcc  $LIBS"
18561 cat >conftest.$ac_ext <<_ACEOF
18562 /* confdefs.h.  */
18563 _ACEOF
18564 cat confdefs.h >>conftest.$ac_ext
18565 cat >>conftest.$ac_ext <<_ACEOF
18566 /* end confdefs.h.  */
18567
18568 /* Override any GCC internal prototype to avoid an error.
18569    Use char because int might match the return type of a GCC
18570    builtin and then its argument prototype would still apply.  */
18571 #ifdef __cplusplus
18572 extern "C"
18573 #endif
18574 char __fixdfdi ();
18575 int
18576 main ()
18577 {
18578 return __fixdfdi ();
18579   ;
18580   return 0;
18581 }
18582 _ACEOF
18583 rm -f conftest.$ac_objext conftest$ac_exeext
18584 if { (ac_try="$ac_link"
18585 case "(($ac_try" in
18586   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18587   *) ac_try_echo=$ac_try;;
18588 esac
18589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18590   (eval "$ac_link") 2>conftest.er1
18591   ac_status=$?
18592   grep -v '^ *+' conftest.er1 >conftest.err
18593   rm -f conftest.er1
18594   cat conftest.err >&5
18595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18596   (exit $ac_status); } &&
18597          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18598   { (case "(($ac_try" in
18599   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18600   *) ac_try_echo=$ac_try;;
18601 esac
18602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18603   (eval "$ac_try") 2>&5
18604   ac_status=$?
18605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18606   (exit $ac_status); }; } &&
18607          { ac_try='test -s conftest$ac_exeext'
18608   { (case "(($ac_try" in
18609   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18610   *) ac_try_echo=$ac_try;;
18611 esac
18612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18613   (eval "$ac_try") 2>&5
18614   ac_status=$?
18615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18616   (exit $ac_status); }; }; then
18617   ac_cv_lib_gcc___fixdfdi=yes
18618 else
18619   echo "$as_me: failed program was:" >&5
18620 sed 's/^/| /' conftest.$ac_ext >&5
18621
18622         ac_cv_lib_gcc___fixdfdi=no
18623 fi
18624
18625 rm -f core conftest.err conftest.$ac_objext \
18626       conftest$ac_exeext conftest.$ac_ext
18627 LIBS=$ac_check_lib_save_LIBS
18628 fi
18629 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixdfdi" >&5
18630 echo "${ECHO_T}$ac_cv_lib_gcc___fixdfdi" >&6; }
18631 if test $ac_cv_lib_gcc___fixdfdi = yes; then
18632
18633 cat >>confdefs.h <<\_ACEOF
18634 #define HAVE___FIXDFDI 1
18635 _ACEOF
18636
18637 fi
18638
18639   { echo "$as_me:$LINENO: checking for __fixsfdi in -lgcc" >&5
18640 echo $ECHO_N "checking for __fixsfdi in -lgcc... $ECHO_C" >&6; }
18641 if test "${ac_cv_lib_gcc___fixsfdi+set}" = set; then
18642   echo $ECHO_N "(cached) $ECHO_C" >&6
18643 else
18644   ac_check_lib_save_LIBS=$LIBS
18645 LIBS="-lgcc  $LIBS"
18646 cat >conftest.$ac_ext <<_ACEOF
18647 /* confdefs.h.  */
18648 _ACEOF
18649 cat confdefs.h >>conftest.$ac_ext
18650 cat >>conftest.$ac_ext <<_ACEOF
18651 /* end confdefs.h.  */
18652
18653 /* Override any GCC internal prototype to avoid an error.
18654    Use char because int might match the return type of a GCC
18655    builtin and then its argument prototype would still apply.  */
18656 #ifdef __cplusplus
18657 extern "C"
18658 #endif
18659 char __fixsfdi ();
18660 int
18661 main ()
18662 {
18663 return __fixsfdi ();
18664   ;
18665   return 0;
18666 }
18667 _ACEOF
18668 rm -f conftest.$ac_objext conftest$ac_exeext
18669 if { (ac_try="$ac_link"
18670 case "(($ac_try" in
18671   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18672   *) ac_try_echo=$ac_try;;
18673 esac
18674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18675   (eval "$ac_link") 2>conftest.er1
18676   ac_status=$?
18677   grep -v '^ *+' conftest.er1 >conftest.err
18678   rm -f conftest.er1
18679   cat conftest.err >&5
18680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18681   (exit $ac_status); } &&
18682          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18683   { (case "(($ac_try" in
18684   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18685   *) ac_try_echo=$ac_try;;
18686 esac
18687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18688   (eval "$ac_try") 2>&5
18689   ac_status=$?
18690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18691   (exit $ac_status); }; } &&
18692          { ac_try='test -s conftest$ac_exeext'
18693   { (case "(($ac_try" in
18694   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18695   *) ac_try_echo=$ac_try;;
18696 esac
18697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18698   (eval "$ac_try") 2>&5
18699   ac_status=$?
18700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18701   (exit $ac_status); }; }; then
18702   ac_cv_lib_gcc___fixsfdi=yes
18703 else
18704   echo "$as_me: failed program was:" >&5
18705 sed 's/^/| /' conftest.$ac_ext >&5
18706
18707         ac_cv_lib_gcc___fixsfdi=no
18708 fi
18709
18710 rm -f core conftest.err conftest.$ac_objext \
18711       conftest$ac_exeext conftest.$ac_ext
18712 LIBS=$ac_check_lib_save_LIBS
18713 fi
18714 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixsfdi" >&5
18715 echo "${ECHO_T}$ac_cv_lib_gcc___fixsfdi" >&6; }
18716 if test $ac_cv_lib_gcc___fixsfdi = yes; then
18717
18718 cat >>confdefs.h <<\_ACEOF
18719 #define HAVE___FIXSFDI 1
18720 _ACEOF
18721
18722 fi
18723
18724   { echo "$as_me:$LINENO: checking for __floatdidf in -lgcc" >&5
18725 echo $ECHO_N "checking for __floatdidf in -lgcc... $ECHO_C" >&6; }
18726 if test "${ac_cv_lib_gcc___floatdidf+set}" = set; then
18727   echo $ECHO_N "(cached) $ECHO_C" >&6
18728 else
18729   ac_check_lib_save_LIBS=$LIBS
18730 LIBS="-lgcc  $LIBS"
18731 cat >conftest.$ac_ext <<_ACEOF
18732 /* confdefs.h.  */
18733 _ACEOF
18734 cat confdefs.h >>conftest.$ac_ext
18735 cat >>conftest.$ac_ext <<_ACEOF
18736 /* end confdefs.h.  */
18737
18738 /* Override any GCC internal prototype to avoid an error.
18739    Use char because int might match the return type of a GCC
18740    builtin and then its argument prototype would still apply.  */
18741 #ifdef __cplusplus
18742 extern "C"
18743 #endif
18744 char __floatdidf ();
18745 int
18746 main ()
18747 {
18748 return __floatdidf ();
18749   ;
18750   return 0;
18751 }
18752 _ACEOF
18753 rm -f conftest.$ac_objext conftest$ac_exeext
18754 if { (ac_try="$ac_link"
18755 case "(($ac_try" in
18756   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18757   *) ac_try_echo=$ac_try;;
18758 esac
18759 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18760   (eval "$ac_link") 2>conftest.er1
18761   ac_status=$?
18762   grep -v '^ *+' conftest.er1 >conftest.err
18763   rm -f conftest.er1
18764   cat conftest.err >&5
18765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18766   (exit $ac_status); } &&
18767          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18768   { (case "(($ac_try" in
18769   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18770   *) ac_try_echo=$ac_try;;
18771 esac
18772 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18773   (eval "$ac_try") 2>&5
18774   ac_status=$?
18775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18776   (exit $ac_status); }; } &&
18777          { ac_try='test -s conftest$ac_exeext'
18778   { (case "(($ac_try" in
18779   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18780   *) ac_try_echo=$ac_try;;
18781 esac
18782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18783   (eval "$ac_try") 2>&5
18784   ac_status=$?
18785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18786   (exit $ac_status); }; }; then
18787   ac_cv_lib_gcc___floatdidf=yes
18788 else
18789   echo "$as_me: failed program was:" >&5
18790 sed 's/^/| /' conftest.$ac_ext >&5
18791
18792         ac_cv_lib_gcc___floatdidf=no
18793 fi
18794
18795 rm -f core conftest.err conftest.$ac_objext \
18796       conftest$ac_exeext conftest.$ac_ext
18797 LIBS=$ac_check_lib_save_LIBS
18798 fi
18799 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___floatdidf" >&5
18800 echo "${ECHO_T}$ac_cv_lib_gcc___floatdidf" >&6; }
18801 if test $ac_cv_lib_gcc___floatdidf = yes; then
18802
18803 cat >>confdefs.h <<\_ACEOF
18804 #define HAVE___FLOATDIDF 1
18805 _ACEOF
18806
18807 fi
18808
18809   { echo "$as_me:$LINENO: checking for __lshrdi3 in -lgcc" >&5
18810 echo $ECHO_N "checking for __lshrdi3 in -lgcc... $ECHO_C" >&6; }
18811 if test "${ac_cv_lib_gcc___lshrdi3+set}" = set; then
18812   echo $ECHO_N "(cached) $ECHO_C" >&6
18813 else
18814   ac_check_lib_save_LIBS=$LIBS
18815 LIBS="-lgcc  $LIBS"
18816 cat >conftest.$ac_ext <<_ACEOF
18817 /* confdefs.h.  */
18818 _ACEOF
18819 cat confdefs.h >>conftest.$ac_ext
18820 cat >>conftest.$ac_ext <<_ACEOF
18821 /* end confdefs.h.  */
18822
18823 /* Override any GCC internal prototype to avoid an error.
18824    Use char because int might match the return type of a GCC
18825    builtin and then its argument prototype would still apply.  */
18826 #ifdef __cplusplus
18827 extern "C"
18828 #endif
18829 char __lshrdi3 ();
18830 int
18831 main ()
18832 {
18833 return __lshrdi3 ();
18834   ;
18835   return 0;
18836 }
18837 _ACEOF
18838 rm -f conftest.$ac_objext conftest$ac_exeext
18839 if { (ac_try="$ac_link"
18840 case "(($ac_try" in
18841   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18842   *) ac_try_echo=$ac_try;;
18843 esac
18844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18845   (eval "$ac_link") 2>conftest.er1
18846   ac_status=$?
18847   grep -v '^ *+' conftest.er1 >conftest.err
18848   rm -f conftest.er1
18849   cat conftest.err >&5
18850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18851   (exit $ac_status); } &&
18852          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18853   { (case "(($ac_try" in
18854   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18855   *) ac_try_echo=$ac_try;;
18856 esac
18857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18858   (eval "$ac_try") 2>&5
18859   ac_status=$?
18860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18861   (exit $ac_status); }; } &&
18862          { ac_try='test -s conftest$ac_exeext'
18863   { (case "(($ac_try" in
18864   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18865   *) ac_try_echo=$ac_try;;
18866 esac
18867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18868   (eval "$ac_try") 2>&5
18869   ac_status=$?
18870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18871   (exit $ac_status); }; }; then
18872   ac_cv_lib_gcc___lshrdi3=yes
18873 else
18874   echo "$as_me: failed program was:" >&5
18875 sed 's/^/| /' conftest.$ac_ext >&5
18876
18877         ac_cv_lib_gcc___lshrdi3=no
18878 fi
18879
18880 rm -f core conftest.err conftest.$ac_objext \
18881       conftest$ac_exeext conftest.$ac_ext
18882 LIBS=$ac_check_lib_save_LIBS
18883 fi
18884 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___lshrdi3" >&5
18885 echo "${ECHO_T}$ac_cv_lib_gcc___lshrdi3" >&6; }
18886 if test $ac_cv_lib_gcc___lshrdi3 = yes; then
18887
18888 cat >>confdefs.h <<\_ACEOF
18889 #define HAVE___LSHRDI3 1
18890 _ACEOF
18891
18892 fi
18893
18894   { echo "$as_me:$LINENO: checking for __moddi3 in -lgcc" >&5
18895 echo $ECHO_N "checking for __moddi3 in -lgcc... $ECHO_C" >&6; }
18896 if test "${ac_cv_lib_gcc___moddi3+set}" = set; then
18897   echo $ECHO_N "(cached) $ECHO_C" >&6
18898 else
18899   ac_check_lib_save_LIBS=$LIBS
18900 LIBS="-lgcc  $LIBS"
18901 cat >conftest.$ac_ext <<_ACEOF
18902 /* confdefs.h.  */
18903 _ACEOF
18904 cat confdefs.h >>conftest.$ac_ext
18905 cat >>conftest.$ac_ext <<_ACEOF
18906 /* end confdefs.h.  */
18907
18908 /* Override any GCC internal prototype to avoid an error.
18909    Use char because int might match the return type of a GCC
18910    builtin and then its argument prototype would still apply.  */
18911 #ifdef __cplusplus
18912 extern "C"
18913 #endif
18914 char __moddi3 ();
18915 int
18916 main ()
18917 {
18918 return __moddi3 ();
18919   ;
18920   return 0;
18921 }
18922 _ACEOF
18923 rm -f conftest.$ac_objext conftest$ac_exeext
18924 if { (ac_try="$ac_link"
18925 case "(($ac_try" in
18926   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18927   *) ac_try_echo=$ac_try;;
18928 esac
18929 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18930   (eval "$ac_link") 2>conftest.er1
18931   ac_status=$?
18932   grep -v '^ *+' conftest.er1 >conftest.err
18933   rm -f conftest.er1
18934   cat conftest.err >&5
18935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18936   (exit $ac_status); } &&
18937          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18938   { (case "(($ac_try" in
18939   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18940   *) ac_try_echo=$ac_try;;
18941 esac
18942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18943   (eval "$ac_try") 2>&5
18944   ac_status=$?
18945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18946   (exit $ac_status); }; } &&
18947          { ac_try='test -s conftest$ac_exeext'
18948   { (case "(($ac_try" in
18949   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18950   *) ac_try_echo=$ac_try;;
18951 esac
18952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18953   (eval "$ac_try") 2>&5
18954   ac_status=$?
18955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18956   (exit $ac_status); }; }; then
18957   ac_cv_lib_gcc___moddi3=yes
18958 else
18959   echo "$as_me: failed program was:" >&5
18960 sed 's/^/| /' conftest.$ac_ext >&5
18961
18962         ac_cv_lib_gcc___moddi3=no
18963 fi
18964
18965 rm -f core conftest.err conftest.$ac_objext \
18966       conftest$ac_exeext conftest.$ac_ext
18967 LIBS=$ac_check_lib_save_LIBS
18968 fi
18969 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___moddi3" >&5
18970 echo "${ECHO_T}$ac_cv_lib_gcc___moddi3" >&6; }
18971 if test $ac_cv_lib_gcc___moddi3 = yes; then
18972
18973 cat >>confdefs.h <<\_ACEOF
18974 #define HAVE___MODDI3 1
18975 _ACEOF
18976
18977 fi
18978
18979   { echo "$as_me:$LINENO: checking for __udivdi3 in -lgcc" >&5
18980 echo $ECHO_N "checking for __udivdi3 in -lgcc... $ECHO_C" >&6; }
18981 if test "${ac_cv_lib_gcc___udivdi3+set}" = set; then
18982   echo $ECHO_N "(cached) $ECHO_C" >&6
18983 else
18984   ac_check_lib_save_LIBS=$LIBS
18985 LIBS="-lgcc  $LIBS"
18986 cat >conftest.$ac_ext <<_ACEOF
18987 /* confdefs.h.  */
18988 _ACEOF
18989 cat confdefs.h >>conftest.$ac_ext
18990 cat >>conftest.$ac_ext <<_ACEOF
18991 /* end confdefs.h.  */
18992
18993 /* Override any GCC internal prototype to avoid an error.
18994    Use char because int might match the return type of a GCC
18995    builtin and then its argument prototype would still apply.  */
18996 #ifdef __cplusplus
18997 extern "C"
18998 #endif
18999 char __udivdi3 ();
19000 int
19001 main ()
19002 {
19003 return __udivdi3 ();
19004   ;
19005   return 0;
19006 }
19007 _ACEOF
19008 rm -f conftest.$ac_objext conftest$ac_exeext
19009 if { (ac_try="$ac_link"
19010 case "(($ac_try" in
19011   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19012   *) ac_try_echo=$ac_try;;
19013 esac
19014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19015   (eval "$ac_link") 2>conftest.er1
19016   ac_status=$?
19017   grep -v '^ *+' conftest.er1 >conftest.err
19018   rm -f conftest.er1
19019   cat conftest.err >&5
19020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19021   (exit $ac_status); } &&
19022          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19023   { (case "(($ac_try" in
19024   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19025   *) ac_try_echo=$ac_try;;
19026 esac
19027 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19028   (eval "$ac_try") 2>&5
19029   ac_status=$?
19030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19031   (exit $ac_status); }; } &&
19032          { ac_try='test -s conftest$ac_exeext'
19033   { (case "(($ac_try" in
19034   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19035   *) ac_try_echo=$ac_try;;
19036 esac
19037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19038   (eval "$ac_try") 2>&5
19039   ac_status=$?
19040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19041   (exit $ac_status); }; }; then
19042   ac_cv_lib_gcc___udivdi3=yes
19043 else
19044   echo "$as_me: failed program was:" >&5
19045 sed 's/^/| /' conftest.$ac_ext >&5
19046
19047         ac_cv_lib_gcc___udivdi3=no
19048 fi
19049
19050 rm -f core conftest.err conftest.$ac_objext \
19051       conftest$ac_exeext conftest.$ac_ext
19052 LIBS=$ac_check_lib_save_LIBS
19053 fi
19054 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___udivdi3" >&5
19055 echo "${ECHO_T}$ac_cv_lib_gcc___udivdi3" >&6; }
19056 if test $ac_cv_lib_gcc___udivdi3 = yes; then
19057
19058 cat >>confdefs.h <<\_ACEOF
19059 #define HAVE___UDIVDI3 1
19060 _ACEOF
19061
19062 fi
19063
19064   { echo "$as_me:$LINENO: checking for __umoddi3 in -lgcc" >&5
19065 echo $ECHO_N "checking for __umoddi3 in -lgcc... $ECHO_C" >&6; }
19066 if test "${ac_cv_lib_gcc___umoddi3+set}" = set; then
19067   echo $ECHO_N "(cached) $ECHO_C" >&6
19068 else
19069   ac_check_lib_save_LIBS=$LIBS
19070 LIBS="-lgcc  $LIBS"
19071 cat >conftest.$ac_ext <<_ACEOF
19072 /* confdefs.h.  */
19073 _ACEOF
19074 cat confdefs.h >>conftest.$ac_ext
19075 cat >>conftest.$ac_ext <<_ACEOF
19076 /* end confdefs.h.  */
19077
19078 /* Override any GCC internal prototype to avoid an error.
19079    Use char because int might match the return type of a GCC
19080    builtin and then its argument prototype would still apply.  */
19081 #ifdef __cplusplus
19082 extern "C"
19083 #endif
19084 char __umoddi3 ();
19085 int
19086 main ()
19087 {
19088 return __umoddi3 ();
19089   ;
19090   return 0;
19091 }
19092 _ACEOF
19093 rm -f conftest.$ac_objext conftest$ac_exeext
19094 if { (ac_try="$ac_link"
19095 case "(($ac_try" in
19096   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19097   *) ac_try_echo=$ac_try;;
19098 esac
19099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19100   (eval "$ac_link") 2>conftest.er1
19101   ac_status=$?
19102   grep -v '^ *+' conftest.er1 >conftest.err
19103   rm -f conftest.er1
19104   cat conftest.err >&5
19105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19106   (exit $ac_status); } &&
19107          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19108   { (case "(($ac_try" in
19109   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19110   *) ac_try_echo=$ac_try;;
19111 esac
19112 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19113   (eval "$ac_try") 2>&5
19114   ac_status=$?
19115   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19116   (exit $ac_status); }; } &&
19117          { ac_try='test -s conftest$ac_exeext'
19118   { (case "(($ac_try" in
19119   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19120   *) ac_try_echo=$ac_try;;
19121 esac
19122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19123   (eval "$ac_try") 2>&5
19124   ac_status=$?
19125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19126   (exit $ac_status); }; }; then
19127   ac_cv_lib_gcc___umoddi3=yes
19128 else
19129   echo "$as_me: failed program was:" >&5
19130 sed 's/^/| /' conftest.$ac_ext >&5
19131
19132         ac_cv_lib_gcc___umoddi3=no
19133 fi
19134
19135 rm -f core conftest.err conftest.$ac_objext \
19136       conftest$ac_exeext conftest.$ac_ext
19137 LIBS=$ac_check_lib_save_LIBS
19138 fi
19139 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___umoddi3" >&5
19140 echo "${ECHO_T}$ac_cv_lib_gcc___umoddi3" >&6; }
19141 if test $ac_cv_lib_gcc___umoddi3 = yes; then
19142
19143 cat >>confdefs.h <<\_ACEOF
19144 #define HAVE___UMODDI3 1
19145 _ACEOF
19146
19147 fi
19148
19149
19150   { echo "$as_me:$LINENO: checking for __main in -lgcc" >&5
19151 echo $ECHO_N "checking for __main in -lgcc... $ECHO_C" >&6; }
19152 if test "${ac_cv_lib_gcc___main+set}" = set; then
19153   echo $ECHO_N "(cached) $ECHO_C" >&6
19154 else
19155   ac_check_lib_save_LIBS=$LIBS
19156 LIBS="-lgcc  $LIBS"
19157 cat >conftest.$ac_ext <<_ACEOF
19158 /* confdefs.h.  */
19159 _ACEOF
19160 cat confdefs.h >>conftest.$ac_ext
19161 cat >>conftest.$ac_ext <<_ACEOF
19162 /* end confdefs.h.  */
19163
19164 /* Override any GCC internal prototype to avoid an error.
19165    Use char because int might match the return type of a GCC
19166    builtin and then its argument prototype would still apply.  */
19167 #ifdef __cplusplus
19168 extern "C"
19169 #endif
19170 char __main ();
19171 int
19172 main ()
19173 {
19174 return __main ();
19175   ;
19176   return 0;
19177 }
19178 _ACEOF
19179 rm -f conftest.$ac_objext conftest$ac_exeext
19180 if { (ac_try="$ac_link"
19181 case "(($ac_try" in
19182   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19183   *) ac_try_echo=$ac_try;;
19184 esac
19185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19186   (eval "$ac_link") 2>conftest.er1
19187   ac_status=$?
19188   grep -v '^ *+' conftest.er1 >conftest.err
19189   rm -f conftest.er1
19190   cat conftest.err >&5
19191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19192   (exit $ac_status); } &&
19193          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19194   { (case "(($ac_try" in
19195   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19196   *) ac_try_echo=$ac_try;;
19197 esac
19198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19199   (eval "$ac_try") 2>&5
19200   ac_status=$?
19201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19202   (exit $ac_status); }; } &&
19203          { ac_try='test -s conftest$ac_exeext'
19204   { (case "(($ac_try" in
19205   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19206   *) ac_try_echo=$ac_try;;
19207 esac
19208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19209   (eval "$ac_try") 2>&5
19210   ac_status=$?
19211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19212   (exit $ac_status); }; }; then
19213   ac_cv_lib_gcc___main=yes
19214 else
19215   echo "$as_me: failed program was:" >&5
19216 sed 's/^/| /' conftest.$ac_ext >&5
19217
19218         ac_cv_lib_gcc___main=no
19219 fi
19220
19221 rm -f core conftest.err conftest.$ac_objext \
19222       conftest$ac_exeext conftest.$ac_ext
19223 LIBS=$ac_check_lib_save_LIBS
19224 fi
19225 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___main" >&5
19226 echo "${ECHO_T}$ac_cv_lib_gcc___main" >&6; }
19227 if test $ac_cv_lib_gcc___main = yes; then
19228
19229 cat >>confdefs.h <<\_ACEOF
19230 #define HAVE___MAIN 1
19231 _ACEOF
19232
19233 fi
19234
19235   { echo "$as_me:$LINENO: checking for __cmpdi2 in -lgcc" >&5
19236 echo $ECHO_N "checking for __cmpdi2 in -lgcc... $ECHO_C" >&6; }
19237 if test "${ac_cv_lib_gcc___cmpdi2+set}" = set; then
19238   echo $ECHO_N "(cached) $ECHO_C" >&6
19239 else
19240   ac_check_lib_save_LIBS=$LIBS
19241 LIBS="-lgcc  $LIBS"
19242 cat >conftest.$ac_ext <<_ACEOF
19243 /* confdefs.h.  */
19244 _ACEOF
19245 cat confdefs.h >>conftest.$ac_ext
19246 cat >>conftest.$ac_ext <<_ACEOF
19247 /* end confdefs.h.  */
19248
19249 /* Override any GCC internal prototype to avoid an error.
19250    Use char because int might match the return type of a GCC
19251    builtin and then its argument prototype would still apply.  */
19252 #ifdef __cplusplus
19253 extern "C"
19254 #endif
19255 char __cmpdi2 ();
19256 int
19257 main ()
19258 {
19259 return __cmpdi2 ();
19260   ;
19261   return 0;
19262 }
19263 _ACEOF
19264 rm -f conftest.$ac_objext conftest$ac_exeext
19265 if { (ac_try="$ac_link"
19266 case "(($ac_try" in
19267   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19268   *) ac_try_echo=$ac_try;;
19269 esac
19270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19271   (eval "$ac_link") 2>conftest.er1
19272   ac_status=$?
19273   grep -v '^ *+' conftest.er1 >conftest.err
19274   rm -f conftest.er1
19275   cat conftest.err >&5
19276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19277   (exit $ac_status); } &&
19278          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19279   { (case "(($ac_try" in
19280   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19281   *) ac_try_echo=$ac_try;;
19282 esac
19283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19284   (eval "$ac_try") 2>&5
19285   ac_status=$?
19286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19287   (exit $ac_status); }; } &&
19288          { ac_try='test -s conftest$ac_exeext'
19289   { (case "(($ac_try" in
19290   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19291   *) ac_try_echo=$ac_try;;
19292 esac
19293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19294   (eval "$ac_try") 2>&5
19295   ac_status=$?
19296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19297   (exit $ac_status); }; }; then
19298   ac_cv_lib_gcc___cmpdi2=yes
19299 else
19300   echo "$as_me: failed program was:" >&5
19301 sed 's/^/| /' conftest.$ac_ext >&5
19302
19303         ac_cv_lib_gcc___cmpdi2=no
19304 fi
19305
19306 rm -f core conftest.err conftest.$ac_objext \
19307       conftest$ac_exeext conftest.$ac_ext
19308 LIBS=$ac_check_lib_save_LIBS
19309 fi
19310 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___cmpdi2" >&5
19311 echo "${ECHO_T}$ac_cv_lib_gcc___cmpdi2" >&6; }
19312 if test $ac_cv_lib_gcc___cmpdi2 = yes; then
19313
19314 cat >>confdefs.h <<\_ACEOF
19315 #define HAVE___CMPDI2 1
19316 _ACEOF
19317
19318 fi
19319
19320 fi
19321
19322 if test "$llvm_cv_os_type" = "MingW" ; then
19323   { echo "$as_me:$LINENO: checking whether EnumerateLoadedModules() accepts new decl" >&5
19324 echo $ECHO_N "checking whether EnumerateLoadedModules() accepts new decl... $ECHO_C" >&6; }
19325   cat >conftest.$ac_ext <<_ACEOF
19326 #include <windows.h>
19327 #include <imagehlp.h>
19328 extern void foo(PENUMLOADED_MODULES_CALLBACK);
19329 extern void foo(BOOL(CALLBACK*)(PCSTR,ULONG_PTR,ULONG,PVOID));
19330 _ACEOF
19331 rm -f conftest.$ac_objext
19332 if { (ac_try="$ac_compile"
19333 case "(($ac_try" in
19334   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19335   *) ac_try_echo=$ac_try;;
19336 esac
19337 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19338   (eval "$ac_compile") 2>conftest.er1
19339   ac_status=$?
19340   grep -v '^ *+' conftest.er1 >conftest.err
19341   rm -f conftest.er1
19342   cat conftest.err >&5
19343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19344   (exit $ac_status); } &&
19345          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19346   { (case "(($ac_try" in
19347   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19348   *) ac_try_echo=$ac_try;;
19349 esac
19350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19351   (eval "$ac_try") 2>&5
19352   ac_status=$?
19353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19354   (exit $ac_status); }; } &&
19355          { ac_try='test -s conftest.$ac_objext'
19356   { (case "(($ac_try" in
19357   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19358   *) ac_try_echo=$ac_try;;
19359 esac
19360 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19361   (eval "$ac_try") 2>&5
19362   ac_status=$?
19363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19364   (exit $ac_status); }; }; then
19365
19366   { echo "$as_me:$LINENO: result: yes" >&5
19367 echo "${ECHO_T}yes" >&6; }
19368   llvm_cv_win32_elmcb_pcstr="PCSTR"
19369
19370 else
19371   echo "$as_me: failed program was:" >&5
19372 sed 's/^/| /' conftest.$ac_ext >&5
19373
19374
19375   { echo "$as_me:$LINENO: result: no" >&5
19376 echo "${ECHO_T}no" >&6; }
19377   llvm_cv_win32_elmcb_pcstr="PSTR"
19378
19379 fi
19380
19381 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19382
19383 cat >>confdefs.h <<_ACEOF
19384 #define WIN32_ELMCB_PCSTR $llvm_cv_win32_elmcb_pcstr
19385 _ACEOF
19386
19387 fi
19388
19389
19390 { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
19391 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
19392 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
19393   echo $ECHO_N "(cached) $ECHO_C" >&6
19394 else
19395   ac_ext=cpp
19396 ac_cpp='$CXXCPP $CPPFLAGS'
19397 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19398 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19399 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19400
19401    cat >conftest.$ac_ext <<_ACEOF
19402 /* confdefs.h.  */
19403 _ACEOF
19404 cat confdefs.h >>conftest.$ac_ext
19405 cat >>conftest.$ac_ext <<_ACEOF
19406 /* end confdefs.h.  */
19407 #include <math.h>
19408 int
19409 main ()
19410 {
19411 float f; isnan(f);
19412   ;
19413   return 0;
19414 }
19415 _ACEOF
19416 rm -f conftest.$ac_objext
19417 if { (ac_try="$ac_compile"
19418 case "(($ac_try" in
19419   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19420   *) ac_try_echo=$ac_try;;
19421 esac
19422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19423   (eval "$ac_compile") 2>conftest.er1
19424   ac_status=$?
19425   grep -v '^ *+' conftest.er1 >conftest.err
19426   rm -f conftest.er1
19427   cat conftest.err >&5
19428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19429   (exit $ac_status); } &&
19430          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19431   { (case "(($ac_try" in
19432   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19433   *) ac_try_echo=$ac_try;;
19434 esac
19435 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19436   (eval "$ac_try") 2>&5
19437   ac_status=$?
19438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19439   (exit $ac_status); }; } &&
19440          { ac_try='test -s conftest.$ac_objext'
19441   { (case "(($ac_try" in
19442   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19443   *) ac_try_echo=$ac_try;;
19444 esac
19445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19446   (eval "$ac_try") 2>&5
19447   ac_status=$?
19448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19449   (exit $ac_status); }; }; then
19450   ac_cv_func_isnan_in_math_h=yes
19451 else
19452   echo "$as_me: failed program was:" >&5
19453 sed 's/^/| /' conftest.$ac_ext >&5
19454
19455         ac_cv_func_isnan_in_math_h=no
19456 fi
19457
19458 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19459   ac_ext=c
19460 ac_cpp='$CPP $CPPFLAGS'
19461 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19462 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19463 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19464
19465 fi
19466 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
19467 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
19468
19469
19470 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
19471
19472 cat >>confdefs.h <<\_ACEOF
19473 #define HAVE_ISNAN_IN_MATH_H 1
19474 _ACEOF
19475
19476 fi
19477
19478 { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
19479 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
19480 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
19481   echo $ECHO_N "(cached) $ECHO_C" >&6
19482 else
19483   ac_ext=cpp
19484 ac_cpp='$CXXCPP $CPPFLAGS'
19485 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19486 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19487 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19488
19489    cat >conftest.$ac_ext <<_ACEOF
19490 /* confdefs.h.  */
19491 _ACEOF
19492 cat confdefs.h >>conftest.$ac_ext
19493 cat >>conftest.$ac_ext <<_ACEOF
19494 /* end confdefs.h.  */
19495 #include <cmath>
19496 int
19497 main ()
19498 {
19499 float f; isnan(f);
19500   ;
19501   return 0;
19502 }
19503 _ACEOF
19504 rm -f conftest.$ac_objext
19505 if { (ac_try="$ac_compile"
19506 case "(($ac_try" in
19507   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19508   *) ac_try_echo=$ac_try;;
19509 esac
19510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19511   (eval "$ac_compile") 2>conftest.er1
19512   ac_status=$?
19513   grep -v '^ *+' conftest.er1 >conftest.err
19514   rm -f conftest.er1
19515   cat conftest.err >&5
19516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19517   (exit $ac_status); } &&
19518          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19519   { (case "(($ac_try" in
19520   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19521   *) ac_try_echo=$ac_try;;
19522 esac
19523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19524   (eval "$ac_try") 2>&5
19525   ac_status=$?
19526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19527   (exit $ac_status); }; } &&
19528          { ac_try='test -s conftest.$ac_objext'
19529   { (case "(($ac_try" in
19530   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19531   *) ac_try_echo=$ac_try;;
19532 esac
19533 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19534   (eval "$ac_try") 2>&5
19535   ac_status=$?
19536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19537   (exit $ac_status); }; }; then
19538   ac_cv_func_isnan_in_cmath=yes
19539 else
19540   echo "$as_me: failed program was:" >&5
19541 sed 's/^/| /' conftest.$ac_ext >&5
19542
19543         ac_cv_func_isnan_in_cmath=no
19544 fi
19545
19546 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19547   ac_ext=c
19548 ac_cpp='$CPP $CPPFLAGS'
19549 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19550 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19551 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19552
19553 fi
19554 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
19555 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
19556
19557 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
19558
19559 cat >>confdefs.h <<\_ACEOF
19560 #define HAVE_ISNAN_IN_CMATH 1
19561 _ACEOF
19562
19563 fi
19564
19565 { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
19566 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
19567 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
19568   echo $ECHO_N "(cached) $ECHO_C" >&6
19569 else
19570   ac_ext=cpp
19571 ac_cpp='$CXXCPP $CPPFLAGS'
19572 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19573 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19574 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19575
19576    cat >conftest.$ac_ext <<_ACEOF
19577 /* confdefs.h.  */
19578 _ACEOF
19579 cat confdefs.h >>conftest.$ac_ext
19580 cat >>conftest.$ac_ext <<_ACEOF
19581 /* end confdefs.h.  */
19582 #include <cmath>
19583 int
19584 main ()
19585 {
19586 float f; std::isnan(f);
19587   ;
19588   return 0;
19589 }
19590 _ACEOF
19591 rm -f conftest.$ac_objext
19592 if { (ac_try="$ac_compile"
19593 case "(($ac_try" in
19594   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19595   *) ac_try_echo=$ac_try;;
19596 esac
19597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19598   (eval "$ac_compile") 2>conftest.er1
19599   ac_status=$?
19600   grep -v '^ *+' conftest.er1 >conftest.err
19601   rm -f conftest.er1
19602   cat conftest.err >&5
19603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19604   (exit $ac_status); } &&
19605          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19606   { (case "(($ac_try" in
19607   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19608   *) ac_try_echo=$ac_try;;
19609 esac
19610 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19611   (eval "$ac_try") 2>&5
19612   ac_status=$?
19613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19614   (exit $ac_status); }; } &&
19615          { ac_try='test -s conftest.$ac_objext'
19616   { (case "(($ac_try" in
19617   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19618   *) ac_try_echo=$ac_try;;
19619 esac
19620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19621   (eval "$ac_try") 2>&5
19622   ac_status=$?
19623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19624   (exit $ac_status); }; }; then
19625   ac_cv_func_std_isnan_in_cmath=yes
19626 else
19627   echo "$as_me: failed program was:" >&5
19628 sed 's/^/| /' conftest.$ac_ext >&5
19629
19630         ac_cv_func_std_isnan_in_cmath=no
19631 fi
19632
19633 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19634   ac_ext=c
19635 ac_cpp='$CPP $CPPFLAGS'
19636 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19637 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19638 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19639
19640 fi
19641 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
19642 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
19643
19644 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
19645
19646 cat >>confdefs.h <<\_ACEOF
19647 #define HAVE_STD_ISNAN_IN_CMATH 1
19648 _ACEOF
19649
19650 fi
19651
19652
19653 { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
19654 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
19655 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
19656   echo $ECHO_N "(cached) $ECHO_C" >&6
19657 else
19658   ac_ext=cpp
19659 ac_cpp='$CXXCPP $CPPFLAGS'
19660 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19661 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19662 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19663
19664    cat >conftest.$ac_ext <<_ACEOF
19665 /* confdefs.h.  */
19666 _ACEOF
19667 cat confdefs.h >>conftest.$ac_ext
19668 cat >>conftest.$ac_ext <<_ACEOF
19669 /* end confdefs.h.  */
19670 #include <math.h>
19671 int
19672 main ()
19673 {
19674 float f; isinf(f);
19675   ;
19676   return 0;
19677 }
19678 _ACEOF
19679 rm -f conftest.$ac_objext
19680 if { (ac_try="$ac_compile"
19681 case "(($ac_try" in
19682   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19683   *) ac_try_echo=$ac_try;;
19684 esac
19685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19686   (eval "$ac_compile") 2>conftest.er1
19687   ac_status=$?
19688   grep -v '^ *+' conftest.er1 >conftest.err
19689   rm -f conftest.er1
19690   cat conftest.err >&5
19691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19692   (exit $ac_status); } &&
19693          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19694   { (case "(($ac_try" in
19695   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19696   *) ac_try_echo=$ac_try;;
19697 esac
19698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19699   (eval "$ac_try") 2>&5
19700   ac_status=$?
19701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19702   (exit $ac_status); }; } &&
19703          { ac_try='test -s conftest.$ac_objext'
19704   { (case "(($ac_try" in
19705   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19706   *) ac_try_echo=$ac_try;;
19707 esac
19708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19709   (eval "$ac_try") 2>&5
19710   ac_status=$?
19711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19712   (exit $ac_status); }; }; then
19713   ac_cv_func_isinf_in_math_h=yes
19714 else
19715   echo "$as_me: failed program was:" >&5
19716 sed 's/^/| /' conftest.$ac_ext >&5
19717
19718         ac_cv_func_isinf_in_math_h=no
19719 fi
19720
19721 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19722   ac_ext=c
19723 ac_cpp='$CPP $CPPFLAGS'
19724 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19725 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19726 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19727
19728 fi
19729 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
19730 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
19731
19732 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
19733
19734 cat >>confdefs.h <<\_ACEOF
19735 #define HAVE_ISINF_IN_MATH_H 1
19736 _ACEOF
19737
19738 fi
19739
19740 { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
19741 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
19742 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
19743   echo $ECHO_N "(cached) $ECHO_C" >&6
19744 else
19745   ac_ext=cpp
19746 ac_cpp='$CXXCPP $CPPFLAGS'
19747 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19748 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19749 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19750
19751    cat >conftest.$ac_ext <<_ACEOF
19752 /* confdefs.h.  */
19753 _ACEOF
19754 cat confdefs.h >>conftest.$ac_ext
19755 cat >>conftest.$ac_ext <<_ACEOF
19756 /* end confdefs.h.  */
19757 #include <cmath>
19758 int
19759 main ()
19760 {
19761 float f; isinf(f);
19762   ;
19763   return 0;
19764 }
19765 _ACEOF
19766 rm -f conftest.$ac_objext
19767 if { (ac_try="$ac_compile"
19768 case "(($ac_try" in
19769   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19770   *) ac_try_echo=$ac_try;;
19771 esac
19772 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19773   (eval "$ac_compile") 2>conftest.er1
19774   ac_status=$?
19775   grep -v '^ *+' conftest.er1 >conftest.err
19776   rm -f conftest.er1
19777   cat conftest.err >&5
19778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19779   (exit $ac_status); } &&
19780          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19781   { (case "(($ac_try" in
19782   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19783   *) ac_try_echo=$ac_try;;
19784 esac
19785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19786   (eval "$ac_try") 2>&5
19787   ac_status=$?
19788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19789   (exit $ac_status); }; } &&
19790          { ac_try='test -s conftest.$ac_objext'
19791   { (case "(($ac_try" in
19792   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19793   *) ac_try_echo=$ac_try;;
19794 esac
19795 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19796   (eval "$ac_try") 2>&5
19797   ac_status=$?
19798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19799   (exit $ac_status); }; }; then
19800   ac_cv_func_isinf_in_cmath=yes
19801 else
19802   echo "$as_me: failed program was:" >&5
19803 sed 's/^/| /' conftest.$ac_ext >&5
19804
19805         ac_cv_func_isinf_in_cmath=no
19806 fi
19807
19808 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19809   ac_ext=c
19810 ac_cpp='$CPP $CPPFLAGS'
19811 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19812 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19813 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19814
19815 fi
19816 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
19817 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
19818
19819 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
19820
19821 cat >>confdefs.h <<\_ACEOF
19822 #define HAVE_ISINF_IN_CMATH 1
19823 _ACEOF
19824
19825 fi
19826
19827 { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
19828 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
19829 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
19830   echo $ECHO_N "(cached) $ECHO_C" >&6
19831 else
19832   ac_ext=cpp
19833 ac_cpp='$CXXCPP $CPPFLAGS'
19834 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19835 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19836 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19837
19838    cat >conftest.$ac_ext <<_ACEOF
19839 /* confdefs.h.  */
19840 _ACEOF
19841 cat confdefs.h >>conftest.$ac_ext
19842 cat >>conftest.$ac_ext <<_ACEOF
19843 /* end confdefs.h.  */
19844 #include <cmath>
19845 int
19846 main ()
19847 {
19848 float f; std::isinf(f);
19849   ;
19850   return 0;
19851 }
19852 _ACEOF
19853 rm -f conftest.$ac_objext
19854 if { (ac_try="$ac_compile"
19855 case "(($ac_try" in
19856   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19857   *) ac_try_echo=$ac_try;;
19858 esac
19859 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19860   (eval "$ac_compile") 2>conftest.er1
19861   ac_status=$?
19862   grep -v '^ *+' conftest.er1 >conftest.err
19863   rm -f conftest.er1
19864   cat conftest.err >&5
19865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19866   (exit $ac_status); } &&
19867          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19868   { (case "(($ac_try" in
19869   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19870   *) ac_try_echo=$ac_try;;
19871 esac
19872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19873   (eval "$ac_try") 2>&5
19874   ac_status=$?
19875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19876   (exit $ac_status); }; } &&
19877          { ac_try='test -s conftest.$ac_objext'
19878   { (case "(($ac_try" in
19879   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19880   *) ac_try_echo=$ac_try;;
19881 esac
19882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19883   (eval "$ac_try") 2>&5
19884   ac_status=$?
19885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19886   (exit $ac_status); }; }; then
19887   ac_cv_func_std_isinf_in_cmath=yes
19888 else
19889   echo "$as_me: failed program was:" >&5
19890 sed 's/^/| /' conftest.$ac_ext >&5
19891
19892         ac_cv_func_std_isinf_in_cmath=no
19893 fi
19894
19895 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19896   ac_ext=c
19897 ac_cpp='$CPP $CPPFLAGS'
19898 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19899 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19900 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19901
19902 fi
19903 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
19904 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
19905
19906 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
19907
19908 cat >>confdefs.h <<\_ACEOF
19909 #define HAVE_STD_ISINF_IN_CMATH 1
19910 _ACEOF
19911
19912 fi
19913
19914 { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
19915 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
19916 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
19917   echo $ECHO_N "(cached) $ECHO_C" >&6
19918 else
19919   ac_ext=cpp
19920 ac_cpp='$CXXCPP $CPPFLAGS'
19921 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19922 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19923 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19924
19925    cat >conftest.$ac_ext <<_ACEOF
19926 /* confdefs.h.  */
19927 _ACEOF
19928 cat confdefs.h >>conftest.$ac_ext
19929 cat >>conftest.$ac_ext <<_ACEOF
19930 /* end confdefs.h.  */
19931 #include <ieeefp.h>
19932 int
19933 main ()
19934 {
19935 float f; finite(f);
19936   ;
19937   return 0;
19938 }
19939 _ACEOF
19940 rm -f conftest.$ac_objext
19941 if { (ac_try="$ac_compile"
19942 case "(($ac_try" in
19943   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19944   *) ac_try_echo=$ac_try;;
19945 esac
19946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19947   (eval "$ac_compile") 2>conftest.er1
19948   ac_status=$?
19949   grep -v '^ *+' conftest.er1 >conftest.err
19950   rm -f conftest.er1
19951   cat conftest.err >&5
19952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19953   (exit $ac_status); } &&
19954          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19955   { (case "(($ac_try" in
19956   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19957   *) ac_try_echo=$ac_try;;
19958 esac
19959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19960   (eval "$ac_try") 2>&5
19961   ac_status=$?
19962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19963   (exit $ac_status); }; } &&
19964          { ac_try='test -s conftest.$ac_objext'
19965   { (case "(($ac_try" in
19966   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19967   *) ac_try_echo=$ac_try;;
19968 esac
19969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19970   (eval "$ac_try") 2>&5
19971   ac_status=$?
19972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19973   (exit $ac_status); }; }; then
19974   ac_cv_func_finite_in_ieeefp_h=yes
19975 else
19976   echo "$as_me: failed program was:" >&5
19977 sed 's/^/| /' conftest.$ac_ext >&5
19978
19979         ac_cv_func_finite_in_ieeefp_h=no
19980 fi
19981
19982 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19983   ac_ext=c
19984 ac_cpp='$CPP $CPPFLAGS'
19985 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19986 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19987 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19988
19989 fi
19990 { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
19991 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
19992
19993 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
19994
19995 cat >>confdefs.h <<\_ACEOF
19996 #define HAVE_FINITE_IN_IEEEFP_H 1
19997 _ACEOF
19998
19999 fi
20000
20001
20002
20003 if test "$llvm_cv_platform_type" = "Unix" ; then
20004
20005
20006 for ac_header in stdlib.h unistd.h
20007 do
20008 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20009 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20010   { echo "$as_me:$LINENO: checking for $ac_header" >&5
20011 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20012 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20013   echo $ECHO_N "(cached) $ECHO_C" >&6
20014 fi
20015 ac_res=`eval echo '${'$as_ac_Header'}'`
20016                { echo "$as_me:$LINENO: result: $ac_res" >&5
20017 echo "${ECHO_T}$ac_res" >&6; }
20018 else
20019   # Is the header compilable?
20020 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20021 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20022 cat >conftest.$ac_ext <<_ACEOF
20023 /* confdefs.h.  */
20024 _ACEOF
20025 cat confdefs.h >>conftest.$ac_ext
20026 cat >>conftest.$ac_ext <<_ACEOF
20027 /* end confdefs.h.  */
20028 $ac_includes_default
20029 #include <$ac_header>
20030 _ACEOF
20031 rm -f conftest.$ac_objext
20032 if { (ac_try="$ac_compile"
20033 case "(($ac_try" in
20034   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20035   *) ac_try_echo=$ac_try;;
20036 esac
20037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20038   (eval "$ac_compile") 2>conftest.er1
20039   ac_status=$?
20040   grep -v '^ *+' conftest.er1 >conftest.err
20041   rm -f conftest.er1
20042   cat conftest.err >&5
20043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20044   (exit $ac_status); } &&
20045          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20046   { (case "(($ac_try" in
20047   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20048   *) ac_try_echo=$ac_try;;
20049 esac
20050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20051   (eval "$ac_try") 2>&5
20052   ac_status=$?
20053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20054   (exit $ac_status); }; } &&
20055          { ac_try='test -s conftest.$ac_objext'
20056   { (case "(($ac_try" in
20057   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20058   *) ac_try_echo=$ac_try;;
20059 esac
20060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20061   (eval "$ac_try") 2>&5
20062   ac_status=$?
20063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20064   (exit $ac_status); }; }; then
20065   ac_header_compiler=yes
20066 else
20067   echo "$as_me: failed program was:" >&5
20068 sed 's/^/| /' conftest.$ac_ext >&5
20069
20070         ac_header_compiler=no
20071 fi
20072
20073 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20074 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20075 echo "${ECHO_T}$ac_header_compiler" >&6; }
20076
20077 # Is the header present?
20078 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20079 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20080 cat >conftest.$ac_ext <<_ACEOF
20081 /* confdefs.h.  */
20082 _ACEOF
20083 cat confdefs.h >>conftest.$ac_ext
20084 cat >>conftest.$ac_ext <<_ACEOF
20085 /* end confdefs.h.  */
20086 #include <$ac_header>
20087 _ACEOF
20088 if { (ac_try="$ac_cpp conftest.$ac_ext"
20089 case "(($ac_try" in
20090   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20091   *) ac_try_echo=$ac_try;;
20092 esac
20093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20094   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20095   ac_status=$?
20096   grep -v '^ *+' conftest.er1 >conftest.err
20097   rm -f conftest.er1
20098   cat conftest.err >&5
20099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20100   (exit $ac_status); } >/dev/null; then
20101   if test -s conftest.err; then
20102     ac_cpp_err=$ac_c_preproc_warn_flag
20103     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20104   else
20105     ac_cpp_err=
20106   fi
20107 else
20108   ac_cpp_err=yes
20109 fi
20110 if test -z "$ac_cpp_err"; then
20111   ac_header_preproc=yes
20112 else
20113   echo "$as_me: failed program was:" >&5
20114 sed 's/^/| /' conftest.$ac_ext >&5
20115
20116   ac_header_preproc=no
20117 fi
20118
20119 rm -f conftest.err conftest.$ac_ext
20120 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20121 echo "${ECHO_T}$ac_header_preproc" >&6; }
20122
20123 # So?  What about this header?
20124 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20125   yes:no: )
20126     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20127 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20128     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20129 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20130     ac_header_preproc=yes
20131     ;;
20132   no:yes:* )
20133     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20134 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20135     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20136 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20137     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20138 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20139     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20140 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20141     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20142 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20143     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20144 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20145     ( cat <<\_ASBOX
20146 ## ------------------------------------ ##
20147 ## Report this to http://llvm.org/bugs/ ##
20148 ## ------------------------------------ ##
20149 _ASBOX
20150      ) | sed "s/^/$as_me: WARNING:     /" >&2
20151     ;;
20152 esac
20153 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20154 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20155 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20156   echo $ECHO_N "(cached) $ECHO_C" >&6
20157 else
20158   eval "$as_ac_Header=\$ac_header_preproc"
20159 fi
20160 ac_res=`eval echo '${'$as_ac_Header'}'`
20161                { echo "$as_me:$LINENO: result: $ac_res" >&5
20162 echo "${ECHO_T}$ac_res" >&6; }
20163
20164 fi
20165 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20166   cat >>confdefs.h <<_ACEOF
20167 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20168 _ACEOF
20169
20170 fi
20171
20172 done
20173
20174
20175 for ac_func in getpagesize
20176 do
20177 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20178 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20179 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20180 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20181   echo $ECHO_N "(cached) $ECHO_C" >&6
20182 else
20183   cat >conftest.$ac_ext <<_ACEOF
20184 /* confdefs.h.  */
20185 _ACEOF
20186 cat confdefs.h >>conftest.$ac_ext
20187 cat >>conftest.$ac_ext <<_ACEOF
20188 /* end confdefs.h.  */
20189 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20190    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20191 #define $ac_func innocuous_$ac_func
20192
20193 /* System header to define __stub macros and hopefully few prototypes,
20194     which can conflict with char $ac_func (); below.
20195     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20196     <limits.h> exists even on freestanding compilers.  */
20197
20198 #ifdef __STDC__
20199 # include <limits.h>
20200 #else
20201 # include <assert.h>
20202 #endif
20203
20204 #undef $ac_func
20205
20206 /* Override any GCC internal prototype to avoid an error.
20207    Use char because int might match the return type of a GCC
20208    builtin and then its argument prototype would still apply.  */
20209 #ifdef __cplusplus
20210 extern "C"
20211 #endif
20212 char $ac_func ();
20213 /* The GNU C library defines this for functions which it implements
20214     to always fail with ENOSYS.  Some functions are actually named
20215     something starting with __ and the normal name is an alias.  */
20216 #if defined __stub_$ac_func || defined __stub___$ac_func
20217 choke me
20218 #endif
20219
20220 int
20221 main ()
20222 {
20223 return $ac_func ();
20224   ;
20225   return 0;
20226 }
20227 _ACEOF
20228 rm -f conftest.$ac_objext conftest$ac_exeext
20229 if { (ac_try="$ac_link"
20230 case "(($ac_try" in
20231   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20232   *) ac_try_echo=$ac_try;;
20233 esac
20234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20235   (eval "$ac_link") 2>conftest.er1
20236   ac_status=$?
20237   grep -v '^ *+' conftest.er1 >conftest.err
20238   rm -f conftest.er1
20239   cat conftest.err >&5
20240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20241   (exit $ac_status); } &&
20242          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20243   { (case "(($ac_try" in
20244   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20245   *) ac_try_echo=$ac_try;;
20246 esac
20247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20248   (eval "$ac_try") 2>&5
20249   ac_status=$?
20250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20251   (exit $ac_status); }; } &&
20252          { ac_try='test -s conftest$ac_exeext'
20253   { (case "(($ac_try" in
20254   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20255   *) ac_try_echo=$ac_try;;
20256 esac
20257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20258   (eval "$ac_try") 2>&5
20259   ac_status=$?
20260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20261   (exit $ac_status); }; }; then
20262   eval "$as_ac_var=yes"
20263 else
20264   echo "$as_me: failed program was:" >&5
20265 sed 's/^/| /' conftest.$ac_ext >&5
20266
20267         eval "$as_ac_var=no"
20268 fi
20269
20270 rm -f core conftest.err conftest.$ac_objext \
20271       conftest$ac_exeext conftest.$ac_ext
20272 fi
20273 ac_res=`eval echo '${'$as_ac_var'}'`
20274                { echo "$as_me:$LINENO: result: $ac_res" >&5
20275 echo "${ECHO_T}$ac_res" >&6; }
20276 if test `eval echo '${'$as_ac_var'}'` = yes; then
20277   cat >>confdefs.h <<_ACEOF
20278 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20279 _ACEOF
20280
20281 fi
20282 done
20283
20284 { echo "$as_me:$LINENO: checking for working mmap" >&5
20285 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
20286 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
20287   echo $ECHO_N "(cached) $ECHO_C" >&6
20288 else
20289   if test "$cross_compiling" = yes; then
20290   ac_cv_func_mmap_fixed_mapped=no
20291 else
20292   cat >conftest.$ac_ext <<_ACEOF
20293 /* confdefs.h.  */
20294 _ACEOF
20295 cat confdefs.h >>conftest.$ac_ext
20296 cat >>conftest.$ac_ext <<_ACEOF
20297 /* end confdefs.h.  */
20298 $ac_includes_default
20299 /* malloc might have been renamed as rpl_malloc. */
20300 #undef malloc
20301
20302 /* Thanks to Mike Haertel and Jim Avera for this test.
20303    Here is a matrix of mmap possibilities:
20304         mmap private not fixed
20305         mmap private fixed at somewhere currently unmapped
20306         mmap private fixed at somewhere already mapped
20307         mmap shared not fixed
20308         mmap shared fixed at somewhere currently unmapped
20309         mmap shared fixed at somewhere already mapped
20310    For private mappings, we should verify that changes cannot be read()
20311    back from the file, nor mmap's back from the file at a different
20312    address.  (There have been systems where private was not correctly
20313    implemented like the infamous i386 svr4.0, and systems where the
20314    VM page cache was not coherent with the file system buffer cache
20315    like early versions of FreeBSD and possibly contemporary NetBSD.)
20316    For shared mappings, we should conversely verify that changes get
20317    propagated back to all the places they're supposed to be.
20318
20319    Grep wants private fixed already mapped.
20320    The main things grep needs to know about mmap are:
20321    * does it exist and is it safe to write into the mmap'd area
20322    * how to use it (BSD variants)  */
20323
20324 #include <fcntl.h>
20325 #include <sys/mman.h>
20326
20327 #if !STDC_HEADERS && !HAVE_STDLIB_H
20328 char *malloc ();
20329 #endif
20330
20331 /* This mess was copied from the GNU getpagesize.h.  */
20332 #if !HAVE_GETPAGESIZE
20333 /* Assume that all systems that can run configure have sys/param.h.  */
20334 # if !HAVE_SYS_PARAM_H
20335 #  define HAVE_SYS_PARAM_H 1
20336 # endif
20337
20338 # ifdef _SC_PAGESIZE
20339 #  define getpagesize() sysconf(_SC_PAGESIZE)
20340 # else /* no _SC_PAGESIZE */
20341 #  if HAVE_SYS_PARAM_H
20342 #   include <sys/param.h>
20343 #   ifdef EXEC_PAGESIZE
20344 #    define getpagesize() EXEC_PAGESIZE
20345 #   else /* no EXEC_PAGESIZE */
20346 #    ifdef NBPG
20347 #     define getpagesize() NBPG * CLSIZE
20348 #     ifndef CLSIZE
20349 #      define CLSIZE 1
20350 #     endif /* no CLSIZE */
20351 #    else /* no NBPG */
20352 #     ifdef NBPC
20353 #      define getpagesize() NBPC
20354 #     else /* no NBPC */
20355 #      ifdef PAGESIZE
20356 #       define getpagesize() PAGESIZE
20357 #      endif /* PAGESIZE */
20358 #     endif /* no NBPC */
20359 #    endif /* no NBPG */
20360 #   endif /* no EXEC_PAGESIZE */
20361 #  else /* no HAVE_SYS_PARAM_H */
20362 #   define getpagesize() 8192   /* punt totally */
20363 #  endif /* no HAVE_SYS_PARAM_H */
20364 # endif /* no _SC_PAGESIZE */
20365
20366 #endif /* no HAVE_GETPAGESIZE */
20367
20368 int
20369 main ()
20370 {
20371   char *data, *data2, *data3;
20372   int i, pagesize;
20373   int fd;
20374
20375   pagesize = getpagesize ();
20376
20377   /* First, make a file with some known garbage in it. */
20378   data = (char *) malloc (pagesize);
20379   if (!data)
20380     return 1;
20381   for (i = 0; i < pagesize; ++i)
20382     *(data + i) = rand ();
20383   umask (0);
20384   fd = creat ("conftest.mmap", 0600);
20385   if (fd < 0)
20386     return 1;
20387   if (write (fd, data, pagesize) != pagesize)
20388     return 1;
20389   close (fd);
20390
20391   /* Next, try to mmap the file at a fixed address which already has
20392      something else allocated at it.  If we can, also make sure that
20393      we see the same garbage.  */
20394   fd = open ("conftest.mmap", O_RDWR);
20395   if (fd < 0)
20396     return 1;
20397   data2 = (char *) malloc (2 * pagesize);
20398   if (!data2)
20399     return 1;
20400   data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
20401   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
20402                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
20403     return 1;
20404   for (i = 0; i < pagesize; ++i)
20405     if (*(data + i) != *(data2 + i))
20406       return 1;
20407
20408   /* Finally, make sure that changes to the mapped area do not
20409      percolate back to the file as seen by read().  (This is a bug on
20410      some variants of i386 svr4.0.)  */
20411   for (i = 0; i < pagesize; ++i)
20412     *(data2 + i) = *(data2 + i) + 1;
20413   data3 = (char *) malloc (pagesize);
20414   if (!data3)
20415     return 1;
20416   if (read (fd, data3, pagesize) != pagesize)
20417     return 1;
20418   for (i = 0; i < pagesize; ++i)
20419     if (*(data + i) != *(data3 + i))
20420       return 1;
20421   close (fd);
20422   return 0;
20423 }
20424 _ACEOF
20425 rm -f conftest$ac_exeext
20426 if { (ac_try="$ac_link"
20427 case "(($ac_try" in
20428   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20429   *) ac_try_echo=$ac_try;;
20430 esac
20431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20432   (eval "$ac_link") 2>&5
20433   ac_status=$?
20434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20435   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20436   { (case "(($ac_try" in
20437   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20438   *) ac_try_echo=$ac_try;;
20439 esac
20440 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20441   (eval "$ac_try") 2>&5
20442   ac_status=$?
20443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20444   (exit $ac_status); }; }; then
20445   ac_cv_func_mmap_fixed_mapped=yes
20446 else
20447   echo "$as_me: program exited with status $ac_status" >&5
20448 echo "$as_me: failed program was:" >&5
20449 sed 's/^/| /' conftest.$ac_ext >&5
20450
20451 ( exit $ac_status )
20452 ac_cv_func_mmap_fixed_mapped=no
20453 fi
20454 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20455 fi
20456
20457
20458 fi
20459 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
20460 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
20461 if test $ac_cv_func_mmap_fixed_mapped = yes; then
20462
20463 cat >>confdefs.h <<\_ACEOF
20464 #define HAVE_MMAP 1
20465 _ACEOF
20466
20467 fi
20468 rm -f conftest.mmap
20469
20470   { echo "$as_me:$LINENO: checking for mmap of files" >&5
20471 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
20472 if test "${ac_cv_func_mmap_file+set}" = set; then
20473   echo $ECHO_N "(cached) $ECHO_C" >&6
20474 else
20475    ac_ext=c
20476 ac_cpp='$CPP $CPPFLAGS'
20477 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20478 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20479 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20480
20481   if test "$cross_compiling" = yes; then
20482   ac_cv_func_mmap_file=no
20483 else
20484   cat >conftest.$ac_ext <<_ACEOF
20485
20486     /* confdefs.h.  */
20487 _ACEOF
20488 cat confdefs.h >>conftest.$ac_ext
20489 cat >>conftest.$ac_ext <<_ACEOF
20490 /* end confdefs.h.  */
20491
20492 #include <sys/types.h>
20493 #include <sys/mman.h>
20494 #include <fcntl.h>
20495
20496 int
20497 main ()
20498 {
20499
20500   int fd;
20501   fd = creat ("foo",0777);
20502   fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
20503   unlink ("foo");
20504   return (fd != (int) MAP_FAILED);
20505   ;
20506   return 0;
20507 }
20508 _ACEOF
20509 rm -f conftest$ac_exeext
20510 if { (ac_try="$ac_link"
20511 case "(($ac_try" in
20512   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20513   *) ac_try_echo=$ac_try;;
20514 esac
20515 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20516   (eval "$ac_link") 2>&5
20517   ac_status=$?
20518   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20519   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20520   { (case "(($ac_try" in
20521   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20522   *) ac_try_echo=$ac_try;;
20523 esac
20524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20525   (eval "$ac_try") 2>&5
20526   ac_status=$?
20527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20528   (exit $ac_status); }; }; then
20529   ac_cv_func_mmap_file=yes
20530 else
20531   echo "$as_me: program exited with status $ac_status" >&5
20532 echo "$as_me: failed program was:" >&5
20533 sed 's/^/| /' conftest.$ac_ext >&5
20534
20535 ( exit $ac_status )
20536 ac_cv_func_mmap_file=no
20537 fi
20538 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20539 fi
20540
20541
20542   ac_ext=c
20543 ac_cpp='$CPP $CPPFLAGS'
20544 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20545 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20546 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20547
20548
20549 fi
20550 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
20551 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
20552 if test "$ac_cv_func_mmap_file" = yes; then
20553
20554 cat >>confdefs.h <<\_ACEOF
20555 #define HAVE_MMAP_FILE
20556 _ACEOF
20557
20558    MMAP_FILE=yes
20559
20560 fi
20561
20562   { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
20563 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
20564 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
20565   echo $ECHO_N "(cached) $ECHO_C" >&6
20566 else
20567   if test "$llvm_cv_os_type" = "Interix" ; then
20568    ac_cv_need_dev_zero_for_mmap=yes
20569  else
20570    ac_cv_need_dev_zero_for_mmap=no
20571  fi
20572
20573 fi
20574 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
20575 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
20576 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
20577
20578 cat >>confdefs.h <<\_ACEOF
20579 #define NEED_DEV_ZERO_FOR_MMAP 1
20580 _ACEOF
20581
20582 fi
20583
20584   if test "$ac_cv_func_mmap_fixed_mapped" = "no"
20585   then
20586     { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
20587 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
20588   fi
20589   if test "$ac_cv_func_mmap_file" = "no"
20590   then
20591     { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
20592 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
20593   fi
20594 fi
20595
20596 { echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
20597 echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
20598 ac_ext=cpp
20599 ac_cpp='$CXXCPP $CPPFLAGS'
20600 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20601 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20602 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20603
20604 cat >conftest.$ac_ext <<_ACEOF
20605 /* confdefs.h.  */
20606 _ACEOF
20607 cat confdefs.h >>conftest.$ac_ext
20608 cat >>conftest.$ac_ext <<_ACEOF
20609 /* end confdefs.h.  */
20610 int main() {
20611         volatile unsigned long val = 1;
20612         __sync_synchronize();
20613         __sync_val_compare_and_swap(&val, 1, 0);
20614         __sync_add_and_fetch(&val, 1);
20615         __sync_sub_and_fetch(&val, 1);
20616         return 0;
20617       }
20618
20619 _ACEOF
20620 rm -f conftest.$ac_objext conftest$ac_exeext
20621 if { (ac_try="$ac_link"
20622 case "(($ac_try" in
20623   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20624   *) ac_try_echo=$ac_try;;
20625 esac
20626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20627   (eval "$ac_link") 2>conftest.er1
20628   ac_status=$?
20629   grep -v '^ *+' conftest.er1 >conftest.err
20630   rm -f conftest.er1
20631   cat conftest.err >&5
20632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20633   (exit $ac_status); } &&
20634          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20635   { (case "(($ac_try" in
20636   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20637   *) ac_try_echo=$ac_try;;
20638 esac
20639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20640   (eval "$ac_try") 2>&5
20641   ac_status=$?
20642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20643   (exit $ac_status); }; } &&
20644          { ac_try='test -s conftest$ac_exeext'
20645   { (case "(($ac_try" in
20646   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20647   *) ac_try_echo=$ac_try;;
20648 esac
20649 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20650   (eval "$ac_try") 2>&5
20651   ac_status=$?
20652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20653   (exit $ac_status); }; }; then
20654   ac_ext=c
20655 ac_cpp='$CPP $CPPFLAGS'
20656 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20657 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20658 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20659
20660   { echo "$as_me:$LINENO: result: yes" >&5
20661 echo "${ECHO_T}yes" >&6; }
20662
20663 cat >>confdefs.h <<\_ACEOF
20664 #define LLVM_HAS_ATOMICS 1
20665 _ACEOF
20666
20667 else
20668   echo "$as_me: failed program was:" >&5
20669 sed 's/^/| /' conftest.$ac_ext >&5
20670
20671         { echo "$as_me:$LINENO: result: no" >&5
20672 echo "${ECHO_T}no" >&6; }
20673
20674 cat >>confdefs.h <<\_ACEOF
20675 #define LLVM_HAS_ATOMICS 0
20676 _ACEOF
20677
20678   { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
20679 echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
20680 fi
20681
20682 rm -f core conftest.err conftest.$ac_objext \
20683       conftest$ac_exeext conftest.$ac_ext
20684
20685
20686 if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
20687   { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
20688 echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
20689 if test "${llvm_cv_linux_mixed+set}" = set; then
20690   echo $ECHO_N "(cached) $ECHO_C" >&6
20691 else
20692    ac_ext=c
20693 ac_cpp='$CPP $CPPFLAGS'
20694 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20695 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20696 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20697
20698   cat >conftest.$ac_ext <<_ACEOF
20699 /* confdefs.h.  */
20700 _ACEOF
20701 cat confdefs.h >>conftest.$ac_ext
20702 cat >>conftest.$ac_ext <<_ACEOF
20703 /* end confdefs.h.  */
20704 #ifndef __x86_64__
20705        error: Not x86-64 even if uname says so!
20706       #endif
20707
20708 int
20709 main ()
20710 {
20711
20712   ;
20713   return 0;
20714 }
20715 _ACEOF
20716 rm -f conftest.$ac_objext
20717 if { (ac_try="$ac_compile"
20718 case "(($ac_try" in
20719   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20720   *) ac_try_echo=$ac_try;;
20721 esac
20722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20723   (eval "$ac_compile") 2>conftest.er1
20724   ac_status=$?
20725   grep -v '^ *+' conftest.er1 >conftest.err
20726   rm -f conftest.er1
20727   cat conftest.err >&5
20728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20729   (exit $ac_status); } &&
20730          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20731   { (case "(($ac_try" in
20732   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20733   *) ac_try_echo=$ac_try;;
20734 esac
20735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20736   (eval "$ac_try") 2>&5
20737   ac_status=$?
20738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20739   (exit $ac_status); }; } &&
20740          { ac_try='test -s conftest.$ac_objext'
20741   { (case "(($ac_try" in
20742   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20743   *) ac_try_echo=$ac_try;;
20744 esac
20745 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20746   (eval "$ac_try") 2>&5
20747   ac_status=$?
20748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20749   (exit $ac_status); }; }; then
20750   llvm_cv_linux_mixed=no
20751 else
20752   echo "$as_me: failed program was:" >&5
20753 sed 's/^/| /' conftest.$ac_ext >&5
20754
20755         llvm_cv_linux_mixed=yes
20756 fi
20757
20758 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20759   ac_ext=c
20760 ac_cpp='$CPP $CPPFLAGS'
20761 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20762 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20763 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20764
20765
20766 fi
20767 { echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
20768 echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
20769
20770   if test "$llvm_cv_linux_mixed" = "yes"; then
20771     llvm_cv_target_arch="x86"
20772     ARCH="x86"
20773   fi
20774 fi
20775
20776
20777 for ac_func in __dso_handle
20778 do
20779 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20780 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20781 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20782 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20783   echo $ECHO_N "(cached) $ECHO_C" >&6
20784 else
20785   cat >conftest.$ac_ext <<_ACEOF
20786 /* confdefs.h.  */
20787 _ACEOF
20788 cat confdefs.h >>conftest.$ac_ext
20789 cat >>conftest.$ac_ext <<_ACEOF
20790 /* end confdefs.h.  */
20791 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20792    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20793 #define $ac_func innocuous_$ac_func
20794
20795 /* System header to define __stub macros and hopefully few prototypes,
20796     which can conflict with char $ac_func (); below.
20797     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20798     <limits.h> exists even on freestanding compilers.  */
20799
20800 #ifdef __STDC__
20801 # include <limits.h>
20802 #else
20803 # include <assert.h>
20804 #endif
20805
20806 #undef $ac_func
20807
20808 /* Override any GCC internal prototype to avoid an error.
20809    Use char because int might match the return type of a GCC
20810    builtin and then its argument prototype would still apply.  */
20811 #ifdef __cplusplus
20812 extern "C"
20813 #endif
20814 char $ac_func ();
20815 /* The GNU C library defines this for functions which it implements
20816     to always fail with ENOSYS.  Some functions are actually named
20817     something starting with __ and the normal name is an alias.  */
20818 #if defined __stub_$ac_func || defined __stub___$ac_func
20819 choke me
20820 #endif
20821
20822 int
20823 main ()
20824 {
20825 return $ac_func ();
20826   ;
20827   return 0;
20828 }
20829 _ACEOF
20830 rm -f conftest.$ac_objext conftest$ac_exeext
20831 if { (ac_try="$ac_link"
20832 case "(($ac_try" in
20833   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20834   *) ac_try_echo=$ac_try;;
20835 esac
20836 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20837   (eval "$ac_link") 2>conftest.er1
20838   ac_status=$?
20839   grep -v '^ *+' conftest.er1 >conftest.err
20840   rm -f conftest.er1
20841   cat conftest.err >&5
20842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20843   (exit $ac_status); } &&
20844          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20845   { (case "(($ac_try" in
20846   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20847   *) ac_try_echo=$ac_try;;
20848 esac
20849 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20850   (eval "$ac_try") 2>&5
20851   ac_status=$?
20852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20853   (exit $ac_status); }; } &&
20854          { ac_try='test -s conftest$ac_exeext'
20855   { (case "(($ac_try" in
20856   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20857   *) ac_try_echo=$ac_try;;
20858 esac
20859 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20860   (eval "$ac_try") 2>&5
20861   ac_status=$?
20862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20863   (exit $ac_status); }; }; then
20864   eval "$as_ac_var=yes"
20865 else
20866   echo "$as_me: failed program was:" >&5
20867 sed 's/^/| /' conftest.$ac_ext >&5
20868
20869         eval "$as_ac_var=no"
20870 fi
20871
20872 rm -f core conftest.err conftest.$ac_objext \
20873       conftest$ac_exeext conftest.$ac_ext
20874 fi
20875 ac_res=`eval echo '${'$as_ac_var'}'`
20876                { echo "$as_me:$LINENO: result: $ac_res" >&5
20877 echo "${ECHO_T}$ac_res" >&6; }
20878 if test `eval echo '${'$as_ac_var'}'` = yes; then
20879   cat >>confdefs.h <<_ACEOF
20880 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20881 _ACEOF
20882
20883 fi
20884 done
20885
20886
20887 SHLIBEXT=$libltdl_cv_shlibext
20888
20889
20890 SHLIBPATH_VAR=$libltdl_cv_shlibpath_var
20891
20892
20893 if test "${prefix}" = "NONE" ; then
20894   prefix="/usr/local"
20895 fi
20896 eval LLVM_PREFIX="${prefix}";
20897 eval LLVM_BINDIR="${prefix}/bin";
20898 eval LLVM_LIBDIR="${prefix}/lib";
20899 eval LLVM_DATADIR="${prefix}/share/llvm";
20900 eval LLVM_DOCSDIR="${prefix}/share/doc/llvm";
20901 eval LLVM_ETCDIR="${prefix}/etc/llvm";
20902 eval LLVM_INCLUDEDIR="${prefix}/include";
20903 eval LLVM_INFODIR="${prefix}/info";
20904 eval LLVM_MANDIR="${prefix}/man";
20905 LLVM_CONFIGTIME=`date`
20906
20907
20908
20909
20910
20911
20912
20913
20914
20915
20916
20917 if test "${ENABLE_TIMESTAMPS}" = "0"; then
20918   LLVM_CONFIGTIME="(timestamp not enabled)"
20919 fi
20920
20921
20922 cat >>confdefs.h <<_ACEOF
20923 #define LLVM_PREFIX "$LLVM_PREFIX"
20924 _ACEOF
20925
20926
20927 cat >>confdefs.h <<_ACEOF
20928 #define LLVM_BINDIR "$LLVM_BINDIR"
20929 _ACEOF
20930
20931
20932 cat >>confdefs.h <<_ACEOF
20933 #define LLVM_LIBDIR "$LLVM_LIBDIR"
20934 _ACEOF
20935
20936
20937 cat >>confdefs.h <<_ACEOF
20938 #define LLVM_DATADIR "$LLVM_DATADIR"
20939 _ACEOF
20940
20941
20942 cat >>confdefs.h <<_ACEOF
20943 #define LLVM_DOCSDIR "$LLVM_DOCSDIR"
20944 _ACEOF
20945
20946
20947 cat >>confdefs.h <<_ACEOF
20948 #define LLVM_ETCDIR "$LLVM_ETCDIR"
20949 _ACEOF
20950
20951
20952 cat >>confdefs.h <<_ACEOF
20953 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
20954 _ACEOF
20955
20956
20957 cat >>confdefs.h <<_ACEOF
20958 #define LLVM_INFODIR "$LLVM_INFODIR"
20959 _ACEOF
20960
20961
20962 cat >>confdefs.h <<_ACEOF
20963 #define LLVM_MANDIR "$LLVM_MANDIR"
20964 _ACEOF
20965
20966
20967 cat >>confdefs.h <<_ACEOF
20968 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
20969 _ACEOF
20970
20971
20972 cat >>confdefs.h <<_ACEOF
20973 #define LLVM_HOSTTRIPLE "$host"
20974 _ACEOF
20975
20976
20977 cat >>confdefs.h <<_ACEOF
20978 #define LLVM_DEFAULT_TARGET_TRIPLE "$target"
20979 _ACEOF
20980
20981
20982 if test "$BINDINGS_TO_BUILD" = auto ; then
20983   BINDINGS_TO_BUILD=""
20984   if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
20985     BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
20986   fi
20987 fi
20988 BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
20989
20990
20991 ALL_BINDINGS=ocaml
20992
20993
20994 binding_prereqs_failed=0
20995 for a_binding in $BINDINGS_TO_BUILD ; do
20996   case "$a_binding" in
20997   ocaml)
20998     if test "x$OCAMLC" = x ; then
20999       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
21000 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
21001       binding_prereqs_failed=1
21002     fi
21003     if test "x$OCAMLDEP" = x ; then
21004       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
21005 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
21006       binding_prereqs_failed=1
21007     fi
21008     if test "x$OCAMLOPT" = x ; then
21009       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
21010 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
21011           fi
21012     if test "x$with_ocaml_libdir" != xauto ; then
21013       OCAML_LIBDIR=$with_ocaml_libdir
21014
21015     else
21016       ocaml_stdlib="`"$OCAMLC" -where`"
21017       if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
21018       then
21019         # ocaml stdlib is beneath our prefix; use stdlib
21020         OCAML_LIBDIR=$ocaml_stdlib
21021
21022       else
21023         # ocaml stdlib is outside our prefix; use libdir/ocaml
21024         OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
21025
21026       fi
21027     fi
21028     ;;
21029   esac
21030 done
21031 if test "$binding_prereqs_failed" = 1 ; then
21032   { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
21033 echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
21034    { (exit 1); exit 1; }; }
21035 fi
21036
21037 { echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
21038 echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
21039 if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
21040   echo $ECHO_N "(cached) $ECHO_C" >&6
21041 else
21042    ac_ext=cpp
21043 ac_cpp='$CXXCPP $CPPFLAGS'
21044 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21045 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21046 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21047
21048   oldcxxflags="$CXXFLAGS"
21049   CXXFLAGS="$CXXFLAGS -O0 -fvisibility-inlines-hidden -Werror"
21050   cat >conftest.$ac_ext <<_ACEOF
21051 /* confdefs.h.  */
21052 _ACEOF
21053 cat confdefs.h >>conftest.$ac_ext
21054 cat >>conftest.$ac_ext <<_ACEOF
21055 /* end confdefs.h.  */
21056 template <typename T> struct X { void __attribute__((noinline)) f() {} };
21057 int
21058 main ()
21059 {
21060 X<int>().f();
21061   ;
21062   return 0;
21063 }
21064 _ACEOF
21065 rm -f conftest.$ac_objext
21066 if { (ac_try="$ac_compile"
21067 case "(($ac_try" in
21068   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21069   *) ac_try_echo=$ac_try;;
21070 esac
21071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21072   (eval "$ac_compile") 2>conftest.er1
21073   ac_status=$?
21074   grep -v '^ *+' conftest.er1 >conftest.err
21075   rm -f conftest.er1
21076   cat conftest.err >&5
21077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21078   (exit $ac_status); } &&
21079          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21080   { (case "(($ac_try" in
21081   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21082   *) ac_try_echo=$ac_try;;
21083 esac
21084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21085   (eval "$ac_try") 2>&5
21086   ac_status=$?
21087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21088   (exit $ac_status); }; } &&
21089          { ac_try='test -s conftest.$ac_objext'
21090   { (case "(($ac_try" in
21091   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21092   *) ac_try_echo=$ac_try;;
21093 esac
21094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21095   (eval "$ac_try") 2>&5
21096   ac_status=$?
21097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21098   (exit $ac_status); }; }; then
21099   llvm_cv_cxx_visibility_inlines_hidden=yes
21100 else
21101   echo "$as_me: failed program was:" >&5
21102 sed 's/^/| /' conftest.$ac_ext >&5
21103
21104         llvm_cv_cxx_visibility_inlines_hidden=no
21105 fi
21106
21107 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21108   CXXFLAGS="$oldcxxflags"
21109   ac_ext=c
21110 ac_cpp='$CPP $CPPFLAGS'
21111 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21112 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21113 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21114
21115
21116 fi
21117 { echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
21118 echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
21119 if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
21120   ENABLE_VISIBILITY_INLINES_HIDDEN=1
21121
21122 else
21123   ENABLE_VISIBILITY_INLINES_HIDDEN=0
21124
21125 fi
21126
21127
21128 if test "$llvm_cv_link_use_r" = "yes" ; then
21129   RPATH="-Wl,-R"
21130 else
21131   RPATH="-Wl,-rpath"
21132 fi
21133
21134
21135 if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
21136   RDYNAMIC="-Wl,-export-dynamic"
21137 else
21138   RDYNAMIC=""
21139 fi
21140
21141
21142
21143 ac_config_headers="$ac_config_headers include/llvm/Config/config.h include/llvm/Config/llvm-config.h"
21144
21145
21146
21147
21148
21149
21150 ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
21151
21152 ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
21153
21154 ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
21155
21156 ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def"
21157
21158 ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
21159
21160
21161 ac_config_files="$ac_config_files Makefile.config"
21162
21163
21164 ac_config_files="$ac_config_files llvm.spec"
21165
21166
21167 ac_config_files="$ac_config_files docs/doxygen.cfg"
21168
21169
21170 if test "${clang_src_root}" = ""; then
21171   clang_src_root="$srcdir/tools/clang"
21172 fi
21173 if test -f ${clang_src_root}/README.txt; then
21174     configh="include/clang/Config/config.h"
21175   doxy="docs/doxygen.cfg"
21176   ac_config_headers="$ac_config_headers tools/clang/${configh}:${clang_src_root}/${configh}.in"
21177
21178   ac_config_files="$ac_config_files tools/clang/${doxy}:${clang_src_root}/${doxy}.in"
21179
21180 fi
21181
21182 ac_config_files="$ac_config_files bindings/ocaml/llvm/META.llvm"
21183
21184
21185 ac_config_commands="$ac_config_commands setup"
21186
21187 ac_config_commands="$ac_config_commands Makefile"
21188
21189
21190 ac_config_commands="$ac_config_commands Makefile.common"
21191
21192
21193 ac_config_commands="$ac_config_commands examples/Makefile"
21194
21195
21196 ac_config_commands="$ac_config_commands lib/Makefile"
21197
21198
21199 ac_config_commands="$ac_config_commands runtime/Makefile"
21200
21201
21202 ac_config_commands="$ac_config_commands test/Makefile"
21203
21204
21205 ac_config_commands="$ac_config_commands test/Makefile.tests"
21206
21207
21208 ac_config_commands="$ac_config_commands unittests/Makefile"
21209
21210
21211 ac_config_commands="$ac_config_commands tools/Makefile"
21212
21213
21214 ac_config_commands="$ac_config_commands utils/Makefile"
21215
21216
21217 ac_config_commands="$ac_config_commands projects/Makefile"
21218
21219
21220 ac_config_commands="$ac_config_commands bindings/Makefile"
21221
21222
21223 ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
21224
21225
21226
21227 cat >confcache <<\_ACEOF
21228 # This file is a shell script that caches the results of configure
21229 # tests run on this system so they can be shared between configure
21230 # scripts and configure runs, see configure's option --config-cache.
21231 # It is not useful on other systems.  If it contains results you don't
21232 # want to keep, you may remove or edit it.
21233 #
21234 # config.status only pays attention to the cache file if you give it
21235 # the --recheck option to rerun configure.
21236 #
21237 # `ac_cv_env_foo' variables (set or unset) will be overridden when
21238 # loading this file, other *unset* `ac_cv_foo' will be assigned the
21239 # following values.
21240
21241 _ACEOF
21242
21243 # The following way of writing the cache mishandles newlines in values,
21244 # but we know of no workaround that is simple, portable, and efficient.
21245 # So, we kill variables containing newlines.
21246 # Ultrix sh set writes to stderr and can't be redirected directly,
21247 # and sets the high bit in the cache file unless we assign to the vars.
21248 (
21249   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
21250     eval ac_val=\$$ac_var
21251     case $ac_val in #(
21252     *${as_nl}*)
21253       case $ac_var in #(
21254       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
21255 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
21256       esac
21257       case $ac_var in #(
21258       _ | IFS | as_nl) ;; #(
21259       *) $as_unset $ac_var ;;
21260       esac ;;
21261     esac
21262   done
21263
21264   (set) 2>&1 |
21265     case $as_nl`(ac_space=' '; set) 2>&1` in #(
21266     *${as_nl}ac_space=\ *)
21267       # `set' does not quote correctly, so add quotes (double-quote
21268       # substitution turns \\\\ into \\, and sed turns \\ into \).
21269       sed -n \
21270         "s/'/'\\\\''/g;
21271           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21272       ;; #(
21273     *)
21274       # `set' quotes correctly as required by POSIX, so do not add quotes.
21275       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
21276       ;;
21277     esac |
21278     sort
21279 ) |
21280   sed '
21281      /^ac_cv_env_/b end
21282      t clear
21283      :clear
21284      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21285      t end
21286      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21287      :end' >>confcache
21288 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
21289   if test -w "$cache_file"; then
21290     test "x$cache_file" != "x/dev/null" &&
21291       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
21292 echo "$as_me: updating cache $cache_file" >&6;}
21293     cat confcache >$cache_file
21294   else
21295     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
21296 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
21297   fi
21298 fi
21299 rm -f confcache
21300
21301 test "x$prefix" = xNONE && prefix=$ac_default_prefix
21302 # Let make expand exec_prefix.
21303 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21304
21305 DEFS=-DHAVE_CONFIG_H
21306
21307 ac_libobjs=
21308 ac_ltlibobjs=
21309 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21310   # 1. Remove the extension, and $U if already installed.
21311   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
21312   ac_i=`echo "$ac_i" | sed "$ac_script"`
21313   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
21314   #    will be set to the directory where LIBOBJS objects are built.
21315   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21316   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
21317 done
21318 LIBOBJS=$ac_libobjs
21319
21320 LTLIBOBJS=$ac_ltlibobjs
21321
21322
21323 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
21324   { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
21325 Usually this means the macro was only invoked conditionally." >&5
21326 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
21327 Usually this means the macro was only invoked conditionally." >&2;}
21328    { (exit 1); exit 1; }; }
21329 fi
21330 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
21331   { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21332 Usually this means the macro was only invoked conditionally." >&5
21333 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21334 Usually this means the macro was only invoked conditionally." >&2;}
21335    { (exit 1); exit 1; }; }
21336 fi
21337
21338 : ${CONFIG_STATUS=./config.status}
21339 ac_clean_files_save=$ac_clean_files
21340 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21341 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21342 echo "$as_me: creating $CONFIG_STATUS" >&6;}
21343 cat >$CONFIG_STATUS <<_ACEOF
21344 #! $SHELL
21345 # Generated by $as_me.
21346 # Run this file to recreate the current configuration.
21347 # Compiler output produced by configure, useful for debugging
21348 # configure, is in config.log if it exists.
21349
21350 debug=false
21351 ac_cs_recheck=false
21352 ac_cs_silent=false
21353 SHELL=\${CONFIG_SHELL-$SHELL}
21354 _ACEOF
21355
21356 cat >>$CONFIG_STATUS <<\_ACEOF
21357 ## --------------------- ##
21358 ## M4sh Initialization.  ##
21359 ## --------------------- ##
21360
21361 # Be Bourne compatible
21362 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21363   emulate sh
21364   NULLCMD=:
21365   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21366   # is contrary to our usage.  Disable this feature.
21367   alias -g '${1+"$@"}'='"$@"'
21368   setopt NO_GLOB_SUBST
21369 else
21370   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
21371 fi
21372 BIN_SH=xpg4; export BIN_SH # for Tru64
21373 DUALCASE=1; export DUALCASE # for MKS sh
21374
21375
21376 # PATH needs CR
21377 # Avoid depending upon Character Ranges.
21378 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21379 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21380 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21381 as_cr_digits='0123456789'
21382 as_cr_alnum=$as_cr_Letters$as_cr_digits
21383
21384 # The user is always right.
21385 if test "${PATH_SEPARATOR+set}" != set; then
21386   echo "#! /bin/sh" >conf$$.sh
21387   echo  "exit 0"   >>conf$$.sh
21388   chmod +x conf$$.sh
21389   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21390     PATH_SEPARATOR=';'
21391   else
21392     PATH_SEPARATOR=:
21393   fi
21394   rm -f conf$$.sh
21395 fi
21396
21397 # Support unset when possible.
21398 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21399   as_unset=unset
21400 else
21401   as_unset=false
21402 fi
21403
21404
21405 # IFS
21406 # We need space, tab and new line, in precisely that order.  Quoting is
21407 # there to prevent editors from complaining about space-tab.
21408 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
21409 # splitting by setting IFS to empty value.)
21410 as_nl='
21411 '
21412 IFS=" ""        $as_nl"
21413
21414 # Find who we are.  Look in the path if we contain no directory separator.
21415 case $0 in
21416   *[\\/]* ) as_myself=$0 ;;
21417   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21418 for as_dir in $PATH
21419 do
21420   IFS=$as_save_IFS
21421   test -z "$as_dir" && as_dir=.
21422   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21423 done
21424 IFS=$as_save_IFS
21425
21426      ;;
21427 esac
21428 # We did not find ourselves, most probably we were run as `sh COMMAND'
21429 # in which case we are not to be found in the path.
21430 if test "x$as_myself" = x; then
21431   as_myself=$0
21432 fi
21433 if test ! -f "$as_myself"; then
21434   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21435   { (exit 1); exit 1; }
21436 fi
21437
21438 # Work around bugs in pre-3.0 UWIN ksh.
21439 for as_var in ENV MAIL MAILPATH
21440 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21441 done
21442 PS1='$ '
21443 PS2='> '
21444 PS4='+ '
21445
21446 # NLS nuisances.
21447 for as_var in \
21448   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21449   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21450   LC_TELEPHONE LC_TIME
21451 do
21452   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21453     eval $as_var=C; export $as_var
21454   else
21455     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21456   fi
21457 done
21458
21459 # Required to use basename.
21460 if expr a : '\(a\)' >/dev/null 2>&1 &&
21461    test "X`expr 00001 : '.*\(...\)'`" = X001; then
21462   as_expr=expr
21463 else
21464   as_expr=false
21465 fi
21466
21467 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21468   as_basename=basename
21469 else
21470   as_basename=false
21471 fi
21472
21473
21474 # Name of the executable.
21475 as_me=`$as_basename -- "$0" ||
21476 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21477          X"$0" : 'X\(//\)$' \| \
21478          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
21479 echo X/"$0" |
21480     sed '/^.*\/\([^/][^/]*\)\/*$/{
21481             s//\1/
21482             q
21483           }
21484           /^X\/\(\/\/\)$/{
21485             s//\1/
21486             q
21487           }
21488           /^X\/\(\/\).*/{
21489             s//\1/
21490             q
21491           }
21492           s/.*/./; q'`
21493
21494 # CDPATH.
21495 $as_unset CDPATH
21496
21497
21498
21499   as_lineno_1=$LINENO
21500   as_lineno_2=$LINENO
21501   test "x$as_lineno_1" != "x$as_lineno_2" &&
21502   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
21503
21504   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21505   # uniformly replaced by the line number.  The first 'sed' inserts a
21506   # line-number line after each line using $LINENO; the second 'sed'
21507   # does the real work.  The second script uses 'N' to pair each
21508   # line-number line with the line containing $LINENO, and appends
21509   # trailing '-' during substitution so that $LINENO is not a special
21510   # case at line end.
21511   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21512   # scripts with optimization help from Paolo Bonzini.  Blame Lee
21513   # E. McMahon (1931-1989) for sed's syntax.  :-)
21514   sed -n '
21515     p
21516     /[$]LINENO/=
21517   ' <$as_myself |
21518     sed '
21519       s/[$]LINENO.*/&-/
21520       t lineno
21521       b
21522       :lineno
21523       N
21524       :loop
21525       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
21526       t loop
21527       s/-\n.*//
21528     ' >$as_me.lineno &&
21529   chmod +x "$as_me.lineno" ||
21530     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
21531    { (exit 1); exit 1; }; }
21532
21533   # Don't try to exec as it changes $[0], causing all sort of problems
21534   # (the dirname of $[0] is not the place where we might find the
21535   # original and so on.  Autoconf is especially sensitive to this).
21536   . "./$as_me.lineno"
21537   # Exit status is that of the last command.
21538   exit
21539 }
21540
21541
21542 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21543   as_dirname=dirname
21544 else
21545   as_dirname=false
21546 fi
21547
21548 ECHO_C= ECHO_N= ECHO_T=
21549 case `echo -n x` in
21550 -n*)
21551   case `echo 'x\c'` in
21552   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
21553   *)   ECHO_C='\c';;
21554   esac;;
21555 *)
21556   ECHO_N='-n';;
21557 esac
21558
21559 if expr a : '\(a\)' >/dev/null 2>&1 &&
21560    test "X`expr 00001 : '.*\(...\)'`" = X001; then
21561   as_expr=expr
21562 else
21563   as_expr=false
21564 fi
21565
21566 rm -f conf$$ conf$$.exe conf$$.file
21567 if test -d conf$$.dir; then
21568   rm -f conf$$.dir/conf$$.file
21569 else
21570   rm -f conf$$.dir
21571   mkdir conf$$.dir
21572 fi
21573 echo >conf$$.file
21574 if ln -s conf$$.file conf$$ 2>/dev/null; then
21575   as_ln_s='ln -s'
21576   # ... but there are two gotchas:
21577   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21578   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21579   # In both cases, we have to default to `cp -p'.
21580   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
21581     as_ln_s='cp -p'
21582 elif ln conf$$.file conf$$ 2>/dev/null; then
21583   as_ln_s=ln
21584 else
21585   as_ln_s='cp -p'
21586 fi
21587 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21588 rmdir conf$$.dir 2>/dev/null
21589
21590 if mkdir -p . 2>/dev/null; then
21591   as_mkdir_p=:
21592 else
21593   test -d ./-p && rmdir ./-p
21594   as_mkdir_p=false
21595 fi
21596
21597 # Find out whether ``test -x'' works.  Don't use a zero-byte file, as
21598 # systems may use methods other than mode bits to determine executability.
21599 cat >conf$$.file <<_ASEOF
21600 #! /bin/sh
21601 exit 0
21602 _ASEOF
21603 chmod +x conf$$.file
21604 if test -x conf$$.file >/dev/null 2>&1; then
21605   as_executable_p="test -x"
21606 else
21607   as_executable_p=:
21608 fi
21609 rm -f conf$$.file
21610
21611 # Sed expression to map a string onto a valid CPP name.
21612 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21613
21614 # Sed expression to map a string onto a valid variable name.
21615 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21616
21617
21618 exec 6>&1
21619
21620 # Save the log message, to keep $[0] and so on meaningful, and to
21621 # report actual input values of CONFIG_FILES etc. instead of their
21622 # values after options handling.
21623 ac_log="
21624 This file was extended by LLVM $as_me 3.2svn, which was
21625 generated by GNU Autoconf 2.60.  Invocation command line was
21626
21627   CONFIG_FILES    = $CONFIG_FILES
21628   CONFIG_HEADERS  = $CONFIG_HEADERS
21629   CONFIG_LINKS    = $CONFIG_LINKS
21630   CONFIG_COMMANDS = $CONFIG_COMMANDS
21631   $ $0 $@
21632
21633 on `(hostname || uname -n) 2>/dev/null | sed 1q`
21634 "
21635
21636 _ACEOF
21637
21638 cat >>$CONFIG_STATUS <<_ACEOF
21639 # Files that config.status was made for.
21640 config_files="$ac_config_files"
21641 config_headers="$ac_config_headers"
21642 config_commands="$ac_config_commands"
21643
21644 _ACEOF
21645
21646 cat >>$CONFIG_STATUS <<\_ACEOF
21647 ac_cs_usage="\
21648 \`$as_me' instantiates files from templates according to the
21649 current configuration.
21650
21651 Usage: $0 [OPTIONS] [FILE]...
21652
21653   -h, --help       print this help, then exit
21654   -V, --version    print version number, then exit
21655   -q, --quiet      do not print progress messages
21656   -d, --debug      don't remove temporary files
21657       --recheck    update $as_me by reconfiguring in the same conditions
21658   --file=FILE[:TEMPLATE]
21659                    instantiate the configuration file FILE
21660   --header=FILE[:TEMPLATE]
21661                    instantiate the configuration header FILE
21662
21663 Configuration files:
21664 $config_files
21665
21666 Configuration headers:
21667 $config_headers
21668
21669 Configuration commands:
21670 $config_commands
21671
21672 Report bugs to <bug-autoconf@gnu.org>."
21673
21674 _ACEOF
21675 cat >>$CONFIG_STATUS <<_ACEOF
21676 ac_cs_version="\\
21677 LLVM config.status 3.2svn
21678 configured by $0, generated by GNU Autoconf 2.60,
21679   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
21680
21681 Copyright (C) 2006 Free Software Foundation, Inc.
21682 This config.status script is free software; the Free Software Foundation
21683 gives unlimited permission to copy, distribute and modify it."
21684
21685 ac_pwd='$ac_pwd'
21686 srcdir='$srcdir'
21687 INSTALL='$INSTALL'
21688 _ACEOF
21689
21690 cat >>$CONFIG_STATUS <<\_ACEOF
21691 # If no file are specified by the user, then we need to provide default
21692 # value.  By we need to know if files were specified by the user.
21693 ac_need_defaults=:
21694 while test $# != 0
21695 do
21696   case $1 in
21697   --*=*)
21698     ac_option=`expr "X$1" : 'X\([^=]*\)='`
21699     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
21700     ac_shift=:
21701     ;;
21702   *)
21703     ac_option=$1
21704     ac_optarg=$2
21705     ac_shift=shift
21706     ;;
21707   esac
21708
21709   case $ac_option in
21710   # Handling of the options.
21711   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21712     ac_cs_recheck=: ;;
21713   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
21714     echo "$ac_cs_version"; exit ;;
21715   --debug | --debu | --deb | --de | --d | -d )
21716     debug=: ;;
21717   --file | --fil | --fi | --f )
21718     $ac_shift
21719     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
21720     ac_need_defaults=false;;
21721   --header | --heade | --head | --hea )
21722     $ac_shift
21723     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
21724     ac_need_defaults=false;;
21725   --he | --h)
21726     # Conflict between --help and --header
21727     { echo "$as_me: error: ambiguous option: $1
21728 Try \`$0 --help' for more information." >&2
21729    { (exit 1); exit 1; }; };;
21730   --help | --hel | -h )
21731     echo "$ac_cs_usage"; exit ;;
21732   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21733   | -silent | --silent | --silen | --sile | --sil | --si | --s)
21734     ac_cs_silent=: ;;
21735
21736   # This is an error.
21737   -*) { echo "$as_me: error: unrecognized option: $1
21738 Try \`$0 --help' for more information." >&2
21739    { (exit 1); exit 1; }; } ;;
21740
21741   *) ac_config_targets="$ac_config_targets $1"
21742      ac_need_defaults=false ;;
21743
21744   esac
21745   shift
21746 done
21747
21748 ac_configure_extra_args=
21749
21750 if $ac_cs_silent; then
21751   exec 6>/dev/null
21752   ac_configure_extra_args="$ac_configure_extra_args --silent"
21753 fi
21754
21755 _ACEOF
21756 cat >>$CONFIG_STATUS <<_ACEOF
21757 if \$ac_cs_recheck; then
21758   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21759   CONFIG_SHELL=$SHELL
21760   export CONFIG_SHELL
21761   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21762 fi
21763
21764 _ACEOF
21765 cat >>$CONFIG_STATUS <<\_ACEOF
21766 exec 5>>config.log
21767 {
21768   echo
21769   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21770 ## Running $as_me. ##
21771 _ASBOX
21772   echo "$ac_log"
21773 } >&5
21774
21775 _ACEOF
21776 cat >>$CONFIG_STATUS <<_ACEOF
21777 #
21778 # INIT-COMMANDS
21779 #
21780 llvm_src="${srcdir}"
21781
21782 _ACEOF
21783
21784 cat >>$CONFIG_STATUS <<\_ACEOF
21785
21786 # Handling of arguments.
21787 for ac_config_target in $ac_config_targets
21788 do
21789   case $ac_config_target in
21790     "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
21791     "include/llvm/Config/llvm-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/llvm-config.h" ;;
21792     "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
21793     "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
21794     "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
21795     "include/llvm/Config/Disassemblers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Disassemblers.def" ;;
21796     "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
21797     "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
21798     "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
21799     "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
21800     "tools/clang/${configh}") CONFIG_HEADERS="$CONFIG_HEADERS tools/clang/${configh}:${clang_src_root}/${configh}.in" ;;
21801     "tools/clang/${doxy}") CONFIG_FILES="$CONFIG_FILES tools/clang/${doxy}:${clang_src_root}/${doxy}.in" ;;
21802     "bindings/ocaml/llvm/META.llvm") CONFIG_FILES="$CONFIG_FILES bindings/ocaml/llvm/META.llvm" ;;
21803     "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
21804     "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
21805     "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
21806     "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
21807     "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
21808     "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
21809     "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
21810     "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
21811     "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
21812     "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
21813     "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
21814     "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
21815     "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
21816     "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
21817
21818   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21819 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21820    { (exit 1); exit 1; }; };;
21821   esac
21822 done
21823
21824
21825 # If the user did not use the arguments to specify the items to instantiate,
21826 # then the envvar interface is used.  Set only those that are not.
21827 # We use the long form for the default assignment because of an extremely
21828 # bizarre bug on SunOS 4.1.3.
21829 if $ac_need_defaults; then
21830   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21831   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
21832   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21833 fi
21834
21835 # Have a temporary directory for convenience.  Make it in the build tree
21836 # simply because there is no reason against having it here, and in addition,
21837 # creating and moving files from /tmp can sometimes cause problems.
21838 # Hook for its removal unless debugging.
21839 # Note that there is a small window in which the directory will not be cleaned:
21840 # after its creation but before its name has been assigned to `$tmp'.
21841 $debug ||
21842 {
21843   tmp=
21844   trap 'exit_status=$?
21845   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
21846 ' 0
21847   trap '{ (exit 1); exit 1; }' 1 2 13 15
21848 }
21849 # Create a (secure) tmp directory for tmp files.
21850
21851 {
21852   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
21853   test -n "$tmp" && test -d "$tmp"
21854 }  ||
21855 {
21856   tmp=./conf$$-$RANDOM
21857   (umask 077 && mkdir "$tmp")
21858 } ||
21859 {
21860    echo "$me: cannot create a temporary directory in ." >&2
21861    { (exit 1); exit 1; }
21862 }
21863
21864 #
21865 # Set up the sed scripts for CONFIG_FILES section.
21866 #
21867
21868 # No need to generate the scripts if there are no CONFIG_FILES.
21869 # This happens for instance when ./config.status config.h
21870 if test -n "$CONFIG_FILES"; then
21871
21872 _ACEOF
21873
21874
21875
21876 ac_delim='%!_!# '
21877 for ac_last_try in false false false false false :; do
21878   cat >conf$$subs.sed <<_ACEOF
21879 SHELL!$SHELL$ac_delim
21880 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
21881 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
21882 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
21883 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
21884 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
21885 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
21886 exec_prefix!$exec_prefix$ac_delim
21887 prefix!$prefix$ac_delim
21888 program_transform_name!$program_transform_name$ac_delim
21889 bindir!$bindir$ac_delim
21890 sbindir!$sbindir$ac_delim
21891 libexecdir!$libexecdir$ac_delim
21892 datarootdir!$datarootdir$ac_delim
21893 datadir!$datadir$ac_delim
21894 sysconfdir!$sysconfdir$ac_delim
21895 sharedstatedir!$sharedstatedir$ac_delim
21896 localstatedir!$localstatedir$ac_delim
21897 includedir!$includedir$ac_delim
21898 oldincludedir!$oldincludedir$ac_delim
21899 docdir!$docdir$ac_delim
21900 infodir!$infodir$ac_delim
21901 htmldir!$htmldir$ac_delim
21902 dvidir!$dvidir$ac_delim
21903 pdfdir!$pdfdir$ac_delim
21904 psdir!$psdir$ac_delim
21905 libdir!$libdir$ac_delim
21906 localedir!$localedir$ac_delim
21907 mandir!$mandir$ac_delim
21908 DEFS!$DEFS$ac_delim
21909 ECHO_C!$ECHO_C$ac_delim
21910 ECHO_N!$ECHO_N$ac_delim
21911 ECHO_T!$ECHO_T$ac_delim
21912 LIBS!$LIBS$ac_delim
21913 build_alias!$build_alias$ac_delim
21914 host_alias!$host_alias$ac_delim
21915 target_alias!$target_alias$ac_delim
21916 LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
21917 CC!$CC$ac_delim
21918 CFLAGS!$CFLAGS$ac_delim
21919 LDFLAGS!$LDFLAGS$ac_delim
21920 CPPFLAGS!$CPPFLAGS$ac_delim
21921 ac_ct_CC!$ac_ct_CC$ac_delim
21922 EXEEXT!$EXEEXT$ac_delim
21923 OBJEXT!$OBJEXT$ac_delim
21924 CXX!$CXX$ac_delim
21925 CXXFLAGS!$CXXFLAGS$ac_delim
21926 ac_ct_CXX!$ac_ct_CXX$ac_delim
21927 CPP!$CPP$ac_delim
21928 subdirs!$subdirs$ac_delim
21929 ENABLE_POLLY!$ENABLE_POLLY$ac_delim
21930 LLVM_HAS_POLLY!$LLVM_HAS_POLLY$ac_delim
21931 build!$build$ac_delim
21932 build_cpu!$build_cpu$ac_delim
21933 build_vendor!$build_vendor$ac_delim
21934 build_os!$build_os$ac_delim
21935 host!$host$ac_delim
21936 host_cpu!$host_cpu$ac_delim
21937 host_vendor!$host_vendor$ac_delim
21938 host_os!$host_os$ac_delim
21939 target!$target$ac_delim
21940 target_cpu!$target_cpu$ac_delim
21941 target_vendor!$target_vendor$ac_delim
21942 target_os!$target_os$ac_delim
21943 OS!$OS$ac_delim
21944 HOST_OS!$HOST_OS$ac_delim
21945 TARGET_OS!$TARGET_OS$ac_delim
21946 LINKALL!$LINKALL$ac_delim
21947 NOLINKALL!$NOLINKALL$ac_delim
21948 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
21949 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
21950 ARCH!$ARCH$ac_delim
21951 HOST_ARCH!$HOST_ARCH$ac_delim
21952 ENDIAN!$ENDIAN$ac_delim
21953 GREP!$GREP$ac_delim
21954 EGREP!$EGREP$ac_delim
21955 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
21956 BUILD_CC!$BUILD_CC$ac_delim
21957 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
21958 BUILD_CXX!$BUILD_CXX$ac_delim
21959 CVSBUILD!$CVSBUILD$ac_delim
21960 ENABLE_LIBCPP!$ENABLE_LIBCPP$ac_delim
21961 ENABLE_CXX11!$ENABLE_CXX11$ac_delim
21962 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
21963 ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
21964 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
21965 ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
21966 EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
21967 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
21968 DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
21969 JIT!$JIT$ac_delim
21970 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
21971 ENABLE_DOCS!$ENABLE_DOCS$ac_delim
21972 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
21973 LLVM_ENABLE_THREADS!$LLVM_ENABLE_THREADS$ac_delim
21974 ENABLE_PTHREADS!$ENABLE_PTHREADS$ac_delim
21975 ENABLE_PIC!$ENABLE_PIC$ac_delim
21976 _ACEOF
21977
21978   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
21979     break
21980   elif $ac_last_try; then
21981     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21982 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21983    { (exit 1); exit 1; }; }
21984   else
21985     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21986   fi
21987 done
21988
21989 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21990 if test -n "$ac_eof"; then
21991   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21992   ac_eof=`expr $ac_eof + 1`
21993 fi
21994
21995 cat >>$CONFIG_STATUS <<_ACEOF
21996 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
21997 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21998 _ACEOF
21999 sed '
22000 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22001 s/^/s,@/; s/!/@,|#_!!_#|/
22002 :n
22003 t n
22004 s/'"$ac_delim"'$/,g/; t
22005 s/$/\\/; p
22006 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22007 ' >>$CONFIG_STATUS <conf$$subs.sed
22008 rm -f conf$$subs.sed
22009 cat >>$CONFIG_STATUS <<_ACEOF
22010 CEOF$ac_eof
22011 _ACEOF
22012
22013
22014 ac_delim='%!_!# '
22015 for ac_last_try in false false false false false :; do
22016   cat >conf$$subs.sed <<_ACEOF
22017 ENABLE_SHARED!$ENABLE_SHARED$ac_delim
22018 ENABLE_EMBED_STDCXX!$ENABLE_EMBED_STDCXX$ac_delim
22019 ENABLE_TIMESTAMPS!$ENABLE_TIMESTAMPS$ac_delim
22020 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
22021 LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
22022 LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
22023 LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
22024 LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
22025 OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
22026 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
22027 EXTRA_LD_OPTIONS!$EXTRA_LD_OPTIONS$ac_delim
22028 CLANG_SRC_ROOT!$CLANG_SRC_ROOT$ac_delim
22029 BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
22030 INTERNAL_PREFIX!$INTERNAL_PREFIX$ac_delim
22031 NM!$NM$ac_delim
22032 ifGNUmake!$ifGNUmake$ac_delim
22033 LN_S!$LN_S$ac_delim
22034 CMP!$CMP$ac_delim
22035 CP!$CP$ac_delim
22036 DATE!$DATE$ac_delim
22037 FIND!$FIND$ac_delim
22038 MKDIR!$MKDIR$ac_delim
22039 MV!$MV$ac_delim
22040 RANLIB!$RANLIB$ac_delim
22041 AR!$AR$ac_delim
22042 RM!$RM$ac_delim
22043 SED!$SED$ac_delim
22044 TAR!$TAR$ac_delim
22045 BINPWD!$BINPWD$ac_delim
22046 GRAPHVIZ!$GRAPHVIZ$ac_delim
22047 DOT!$DOT$ac_delim
22048 FDP!$FDP$ac_delim
22049 NEATO!$NEATO$ac_delim
22050 TWOPI!$TWOPI$ac_delim
22051 CIRCO!$CIRCO$ac_delim
22052 GV!$GV$ac_delim
22053 DOTTY!$DOTTY$ac_delim
22054 XDOT_PY!$XDOT_PY$ac_delim
22055 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
22056 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
22057 INSTALL_DATA!$INSTALL_DATA$ac_delim
22058 BZIP2!$BZIP2$ac_delim
22059 CAT!$CAT$ac_delim
22060 DOXYGEN!$DOXYGEN$ac_delim
22061 GROFF!$GROFF$ac_delim
22062 GZIPBIN!$GZIPBIN$ac_delim
22063 PDFROFF!$PDFROFF$ac_delim
22064 ZIP!$ZIP$ac_delim
22065 OCAMLC!$OCAMLC$ac_delim
22066 OCAMLOPT!$OCAMLOPT$ac_delim
22067 OCAMLDEP!$OCAMLDEP$ac_delim
22068 OCAMLDOC!$OCAMLDOC$ac_delim
22069 GAS!$GAS$ac_delim
22070 HAVE_LINK_VERSION_SCRIPT!$HAVE_LINK_VERSION_SCRIPT$ac_delim
22071 INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
22072 INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
22073 CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
22074 CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
22075 LIBADD_DL!$LIBADD_DL$ac_delim
22076 NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
22077 NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
22078 COVERED_SWITCH_DEFAULT!$COVERED_SWITCH_DEFAULT$ac_delim
22079 USE_UDIS86!$USE_UDIS86$ac_delim
22080 USE_OPROFILE!$USE_OPROFILE$ac_delim
22081 USE_INTEL_JITEVENTS!$USE_INTEL_JITEVENTS$ac_delim
22082 INTEL_JITEVENTS_INCDIR!$INTEL_JITEVENTS_INCDIR$ac_delim
22083 INTEL_JITEVENTS_LIBDIR!$INTEL_JITEVENTS_LIBDIR$ac_delim
22084 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
22085 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
22086 MMAP_FILE!$MMAP_FILE$ac_delim
22087 SHLIBEXT!$SHLIBEXT$ac_delim
22088 SHLIBPATH_VAR!$SHLIBPATH_VAR$ac_delim
22089 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
22090 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
22091 LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
22092 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
22093 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
22094 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
22095 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
22096 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
22097 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
22098 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
22099 BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
22100 ALL_BINDINGS!$ALL_BINDINGS$ac_delim
22101 OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
22102 ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
22103 RPATH!$RPATH$ac_delim
22104 RDYNAMIC!$RDYNAMIC$ac_delim
22105 LIBOBJS!$LIBOBJS$ac_delim
22106 LTLIBOBJS!$LTLIBOBJS$ac_delim
22107 _ACEOF
22108
22109   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 90; then
22110     break
22111   elif $ac_last_try; then
22112     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22113 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22114    { (exit 1); exit 1; }; }
22115   else
22116     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22117   fi
22118 done
22119
22120 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
22121 if test -n "$ac_eof"; then
22122   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
22123   ac_eof=`expr $ac_eof + 1`
22124 fi
22125
22126 cat >>$CONFIG_STATUS <<_ACEOF
22127 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
22128 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
22129 _ACEOF
22130 sed '
22131 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22132 s/^/s,@/; s/!/@,|#_!!_#|/
22133 :n
22134 t n
22135 s/'"$ac_delim"'$/,g/; t
22136 s/$/\\/; p
22137 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22138 ' >>$CONFIG_STATUS <conf$$subs.sed
22139 rm -f conf$$subs.sed
22140 cat >>$CONFIG_STATUS <<_ACEOF
22141 :end
22142 s/|#_!!_#|//g
22143 CEOF$ac_eof
22144 _ACEOF
22145
22146
22147 # VPATH may cause trouble with some makes, so we remove $(srcdir),
22148 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22149 # trailing colons and then remove the whole line if VPATH becomes empty
22150 # (actually we leave an empty line to preserve line numbers).
22151 if test "x$srcdir" = x.; then
22152   ac_vpsub='/^[  ]*VPATH[        ]*=/{
22153 s/:*\$(srcdir):*/:/
22154 s/:*\${srcdir}:*/:/
22155 s/:*@srcdir@:*/:/
22156 s/^\([^=]*=[     ]*\):*/\1/
22157 s/:*$//
22158 s/^[^=]*=[       ]*$//
22159 }'
22160 fi
22161
22162 cat >>$CONFIG_STATUS <<\_ACEOF
22163 fi # test -n "$CONFIG_FILES"
22164
22165
22166 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
22167 do
22168   case $ac_tag in
22169   :[FHLC]) ac_mode=$ac_tag; continue;;
22170   esac
22171   case $ac_mode$ac_tag in
22172   :[FHL]*:*);;
22173   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
22174 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
22175    { (exit 1); exit 1; }; };;
22176   :[FH]-) ac_tag=-:-;;
22177   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
22178   esac
22179   ac_save_IFS=$IFS
22180   IFS=:
22181   set x $ac_tag
22182   IFS=$ac_save_IFS
22183   shift
22184   ac_file=$1
22185   shift
22186
22187   case $ac_mode in
22188   :L) ac_source=$1;;
22189   :[FH])
22190     ac_file_inputs=
22191     for ac_f
22192     do
22193       case $ac_f in
22194       -) ac_f="$tmp/stdin";;
22195       *) # Look for the file first in the build tree, then in the source tree
22196          # (if the path is not absolute).  The absolute path cannot be DOS-style,
22197          # because $ac_f cannot contain `:'.
22198          test -f "$ac_f" ||
22199            case $ac_f in
22200            [\\/$]*) false;;
22201            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
22202            esac ||
22203            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
22204 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
22205    { (exit 1); exit 1; }; };;
22206       esac
22207       ac_file_inputs="$ac_file_inputs $ac_f"
22208     done
22209
22210     # Let's still pretend it is `configure' which instantiates (i.e., don't
22211     # use $as_me), people would be surprised to read:
22212     #    /* config.h.  Generated by config.status.  */
22213     configure_input="Generated from "`IFS=:
22214           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
22215     if test x"$ac_file" != x-; then
22216       configure_input="$ac_file.  $configure_input"
22217       { echo "$as_me:$LINENO: creating $ac_file" >&5
22218 echo "$as_me: creating $ac_file" >&6;}
22219     fi
22220
22221     case $ac_tag in
22222     *:-:* | *:-) cat >"$tmp/stdin";;
22223     esac
22224     ;;
22225   esac
22226
22227   ac_dir=`$as_dirname -- "$ac_file" ||
22228 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22229          X"$ac_file" : 'X\(//\)[^/]' \| \
22230          X"$ac_file" : 'X\(//\)$' \| \
22231          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
22232 echo X"$ac_file" |
22233     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22234             s//\1/
22235             q
22236           }
22237           /^X\(\/\/\)[^/].*/{
22238             s//\1/
22239             q
22240           }
22241           /^X\(\/\/\)$/{
22242             s//\1/
22243             q
22244           }
22245           /^X\(\/\).*/{
22246             s//\1/
22247             q
22248           }
22249           s/.*/./; q'`
22250   { as_dir="$ac_dir"
22251   case $as_dir in #(
22252   -*) as_dir=./$as_dir;;
22253   esac
22254   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22255     as_dirs=
22256     while :; do
22257       case $as_dir in #(
22258       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22259       *) as_qdir=$as_dir;;
22260       esac
22261       as_dirs="'$as_qdir' $as_dirs"
22262       as_dir=`$as_dirname -- "$as_dir" ||
22263 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22264          X"$as_dir" : 'X\(//\)[^/]' \| \
22265          X"$as_dir" : 'X\(//\)$' \| \
22266          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22267 echo X"$as_dir" |
22268     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22269             s//\1/
22270             q
22271           }
22272           /^X\(\/\/\)[^/].*/{
22273             s//\1/
22274             q
22275           }
22276           /^X\(\/\/\)$/{
22277             s//\1/
22278             q
22279           }
22280           /^X\(\/\).*/{
22281             s//\1/
22282             q
22283           }
22284           s/.*/./; q'`
22285       test -d "$as_dir" && break
22286     done
22287     test -z "$as_dirs" || eval "mkdir $as_dirs"
22288   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22289 echo "$as_me: error: cannot create directory $as_dir" >&2;}
22290    { (exit 1); exit 1; }; }; }
22291   ac_builddir=.
22292
22293 case "$ac_dir" in
22294 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22295 *)
22296   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22297   # A ".." for each directory in $ac_dir_suffix.
22298   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
22299   case $ac_top_builddir_sub in
22300   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22301   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22302   esac ;;
22303 esac
22304 ac_abs_top_builddir=$ac_pwd
22305 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22306 # for backward compatibility:
22307 ac_top_builddir=$ac_top_build_prefix
22308
22309 case $srcdir in
22310   .)  # We are building in place.
22311     ac_srcdir=.
22312     ac_top_srcdir=$ac_top_builddir_sub
22313     ac_abs_top_srcdir=$ac_pwd ;;
22314   [\\/]* | ?:[\\/]* )  # Absolute name.
22315     ac_srcdir=$srcdir$ac_dir_suffix;
22316     ac_top_srcdir=$srcdir
22317     ac_abs_top_srcdir=$srcdir ;;
22318   *) # Relative name.
22319     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22320     ac_top_srcdir=$ac_top_build_prefix$srcdir
22321     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22322 esac
22323 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22324
22325
22326   case $ac_mode in
22327   :F)
22328   #
22329   # CONFIG_FILE
22330   #
22331
22332   case $INSTALL in
22333   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22334   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
22335   esac
22336 _ACEOF
22337
22338 cat >>$CONFIG_STATUS <<\_ACEOF
22339 # If the template does not know about datarootdir, expand it.
22340 # FIXME: This hack should be removed a few years after 2.60.
22341 ac_datarootdir_hack=; ac_datarootdir_seen=
22342
22343 case `sed -n '/datarootdir/ {
22344   p
22345   q
22346 }
22347 /@datadir@/p
22348 /@docdir@/p
22349 /@infodir@/p
22350 /@localedir@/p
22351 /@mandir@/p
22352 ' $ac_file_inputs` in
22353 *datarootdir*) ac_datarootdir_seen=yes;;
22354 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
22355   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22356 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
22357 _ACEOF
22358 cat >>$CONFIG_STATUS <<_ACEOF
22359   ac_datarootdir_hack='
22360   s&@datadir@&$datadir&g
22361   s&@docdir@&$docdir&g
22362   s&@infodir@&$infodir&g
22363   s&@localedir@&$localedir&g
22364   s&@mandir@&$mandir&g
22365     s&\\\${datarootdir}&$datarootdir&g' ;;
22366 esac
22367 _ACEOF
22368
22369 # Neutralize VPATH when `$srcdir' = `.'.
22370 # Shell code in configure.ac might set extrasub.
22371 # FIXME: do we really want to maintain this feature?
22372 cat >>$CONFIG_STATUS <<_ACEOF
22373   sed "$ac_vpsub
22374 $extrasub
22375 _ACEOF
22376 cat >>$CONFIG_STATUS <<\_ACEOF
22377 :t
22378 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22379 s&@configure_input@&$configure_input&;t t
22380 s&@top_builddir@&$ac_top_builddir_sub&;t t
22381 s&@srcdir@&$ac_srcdir&;t t
22382 s&@abs_srcdir@&$ac_abs_srcdir&;t t
22383 s&@top_srcdir@&$ac_top_srcdir&;t t
22384 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22385 s&@builddir@&$ac_builddir&;t t
22386 s&@abs_builddir@&$ac_abs_builddir&;t t
22387 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22388 s&@INSTALL@&$ac_INSTALL&;t t
22389 $ac_datarootdir_hack
22390 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
22391
22392 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22393   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
22394   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
22395   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22396 which seems to be undefined.  Please make sure it is defined." >&5
22397 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22398 which seems to be undefined.  Please make sure it is defined." >&2;}
22399
22400   rm -f "$tmp/stdin"
22401   case $ac_file in
22402   -) cat "$tmp/out"; rm -f "$tmp/out";;
22403   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
22404   esac
22405  ;;
22406   :H)
22407   #
22408   # CONFIG_HEADER
22409   #
22410 _ACEOF
22411
22412 # Transform confdefs.h into a sed script `conftest.defines', that
22413 # substitutes the proper values into config.h.in to produce config.h.
22414 rm -f conftest.defines conftest.tail
22415 # First, append a space to every undef/define line, to ease matching.
22416 echo 's/$/ /' >conftest.defines
22417 # Then, protect against being on the right side of a sed subst, or in
22418 # an unquoted here document, in config.status.  If some macros were
22419 # called several times there might be several #defines for the same
22420 # symbol, which is useless.  But do not sort them, since the last
22421 # AC_DEFINE must be honored.
22422 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
22423 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
22424 # NAME is the cpp macro being defined, VALUE is the value it is being given.
22425 # PARAMS is the parameter list in the macro definition--in most cases, it's
22426 # just an empty string.
22427 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
22428 ac_dB='\\)[      (].*,\\1define\\2'
22429 ac_dC=' '
22430 ac_dD=' ,'
22431
22432 uniq confdefs.h |
22433   sed -n '
22434         t rset
22435         :rset
22436         s/^[     ]*#[    ]*define[       ][      ]*//
22437         t ok
22438         d
22439         :ok
22440         s/[\\&,]/\\&/g
22441         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
22442         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
22443   ' >>conftest.defines
22444
22445 # Remove the space that was appended to ease matching.
22446 # Then replace #undef with comments.  This is necessary, for
22447 # example, in the case of _POSIX_SOURCE, which is predefined and required
22448 # on some systems where configure will not decide to define it.
22449 # (The regexp can be short, since the line contains either #define or #undef.)
22450 echo 's/ $//
22451 s,^[     #]*u.*,/* & */,' >>conftest.defines
22452
22453 # Break up conftest.defines:
22454 ac_max_sed_lines=50
22455
22456 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
22457 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
22458 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
22459 # et cetera.
22460 ac_in='$ac_file_inputs'
22461 ac_out='"$tmp/out1"'
22462 ac_nxt='"$tmp/out2"'
22463
22464 while :
22465 do
22466   # Write a here document:
22467     cat >>$CONFIG_STATUS <<_ACEOF
22468     # First, check the format of the line:
22469     cat >"\$tmp/defines.sed" <<\\CEOF
22470 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
22471 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
22472 b
22473 :def
22474 _ACEOF
22475   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
22476   echo 'CEOF
22477     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
22478   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
22479   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
22480   grep . conftest.tail >/dev/null || break
22481   rm -f conftest.defines
22482   mv conftest.tail conftest.defines
22483 done
22484 rm -f conftest.defines conftest.tail
22485
22486 echo "ac_result=$ac_in" >>$CONFIG_STATUS
22487 cat >>$CONFIG_STATUS <<\_ACEOF
22488   if test x"$ac_file" != x-; then
22489     echo "/* $configure_input  */" >"$tmp/config.h"
22490     cat "$ac_result" >>"$tmp/config.h"
22491     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
22492       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22493 echo "$as_me: $ac_file is unchanged" >&6;}
22494     else
22495       rm -f $ac_file
22496       mv "$tmp/config.h" $ac_file
22497     fi
22498   else
22499     echo "/* $configure_input  */"
22500     cat "$ac_result"
22501   fi
22502   rm -f "$tmp/out12"
22503  ;;
22504
22505   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
22506 echo "$as_me: executing $ac_file commands" >&6;}
22507  ;;
22508   esac
22509
22510
22511   case $ac_file$ac_mode in
22512     "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
22513    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
22514     "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
22515    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;;
22516     "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
22517    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;;
22518     "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
22519    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
22520     "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
22521    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
22522     "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
22523    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;;
22524     "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
22525    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
22526     "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
22527    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
22528     "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
22529    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
22530     "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
22531    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;;
22532     "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
22533    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;;
22534     "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
22535    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
22536     "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
22537    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
22538
22539   esac
22540 done # for ac_tag
22541
22542
22543 { (exit 0); exit 0; }
22544 _ACEOF
22545 chmod +x $CONFIG_STATUS
22546 ac_clean_files=$ac_clean_files_save
22547
22548
22549 # configure is writing to config.log, and then calls config.status.
22550 # config.status does its own redirection, appending to config.log.
22551 # Unfortunately, on DOS this fails, as config.log is still kept open
22552 # by configure, so config.status won't be able to write to it; its
22553 # output is simply discarded.  So we exec the FD to /dev/null,
22554 # effectively closing config.log, so it can be properly (re)opened and
22555 # appended to by config.status.  When coming back to configure, we
22556 # need to make the FD available again.
22557 if test "$no_create" != yes; then
22558   ac_cs_success=:
22559   ac_config_status_args=
22560   test "$silent" = yes &&
22561     ac_config_status_args="$ac_config_status_args --quiet"
22562   exec 5>/dev/null
22563   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22564   exec 5>>config.log
22565   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22566   # would make configure fail if this is the last instruction.
22567   $ac_cs_success || { (exit 1); exit 1; }
22568 fi
22569
22570 #
22571 # CONFIG_SUBDIRS section.
22572 #
22573 if test "$no_recursion" != yes; then
22574
22575   # Remove --cache-file and --srcdir arguments so they do not pile up.
22576   ac_sub_configure_args=
22577   ac_prev=
22578   eval "set x $ac_configure_args"
22579   shift
22580   for ac_arg
22581   do
22582     if test -n "$ac_prev"; then
22583       ac_prev=
22584       continue
22585     fi
22586     case $ac_arg in
22587     -cache-file | --cache-file | --cache-fil | --cache-fi \
22588     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
22589       ac_prev=cache_file ;;
22590     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
22591     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
22592     | --c=*)
22593       ;;
22594     --config-cache | -C)
22595       ;;
22596     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
22597       ac_prev=srcdir ;;
22598     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
22599       ;;
22600     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
22601       ac_prev=prefix ;;
22602     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
22603       ;;
22604     *)
22605       case $ac_arg in
22606       *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
22607       esac
22608       ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
22609     esac
22610   done
22611
22612   # Always prepend --prefix to ensure using the same prefix
22613   # in subdir configurations.
22614   ac_arg="--prefix=$prefix"
22615   case $ac_arg in
22616   *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
22617   esac
22618   ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
22619
22620   ac_popdir=`pwd`
22621   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
22622
22623     # Do not complain, so a configure script can configure whichever
22624     # parts of a large source tree are present.
22625     test -d "$srcdir/$ac_dir" || continue
22626
22627     ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
22628     echo "$as_me:$LINENO: $ac_msg" >&5
22629     echo "$ac_msg" >&6
22630     { as_dir="$ac_dir"
22631   case $as_dir in #(
22632   -*) as_dir=./$as_dir;;
22633   esac
22634   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22635     as_dirs=
22636     while :; do
22637       case $as_dir in #(
22638       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22639       *) as_qdir=$as_dir;;
22640       esac
22641       as_dirs="'$as_qdir' $as_dirs"
22642       as_dir=`$as_dirname -- "$as_dir" ||
22643 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22644          X"$as_dir" : 'X\(//\)[^/]' \| \
22645          X"$as_dir" : 'X\(//\)$' \| \
22646          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22647 echo X"$as_dir" |
22648     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22649             s//\1/
22650             q
22651           }
22652           /^X\(\/\/\)[^/].*/{
22653             s//\1/
22654             q
22655           }
22656           /^X\(\/\/\)$/{
22657             s//\1/
22658             q
22659           }
22660           /^X\(\/\).*/{
22661             s//\1/
22662             q
22663           }
22664           s/.*/./; q'`
22665       test -d "$as_dir" && break
22666     done
22667     test -z "$as_dirs" || eval "mkdir $as_dirs"
22668   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22669 echo "$as_me: error: cannot create directory $as_dir" >&2;}
22670    { (exit 1); exit 1; }; }; }
22671     ac_builddir=.
22672
22673 case "$ac_dir" in
22674 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22675 *)
22676   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22677   # A ".." for each directory in $ac_dir_suffix.
22678   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
22679   case $ac_top_builddir_sub in
22680   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22681   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22682   esac ;;
22683 esac
22684 ac_abs_top_builddir=$ac_pwd
22685 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22686 # for backward compatibility:
22687 ac_top_builddir=$ac_top_build_prefix
22688
22689 case $srcdir in
22690   .)  # We are building in place.
22691     ac_srcdir=.
22692     ac_top_srcdir=$ac_top_builddir_sub
22693     ac_abs_top_srcdir=$ac_pwd ;;
22694   [\\/]* | ?:[\\/]* )  # Absolute name.
22695     ac_srcdir=$srcdir$ac_dir_suffix;
22696     ac_top_srcdir=$srcdir
22697     ac_abs_top_srcdir=$srcdir ;;
22698   *) # Relative name.
22699     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22700     ac_top_srcdir=$ac_top_build_prefix$srcdir
22701     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22702 esac
22703 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22704
22705
22706     cd "$ac_dir"
22707
22708     # Check for guested configure; otherwise get Cygnus style configure.
22709     if test -f "$ac_srcdir/configure.gnu"; then
22710       ac_sub_configure=$ac_srcdir/configure.gnu
22711     elif test -f "$ac_srcdir/configure"; then
22712       ac_sub_configure=$ac_srcdir/configure
22713     elif test -f "$ac_srcdir/configure.in"; then
22714       # This should be Cygnus configure.
22715       ac_sub_configure=$ac_aux_dir/configure
22716     else
22717       { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
22718 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
22719       ac_sub_configure=
22720     fi
22721
22722     # The recursion is here.
22723     if test -n "$ac_sub_configure"; then
22724       # Make the cache file name correct relative to the subdirectory.
22725       case $cache_file in
22726       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
22727       *) # Relative name.
22728         ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
22729       esac
22730
22731       { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
22732 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
22733       # The eval makes quoting arguments work.
22734       eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
22735            --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
22736         { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
22737 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
22738    { (exit 1); exit 1; }; }
22739     fi
22740
22741     cd "$ac_popdir"
22742   done
22743 fi
22744